Files
Trilium/libraries/ckeditor/ckeditor.js
2025-01-07 17:07:08 +02:00

27 lines
4.2 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!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","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Entering %0 code snippet":"Entering %0 code snippet","Entering a to-do list":"Entering a to-do list","Entering code snippet":"Entering code snippet","Error during image upload":"Error during image upload","Euro sign":"Euro sign","Euro-currency sign":"Euro-currency sign","Exclamation question mark":"Exclamation question mark","Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.":"Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content.",Find:"Find","Find and replace":"Find and replace","Find in text…":"Find in text…","Find in the document":"Find in the document","Font Background Color":"Font Background Color","Font Color":"Font Color","Font Family":"Font Family","Font Size":"Font Size","For all":"For all","Fraction slash":"Fraction slash","French franc sign":"French franc sign","From computer":"From computer","Full size image":"Full size image","German penny sign":"German penny sign","Greater-than or equal to":"Greater-than or equal to","Greater-than sign":"Greater-than sign",Green:"Green",Grey:"Grey",Groove:"Groove","Guarani sign":"Guarani sign","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height","Help Contents. To close this dialog press ESC.":"Help Contents. To close this dialog press ESC.",HEX:"HEX","Horizontal ellipsis":"Horizontal ellipsis","Horizontal line":"Horizontal line","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Hryvnia sign":"Hryvnia sign","HTML object":"HTML object",Huge:"Huge","Identical to":"Identical to",Image:"Image","Image from computer":"Image from computer","Image resize list":"Image resize list","Image toolbar":"Image toolbar","Image upload complete":"Image upload complete","Image via URL":"Image via URL","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","Increase list item indent":"Increase list item indent","Indian rupee sign":"Indian rupee sign",Infinity:"Infinity","Insert a hard break (a new paragraph)":"Insert a hard break (a new paragraph)","Insert a new paragraph directly after a widget":"Insert a new paragraph directly after a widget","Insert a new paragraph directly before a widget":"Insert a new paragraph directly before a widget","Insert a new table row (when in the last cell of a table)":"Insert a new table row (when in the last cell of a table)","Insert a soft break (a <code>&lt;br&gt;</code> element)":"Insert a soft break (a <code>&lt;br&gt;</code> element)","Insert code block":"Insert code block","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image via URL":"Insert image via URL","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert via URL":"Insert via URL",Inset:"Inset",Integral:"Integral",Intersection:"Intersection","Invalid start index value.":"Invalid start index value.","Inverted exclamation mark":"Inverted exclamation mark","Inverted question mark":"Inverted question mark",Italic:"Italic","Italic text":"Italic text","Justify cell text":"Justify cell text","Keystrokes that can be used in a list":"Keystrokes that can be used in a list","Keystrokes that can be used in a table cell":"Keystrokes that can be used in a table cell","Keystrokes that can be used when a widget is selected (for example: image, table, etc.)":"Keystrokes that can be used when a widget is selected (for example: image, table, etc.)","Kip sign":"Kip sign",Latin:"Latin","Latin capital letter a with breve":"Latin capital letter a with breve","Latin capital letter a with macron":"Latin capital letter a with macron","Latin capital letter a with ogonek":"Latin capital letter a with ogonek","Latin capital letter c with acute":"Latin capital letter c with acute","Latin capital letter c with caron":"Latin capital letter c with caron","Latin capital letter c with circumflex":"Latin capital letter c with circumflex","Latin capital letter c with dot above":"Latin capital letter c with dot above","Latin capital letter d with caron":"Latin capital letter d with caron","Latin capital letter d with stroke":"Latin capital letter d with stroke","Latin capital letter e with breve":"Latin capital letter e with breve","Latin capital letter e with caron":"Latin capital letter e with caron","Latin capital letter e with dot above":"Latin capital letter e with dot above","Latin capital letter e with macron":"Latin capital letter e with macron","Latin capital letter e with ogonek":"Latin capital letter e with ogonek","Latin capital letter eng":"Latin capital letter eng","Latin capital letter g with breve":"Latin capital letter g with breve","Latin capital letter g with cedilla":"Latin capital letter g with cedilla","Latin capital letter g with circumflex":"Latin capital letter g with circumflex","Latin capital letter g with dot above":"Latin capital letter g with dot above","Latin capital letter h with circumflex":"Latin capital letter h with circumflex","Latin capital letter h with stroke":"Latin capital letter h with stroke","Latin capital letter i with breve":"Latin capital letter i with breve","Latin capital letter i with dot above":"Latin capital letter i with dot above","Latin capital letter i with macron":"Latin capital letter i with macron","Latin capital letter i with ogonek":"Latin capital letter i with ogonek","Latin capital letter i with tilde":"Latin capital letter i with tilde","Latin capital letter j with circumflex":"Latin capital letter j with circumflex","Latin capital letter k with cedilla":"Latin capital letter k with cedilla","Latin capital letter l with acute":"Latin capital letter l with acute","Latin capital letter l with caron":"Latin capital letter l with caron","Latin capital letter l with cedilla":"Latin capital letter l with cedilla","Latin capital letter l with middle dot":"Latin capital letter l with middle dot","Latin capital letter l with stroke":"Latin capital letter l with stroke","Latin capital letter n with acute":"Latin capital letter n with acute","Latin capital letter n with caron":"Latin capital letter n with caron","Latin capital letter n with cedilla":"Latin capital letter n with cedilla","Latin capital letter o with breve":"Latin capital letter o with breve","Latin capital letter o with double acute":"Latin capital letter o with double acute","Latin capital letter o with macron":"Latin capital letter o with macron","Latin capital letter r with acute":"Latin capital letter r with acute","Latin capital letter r with caron":"Latin capital letter r with caron","Latin capital letter r with cedilla":"Latin capital letter r with cedilla","Latin capital letter s with acute":"Latin capital letter s with acute","Latin capital letter s with caron":"Latin capital letter s with caron","Latin capital letter s with cedilla":"Latin capital letter s with cedilla","Latin capital letter s with circumflex":"Latin capital letter s with circumflex","Latin capital letter t with caron":"Latin capital letter t with caron","Latin capital letter t with cedilla":"Latin capital letter t with cedilla","Latin capital letter t with stroke":"Latin capital letter t with stroke","Latin capital letter u with breve":"Latin capital letter u with breve","Latin capital letter u with double acute":"Latin capital letter u with double acute","Latin capital letter u with macron":"Latin capital letter u with macron","Latin capital letter u with ogonek":"Latin capital letter u with ogonek","Latin capital letter u with ring above":"Latin capital letter u with ring above","Latin capital letter u with tilde":"Latin capital letter u with tilde","Latin capital letter w with circumflex":"Latin capital letter w with circumflex","Latin capital letter y with circumflex":"Latin capital letter y with circumflex","Latin capital letter y with diaeresis":"Latin capital letter y with diaeresis","Latin capital letter z with acute":"Latin capital letter z with acute","Latin capital letter z with caron":"Latin capital letter z with caron","Latin capital letter z with dot above":"Latin capital letter z with dot above","Latin capital ligature ij":"Latin capital ligature ij","Latin capital ligature oe":"Latin capital ligature oe","Latin small letter a with breve":"Latin small letter a with breve","Latin small letter a with macron":"Latin small letter a with macron","Latin small letter a with ogonek":"Latin small letter a with ogonek","Latin small letter c with acute":"Latin small letter c with acute","Latin small letter c with caron":"Latin small letter c with caron","Latin small letter c with circumflex":"Latin small letter c with circumflex","Latin small letter c with dot above":"Latin small letter c with dot above","Latin small letter d with caron":"Latin small letter d with caron","Latin small letter d with stroke":"Latin small letter d with stroke","Latin small letter dotless i":"Latin small letter dotless i","Latin small letter e with breve":"Latin small letter e with breve","Latin small letter e with caron":"Latin small letter e with caron","Latin small letter e with dot above":"Latin small letter e with dot above","Latin small letter e with macron":"Latin small letter e with macron","Latin small letter e with ogonek":"Latin small letter e with ogonek","Latin small letter eng":"Latin small letter eng","Latin small letter f with hook":"Latin small letter f with hook","Latin small letter g with breve":"Latin small letter g with breve","Latin small letter g with cedilla":"Latin small letter g with cedilla","Latin small letter g with circumflex":"Latin small letter g with circumflex","Latin small letter g with dot above":"Latin small letter g with dot above","Latin small letter h with circumflex":"Latin small letter h with circumflex","Latin small letter h with stroke":"Latin small letter h with stroke","Latin small letter i with breve":"Latin small letter i with breve","Latin small letter i with macron":"Latin small letter i with macron","Latin small letter i with ogonek":"Latin small letter i with ogonek","Latin small letter i with tilde":"Latin small letter i with tilde","Latin small letter j with circumflex":"Latin small letter j with circumflex","Latin small letter k with cedilla":"Latin small letter k with cedilla","Latin small letter kra":"Latin small letter kra","Latin small letter l with acute":"Latin small letter l with acute","Latin small letter l with caron":"Latin small letter l with caron","Latin small letter l with cedilla":"Latin small letter l with cedilla","Latin small letter l with middle dot":"Latin small letter l with middle dot","Latin small letter l with stroke":"Latin small letter l with stroke","Latin small letter long s":"Latin small letter long s","Latin small letter n preceded by apostrophe":"Latin small letter n preceded by apostrophe","Latin small letter n with acute":"Latin small letter n with acute","Latin small letter n with caron":"Latin small letter n with caron","Latin small letter n with cedilla":"Latin small letter n with cedilla","Latin small letter o with breve":"Latin small letter o with breve","Latin small letter o with double acute":"Latin small letter o with double acute","Latin small letter o with macron":"Latin small letter o with macron","Latin small letter r with acute":"Latin small letter r with acute","Latin small letter r with caron":"Latin small letter r with caron","Latin small letter r with cedilla":"Latin small letter r with cedilla","Latin small letter s with acute":"Latin small letter s with acute","Latin small letter s with caron":"Latin small letter s with caron","Latin small letter s with cedilla":"Latin small letter s with cedilla","Latin small letter s with circumflex":"Latin small letter s with circumflex","Latin small letter t with caron":"Latin small letter t with caron","Latin small letter t with cedilla":"Latin small letter t with cedilla","Latin small letter t with stroke":"Latin small letter t with stroke","Latin small letter u with breve":"Latin small letter u with breve","Latin small letter u with double acute":"Latin small letter u with double acute","Latin small letter u with macron":"Latin small letter u with macron","Latin small letter u with ogonek":"Latin small letter u with ogonek","Latin small letter u with ring above":"Latin small letter u with ring above","Latin small letter u with tilde":"Latin small letter u with tilde","Latin small letter w with circumflex":"Latin small letter w with circumflex","Latin small letter y with circumflex":"Latin small letter y with circumflex","Latin small letter z with acute":"Latin small letter z with acute","Latin small letter z with caron":"Latin small letter z with caron","Latin small letter z with dot above":"Latin small letter z with dot above","Latin small ligature ij":"Latin small ligature ij","Latin small ligature oe":"Latin small ligature oe","Leaving %0 code snippet":"Leaving %0 code snippet","Leaving a to-do list":"Leaving a to-do list","Leaving code snippet":"Leaving code snippet","Left aligned image":"Left aligned image","Left double quotation mark":"Left double quotation mark","Left single quotation mark":"Left single quotation mark","Left-pointing double angle quotation mark":"Left-pointing double angle quotation mark","leftwards arrow to bar":"leftwards arrow to bar","leftwards dashed arrow":"leftwards dashed arrow","leftwards double arrow":"leftwards double arrow","leftwards simple arrow":"leftwards simple arrow","Less-than or equal to":"Less-than or equal to","Less-than sign":"Less-than sign","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","Link URL must not be empty.":"Link URL must not be empty.","Lira sign":"Lira sign","List properties":"List properties","Livre tournois sign":"Livre tournois sign","Logical and":"Logical and","Logical or":"Logical or","Lower-latin":"Lower-latin","Lowerroman":"Lowerroman",Macron:"Macron","Manat sign":"Manat sign","Match case":"Match case",Mathematical:"Mathematical",MENU_BAR_MENU_EDIT:"Edit",MENU_BAR_MENU_FILE:"File",MENU_BAR_MENU_FONT:"Font",MENU_BAR_MENU_FORMAT:"Format",MENU_BAR_MENU_HELP:"Help",MENU_BAR_MENU_INSERT:"Insert",MENU_BAR_MENU_TEXT:"Text",MENU_BAR_MENU_TOOLS:"Tools",MENU_BAR_MENU_VIEW:"View","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells","Mill sign":"Mill sign","Minus sign":"Minus sign","Move focus between form fields (inputs, buttons, etc.)":"Move focus between form fields (inputs, buttons, etc.)","Move focus from an editable area back to the parent widget":"Move focus from an editable area back to the parent widget","Move focus in and out of an active dialog window":"Move focus in and out of an active dialog window","Move focus to the menu bar, navigate between menu bars":"Move focus to the menu bar, navigate between menu bars","Move focus to the toolbar, navigate between toolbars":"Move focus to the toolbar, navigate between toolbars","Move out of a link":"Move out of a link","Move out of an inline code style":"Move out of an inline code style","Move the caret to allow typing directly after a widget":"Move the caret to allow typing directly after a widget","Move the caret to allow typing directly before a widget":"Move the caret to allow typing directly before a widget","Move the selection to the next cell":"Move the selection to the next cell","Move the selection to the previous cell":"Move the selection to the previous cell","Multiplication sign":"Multiplication sign","N-ary product":"N-ary product","N-ary summation":"N-ary summation",Nabla:"Nabla","Naira sign":"Naira sign","Navigate through the table":"Navigate through the table","Navigate through the toolbar or menu bar":"Navigate through the toolbar or menu bar","New sheqel sign":"New sheqel sign",Next:"Next","Next result":"Next result","No results found":"No results found","No searchable items":"No searchable items",None:"None","Nordic mark sign":"Nordic mark sign","Not an element of":"Not an element of","Not equal to":"Not equal to","Not sign":"Not sign","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","on with exclamation mark with left right arrow above":"on with exclamation mark with left right arrow above","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open the accessibility help dialog":"Open the accessibility help dialog",Orange:"Orange",Original:"Original",Outset:"Outset",Overline:"Overline",Padding:"Padding","Page break":"Page break",Paragraph:"Paragraph","Paragraph sign":"Paragraph sign","Partial differential":"Partial differential","Paste content":"Paste content","Paste content as plain text":"Paste content as plain text","Per mille sign":"Per mille sign","Per ten thousand sign":"Per ten thousand sign","Peseta sign":"Peseta sign","Peso sign":"Peso sign","Plain text":"Plain text",'Please enter a valid color (e.g. "ff0000").':'Please enter a valid color (e.g. "ff0000").',"Plus-minus sign":"Plus-minus sign","Pound sign":"Pound sign","Press %0 for help.":"Press %0 for help.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Previous result":"Previous result","Proportional to":"Proportional to",Purple:"Purple","Question exclamation mark":"Question exclamation mark",Red:"Red",Redo:"Redo","Registered sign":"Registered sign","Remove color":"Remove color","Remove Format":"Remove Format",Replace:"Replace","Replace all":"Replace all","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace with…":"Replace with…","Resize image":"Resize image","Resize image (in %0)":"Resize image (in %0)","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Reversed paragraph sign":"Reversed paragraph sign","Revert autoformatting action":"Revert autoformatting action","Rich Text Editor":"Rich Text Editor","Rich Text Editor. Editing area: %0":"Rich Text Editor. Editing area: %0",Ridge:"Ridge","Right aligned image":"Right aligned image","Right double quotation mark":"Right double quotation mark","Right single quotation mark":"Right single quotation mark","Right-pointing double angle quotation mark":"Right-pointing double angle quotation mark","rightwards arrow to bar":"rightwards arrow to bar","rightwards dashed arrow":"rightwards dashed arrow","rightwards double arrow":"rightwards double arrow","rightwards simple arrow":"rightwards simple arrow",Row:"Row","Ruble sign":"Ruble sign","Rupee sign":"Rupee sign",Save:"Save","Section sign":"Section sign","Select all":"Select all","Select column":"Select column","Select row":"Select row","Show more items":"Show more items","Side image":"Side image","Single left-pointing angle quotation mark":"Single left-pointing angle quotation mark","Single low-9 quotation mark":"Single low-9 quotation mark","Single right-pointing angle quotation mark":"Single right-pointing angle quotation mark",Small:"Small",Solid:"Solid","soon with rightwards arrow above":"soon with rightwards arrow above","Special characters":"Special characters","Spesmilo sign":"Spesmilo sign","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Square root":"Square root","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough","Strikethrough text":"Strikethrough text",Style:"Style",Subscript:"Subscript",Superscript:"Superscript",Table:"Table","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Tenge sign":"Tenge sign",Text:"Text","Text alternative":"Text alternative","Text to find must not be empty.":"Text to find must not be empty.",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".','The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"The value must not be empty.":"The value must not be empty.","The value should be a plain number.":"The value should be a plain number.","There exists":"There exists","These keyboard shortcuts allow for quick access to content editing features.":"These keyboard shortcuts allow for quick access to content editing features.","This link has no URL":"This link has no URL","Tilde operator":"Tilde operator",Tiny:"Tiny","Tip: Find some text first in order to replace it.":"Tip: Find some text first in order to replace it.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lowerlatin list style":"Toggle the lowerlatin list style","Toggle the lowerroman list style":"Toggle the lowerroman list style","Toggle the square list style":"Toggle the square list style","Toggle the upperlatin list style":"Toggle the upperlatin list style","Toggle the upperroman list style":"Toggle the upperroman list style","top with upwards arrow above":"top with upwards arrow above","Trade mark sign":"Trade mark sign","Tugrik sign":"Tugrik sign","Turkish lira sign":"Turkish lira sign",Turquoise:"Turquoise","Two dot leader":"Two dot leader","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline","Underline text":"Underline text",Undo:"Undo",Union:"Union",Unlink:"Unlink","up down arrow with base":"up down arrow with base","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Uploading image":"Uploading image","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","upwards arrow to bar":"upwards arrow to bar","upwards dashed arrow":"upwards dashed arrow","upwards double arrow":"upwards double arrow","upwards simple arrow":"upwards simple arrow","Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.":"Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface.","User interface and content navigation keystrokes":"User interface and content navigation keystrokes","Vertical text alignment toolbar":"Vertical text alignment toolbar","Via URL":"Via URL","Vulgar fraction one half":"Vulgar fraction one half","Vulgar fraction one quarter":"Vulgar fraction one quarter","Vulgar fraction three quarters":"Vulgar fraction three quarters",White:"White","Whole words only":"Whole words only","Widget toolbar":"Widget toolbar",Width:"Width","Won sign":"Won sign","Wrap text":"Wrap text",Yellow:"Yellow","Yen sign":"Yen sign","You have no image upload permissions.":"You have no image upload permissions."})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
/*!
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
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;break;case 1:l=c,u=s,h=n;break;case 2:l=n,u=s,h=c;break;case 3:l=n,u=c,h=s;break;case 4:l=c,u=n,h=s;break;case 5:l=s,u=n,h=c}return[255*l,255*u,255*h]},o.cmyk.rgb=function(t){const e=t[0]/100,n=t[1]/100,i=t[2]/100,r=t[3]/100;return[255*(1-Math.min(1,e*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},o.xyz.rgb=function(t){const e=t[0]/100,n=t[1]/100,i=t[2]/100;let r,o,a;return r=3.2406*e+-1.5372*n+-.4986*i,o=-.9689*e+1.8758*n+.0415*i,a=.0557*e+-.204*n+1.057*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*r,255*o,255*a]},o.xyz.lab=function(t){let e=t[0],n=t[1],i=t[2];e/=95.047,n/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(e-n),200*(n-i)]},o.lab.xyz=function(t){let e,n,i;n=(t[0]+16)/116,e=t[1]/500+n,i=n-t[2]/200;const r=n**3,o=e**3,a=i**3;return n=r>.008856?r:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,e*=95.047,n*=100,i*=108.883,[e,n,i]},o.lab.lch=function(t){const e=t[0],n=t[1],i=t[2];let r;r=360*Math.atan2(i,n)/2/Math.PI,r<0&&(r+=360);return[e,Math.sqrt(n*n+i*i),r]},o.lch.lab=function(t){const e=t[0],n=t[1],i=t[2]/360*2*Math.PI;return[e,n*Math.cos(i),n*Math.sin(i)]},o.rgb.ansi16=function(t,e=null){const[n,i,r]=t;let a=null===e?o.rgb.hsv(t)[2]:e;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(r/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return 2===a&&(s+=60),s},o.hsv.ansi16=function(t){return o.rgb.ansi16(o.hsv.rgb(t),t[2])},o.rgb.ansi256=function(t){const e=t[0],n=t[1],i=t[2];if(e===n&&n===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},o.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},o.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},o.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},o.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let n=e[0];3===e[0].length&&(n=n.split("").map((t=>t+t)).join(""));const i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},o.rgb.hcg=function(t){const e=t[0]/255,n=t[1]/255,i=t[2]/255,r=Math.max(Math.max(e,n),i),o=Math.min(Math.min(e,n),i),a=r-o;let s,c;return s=a<1?o/(1-a):0,c=a<=0?0:r===e?(n-i)/a%6:r===n?2+(i-e)/a:4+(e-n)/a,c/=6,c%=1,[360*c,100*a,100*s]},o.hsl.hcg=function(t){const e=t[1]/100,n=t[2]/100,i=n<.5?2*e*n:2*e*(1-n);let r=0;return i<1&&(r=(n-.5*i)/(1-i)),[t[0],100*i,100*r]},o.hsv.hcg=function(t){const e=t[1]/100,n=t[2]/100,i=e*n;let r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},o.hcg.rgb=function(t){const e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];const r=[0,0,0],o=e%1*6,a=o%1,s=1-a;let c=0;switch(Math.floor(o)){case 0:r[0]=1,r[1]=a,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=a;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=a,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return c=(1-n)*i,[255*(n*r[0]+c),255*(n*r[1]+c),255*(n*r[2]+c)]},o.hcg.hsv=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);let i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},o.hcg.hsl=function(t){const e=t[1]/100,n=t[2]/100*(1-e)+.5*e;let i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},o.hcg.hwb=function(t){const e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},o.hwb.hcg=function(t){const e=t[1]/100,n=1-t[2]/100,i=n-e;let r=0;return i<1&&(r=(n-i)/(1-i)),[t[0],100*i,100*r]},o.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},o.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},o.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},o.gray.hsl=function(t){return[0,0,t[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(t){return[0,100,t[0]]},o.gray.cmyk=function(t){return[0,0,0,t[0]]},o.gray.lab=function(t){return[t[0],0,0]},o.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},9047:(t,e,n)=>{const i=n(9246),r=n(802),o={};Object.keys(i).forEach((t=>{o[t]={},Object.defineProperty(o[t],"channels",{value:i[t].channels}),Object.defineProperty(o[t],"labels",{value:i[t].labels});const e=r(t);Object.keys(e).forEach((n=>{const i=e[n];o[t][n]=function(t){const e=function(...e){const n=e[0];if(null==n)return n;n.length>1&&(e=n);const i=t(e);if("object"==typeof i)for(let t=i.length,e=0;e<t;e++)i[e]=Math.round(i[e]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}(i),o[t][n].raw=function(t){const e=function(...e){const n=e[0];return null==n?n:(n.length>1&&(e=n),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(i)}))})),t.exports=o},802:(t,e,n)=>{const i=n(9246);function r(t){const e=function(){const t={},e=Object.keys(i);for(let n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}(),n=[t];for(e[t].distance=0;n.length;){const t=n.pop(),r=Object.keys(i[t]);for(let i=r.length,o=0;o<i;o++){const i=r[o],a=e[i];-1===a.distance&&(a.distance=e[t].distance+1,a.parent=t,n.unshift(i))}}return e}function o(t,e){return function(n){return e(t(n))}}function a(t,e){const n=[e[t].parent,t];let r=i[e[t].parent][t],a=e[t].parent;for(;e[a].parent;)n.unshift(e[a].parent),r=o(i[e[a].parent][a],r),a=e[a].parent;return r.conversion=n,r}t.exports=function(t){const e=r(t),n={},i=Object.keys(e);for(let t=i.length,r=0;r<t;r++){const t=i[r];null!==e[t].parent&&(n[t]=a(t,e))}return n}},6931:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},7241:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck .footnote-section{border:1px solid #c4c4c4;border-radius:2px;counter-reset:footnote-counter;margin:1em 0;padding:10px}.ck .footnote-item{counter-increment:footnote-counter;display:flex;list-style:none;margin-left:.5em}.ck .footnote-item>*{vertical-align:text-top}.ck .footnote-back-link{margin-right:.1em;position:relative;top:-.2em}.ck .footnotes .footnote-back-link>sup{margin-right:0}.ck .footnote-item:before{content:counter(footnote-counter) ". ";display:inline-block;min-width:fit-content;position:relative;right:.2em;text-align:right}.ck .footnote-content{border-radius:2px;display:inline-block;flex-grow:1;padding:0 .3em;width:95%}.ck .ck-widget.footnote-section .ck-widget__type-around__button_after{display:none}.placeholder{line-height:1em;margin:0 1px;outline-offset:-2px;padding:2px}.placeholder::selection{display:none}',"",{version:3,sources:["webpack://./../../node_modules/@triliumnext/ckeditor5-footnotes/src/footnote.css"],names:[],mappings:"AAAA,sBAGC,wBAAiC,CACjC,iBAAkB,CAClB,8BAA+B,CAH/B,YAAa,CADb,YAKD,CAEA,mBAEC,kCAAmC,CAEnC,YAAa,CAHb,eAAgB,CAEhB,gBAED,CAEA,qBACC,uBACD,CAEA,wBAEC,iBAAmB,CADnB,iBAAkB,CAElB,SACD,CAEA,uCACC,cACD,CAEA,0BACC,sCAAuC,CACvC,oBAAqB,CAGrB,qBAAsB,CAFtB,iBAAkB,CAClB,UAAY,CAEZ,gBACD,CAEA,sBAIC,iBAAkB,CAHlB,oBAAqB,CAIrB,WAAY,CAHZ,cAAgB,CAChB,SAGD,CAEA,sEACC,YACD,CAEA,aAGC,eAAgB,CAChB,YAAa,CAFb,mBAAoB,CADpB,WAID,CAEA,wBACC,YACD",sourcesContent:[".ck .footnote-section {\n\tpadding: 10px;\n\tmargin: 1em 0;\n\tborder: solid 1px hsl(0, 0%, 77%);\n\tborder-radius: 2px;\n\tcounter-reset: footnote-counter;\n}\n\n.ck .footnote-item {\n\tlist-style: none;\n\tcounter-increment: footnote-counter;\n\tmargin-left: 0.5em;\n\tdisplay: flex;\n}\n\n.ck .footnote-item > * {\n\tvertical-align: text-top;\n}\n\n.ck .footnote-back-link {\n\tposition: relative;\n\tmargin-right: 0.1em;\n\ttop: -0.2em;\n}\n\n.ck .footnotes .footnote-back-link > sup {\n\tmargin-right: 0;\n}\n\n.ck .footnote-item::before {\n\tcontent: counter(footnote-counter) \". \";\n\tdisplay: inline-block;\n\tposition: relative;\n\tright: 0.2em;\n\tmin-width: fit-content;\n\ttext-align: right;\n}\n\n.ck .footnote-content {\n\tdisplay: inline-block;\n\tpadding: 0 0.3em;\n\twidth: 95%;\n\tborder-radius: 2px;\n\tflex-grow: 1;\n}\n\n.ck .ck-widget.footnote-section .ck-widget__type-around__button_after {\n\tdisplay:none; /* hides the 'insert after' button from the ckeditor widget */\n}\n\n.placeholder {\n\tpadding: 2px 2px;\n\toutline-offset: -2px;\n\tline-height: 1em;\n\tmargin: 0 1px;\n}\n\n.placeholder::selection {\n\tdisplay: none;\n}"],sourceRoot:""}]);const s=a},7111:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-math-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}@media screen and (max-width:600px){.ck.ck-math-form{flex-wrap:wrap}.ck.ck-math-form .ck-math-view,.ck.ck-math-form .ck-math-view .ck-label,.ck.ck-math-form .ck-math-view .ck-labeled-view{flex-basis:100%}.ck.ck-math-form .ck-button{flex-basis:50%}}.ck-math-tex.ck-placeholder:before{display:none!important}.ck.ck-toolbar-container{z-index:calc(var(--ck-z-panel) + 2)}.ck.ck-math-form{padding:var(--ck-spacing-standard)}.ck.ck-math-form:focus{outline:none}[dir=ltr] .ck.ck-math-form>:not(:first-child),[dir=rtl] .ck.ck-math-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-math-form{padding:0}.ck.ck-math-form .ck-labeled-input{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-math-form .ck-labeled-input .ck-input-text{min-width:0;width:100%}.ck.ck-math-form .ck-label,.ck.ck-math-form .ck-math-view .ck-button,.ck.ck-math-form .ck-math-view .ck.ck-math-preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-math-form>.ck-button{border:0;border-radius:0;border-top:1px solid var(--ck-color-base-border);margin-top:var(--ck-spacing-standard);padding:var(--ck-spacing-standard)}[dir=ltr] .ck.ck-math-form>.ck-button{margin-left:0}[dir=ltr] .ck.ck-math-form>.ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-math-form>.ck-button{margin-left:0}[dir=rtl] .ck.ck-math-form>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}","",{version:3,sources:["webpack://./../../node_modules/@triliumnext/ckeditor5-math/theme/mathform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-math/mathform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAAA,iBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAsBD,CAnBC,oCAPD,iBAQE,cAkBF,CATG,wHACC,eACD,CAGD,4BACC,cACD,CACD,CAGD,mCACC,sBACD,CAEA,yBACC,mCACD,CC/BA,iBACI,kCAsEJ,CApEI,uBAEF,YACD,CASC,2FACC,sCACD,CCdD,oCDHD,iBAqBE,SAkDF,CAhDE,mCACC,8DAMD,CAJC,kDACC,WAAY,CACZ,UACD,CAYA,wHACC,8DACD,CAGD,4BAKC,QAAS,CADT,eAAgB,CAEhB,gDAAiD,CAJjD,qCAAsC,CADtC,kCAsBD,CAvBA,sCASE,aAcF,CAZE,oDACC,kDACD,CAbF,sCAiBE,aAMF,CAJE,mDACC,kDACD,CC9DH",sourcesContent:[".ck.ck-math-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tpadding: var(--ck-spacing-standard);\n\n\t@media screen and (max-width: 600px) {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-math-view {\n\t\t\tflex-basis: 100%;\n\n\t\t\t& .ck-labeled-view {\n\t\t\t\tflex-basis: 100%;\n\t\t\t}\n\n\t\t\t& .ck-label {\n\t\t\t\tflex-basis: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n.ck-math-tex.ck-placeholder::before {\n\tdisplay: none !important;\n}\n\n.ck.ck-toolbar-container {\n\tz-index: calc(var(--ck-z-panel) + 2);\n}\n",'@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-math-form {\n padding: var(--ck-spacing-standard);\n\n &:focus {\n\t\t/* https://github.com/ckeditor/ckeditor5-link/issues/90 */\n\t\toutline: none;\n\t}\n\n @mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\n\t\t& .ck-labeled-input {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\n & .ck-label {\n margin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n }\n\n\t\t& .ck-math-view {\n\t\t\t& .ck-button {\n\t\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\t\t\t}\n\n\t\t\t& .ck.ck-math-preview {\n\t\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\tborder-radius: 0;\n\t\t\tborder: 0;\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:first-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},4199:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const s=a},8708:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const s=a},9826:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-block-toolbar-button{transform:translateX(calc(var(--ck-spacing-large)*-1))}","",{version:3,sources:["webpack://./theme/theme.css"],names:[],mappings:"AAMA,4BACC,sDACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Give the block toolbar button some space, moving it a few pixels away from the editable area. */\n.ck.ck-block-toolbar-button {\n\ttransform: translateX( calc(-1 * var(--ck-spacing-large)) );\n}\n"],sourceRoot:""}]);const s=a},7793:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},6610:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-content pre{border:1px solid #c4c4c4;border-radius:2px;direction:ltr;font-style:normal;min-width:200px;padding:1em;tab-size:4;text-align:left;white-space:pre-wrap}.ck-content pre code{background:unset;border-radius:0;padding:0}.ck-content pre:not(.hljs){background:hsla(0,0%,78%,.3);color:#353535}.ck.ck-editor__editable pre{position:relative}.ck.ck-editor__editable pre[data-language]:after{content:attr(data-language);position:absolute}:root{--ck-color-code-block-label-background:#757575}.ck.ck-editor__editable pre[data-language]:after{background:var(--ck-color-code-block-label-background);color:#fff;font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);right:10px;top:-1px;white-space:nowrap}.ck.ck-code-block-dropdown .ck-dropdown__panel{max-height:250px;overflow-x:hidden;overflow-y:auto}","",{version:3,sources:["webpack://./../ckeditor5-code-block/theme/codeblock.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-code-block/codeblock.css"],names:[],mappings:"AAKA,gBAEC,wBAAiC,CACjC,iBAAkB,CAIlB,aAAc,CAMd,iBAAkB,CAGlB,eAAgB,CAfhB,WAAY,CAQZ,UAAW,CAHX,eAAgB,CAIhB,oBAaD,CALC,qBACC,gBAAiB,CAEjB,eAAgB,CADhB,SAED,CAGD,2BAEC,4BAAiC,CADjC,aAED,CAEA,4BACC,iBAMD,CAJC,iDACC,2BAA4B,CAC5B,iBACD,CCpCD,MACC,8CACD,CAEA,iDAGC,sDAAuD,CAMvD,UAAuB,CAHvB,+BAAgC,CADhC,cAAe,CAEf,gBAAiB,CACjB,uDAAwD,CANxD,UAAW,CADX,QAAS,CAST,kBACD,CAEA,+CAEC,gBAAiB,CAEjB,iBAAkB,CADlB,eAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content pre {\n\tpadding: 1em;\n\tborder: 1px solid hsl(0, 0%, 77%);\n\tborder-radius: 2px;\n\n\t/* Code block are language directionagnostic. */\n\ttext-align: left;\n\tdirection: ltr;\n\n\ttab-size: 4;\n\twhite-space: pre-wrap;\n\n\t/* Don't inherit the style, e.g. when in a block quote. */\n\tfont-style: normal;\n\n\t/* Don't let the code be squashed e.g. when in a table cell. */\n\tmin-width: 200px;\n\n\t& code {\n\t\tbackground: unset;\n\t\tpadding: 0;\n\t\tborder-radius: 0;\n\t}\n}\n\n.ck-content pre:not(.hljs) {\n\tcolor: hsl(0, 0%, 20.8%);\n\tbackground: hsla(0, 0%, 78%, 0.3);\n}\n\n.ck.ck-editor__editable pre {\n\tposition: relative;\n\n\t&[data-language]::after {\n\t\tcontent: attr(data-language);\n\t\tposition: absolute;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-code-block-label-background: hsl(0, 0%, 46%);\n}\n\n.ck.ck-editor__editable pre[data-language]::after {\n\ttop: -1px;\n\tright: 10px;\n\tbackground: var(--ck-color-code-block-label-background);\n\n\tfont-size: 10px;\n\tfont-family: var(--ck-font-face);\n\tline-height: 16px;\n\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-medium);\n\tcolor: hsl(0, 0%, 100%);\n\twhite-space: nowrap;\n}\n\n.ck.ck-code-block-dropdown .ck-dropdown__panel {\n\t/* There could be dozens of languages available. Use scroll to prevent a 10e6px dropdown. */\n\tmax-height: 250px;\n\toverflow-y: auto;\n\toverflow-x: hidden;\n}\n"],sourceRoot:""}]);const s=a},4098:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}@media (forced-colors:active){.ck .ck-placeholder,.ck.ck-placeholder{forced-color-adjust:preserve-parent-color}}.ck .ck-placeholder:before,.ck.ck-placeholder:before{cursor:text}@media (forced-colors:none){.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text)}}@media (forced-colors:active){.ck .ck-placeholder:before,.ck.ck-placeholder:before{font-style:italic;margin-left:1px}}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC7BC,8BACC,uCCOA,yCDLA,CACD,CCOA,qDACC,WAmBD,CDvBA,4BACC,qDCMC,6CDJD,CACD,CAZA,8BACC,qDCsBC,iBAAkB,CAMlB,eD1BD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-forced-colors {\n\t@media (forced-colors: active) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n\n@define-mixin ck-media-default-colors {\n\t@media (forced-colors: none) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t@mixin ck-media-forced-colors {\n\t\t/*\n\t\t * This is needed for Edge on Windows to use the right color for the placeholder content (::before).\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t */\n\t\tforced-color-adjust: preserve-parent-color;\n\t}\n\n\t&::before {\n\t\tcursor: text;\n\n\t\t@mixin ck-media-default-colors {\n\t\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t\t}\n\n\t\t@mixin ck-media-forced-colors {\n\t\t\t/*\n\t\t\t * In the high contrast mode there is no telling between regular and placeholder text. Using\n\t\t\t * italic text to address that issue. See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t\t */\n\t\t\tfont-style: italic;\n\n\t\t\t/*\n\t\t\t * Without this margin, the caret will not show up and blink when the user puts the selection\n\t\t\t * in the placeholder (Edge on Windows). See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t\t\t */\n\t\t\tmargin-left: 1px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},8264:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const s=a},4341:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-find-result{background:var(--ck-color-highlight-background);color:var(--ck-color-text)}.ck-find-result_selected{background:#ff9633}","",{version:3,sources:["webpack://./../ckeditor5-find-and-replace/theme/findandreplace.css"],names:[],mappings:"AAKA,gBACC,+CAAgD,CAChD,0BACD,CAEA,yBACC,kBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-find-result {\n\tbackground: var(--ck-color-highlight-background);\n\tcolor: var(--ck-color-text);\n}\n\n.ck-find-result_selected {\n\tbackground: hsl(29, 100%, 60%);\n}\n"],sourceRoot:""}]);const s=a},9627:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-find-and-replace-form{max-width:100%}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs{display:flex}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions.ck-find-and-replace-form__inputs .ck-results-counter,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs.ck-find-and-replace-form__inputs .ck-results-counter{position:absolute}.ck.ck-find-and-replace-form{width:400px}.ck.ck-find-and-replace-form:focus{outline:none}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs{align-content:stretch;align-items:center;flex:1 1 auto;flex-direction:row;flex-wrap:wrap;margin:0;padding:var(--ck-spacing-large)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>.ck-button,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-button{flex:0 0 auto}[dir=ltr] .ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>*+*,[dir=ltr] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>*+*{margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>*+*,[dir=rtl] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>*+*{margin-right:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions .ck-labeled-field-view,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-labeled-field-view{flex:1 1 auto}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions .ck-labeled-field-view .ck-input,.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-labeled-field-view .ck-input{min-width:50px;width:100%}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs{align-items:flex-start}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-button-prev>.ck-icon{transform:rotate(90deg)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-button-next>.ck-icon{transform:rotate(-90deg)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{left:var(--ck-spacing-standard)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs .ck-results-counter{color:var(--ck-color-base-border)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace{flex:0 0 100%;padding-top:var(--ck-spacing-standard)}[dir=ltr] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form .ck-find-and-replace-form__inputs>.ck-labeled-field-replace{margin-right:0}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions{flex-wrap:wrap;justify-content:flex-end;margin-top:calc(var(--ck-spacing-large)*-1)}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>.ck-button-find{font-weight:700}.ck.ck-find-and-replace-form .ck-find-and-replace-form__actions>.ck-button-find .ck-button__label{padding-left:var(--ck-spacing-large);padding-right:var(--ck-spacing-large)}.ck.ck-find-and-replace-form .ck-switchbutton{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%}@media screen and (max-width:600px){.ck.ck-find-and-replace-form{max-width:100%;width:300px}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input{flex-wrap:wrap}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input .ck-labeled-field-view{flex:1 0 auto;margin-bottom:var(--ck-spacing-standard);width:100%}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button{text-align:center}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{flex:1 1 auto}[dir=ltr] .ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form.ck-find-and-replace-form__input>.ck-button:first-of-type .ck-button__label{text-align:center;width:100%}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view){flex:1 1 auto;flex-wrap:wrap}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button{text-align:center}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{flex:1 1 auto}[dir=ltr] .ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{margin-left:0}[dir=rtl] .ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button:first-of-type{margin-right:0}.ck.ck-find-and-replace-form.ck-find-and-replace-form__actions>:not(.ck-labeled-field-view)>.ck-button .ck-button__label{text-align:center;width:100%}}","",{version:3,sources:["webpack://./../ckeditor5-find-and-replace/theme/findandreplaceform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-find-and-replace/findandreplaceform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAKA,6BACC,cAUD,CARC,+HACC,YAMD,CAHC,yOACC,iBACD,CCNF,6BACC,WAoHD,CA9GC,mCACC,YACD,CAGA,+HAMC,qBAAsB,CADtB,kBAAmB,CAHnB,aAAc,CACd,kBAAmB,CACnB,cAAe,CAKf,QAAS,CADT,+BA4BD,CAzBC,qJACC,aACD,CAGC,2JACC,sCACD,CAIA,2JACC,uCACD,CAGD,6KACC,aAMD,CAJC,iMAEC,cAAe,CADf,UAED,CAMF,+DAEC,sBAqCD,CAnCC,wFACC,uBACD,CAEA,wFACC,wBACD,CAEA,mFACC,OAAQ,CACR,0BAWD,CAbA,6FAKE,gCAQF,CAbA,6FASE,+BAIF,CAbA,mFAYC,iCACD,CAEA,yFACC,aAAc,CACd,sCASD,CAXA,mGAKE,aAMF,CAXA,mGASE,cAEF,CAID,gEACC,cAAe,CACf,wBAAyB,CACzB,2CAWD,CATC,gFACC,eAOD,CAJC,kGACC,oCAAqC,CACrC,qCACD,CAIF,8CAMC,kBAAmB,CAJnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAJ9B,UAMD,CCtHA,oCD0HA,6BAIC,cAAe,CAHf,WA+DD,CAzDC,6DACC,cA4BD,CA1BC,oFACC,aAAc,CAEd,wCAAyC,CADzC,UAED,CAEA,wEACC,iBAkBD,CAhBC,sFACC,aAcD,CAfA,gGAIE,aAWF,CAfA,gGAQE,cAOF,CAJC,wGAEC,iBAAkB,CADlB,UAED,CAMH,4FAEC,aAAc,CADd,cAuBD,CApBC,uGACC,iBAkBD,CAhBC,qHACC,aASD,CAVA,+HAIE,aAMF,CAVA,+HAQE,cAEF,CAEA,yHAEC,iBAAkB,CADlB,UAED,CCrLH",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-find-and-replace-form {\n\tmax-width: 100%;\n\n\t& .ck-find-and-replace-form__inputs, .ck-find-and-replace-form__actions {\n\t\tdisplay: flex;\n\n\t\t/* The inputs area styles */\n\t\t&.ck-find-and-replace-form__inputs .ck-results-counter {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-find-and-replace-form {\n\twidth: 400px;\n\n\t/*\n\t * The <form> needs tabindex="-1" for proper Esc handling after being clicked\n\t * but the side effect is that this creates a nasty focus outline in some browsers.\n\t */\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t/* Generic styles for the form inputs and actions. */\n\t& .ck-find-and-replace-form__inputs,\n\t& .ck-find-and-replace-form__actions {\n\t\tflex: 1 1 auto;\n\t\tflex-direction: row;\n\t\tflex-wrap: wrap;\n\t\talign-items: center;\n\t\talign-content: stretch;\n\n\t\tpadding: var(--ck-spacing-large);\n\t\tmargin: 0;\n\n\t\t& > .ck-button {\n\t\t\tflex: 0 0 auto;\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\t& > * + * {\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t& > * + * {\n\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex: 1 1 auto;\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\t\t\t\tmin-width: 50px;\n\t\t\t}\n\t\t}\n\n\t}\n\n\t/* Styles specific for inputs area. */\n\t& .ck-find-and-replace-form__inputs {\n\t\t/* To display all controls in line when there\'s an error under the input */\n\t\talign-items: flex-start;\n\n\t\t& > .ck-button-prev > .ck-icon {\n\t\t\ttransform: rotate(90deg);\n\t\t}\n\n\t\t& > .ck-button-next > .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\n\t\t& .ck-results-counter {\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tright: var(--ck-spacing-standard);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tleft: var(--ck-spacing-standard);\n\t\t\t}\n\n\t\t\tcolor: var(--ck-color-base-border);\n\t\t}\n\n\t\t& > .ck-labeled-field-replace {\n\t\t\tflex: 0 0 100%;\n\t\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Styles specific for actions area. */\n\t& .ck-find-and-replace-form__actions {\n\t\tflex-wrap: wrap;\n\t\tjustify-content: flex-end;\n\t\tmargin-top: calc( -1 * var(--ck-spacing-large) );\n\n\t\t& > .ck-button-find {\n\t\t\tfont-weight: bold;\n\n\t\t\t/* Beef the find button up a little. It\'s the main action button in the form */\n\t\t\t& .ck-button__label {\n\t\t\t\tpadding-left: var(--ck-spacing-large);\n\t\t\t\tpadding-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck-switchbutton {\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tflex-wrap: nowrap;\n\t\tjustify-content: space-between;\n\t\talign-items: center;\n\t}\n}\n\n@mixin ck-media-phone {\n\t.ck.ck-find-and-replace-form {\n\t\twidth: 300px;\n\n\t\t/* Don\'t let the form overflow from the dialog (https://github.com/cksource/ckeditor5-commercial/issues/5913) */\n\t\tmax-width: 100%;\n\n\t\t/* Styles specific for inputs area. */\n\t\t&.ck-find-and-replace-form__input {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tflex: 1 0 auto;\n\t\t\t\twidth: 100%;\n\t\t\t\tmargin-bottom: var(--ck-spacing-standard);\n\t\t\t}\n\n\t\t\t& > .ck-button {\n\t\t\t\ttext-align: center;\n\n\t\t\t\t&:first-of-type {\n\t\t\t\t\tflex: 1 1 auto;\n\n\t\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t\tmargin-right: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t& .ck-button__label {\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Styles specific for actions area. */\n\t\t&.ck-find-and-replace-form__actions > :not(.ck-labeled-field-view) {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex: 1 1 auto;\n\n\t\t\t& > .ck-button {\n\t\t\t\ttext-align: center;\n\n\t\t\t\t&:first-of-type {\n\t\t\t\t\tflex: 1 1 auto;\n\n\t\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t\tmargin-right: 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t& .ck-button__label {\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},1058:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://./../ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]);const s=a},6269:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-heading_heading1 .ck-button__label{font-size:20px}.ck.ck-heading_heading2 .ck-button__label{font-size:17px}.ck.ck-heading_heading3 .ck-button__label{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,0CACC,cACD,CAEA,0CACC,cACD,CAEA,0CACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 .ck-button__label {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 .ck-button__label {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 .ck-button__label {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const s=a},2626:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{background:#dedede;border:0;height:4px;margin:15px 0}","",{version:3,sources:["webpack://./../ckeditor5-horizontal-line/theme/horizontalline.css"],names:[],mappings:"AAMA,yCAEC,iBACD,CAEA,eAGC,kBAA2B,CAC3B,QAAS,CAFT,UAAW,CADX,aAID",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\n}\n"],sourceRoot:""}]);const s=a},8914:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-html-object-embed-unfocused-outline-width:1px}.ck-widget.html-object-embed{background-color:var(--ck-color-base-foreground);font-size:var(--ck-font-size-base);min-width:calc(76px + var(--ck-spacing-standard));padding:var(--ck-spacing-small);padding-top:calc(var(--ck-font-size-tiny) + var(--ck-spacing-large))}.ck-widget.html-object-embed:not(.ck-widget_selected):not(:hover){outline:var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border)}.ck-widget.html-object-embed:before{background:#999;border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius);color:var(--ck-color-base-background);content:attr(data-html-object-embed-label);font-family:var(--ck-font-face);font-size:var(--ck-font-size-tiny);font-style:normal;font-weight:400;left:var(--ck-spacing-standard);padding:calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);position:absolute;top:0;transition:background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck-widget.html-object-embed .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before{margin-left:50px}.ck-widget.html-object-embed .html-object-embed__content{pointer-events:none}div.ck-widget.html-object-embed{margin:1em auto}span.ck-widget.html-object-embed{display:inline-block}","",{version:3,sources:["webpack://./../ckeditor5-html-support/theme/datafilter.css"],names:[],mappings:"AAKA,MACC,kDACD,CAEA,6BAEC,gDAAiD,CADjD,kCAAmC,CAKnC,iDAAkD,CAHlD,+BAAgC,CAEhC,oEAgCD,CA7BC,kEACC,wGACD,CAEA,oCAOC,eAA4B,CAG5B,iEAAkE,CAClE,qCAAsC,CAPtC,0CAA2C,CAS3C,+BAAgC,CADhC,kCAAmC,CAVnC,iBAAkB,CADlB,eAAmB,CAKnB,+BAAgC,CAGhC,yIAA0I,CAN1I,iBAAkB,CAElB,KAAM,CAGN,0GAMD,CAGA,2HACC,gBACD,CAEA,yDAEC,mBACD,CAGD,gCACC,eACD,CAEA,iCACC,oBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-html-object-embed-unfocused-outline-width: 1px;\n}\n\n.ck-widget.html-object-embed {\n\tfont-size: var(--ck-font-size-base);\n\tbackground-color: var(--ck-color-base-foreground);\n\tpadding: var(--ck-spacing-small);\n\t/* Leave space for label */\n\tpadding-top: calc(var(--ck-font-size-tiny) + var(--ck-spacing-large));\n\tmin-width: calc(76px + var(--ck-spacing-standard));\n\n\t&:not(.ck-widget_selected):not(:hover) {\n\t\toutline: var(--ck-html-object-embed-unfocused-outline-width) dashed var(--ck-color-widget-blurred-border);\n\t}\n\n\t&::before {\n\t\tfont-weight: normal;\n\t\tfont-style: normal;\n\t\tposition: absolute;\n\t\tcontent: attr(data-html-object-embed-label);\n\t\ttop: 0;\n\t\tleft: var(--ck-spacing-standard);\n\t\tbackground: hsl(0deg 0% 60%);\n\t\ttransition: background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\t\tpadding: calc(var(--ck-spacing-tiny) + var(--ck-html-object-embed-unfocused-outline-width)) var(--ck-spacing-small) var(--ck-spacing-tiny);\n\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\tcolor: var(--ck-color-base-background);\n\t\tfont-size: var(--ck-font-size-tiny);\n\t\tfont-family: var(--ck-font-face);\n\t}\n\n\t/* Make space for label. */\n\t& .ck-widget__type-around .ck-widget__type-around__button.ck-widget__type-around__button_before {\n\t\tmargin-left: 50px;\n\t}\n\n\t& .html-object-embed__content {\n\t\t/* Disable user interaction with embed content */\n\t\tpointer-events: none;\n\t}\n}\n\ndiv.ck-widget.html-object-embed {\n\tmargin: 1em auto;\n}\n\nspan.ck-widget.html-object-embed {\n\tdisplay: inline-block;\n}\n\n"],sourceRoot:""}]);const s=a},265:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the <figcaption> in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of <figcaption>.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},5247:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highlighted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}@media (forced-colors:active){.ck-content .image>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:none}}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highlighted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,oDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAYD,CAJC,8BAXD,8BAYE,sBAAuB,CACvB,WAEF,CADC,CCdA,4BACC,qEDmBA,iDCjBA,CACD,CDmBA,uCALD,qEAME,cAEF,CADC,CAGD,sCACC,GACC,qEACD,CAEA,GACC,yDACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n\n\t/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\n\t@media (forced-colors: active) {\n\t\tbackground-color: unset;\n\t\tcolor: unset;\n\t}\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\t@mixin ck-media-default-colors {\n\t\tanimation: ck-image-caption-highlight .6s ease-out;\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\tanimation: none;\n\t}\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-forced-colors {\n\t@media (forced-colors: active) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n\n@define-mixin ck-media-default-colors {\n\t@media (forced-colors: none) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},4642:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-image-custom-resize-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-image-custom-resize-form .ck-labeled-field-view{display:inline-block}.ck.ck-image-custom-resize-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-image-custom-resize-form{flex-wrap:wrap}.ck.ck-image-custom-resize-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-image-custom-resize-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecustomresizeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,gCAIC,sBAAuB,CAHvB,YAAa,CACb,kBAAmB,CACnB,gBAsBD,CAnBC,uDACC,oBACD,CAEA,0CACC,YACD,CCbA,oCDCD,gCAeE,cAUF,CARE,uDACC,eACD,CAEA,2CACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-image-custom-resize-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: flex-start;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},3350:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-image-insert-url{padding:var(--ck-spacing-large) var(--ck-spacing-large) 0;width:400px}.ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width);padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAKA,wBAEC,yDAA0D,CAD1D,WAOD,CAJC,yDACC,YAAa,CACb,mCACD,CCLD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CACd,UASD,CAXA,iDAKE,eAMF,CAXA,iDASE,gBAEF,CAEA,4CASC,oDACD,CATC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,iDACC,oDAAqD,CACrD,+BACD,CAEA,+BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-url {\n\twidth: 400px;\n\tpadding: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t& .ck-image-insert-url__action-row {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(2, 1fr);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-image-insert-insert-by-url-width: 250px;\n}\n\n.ck.ck-image-insert-url {\n\t--ck-input-width: 100%;\n\n\t& .ck-image-insert-url__action-row {\n\t\tgrid-column-gap: var(--ck-spacing-large);\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n\n.ck.ck-image-insert-form {\n\t& > .ck.ck-button {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& > .ck.ck-collapsible {\n\t\t&:not(:first-child) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t&:not(:last-child) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t}\n\n\t/* This is the case when there are no other integrations configured than insert by URL */\n\t& > .ck.ck-image-insert-url {\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t\tpadding: var(--ck-spacing-large);\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n'],sourceRoot:""}]);const s=a},7378:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& img.image_placeholder {\n\t\tbackground-size: 100% 100%;\n\t}\n}\n"],sourceRoot:""}]);const s=a},3469:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `<figure>` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const s=a},6386:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image.image-style-block-align-left,.ck-content .image.image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image.image-style-align-left,.ck-content .image.image-style-align-right{clear:none}.ck-content .image.image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image.image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image.image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image.image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image.image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content p+.image.image-style-align-left,.ck-content p+.image.image-style-align-right,.ck-content p+.image.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAQE,iGAEC,oDACD,CAIA,qFAEC,UACD,CAEA,oCACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,0CACC,UAAW,CACX,0CACD,CAEA,2CACC,WAAY,CACZ,yCACD,CAEA,iDAEC,gBAAiB,CADjB,cAED,CAEA,gDACC,aAAc,CACd,iBACD,CAGD,sCACC,gBAAiB,CACjB,iBACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAGA,+HAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* See: https://github.com/ckeditor/ckeditor5/issues/16317 */\n\t& .image {\n\t\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\t\tconfirming successful application of the style if image width exceeds the editor's size.\n\t\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t\t&.image-style-block-align-left,\n\t\t&.image-style-block-align-right {\n\t\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t\t}\n\n\t\t/* Allows displaying multiple floating images in the same line.\n\t\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tclear: none;\n\t\t}\n\n\t\t&.image-style-side {\n\t\t\tfloat: right;\n\t\t\tmargin-left: var(--ck-image-style-spacing);\n\t\t\tmax-width: 50%;\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tfloat: left;\n\t\t\tmargin-right: var(--ck-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tfloat: right;\n\t\t\tmargin-left: var(--ck-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-block-align-right {\n\t\t\tmargin-right: 0;\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t&.image-style-block-align-left {\n\t\t\tmargin-left: 0;\n\t\t\tmargin-right: auto;\n\t\t}\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image.image-style-align-left,\n\t& p + .image.image-style-align-right,\n\t& p + .image.image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},7693:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@media (prefers-reduced-motion:reduce){.ck-image-upload-complete-icon{animation-duration:0ms}.ck-image-upload-complete-icon:after{animation:none;height:.45em;opacity:1;width:.3em}}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFAqCD,CAjCC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAEA,uCA7CD,+BA8CE,sBASF,CAPE,qCACC,cAAe,CAGf,YAAc,CAFd,SAAU,CACV,UAED,CACD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\tanimation-duration: 0ms;\n\n\t\t&::after {\n\t\t\tanimation: none;\n\t\t\topacity: 1;\n\t\t\twidth: 0.3em;\n\t\t\theight: 0.45em;\n\t\t}\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const s=a},1559:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const s=a},2267:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}@media (prefers-reduced-motion:reduce){.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:none;opacity:1}}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBAMD,CAJC,uCAHD,yFAKE,cAAe,CADf,SAGF,CADC,CAKF,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\n\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\topacity: 1;\n\t\t\t\tanimation: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const s=a},4062:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},7719:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const s=a},8762:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},3817:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-link-form{align-items:flex-start;display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:0 var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBAEC,sBAAuB,CADvB,YAkBD,CAfC,2BACC,YACD,CCPA,oCDCD,iBASE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CChBD,CDwBD,iCACC,aAYD,CALE,wHAEC,mCACD,CEhCF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,gCAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: 0 var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},4808:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzUuNzUgMCAwIDEtLjIxNy4yMDYgNS4yNTEgNS4yNTEgMCAwIDEtOC41MDMtNS45NTUuNy43IDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NHptNS40OTQtNS4zMzVhLjc1Ljc1IDAgMCAxLS4xMi4yNzRsLTEuMTQ3IDEuNjM5YS43NS43NSAwIDEgMS0xLjIyOC0uODZsLjg2LTEuMjNhMy43NSAzLjc1IDAgMCAwLTYuMTQ0LTQuMzAxbC0uODYgMS4yMjlhLjc1Ljc1IDAgMCAxLTEuMjI5LS44NmwxLjE0OC0xLjY0YS43NS43NSAwIDAgMSAuMjE3LS4yMDYgNS4yNTEgNS4yNTEgMCAwIDEgOC41MDMgNS45NTVtLTQuNTYzLTIuNTMyYS43NS43NSAwIDAgMSAuMTg0IDEuMDQ1bC0zLjE1NSA0LjUwNWEuNzUuNzUgMCAxIDEtMS4yMjktLjg2bDMuMTU1LTQuNTA2YS43NS43NSAwIDAgMSAxLjA0NS0uMTg0Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,k2BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const s=a},1232:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const s=a},6903:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},9968:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},7141:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},8991:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-content .todo-list .todo-list__label>input:before{transition:none}}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}@media (prefers-reduced-motion:reduce){.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{transition:none}}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CA4EA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAtFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAqFC,CAFA,wDApEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAoEA,CAhED,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sDAYE,eAEF,CADC,CAGD,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FAxHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAuHA,CAFA,wGAtGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAsGD,CAlGA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UASD,CAHC,uCAXD,sGAYE,eAEF,CADC,CAGD,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},9409:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-mention-background:rgba(153,0,48,.1);--ck-color-mention-text:#990030}.ck-content .mention{background:var(--ck-color-mention-background);color:var(--ck-color-mention-text)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-mention/mention.css"],names:[],mappings:"AAKA,MACC,+CAAwD,CACxD,+BACD,CAEA,qBACC,6CAA8C,CAC9C,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-mention-background: hsla(341, 100%, 30%, 0.1);\n\t--ck-color-mention-text: hsl(341, 100%, 30%);\n}\n\n.ck-content .mention {\n\tbackground: var(--ck-color-mention-background);\n\tcolor: var(--ck-color-mention-text);\n}\n"],sourceRoot:""}]);const s=a},9055:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-mention-list-max-height:300px}.ck.ck-mentions{max-height:var(--ck-mention-list-max-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.ck.ck-mentions>.ck-list__item{flex-shrink:0;overflow:hidden}","",{version:3,sources:["webpack://./../ckeditor5-mention/theme/mentionui.css"],names:[],mappings:"AAKA,MACC,kCACD,CAEA,gBACC,4CAA6C,CAM7C,iBAAkB,CAJlB,eAAgB,CAMhB,2BAQD,CAJC,+BAEC,aAAc,CADd,eAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-mention-list-max-height: 300px;\n}\n\n.ck.ck-mentions {\n\tmax-height: var(--ck-mention-list-max-height);\n\n\toverflow-y: auto;\n\n\t/* Prevent unnecessary horizontal scrollbar in Safari\n\thttps://github.com/ckeditor/ckeditor5-mention/issues/41 */\n\toverflow-x: hidden;\n\n\toverscroll-behavior: contain;\n\n\t/* Prevent unnecessary vertical scrollbar in Safari\n\thttps://github.com/ckeditor/ckeditor5-mention/issues/41 */\n\t& > .ck-list__item {\n\t\toverflow: hidden;\n\t\tflex-shrink: 0;\n\t}\n}\n"],sourceRoot:""}]);const s=a},7433:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-mermaid__wrapper{display:flex;justify-content:center}.ck-mermaid__wrapper .ck-mermaid__editing-view{background-color:hsla(0,0%,78%,.3);border:0;font-size:12px;min-height:200px;outline:0;padding:16px;resize:vertical}.ck-mermaid__preview,[id^=dmermaid-]{display:flex;justify-content:center}[id^=dmermaid-]{align-items:center;height:100%}[id^=dmermaid-] svg{display:block;height:auto;width:60%}.ck-mermaid__source-mode .ck-mermaid__editing-view{width:100%}.ck-mermaid__source-mode .ck-mermaid__preview{display:none}.ck-mermaid__split-mode .ck-mermaid__editing-view,.ck-mermaid__split-mode .ck-mermaid__preview{width:50%}.ck-mermaid__preview-mode .ck-mermaid__editing-view{display:none}","",{version:3,sources:["webpack://./../ckeditor5-mermaid/theme/mermaid.css"],names:[],mappings:"AACA,qBACC,YAAa,CACb,sBACD,CAKA,+CAEC,kCAAuC,CAEvC,QAAS,CAET,cAAe,CAHf,gBAAiB,CAIjB,SAAU,CANV,YAAa,CAIb,eAGD,CASA,qCALC,YAAa,CACb,sBASD,CALA,gBAEC,kBAAmB,CACnB,WAED,CAEA,oBACC,aAAc,CAEd,WAAY,CADZ,SAED,CAGA,mDACC,UACD,CAEA,8CACC,YACD,CAOA,+FACC,SACD,CAGA,oDACC,YACD",sourcesContent:['/* Mermaid wrapper */\n.ck-mermaid__wrapper {\n\tdisplay: flex;\n\tjustify-content: center;\n}\n\n/* Editing\n Assigned to textarea\n */\n.ck-mermaid__wrapper .ck-mermaid__editing-view {\n\tpadding: 16px; /* just like pre element */\n\tbackground-color: hsla(0, 0%, 78%, 0.3); /* just like pre element */\n\tmin-height: 200px;\n\tborder: 0;\n\tresize: vertical;\n\tfont-size: 12px; /* just like pre element */\n\toutline: 0; /* just like pre element */\n}\n\n/* Preview */\n.ck-mermaid__preview {\n\tdisplay: flex;\n\tjustify-content: center;\n}\n\n/* Preview error state */\n[id^="dmermaid-"] {\n\tdisplay: flex;\n\talign-items: center;\n\theight: 100%;\n\tjustify-content: center;\n}\n\n[id^="dmermaid-"] svg {\n\tdisplay: block;\n\twidth: 60%;\n\theight: auto;\n}\n\n/* Source mode */\n.ck-mermaid__source-mode .ck-mermaid__editing-view {\n\twidth: 100%;\n}\n\n.ck-mermaid__source-mode .ck-mermaid__preview {\n\tdisplay: none;\n}\n\n/* Split mode */\n.ck-mermaid__split-mode .ck-mermaid__editing-view {\n\twidth: 50%;\n}\n\n.ck-mermaid__split-mode .ck-mermaid__preview {\n\twidth: 50%;\n}\n\n/* Preview mode */\n.ck-mermaid__preview-mode .ck-mermaid__editing-view {\n\tdisplay: none;\n}'],sourceRoot:""}]);const s=a},6426:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck-content .page-break{align-items:center;clear:both;display:flex;justify-content:center;padding:5px 0;position:relative}.ck-content .page-break:after{border-bottom:2px dashed #c4c4c4;content:"";position:absolute;width:100%}.ck-content .page-break__label{background:#fff;border:1px solid #c4c4c4;border-radius:2px;box-shadow:2px 2px 1px rgba(0,0,0,.15);color:#333;display:block;font-family:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;font-size:.75em;font-weight:700;padding:.3em .6em;position:relative;text-transform:uppercase;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}@media print{.ck-content .page-break{padding:0}.ck-content .page-break:after{display:none}.ck-content :has(+.page-break){margin-bottom:0}}',"",{version:3,sources:["webpack://./../ckeditor5-page-break/theme/pagebreak.css"],names:[],mappings:"AAKA,wBAKC,kBAAmB,CAHnB,UAAW,CAEX,YAAa,CAEb,sBAAuB,CAHvB,aAAc,CAFd,iBAaD,CANC,8BAGC,gCAAyC,CAFzC,UAAW,CACX,iBAAkB,CAElB,UACD,CAGD,+BAYC,eAA4B,CAN5B,wBAAiC,CACjC,iBAAkB,CAMlB,sCAA6C,CAF7C,UAAsB,CAPtB,aAAc,CAId,qDAA0D,CAC1D,eAAiB,CACjB,eAAiB,CAPjB,iBAAkB,CAFlB,iBAAkB,CAIlB,wBAAyB,CAWzB,wBAAyB,CACzB,qBAAsB,CACtB,oBAAqB,CACrB,gBAAiB,CAjBjB,SAkBD,CAGA,aACC,wBACC,SAKD,CAHC,8BACC,YACD,CASD,+BACC,eACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .page-break {\n\tposition: relative;\n\tclear: both;\n\tpadding: 5px 0;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\n\t&::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tborder-bottom: 2px dashed hsl(0, 0%, 77%);\n\t\twidth: 100%;\n\t}\n}\n\n.ck-content .page-break__label {\n\tposition: relative;\n\tz-index: 1;\n\tpadding: .3em .6em;\n\tdisplay: block;\n\ttext-transform: uppercase;\n\tborder: 1px solid hsl(0, 0%, 77%);\n\tborder-radius: 2px;\n\tfont-family: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\tfont-size: 0.75em;\n\tfont-weight: bold;\n\tcolor: hsl(0, 0%, 20%);\n\tbackground: hsl(0, 0%, 100%);\n\tbox-shadow: 2px 2px 1px hsla(0, 0%, 0%, 0.15);\n\n\t/* Disable the possibility to select the label text by the user. */\n\t-webkit-user-select: none;\n\t-moz-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n}\n\n/* Do not show the page break element inside the print preview window. */\n@media print {\n\t.ck-content .page-break {\n\t\tpadding: 0;\n\n\t\t&::after {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t/*\n\t * From time to time placing page-break directly after a block element with margin causes appending a new blank page in pagination mode.\n\t * Removing margin-bottom from the block element fixes that issue and the margin is not being moved to the next blank page.\n\t *\n\t * Keep this in sync with the pagination plugins.\n\t */\n\t.ck-content *:has(+ .page-break) {\n\t\tmargin-bottom: 0;\n\t}\n}\n"],sourceRoot:""}]);const s=a},8868:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-character-grid{max-width:100%}.ck.ck-character-grid .ck-character-grid__tiles{display:grid}:root{--ck-character-grid-tile-size:24px}.ck.ck-character-grid{overflow-x:hidden;overflow-y:auto}.ck.ck-character-grid .ck-character-grid__tiles{grid-template-columns:repeat(auto-fill,minmax(var(--ck-character-grid-tile-size),1fr));margin:var(--ck-spacing-standard) var(--ck-spacing-large);grid-gap:var(--ck-spacing-standard)}.ck.ck-character-grid .ck-character-grid__tile{border:0;font-size:1.5em;height:var(--ck-character-grid-tile-size);min-height:var(--ck-character-grid-tile-size);min-width:var(--ck-character-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-character-grid-tile-size)}@media (prefers-reduced-motion:reduce){.ck.ck-character-grid .ck-character-grid__tile{transition:none}}.ck.ck-character-grid .ck-character-grid__tile:focus:not(.ck-disabled),.ck.ck-character-grid .ck-character-grid__tile:hover:not(.ck-disabled){border:0;box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-character-grid .ck-character-grid__tile .ck-button__label{line-height:var(--ck-character-grid-tile-size);text-align:center;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-special-characters/theme/charactergrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-special-characters/charactergrid.css"],names:[],mappings:"AAKA,sBACC,cAKD,CAHC,gDACC,YACD,CCFD,MACC,kCACD,CAEA,sBAEC,iBAAkB,CADlB,eAqCD,CAlCC,gDACC,sFAAyF,CACzF,yDAA0D,CAC1D,mCACD,CAEA,+CAQC,QAAS,CAHT,eAAgB,CAHhB,yCAA0C,CAE1C,6CAA8C,CAD9C,4CAA6C,CAG7C,SAAU,CACV,8BAA+B,CAN/B,wCA0BD,CAjBC,uCAVD,+CAWE,eAgBF,CAfC,CAEA,8IAGC,QAAS,CACT,iGACD,CAGA,iEACC,8CAA+C,CAE/C,iBAAkB,CADlB,UAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-character-grid {\n\tmax-width: 100%;\n\n\t& .ck-character-grid__tiles {\n\t\tdisplay: grid;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-character-grid-tile-size: 24px;\n}\n\n.ck.ck-character-grid {\n\toverflow-y: auto;\n\toverflow-x: hidden;\n\n\t& .ck-character-grid__tiles {\n\t\tgrid-template-columns: repeat(auto-fill, minmax(var(--ck-character-grid-tile-size), 1fr));\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\t\tgrid-gap: var(--ck-spacing-standard);\n\t}\n\n\t& .ck-character-grid__tile {\n\t\twidth: var(--ck-character-grid-tile-size);\n\t\theight: var(--ck-character-grid-tile-size);\n\t\tmin-width: var(--ck-character-grid-tile-size);\n\t\tmin-height: var(--ck-character-grid-tile-size);\n\t\tfont-size: 1.5em;\n\t\tpadding: 0;\n\t\ttransition: .2s ease box-shadow;\n\t\tborder: 0;\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t&:focus:not( .ck-disabled ),\n\t\t&:hover:not( .ck-disabled ) {\n\t\t\t/* Disable the default .ck-button\'s border ring. */\n\t\t\tborder: 0;\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t\t}\n\n\t\t/* Make sure the glyph is rendered in the center of the button */\n\t\t& .ck-button__label {\n\t\t\tline-height: var(--ck-character-grid-tile-size);\n\t\t\twidth: 100%;\n\t\t\ttext-align: center;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},128:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-character-info{border-top:1px solid var(--ck-color-base-border);display:flex;justify-content:space-between;padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-character-info>*{font-size:var(--ck-font-size-small);text-transform:uppercase}.ck.ck-character-info .ck-character-info__name{max-width:280px;overflow:hidden;text-overflow:ellipsis}.ck.ck-character-info .ck-character-info__code{opacity:.6}","",{version:3,sources:["webpack://./../ckeditor5-special-characters/theme/characterinfo.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-special-characters/characterinfo.css"],names:[],mappings:"AAKA,sBCIC,gDAAiD,CDHjD,YAAa,CACb,6BAA8B,CCC9B,uDDAD,CCGC,wBAEC,mCAAoC,CADpC,wBAED,CAEA,+CACC,eAAgB,CAEhB,eAAgB,CADhB,sBAED,CAEA,+CACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-character-info {\n\tdisplay: flex;\n\tjustify-content: space-between;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-character-info {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t& > * {\n\t\ttext-transform: uppercase;\n\t\tfont-size: var(--ck-font-size-small);\n\t}\n\n\t& .ck-character-info__name {\n\t\tmax-width: 280px;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t& .ck-character-info__code {\n\t\topacity: .6;\n\t}\n}\n'],sourceRoot:""}]);const s=a},4272:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-special-characters>.ck-dialog__content>div{display:grid;height:100%;max-width:100%;width:350px;grid-column-gap:0;grid-row-gap:0;grid-template-columns:1fr;grid-template-rows:auto 1fr auto}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories{grid-area:1/1/2/2;padding:var(--ck-spacing-medium) var(--ck-spacing-large)}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view{padding-top:var(--ck-spacing-standard);width:100%}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both;background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}@media (prefers-reduced-motion:reduce){.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories>.ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown{display:block;width:100%}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown>button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-categories .ck-dropdown>button>span{width:100%}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-grid{grid-area:2/1/3/2;max-height:200px}.ck.ck-special-characters>.ck-dialog__content>div>.ck-character-info{grid-area:3/1/4/2}.ck.ck-special-characters-navigation>.ck-label{max-width:160px;overflow:hidden;text-overflow:ellipsis}.ck.ck-special-characters-navigation>.ck-dropdown .ck-dropdown__panel{max-height:250px;overflow-x:hidden;overflow-y:auto}@media screen and (max-width:600px){.ck.ck-special-characters-navigation{max-width:190px}.ck.ck-special-characters-navigation>.ck-form__header__label{overflow:hidden;text-overflow:ellipsis}}","",{version:3,sources:["webpack://./../ckeditor5-special-characters/theme/specialcharacters.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-special-characters/specialcharacters.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAcC,kDAKC,YAAa,CAFb,WAAY,CADZ,cAAe,CADf,WAAY,CAKZ,iBAAoB,CACpB,cAAiB,CACjB,yBAA0B,CAC1B,gCAkED,CAhEC,2EACC,iBAAwB,CACxB,wDAoDD,CAlDC,kGACC,sCAAuC,CACvC,UAgCD,CA9BC,oIAcC,iEAAkE,CAblE,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAcD,CAXC,0IACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAIA,uCAhBD,oIAiBE,cAEF,CADC,CAID,mKACC,YACD,CAEA,4GACC,kCAAmC,CACnC,iBACD,CAGD,wFACC,aAAc,CACd,UAWD,CARE,2GACC,4CACD,CAEA,oGACC,UACD,CAKH,qEACC,iBAAwB,CACxB,gBACD,CAEA,qEACC,iBACD,CC9ED,+CACC,eAAgB,CAEhB,eAAgB,CADhB,sBAED,CAEA,sEAEC,gBAAiB,CAEjB,iBAAkB,CADlB,eAED,CCfA,oCDED,qCAgBE,eAOF,CALE,6DAEC,eAAgB,CADhB,sBAED,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * Note: This file should contain the wireframe styles only. But since there are no such styles,\n * it acts as a message to the builder telling that it should look for the corresponding styles\n * **in the theme** when compiling the editor.\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-special-characters {\n\t& > .ck-dialog__content > div {\n\t\twidth: 350px;\n\t\tmax-width: 100%;\n\t\theight: 100%;\n\n\t\tdisplay: grid;\n\t\tgrid-column-gap: 0px;\n\t\tgrid-row-gap: 0px;\n\t\tgrid-template-columns: 1fr;\n\t\tgrid-template-rows: auto 1fr auto;\n\n\t\t& > .ck-character-categories {\n\t\t\tgrid-area: 1 / 1 / 2 / 2;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& > .ck-labeled-field-view {\n\t\t\t\tpadding-top: var(--ck-spacing-standard);\n\t\t\t\twidth: 100%;\n\n\t\t\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t\t\tbackground: var(--ck-color-base-error);\n\t\t\t\t\tcolor: var(--ck-color-base-background);\n\t\t\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\t\t\ttext-align: center;\n\n\t\t\t\t\t/* The arrow pointing towards the field. */\n\t\t\t\t\t&::after {\n\t\t\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\t\t\tborder-style: solid;\n\t\t\t\t\t}\n\n\t\t\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\n\t\t\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\t\t\tanimation: none;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.ck-dropdown {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\n\t\t\t\t& > button {\n\t\t\t\t\t&:not(:focus) {\n\t\t\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t\t\t}\n\n\t\t\t\t\t& > span {\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-character-grid {\n\t\t\tgrid-area: 2 / 1 / 3 / 2;\n\t\t\tmax-height: 200px;\n\t\t}\n\n\t\t& > .ck-character-info {\n\t\t\tgrid-area: 3 / 1 / 4 / 2;\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-special-characters-navigation {\n\n\t& > .ck-label {\n\t\tmax-width: 160px;\n\t\ttext-overflow: ellipsis;\n\t\toverflow: hidden;\n\t}\n\n\t& > .ck-dropdown .ck-dropdown__panel {\n\t\t/* There could be dozens of categories available. Use scroll to prevent a 10e6px dropdown. */\n\t\tmax-height: 250px;\n\t\toverflow-y: auto;\n\t\toverflow-x: hidden;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tmax-width: 190px;\n\n\t\t& > .ck-form__header__label {\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},5506:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},4043:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},2655:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},5032:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}@media (prefers-reduced-motion:reduce){.ck .ck-insert-table-dropdown-grid-box{transition:none}}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAcD,CAZC,uCATD,uCAUE,eAWF,CAVC,CAEA,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\ttransition: none;\n\t}\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const s=a},2329:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}@media print{.ck-content .table table{height:auto}}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAeF,aACC,yBACC,WACD,CACD,CAIA,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <figure>. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/**\n * Expanding the table to the full height of the parent container is necessary because tables\n * are rendered inside <figure> elements, which is kinda buggy in table height calculation.\n * While setting `height: 100%` fixes the issue in the editing mode described here:\n * https://github.com/ckeditor/ckeditor5/issues/6186\n *\n * it\'s causing another issue with the table height in the print preview mode here:\n * https://github.com/ckeditor/ckeditor5/issues/16856\n *\n * For now, resetting the height to `initial` in the print mode works as a workaround.\n */\n@media print {\n\t.ck-content .table table {\n\t\theight: initial;\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const s=a},4143:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}@media (forced-colors:active){.ck-content .table>figcaption{background-color:unset;color:unset}}@media (forced-colors:none){.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAOA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAaD,CCxBC,8BACC,8BDoBA,sBAAuB,CACvB,WCnBA,CACD,CAIA,4BDqBC,qEACC,iDACD,CCnBD,CDsBA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n\n\t/* Improve placeholder rendering in high-constrast mode (https://github.com/ckeditor/ckeditor5/issues/14907). */\n\t@mixin ck-media-forced-colors {\n\t\tbackground-color: unset;\n\t\tcolor: unset;\n\t}\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t@mixin ck-media-default-colors {\n\t\t&.table__caption_highlighted {\n\t\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t\t}\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-forced-colors {\n\t@media (forced-colors: active) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n\n@define-mixin ck-media-default-colors {\n\t@media (forced-colors: none) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},8986:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},8795:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const s=a},8137:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAWE,8QAGC,2DAA4D,CAC5D,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t/**\n\t\t * While setting outline is fine, the border should not be modified here\n\t\t * because it overrides the default table cell border color which is not expected.\n\t\t * So do not use `@mixin ck-focus-ring;` here, or any other border styles.\n\t\t * See more: https://github.com/ckeditor/ckeditor5/issues/16979\n\t\t */\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},1623:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both;background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}@media (prefers-reduced-motion:reduce){.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:none}}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCA6BD,CA3BC,8ECxCD,eD6DC,CArBA,mMCpCA,qCDyDA,CArBA,8EAgBC,iEAAkE,CAblE,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAcD,CAXC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAIA,uCAlBD,8EAmBE,cAEF,CADC,CAID,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\n\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\tanimation: none;\n\t\t\t}\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},5562:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},8423:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},1801:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}.ck.ck-aria-live-region-list{list-style-type:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD,CAEA,6BACC,oBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-aria-live-announcer {\n\tposition: absolute;\n\tleft: -10000px;\n\ttop: -10000px;\n}\n\n.ck.ck-aria-live-region-list {\n\tlist-style-type: none;\n}\n"],sourceRoot:""}]);const s=a},5727:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-panel)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-panel);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},9715:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;background:var(--ck-color-button-default-background);border:1px solid transparent;border-radius:0;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}@media (prefers-reduced-motion:reduce){.ck.ck-button,a.ck.ck-button{transition:none}}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{opacity:.5}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-medium)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background);color:var(--ck-color-button-on-color)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background);color:var(--ck-color-button-action-text)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEzBD,6BA6BC,uBAAwB,CC7BxB,oDAAqC,CDuBrC,4BAA6B,CExB7B,eAAgB,CFOhB,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAwID,CC1IE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,wIEGE,qCF0IF,CA9GC,uCA/BD,6BAgCE,eA6GF,CA5GC,CAEA,oFGpCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHyCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAWD,CAZA,6FAIE,mCAQF,CAZA,6FAQE,oCAIF,CAZA,yEAWC,UACD,CAIC,oIIxFD,oDJ4FC,CAOA,gLKnGD,kCLqGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAYD,CATC,2HAEE,qCAMF,CARA,2HAME,oCAEF,CAKA,mHACC,WACD,CAID,yCChIA,+CAAqC,CDmIpC,qCACD,CCjIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDuHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CChJC,mDAAqC,CDoJrC,wCACD,CClJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDwID,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../../mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\n\t@mixin ck-dir ltr {\n\t\tjustify-content: left;\n\t}\n\n\t@mixin ck-dir rtl {\n\t\tjustify-content: right;\n\t}\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\ttransition: none;\n\t}\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\topacity: .5;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const s=a},278:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-list-item-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list-item-button{text-align:left}[dir=rtl] .ck.ck-list-item-button{text-align:right}[dir=ltr] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button.ck-list-item-button_toggleable{padding-right:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-holder{display:inline-flex;height:.9em;width:.9em}[dir=ltr] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-list-item-button .ck-list-item-button__check-holder{margin-left:var(--ck-spacing-small)}.ck.ck-list-item-button .ck-list-item-button__check-icon{height:100%}.ck.ck-button.ck-list-item-button{padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2)}.ck.ck-button.ck-list-item-button,.ck.ck-button.ck-list-item-button.ck-on{background:var(--ck-color-list-background);color:var(--ck-color-text)}[dir=ltr] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-list-item-button:has(.ck-list-item-button__check-holder){padding-right:var(--ck-spacing-small)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:hover,.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-button.ck-list-item-button.ck-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:hover:not(.ck-disabled),.ck.ck-button.ck-list-item-button.ck-on:not(.ck-list-item-button_toggleable):not(.ck-disabled),.ck.ck-button.ck-list-item-button:hover:not(.ck-disabled):not(.ck-disabled){color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/listitembutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/listitembutton.css"],names:[],mappings:"AAOA,wBAGC,eAAgB,CAFhB,gBAAiB,CACjB,UAsCD,CAxCA,kCAME,eAkCF,CAxCA,kCAUE,gBA8BF,CA3BC,iEAEE,oCAMF,CARA,iEAME,qCAEF,CAEA,2DACC,mBAAoB,CAEpB,WAAY,CADZ,UAUD,CAZA,qEAME,oCAMF,CAZA,qEAUE,mCAEF,CAEA,yDACC,WACD,CCvCD,kCACC,iEAiCD,CA/BC,0EAEC,0CAA2C,CAC3C,0BACD,CAEA,oFAEE,oCAMF,CARA,oFAME,qCAEF,CAOA,6OAIC,uDAKD,CAHC,qTACC,0BACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_dir.css";\n\n.ck.ck-list-item-button {\n\tmin-height: unset;\n\twidth: 100%;\n\tborder-radius: 0;\n\n\t@mixin ck-dir ltr {\n\t\ttext-align: left;\n\t}\n\n\t@mixin ck-dir rtl {\n\t\ttext-align: right;\n\t}\n\n\t&.ck-list-item-button_toggleable {\n\t\t@mixin ck-dir ltr {\n\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t& .ck-list-item-button__check-holder {\n\t\tdisplay: inline-flex;\n\t\twidth: .9em;\n\t\theight: .9em;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t& .ck-list-item-button__check-icon {\n\t\theight: 100%;\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button.ck-list-item-button {\n\tpadding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\n\n\t&,\n\t&.ck-on {\n\t\tbackground: var(--ck-color-list-background);\n\t\tcolor: var(--ck-color-text);\n\t}\n\n\t&:has(.ck-list-item-button__check-holder) {\n\t\t@mixin ck-dir ltr {\n\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t/*\n\t * `.ck-on` class and background styling is overridden for `ck-button` in many places.\n\t * This is a workaround to make sure that the background is not overridden and uses similar\n\t * selector specificity as the other overrides.\n\t */\n\t&:hover:not(.ck-disabled),\n\t&.ck-button.ck-on:hover,\n\t&.ck-on:not(.ck-list-item-button_toggleable),\n\t&.ck-on:hover {\n\t\tbackground: var(--ck-color-list-button-hover-background);\n\n\t\t&:not(.ck-disabled) {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},4391:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{transition:none}}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eDgFA,CA5CA,yIChCC,qCD4ED,CA5CA,2DAKE,gBAuCF,CA5CA,2DAUE,iBAkCF,CA5CA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CA2BD,CAxBC,2ECxDD,eDuEC,CAfA,6LCpDA,qCAAsC,CDsDpC,8CAaF,CAfA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAUD,CAHC,uCAZD,2EAaE,eAEF,CADC,CAGD,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEpFA,kCFsFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floatingpoint numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\n\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\ttransition: none;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const s=a},25:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAGC,eAAgB,CAChB,aAAc,CAFd,eAAiB,CADjB,UAmBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},7317:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{transition:box-shadow .2s ease}@media (forced-colors:none){.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}}@media (forced-colors:active){.ck.ck-color-grid__tile{height:unset;min-height:unset;min-width:unset;padding:0 var(--ck-spacing-small);width:unset}.ck.ck-color-grid__tile .ck-button__label{display:inline-block}}@media (prefers-reduced-motion:reduce){.ck.ck-color-grid__tile{transition:none}}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css"],names:[],mappings:"AAKA,kBACC,YACD,CCCA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBACC,8BAkED,CC3EC,4BACC,wBDgBA,QAAS,CAJT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CAJV,oCCTA,CDgBA,8HAIC,QACD,CAEA,+DACC,gDACD,CAEA,8BACC,8FACD,CAEA,gGAEC,iGACD,CCjCD,CAZA,8BACC,wBDqDA,YAAa,CAEb,gBAAiB,CADjB,eAAgB,CAEhB,iCAAkC,CAJlC,WClDA,CDwDA,0CACC,oBACD,CCzDD,CD4DA,uCAhDD,wBAiDE,eAkBF,CAjBC,CAEA,oCACC,YAAa,CACb,gBACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAGC,0CACC,aACD,CAIF,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\ttransition: .2s ease box-shadow;\n\n\t@mixin ck-media-default-colors {\n\t\twidth: var(--ck-color-grid-tile-size);\n\t\theight: var(--ck-color-grid-tile-size);\n\t\tmin-width: var(--ck-color-grid-tile-size);\n\t\tmin-height: var(--ck-color-grid-tile-size);\n\t\tpadding: 0;\n\t\tborder: 0;\n\n\t\t&.ck-on,\n\t\t&:focus:not( .ck-disabled ),\n\t\t&:hover:not( .ck-disabled ) {\n\t\t\t/* Disable the default .ck-button\'s border ring. */\n\t\t\tborder: 0;\n\t\t}\n\n\t\t&.ck-color-selector__color-tile_bordered {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\t\t}\n\n\t\t&:focus:not( .ck-disabled ),\n\t\t&:hover:not( .ck-disabled ) {\n\t\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t\t}\n\t}\n\n\t/*\n\t * In high contrast mode, the colors are replaced with text labels.\n\t * See https://github.com/ckeditor/ckeditor5/issues/14907.\n\t */\n\t@mixin ck-media-forced-colors {\n\t\twidth: unset;\n\t\theight: unset;\n\t\tmin-width: unset;\n\t\tmin-height: unset;\n\t\tpadding: 0 var(--ck-spacing-small);\n\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\ttransition: none;\n\t}\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-forced-colors {\n\t@media (forced-colors: active) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n\n@define-mixin ck-media-default-colors {\n\t@media (forced-colors: none) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},1905:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const s=a},6309:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},9819:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-dialog-overlay{bottom:0;left:0;overscroll-behavior:none;position:fixed;right:0;top:0;user-select:none}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent{animation:none;background:none;pointer-events:none}.ck.ck-dialog{overscroll-behavior:none;position:absolute;width:fit-content}.ck.ck-dialog .ck.ck-form__header{flex-shrink:0}.ck.ck-dialog .ck.ck-form__header .ck-form__header__label{cursor:grab}.ck.ck-dialog-overlay.ck-dialog-overlay__transparent .ck.ck-dialog{pointer-events:all}:root{--ck-dialog-overlay-background-color:rgba(0,0,0,.5);--ck-dialog-drop-shadow:0px 0px 6px 2px rgba(0,0,0,.15);--ck-dialog-max-width:100vw;--ck-dialog-max-height:90vh;--ck-color-dialog-background:var(--ck-color-base-background);--ck-color-dialog-form-header-border:var(--ck-color-base-border)}.ck.ck-dialog-overlay{animation:ck-dialog-fade-in .3s;background:var(--ck-dialog-overlay-background-color);z-index:var(--ck-z-dialog)}.ck.ck-dialog{border-radius:0}.ck-rounded-corners .ck.ck-dialog,.ck.ck-dialog.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dialog{box-shadow:var(--ck-drop-shadow),0 0;--ck-drop-shadow:var(--ck-dialog-drop-shadow);background:var(--ck-color-dialog-background);border:1px solid var(--ck-color-base-border);max-height:var(--ck-dialog-max-height);max-width:var(--ck-dialog-max-width)}.ck.ck-dialog .ck.ck-form__header{border-bottom:1px solid var(--ck-color-dialog-form-header-border)}@keyframes ck-dialog-fade-in{0%{background:transparent}to{background:var(--ck-dialog-overlay-background-color)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialog.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,sBAKC,QAAS,CACT,MAAO,CAJP,wBAAyB,CAEzB,cAAe,CAGf,OAAQ,CACR,KAAM,CAPN,gBAcD,CALC,qDAEC,cAAe,CACf,eAAgB,CAFhB,mBAGD,CAGD,cACC,wBAAyB,CAEzB,iBAAkB,CADlB,iBAcD,CAXC,kCACC,aAKD,CAHC,0DACC,WACD,CAVF,mEAcE,kBAEF,CC7BA,MACC,mDAA2D,CAC3D,uDAA8D,CAC9D,2BAA4B,CAC5B,2BAA4B,CAC5B,4DAA6D,CAC7D,gEACD,CAEA,sBACC,+BAAgC,CAChC,oDAAqD,CACrD,0BACD,CAEA,cCbC,eD2BD,CAdA,mECTE,qCDuBF,CAdA,cEfC,oCAA8B,CFmB9B,6CAA8C,CAE9C,4CAA6C,CAG7C,4CAA6C,CAF7C,sCAAuC,CACvC,oCAMD,CAHC,kCACC,iEACD,CAGD,6BACC,GACC,sBACD,CAEA,GACC,oDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dialog-overlay {\n\tuser-select: none;\n\toverscroll-behavior: none;\n\n\tposition: fixed;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\ttop: 0;\n\n\t&.ck-dialog-overlay__transparent {\n\t\tpointer-events: none;\n\t\tanimation: none;\n\t\tbackground: none;\n\t}\n}\n\n.ck.ck-dialog {\n\toverscroll-behavior: none;\n\twidth: fit-content;\n\tposition: absolute;\n\n\t& .ck.ck-form__header {\n\t\tflex-shrink: 0;\n\n\t\t& .ck-form__header__label {\n\t\t\tcursor: grab;\n\t\t}\n\t}\n\n\t@nest .ck.ck-dialog-overlay.ck-dialog-overlay__transparent & {\n\t\tpointer-events: all;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n:root {\n\t--ck-dialog-overlay-background-color: hsla( 0, 0%, 0%, .5 );\n\t--ck-dialog-drop-shadow: 0px 0px 6px 2px hsl(0deg 0% 0% / 15%);\n\t--ck-dialog-max-width: 100vw;\n\t--ck-dialog-max-height: 90vh;\n\t--ck-color-dialog-background: var(--ck-color-base-background);\n\t--ck-color-dialog-form-header-border: var(--ck-color-base-border);\n}\n\n.ck.ck-dialog-overlay {\n\tanimation: ck-dialog-fade-in .3s;\n\tbackground: var(--ck-dialog-overlay-background-color);\n\tz-index: var(--ck-z-dialog);\n}\n\n.ck.ck-dialog {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\t--ck-drop-shadow: var(--ck-dialog-drop-shadow);\n\n\tbackground: var(--ck-color-dialog-background);\n\tmax-height: var(--ck-dialog-max-height);\n\tmax-width: var(--ck-dialog-max-width);\n\tborder: 1px solid var(--ck-color-base-border);\n\n\t& .ck.ck-form__header {\n\t\tborder-bottom: 1px solid var(--ck-color-dialog-form-header-border);\n\t}\n}\n\n@keyframes ck-dialog-fade-in {\n\t0% {\n\t\tbackground: hsla( 0, 0%, 0%, 0 );\n\t}\n\n\t100% {\n\t\tbackground: var(--ck-dialog-overlay-background-color);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},9822:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-dialog .ck.ck-dialog__actions{display:flex;justify-content:flex-end;padding:var(--ck-spacing-large)}.ck.ck-dialog .ck.ck-dialog__actions>*+*{margin-left:var(--ck-spacing-large)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dialog/dialogactions.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dialog/dialogactions.css"],names:[],mappings:"AAMC,qCACC,YAAa,CACb,wBAAyB,CCDzB,+BDED,CCAC,yCACC,mCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dialog {\n\t& .ck.ck-dialog__actions {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-end;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dialog {\n\t& .ck.ck-dialog__actions {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * + * {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},8149:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-panel);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-panel) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},3629:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-dropdown>.ck-dropdown__panel>.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:first-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button,.ck.ck-dropdown>.ck-dropdown__panel>.ck-list .ck-list__item:last-child>.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown > .ck-dropdown__panel > .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child > .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child > .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},7218:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-dropdown-menu-list__nested-menu{display:block}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenu.css"],names:[],mappings:"AAKA,uCACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dropdown-menu-list__nested-menu {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const s=a},9554:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button{border-radius:0;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus{border-color:transparent;box-shadow:none}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-icon-spacing:not(:has(.ck-button__icon))>.ck-button__label{margin-left:calc(var(--ck-icon-size) - var(--ck-spacing-small))}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:calc(var(--ck-spacing-small)*-1);transform:rotate(90deg)}.ck.ck-button.ck-dropdown-menu-list__nested-menu__button.ck-disabled>.ck-dropdown-menu-list__nested-menu__button__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=ltr] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-dropdown-menu-list__nested-menu__button>.ck-dropdown-menu-list__nested-menu__button__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAKA,kGACC,mBAAoB,CACpB,2BACD,CCIA,yDAGC,eAAgB,CADhB,iEAAoE,CADpE,UA2ED,CAvEC,+DACC,wBAAyB,CACzB,eAKD,CAHC,2EACC,0DACD,CAGD,2EACC,WAAY,CACZ,eAAgB,CAChB,sBACD,CAEA,uFCvBA,kCDyBA,CAGA,uHACC,+DACD,CAEA,4GACC,mCAeD,CAhBA,sHAOE,6CAAgD,CAHhD,wBAYF,CAhBA,sHAcE,4CAA+C,CAH/C,uBAKF,CAEA,wHClDA,kCDoDA,CAGC,6FACC,oCACD,CAEA,sHAIC,sCAAuC,CAHvC,gCAID,CAIA,6FACC,qCACD,CAEA,sHACC,+BAAgC,CAGhC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-dropdown-menu-list__nested-menu__button > .ck-dropdown-menu-list__nested-menu__button__arrow {\n\tpointer-events: none;\n\tz-index: var(--ck-z-default);\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../../mixins/_disabled.css";\n@import "../../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * All menu buttons.\n */\n.ck.ck-button.ck-dropdown-menu-list__nested-menu__button {\n\twidth: 100%;\n\tpadding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\n\tborder-radius: 0;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\tbox-shadow: none;\n\n\t\t&:not(.ck-on) {\n\t\t\tbackground: var(--ck-color-button-default-hover-background);\n\t\t}\n\t}\n\n\t& > .ck-button__label {\n\t\tflex-grow: 1;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t&.ck-disabled > .ck-button__label {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Spacing in buttons that miss the icon. */\n\t&.ck-icon-spacing:not(:has(.ck-button__icon)) > .ck-button__label {\n\t\tmargin-left: calc(var(--ck-icon-size) - var(--ck-spacing-small));\n\t}\n\n\t& > .ck-dropdown-menu-list__nested-menu__button__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: rotate(-90deg);\n\n\t\t\t/* Nudge the arrow gently to the right because its center of gravity is to the left */\n\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: rotate(90deg);\n\n\t\t\t/* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */\n\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t}\n\t}\n\n\t&.ck-disabled > .ck-dropdown-menu-list__nested-menu__button__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t&:not(.ck-button_with-text) {\n\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t}\n\n\t\t& > .ck-dropdown-menu-list__nested-menu__button__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t&:not(.ck-button_with-text) {\n\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t& > .ck-dropdown-menu-list__nested-menu__button__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const s=a},2171:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-dropdown-menu-menu-item-min-width:18em}.ck.ck-dropdown-menu-list__nested-menu__item{min-width:var(--ck-dropdown-menu-menu-item-min-width)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitem.css"],names:[],mappings:"AAKA,MACC,2CACD,CAEA,6CACC,qDACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-menu-menu-item-min-width: 18em;\n}\n\n.ck.ck-dropdown-menu-list__nested-menu__item {\n\tmin-width: var(--ck-dropdown-menu-menu-item-min-width);\n}\n"],sourceRoot:""}]);const s=a},4767:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-button.ck-dropdown-menu-list__nested-menu__item__button{border-radius:0}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container,.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck-button.ck-dropdown-menu-list__nested-menu__item__button>.ck-spinner-container{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus{border-color:transparent;box-shadow:none}.ck-button.ck-dropdown-menu-list__nested-menu__item__button:focus:not(.ck-on){background:var(--ck-color-button-default-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenulistitembutton.css"],names:[],mappings:"AAQA,4DACC,eA0BD,CAxBC,gLAGC,8BACD,CAEA,kFAEC,4CAA+C,CAC/C,oCACD,CAMA,kEACC,wBAAyB,CACzB,eAKD,CAHC,8EACC,0DACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * List item buttons.\n */\n.ck-button.ck-dropdown-menu-list__nested-menu__item__button {\n\tborder-radius: 0;\n\n\t& > .ck-spinner-container,\n\t& > .ck-spinner-container .ck-spinner {\n\t\t/* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */\n\t\t--ck-toolbar-spinner-size: 20px;\n\t}\n\n\t& > .ck-spinner-container {\n\t\t/* These margins are the same as for .ck-icon. */\n\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/*\n\t * Hovered items automatically get focused. Default focus styles look odd\n\t * while moving across a huge list of items so let's get rid of them\n\t */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\tbox-shadow: none;\n\n\t\t&:not(.ck-on) {\n\t\t\tbackground: var(--ck-color-button-default-hover-background);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const s=a},3610:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{max-height:314px;overflow-y:auto;position:absolute;z-index:calc(var(--ck-z-panel) + 1)}:root{--ck-dropdown-menu-menu-panel-max-width:75vw}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;height:fit-content;max-width:var(--ck-dropdown-menu-menu-panel-max-width)}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:after,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:before{display:none}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_es,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_se{border-top-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_sw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ws{border-top-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_en,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_ne{border-bottom-left-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_nw,.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel.ck-balloon-panel_wn{border-bottom-right-radius:0}.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/menu/dropdownmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/menu/dropdownmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,0DAEC,gBAAiB,CACjB,eAAgB,CAFhB,iBAAkB,CAGlB,mCACD,CCFA,MACC,4CACD,CAEA,0DAGC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CCRT,oCAA8B,CDS9B,kBAAmB,CACnB,sDAgCD,CA7BC,iIAEC,YACD,CAGA,4JAEC,wBACD,CAEA,4JAEC,yBACD,CAEA,4JAEC,2BACD,CAEA,4JAEC,4BACD,CAEA,gEACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {\n\tposition: absolute;\n\tmax-height: 314px; /* With the default settings, this is equal to 10 menu items. */\n\toverflow-y: auto;\n\tz-index: calc(var(--ck-z-panel) + 1);\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../../mixins/_rounded.css";\n@import "../../../../mixins/_shadow.css";\n\n:root {\n\t--ck-dropdown-menu-menu-panel-max-width: 75vw;\n}\n\n.ck.ck-balloon-panel.ck-dropdown-menu__nested-menu__panel {\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\theight: fit-content;\n\tmax-width: var(--ck-dropdown-menu-menu-panel-max-width);\n\n\t/* Reset balloon styling */\n\t&::after,\n\t&::before {\n\t\tdisplay: none;\n\t}\n\n\t/* Corner border radius consistent with the button. */\n\t&.ck-balloon-panel_es,\n\t&.ck-balloon-panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-balloon-panel_ws,\n\t&.ck-balloon-panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-balloon-panel_en,\n\t&.ck-balloon-panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-balloon-panel_wn,\n\t&.ck-balloon-panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},1792:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},1666:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const s=a},8527:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-accessibility-help-dialog-max-width:600px;--ck-accessibility-help-dialog-max-height:400px;--ck-accessibility-help-dialog-border-color:#ccced1;--ck-accessibility-help-dialog-code-background-color:#ededed;--ck-accessibility-help-dialog-kbd-shadow-color:#9c9c9c}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content{border:1px solid transparent;max-height:var(--ck-accessibility-help-dialog-max-height);max-width:var(--ck-accessibility-help-dialog-max-width);overflow:auto;padding:var(--ck-spacing-large);user-select:text}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content *{white-space:normal}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content .ck-label{display:none}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3{font-size:1.2em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4{font-size:1em;font-weight:700}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h3,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content h4,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content p,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content table{margin:1em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl{border-bottom:none;border-top:1px solid var(--ck-accessibility-help-dialog-border-color);display:grid;grid-template-columns:2fr 1fr}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{border-bottom:1px solid var(--ck-accessibility-help-dialog-border-color);padding:.4em 0}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dt{grid-column-start:1}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content dl dd{grid-column-start:2;text-align:right}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code,.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{background:var(--ck-accessibility-help-dialog-code-background-color);border-radius:2px;display:inline-block;font-size:.9em;line-height:1;padding:.4em;text-align:center;vertical-align:middle}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content code{font-family:monospace}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd{box-shadow:0 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);margin:0 1px;min-width:1.8em}.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content kbd+kbd{margin-left:2px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/accessibilityhelp.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAQA,MACC,8CAA+C,CAC/C,+CAAgD,CAChD,mDAA8D,CAC9D,4DAAyE,CACzE,uDACD,CAEA,wEAOC,4BAA6B,CAJ7B,yDAA0D,CAD1D,uDAAwD,CAExD,aAAc,CAHd,+BAAgC,CAIhC,gBAgFD,CA5EC,8ECdA,2BAA2B,CCF3B,2CAA8B,CDC9B,YDkBA,CAEA,0EACC,kBACD,CAGA,kFACC,YACD,CAEA,2EAEC,eAAgB,CADhB,eAED,CAEA,2EAEC,aAAc,CADd,eAED,CAEA,8SAIC,YACD,CAEA,2EAIC,kBAAmB,CADnB,qEAAsE,CAFtE,YAAa,CACb,6BAiBD,CAbC,4JACC,wEAAyE,CACzE,cACD,CAEA,8EACC,mBACD,CAEA,8EACC,mBAAoB,CACpB,gBACD,CAGD,yJAEC,oEAAqE,CAIrE,iBAAkB,CALlB,oBAAqB,CAOrB,cAAe,CAHf,aAAc,CAFd,YAAa,CAIb,iBAAkB,CAHlB,qBAKD,CAEA,6EACC,qBACD,CAEA,4EAEC,yEAA4E,CAC5E,YAAa,CAFb,eAOD,CAHC,gFACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-accessibility-help-dialog-max-width: 600px;\n\t--ck-accessibility-help-dialog-max-height: 400px;\n\t--ck-accessibility-help-dialog-border-color: hsl(220, 6%, 81%);\n\t--ck-accessibility-help-dialog-code-background-color: hsl(0deg 0% 92.94%);\n\t--ck-accessibility-help-dialog-kbd-shadow-color: hsl(0deg 0% 61%);\n}\n\n.ck.ck-accessibility-help-dialog .ck-accessibility-help-dialog__content {\n\tpadding: var(--ck-spacing-large);\n\tmax-width: var(--ck-accessibility-help-dialog-max-width);\n\tmax-height: var(--ck-accessibility-help-dialog-max-height);\n\toverflow: auto;\n\tuser-select: text;\n\n\tborder: 1px solid transparent;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t* {\n\t\twhite-space: normal;\n\t}\n\n\t/* Hide the main label of the content container. */\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t& h3 {\n\t\tfont-weight: bold;\n\t\tfont-size: 1.2em;\n\t}\n\n\t& h4 {\n\t\tfont-weight: bold;\n\t\tfont-size: 1em;\n\t}\n\n\t& p,\n\t& h3,\n\t& h4,\n\t& table {\n\t\tmargin: 1em 0;\n\t}\n\n\t& dl {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: 2fr 1fr;\n\t\tborder-top: 1px solid var(--ck-accessibility-help-dialog-border-color);\n\t\tborder-bottom: none;\n\n\t\t& dt, & dd {\n\t\t\tborder-bottom: 1px solid var(--ck-accessibility-help-dialog-border-color);\n\t\t\tpadding: .4em 0;\n\t\t}\n\n\t\t& dt {\n\t\t\tgrid-column-start: 1;\n\t\t}\n\n\t\t& dd {\n\t\t\tgrid-column-start: 2;\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& kbd, & code {\n\t\tdisplay: inline-block;\n\t\tbackground: var(--ck-accessibility-help-dialog-code-background-color);\n\t\tpadding: .4em;\n\t\tvertical-align: middle;\n\t\tline-height: 1;\n\t\tborder-radius: 2px;\n\t\ttext-align: center;\n\t\tfont-size: .9em;\n\t}\n\n\t& code {\n\t\tfont-family: monospace;\n\t}\n\n\t& kbd {\n\t\tmin-width: 1.8em;\n\t\tbox-shadow: 0px 1px 1px var(--ck-accessibility-help-dialog-kbd-shadow-color);\n\t\tmargin: 0 1px;\n\n\t\t& + kbd {\n\t\t\tmargin-left: 2px;\n\t\t}\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},1185:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},7913:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:44px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header>.ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header>.ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{--ck-font-size-base:15px;font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAmBD,CAdC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,wBAAyB,CACzB,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-form-header-height: 44px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& > .ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t}\n\t}\n\n\t& .ck-form__header__label {\n\t\t--ck-font-size-base: 15px;\n\t\tfont-weight: bold;\n\t}\n}\n'],sourceRoot:""}]);const s=a},9529:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const s=a},7621:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal));--ck-icon-font-size:.8333350694em}.ck.ck-icon{font-size:var(--ck-icon-font-size);height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EAA6E,CAC7E,iCACD,CAEA,YAKC,kCAAmC,CAHnC,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n\t--ck-icon-font-size: .8333350694em;\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: var(--ck-icon-font-size);\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},253:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}@media (prefers-reduced-motion:reduce){.ck.ck-input{transition:none}}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}@media (prefers-reduced-motion:reduce){.ck.ck-input.ck-error{animation:none}}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eDmDD,CA9CA,iECDE,qCD+CF,CA9CA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DAkCD,CAhCC,uCAdD,aAeE,eA+BF,CA9BC,CAEA,mBEvBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YF2BA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BGnCD,oDHsCC,CAGD,sBAEC,sCAAuC,CADvC,+CAUD,CAPC,uCAJD,sBAKE,cAMF,CALC,CAEA,4BGjDD,iDHmDC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\ttransition: none;\n\t}\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\tanimation: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},7801:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const s=a},4962:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}@media (prefers-reduced-motion:reduce){.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transition:none}}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eDmHD,CA9GA,2FCDE,qCD+GF,CA3GC,mEACC,UAwCD,CAtCC,gFACC,KAoCD,CArCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBAgCF,CArCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAyBF,CArCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAQD,CAHC,uCAlCD,gFAmCE,eAEF,CADC,CASD,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,2XAGE,+HAYF,CAfA,2XAOE,wIAQF,CAfA,uWAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t\ttransform-origin: 100% 0;\n\t\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\n\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\ttransition: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder):not(.ck-error) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},5199:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none;padding:var(--ck-spacing-small) 0}.ck.ck-list__item{cursor:default;min-width:15em}.ck.ck-list__item>.ck-button:not(.ck-list-item-button){border-radius:0;min-height:unset;padding:var(--ck-spacing-tiny) calc(var(--ck-spacing-standard)*2);width:100%}[dir=ltr] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:left}[dir=rtl] .ck.ck-list__item>.ck-button:not(.ck-list-item-button){text-align:right}.ck.ck-list__item>.ck-button:not(.ck-list-item-button) .ck-button__label{line-height:calc(var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button){background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):active{box-shadow:none}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item>.ck-button.ck-on:not(.ck-list-item-button):focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item>.ck-button:not(.ck-list-item-button):hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item>.ck-button.ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium)}.ck-list .ck-list__group:first-child{padding-top:0}:not(.ck-hidden)~.ck-list .ck-list__group{border-top:1px solid var(--ck-color-base-border)}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large) 0}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;margin:var(--ck-spacing-small) 0;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,YCCC,eDOD,CARA,+DCKE,qCDGF,CARA,YAIC,0CAA2C,CAD3C,oBAAqB,CAIrB,iCACD,CAEA,kBACC,cAAe,CAGf,cA4DD,CA1DC,uDAIC,eAAgB,CAFhB,gBAAiB,CADjB,iEAAoE,CAEpE,UAwCD,CA3CA,iEAOE,eAoCF,CA3CA,iEAWE,gBAgCF,CA7BC,yEAEC,qEACD,CAEA,8DACC,eACD,CAEA,6DACC,oDAAqD,CACrD,yCAaD,CAXC,oEACC,eACD,CAEA,qFACC,0DACD,CAEA,qFACC,4CACD,CAGD,+EACC,uDACD,CAMA,mDACC,0CAA2C,CAC3C,aAMD,CAJC,2EACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAiBD,CAdC,qCACC,aACD,CAGA,0CACC,gDACD,CAEA,mCACC,cAAe,CACf,eAAiB,CACjB,0DACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CAKX,gCAAiC,CAJjC,UAKD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n\n\t/* A spacing at the beginning and end of the list */\n\tpadding: var(--ck-spacing-small) 0;\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\n\t/* Almost as wide as menu bar items. */\n\tmin-width: 15em;\n\n\t& > .ck-button:not(.ck-list-item-button) {\n\t\tpadding: var(--ck-spacing-tiny) calc(2 * var(--ck-spacing-standard));\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\tborder-radius: 0;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& > .ck-button.ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* Lists come with an inner vertical padding. Don\'t duplicate it. */\n\t&:first-child {\n\t\tpadding-top: 0;\n\t}\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > .ck-label {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large) 0;\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n\n\t/* Give the separator some air */\n\tmargin: var(--ck-spacing-small) 0;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},497:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-menu-bar{background:var(--ck-color-base-background);border:1px solid var(--ck-color-toolbar-border);display:flex;flex-wrap:wrap;gap:var(--ck-spacing-small);justify-content:flex-start;padding:var(--ck-spacing-small);width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubar.css"],names:[],mappings:"AAKA,gBAIC,0CAA2C,CAG3C,+CAAgD,CANhD,YAAa,CACb,cAAe,CAIf,2BAA4B,CAH5B,0BAA2B,CAE3B,+BAAgC,CAGhC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-menu-bar {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: flex-start;\n\tbackground: var(--ck-color-base-background);\n\tpadding: var(--ck-spacing-small);\n\tgap: var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\twidth: 100%;\n}\n"],sourceRoot:""}]);const s=a},4:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-menu-bar__menu{display:block;font-size:inherit;position:relative}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level{max-width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenu.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenu.css"],names:[],mappings:"AAKA,sBACC,aAAc,CCCd,iBAAkB,CDAlB,iBACD,CCCC,kDACC,cACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-menu-bar__menu {\n\tdisplay: block;\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-menu-bar__menu {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t&.ck-menu-bar__menu_top-level {\n\t\tmax-width: 100%;\n\t}\n}\n"],sourceRoot:""}]);const s=a},3344:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button{width:100%}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button>.ck-button__label{flex-grow:1;overflow:hidden;text-overflow:ellipsis}.ck.ck-menu-bar__menu>.ck-menu-bar__menu__button.ck-disabled>.ck-button__label{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-menu-bar__menu>.ck-menu-bar__menu__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button{min-height:unset;padding:var(--ck-spacing-small) var(--ck-spacing-medium)}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-button__label{line-height:unset;width:unset}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-menu-bar__menu.ck-menu-bar__menu_top-level>.ck-menu-bar__menu__button .ck-icon{display:none}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button{border-radius:0}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{margin-left:var(--ck-spacing-standard);margin-right:calc(var(--ck-spacing-small)*-1);transform:rotate(-90deg)}[dir=rtl] .ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button>.ck-menu-bar__menu__button__arrow{left:var(--ck-spacing-standard);margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small);transform:rotate(90deg)}.ck.ck-menu-bar__menu:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button.ck-disabled>.ck-menu-bar__menu__button__arrow{opacity:var(--ck-disabled-opacity)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenubutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAMC,mFACC,mBAAoB,CACpB,2BACD,CCIA,iDACC,UAuBD,CArBC,mEACC,WAAY,CACZ,eAAgB,CAChB,sBACD,CAEA,+ECbD,kCDeC,CAGC,qFACC,oCACD,CAIA,qFACC,qCACD,CAOF,6EAEC,gBAAiB,CADjB,wDAgBD,CAbC,+FAEC,iBAAkB,CADlB,WAED,CAEA,mFACC,2BAA4B,CAC5B,4BACD,CAEA,sFACC,YACD,CAMD,mFACC,eA+BD,CA7BC,qHACC,mCAuBD,CAxBA,+HAOE,sCAAuC,CAGvC,6CAAgD,CANhD,wBAoBF,CAxBA,+HAgBE,+BAAgC,CAMhC,4CAA+C,CAH/C,oCAAqC,CALrC,uBAUF,CAEA,iICpFD,kCDsFC",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-menu-bar__menu {\n\t& > .ck-menu-bar__menu__button > .ck-menu-bar__menu__button__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-menu-bar__menu {\n\t/*\n\t * All menu buttons.\n\t */\n\t& > .ck-menu-bar__menu__button {\n\t\twidth: 100%;\n\n\t\t& > .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t&.ck-disabled > .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Top-level menu buttons only.\n\t */\n\t&.ck-menu-bar__menu_top-level > .ck-menu-bar__menu__button {\n\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\tmin-height: unset;\n\n\t\t& .ck-button__label {\n\t\t\twidth: unset;\n\t\t\tline-height: unset;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t/*\n\t * Sub-menu buttons.\n\t */\n\t&:not(.ck-menu-bar__menu_top-level) .ck-menu-bar__menu__button {\n\t\tborder-radius: 0;\n\n\t\t& > .ck-menu-bar__menu__button__arrow {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\ttransform: rotate(-90deg);\n\n\t\t\t\t/* A space to accommodate the triangle. */\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\n\t\t\t\t/* Nudge the arrow gently to the right because its center of gravity is to the left */\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\ttransform: rotate(90deg);\n\n\t\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t\t/* A space to accommodate the triangle. */\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\n\t\t\t\t/* Nudge the arrow gently to the left because its center of gravity is to the right (after rotation). */\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t}\n\t\t}\n\n\t\t&.ck-disabled > .ck-menu-bar__menu__button__arrow {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const s=a},9481:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-menu-bar-menu-item-min-width:18em}.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item{min-width:var(--ck-menu-bar-menu-item-min-width)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitem.css"],names:[],mappings:"AAKA,MACC,sCACD,CAEA,kDACC,gDACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-menu-bar-menu-item-min-width: 18em;\n}\n\n.ck.ck-menu-bar__menu .ck.ck-menu-bar__menu__item {\n\tmin-width: var(--ck-menu-bar-menu-item-min-width);\n}\n"],sourceRoot:""}]);const s=a},977:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button{border-radius:0}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container,.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container .ck-spinner{--ck-toolbar-spinner-size:20px}.ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{font-size:var(--ck-icon-font-size)}[dir=ltr] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-menu-bar__menu .ck-button.ck-menu-bar__menu__item__button>.ck-spinner-container{margin-left:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenulistitembutton.css"],names:[],mappings:"AAWC,iEACC,eAoBD,CAlBC,0LAGC,8BACD,CAEA,uFAEC,kCASD,CAXA,iGAKE,qCAMF,CAXA,iGASE,oCAEF",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-menu-bar__menu {\n\t/*\n\t * List item buttons.\n\t */\n\t& .ck-button.ck-menu-bar__menu__item__button {\n\t\tborder-radius: 0;\n\n\t\t& > .ck-spinner-container,\n\t\t& > .ck-spinner-container .ck-spinner {\n\t\t\t/* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */\n\t\t\t--ck-toolbar-spinner-size: 20px;\n\t\t}\n\n\t\t& > .ck-spinner-container {\n\t\t\t/* This ensures margins corresponding to the .ck-icon. */\n\t\t\tfont-size: var(--ck-icon-font-size);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n\n'],sourceRoot:""}]);const s=a},9108:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-menu-bar-menu-max-width:75vw;--ck-menu-bar-nested-menu-horizontal-offset:5px}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{max-width:var(--ck-menu-bar-menu-max-width);position:absolute;z-index:var(--ck-z-panel)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw{bottom:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{bottom:auto;top:100%}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{left:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw{right:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{left:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en{bottom:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{right:calc(100% - var(--ck-menu-bar-nested-menu-horizontal-offset))}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{top:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{bottom:0}:root{--ck-menu-bar-menu-panel-max-width:75vw}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{border-radius:0}.ck-rounded-corners .ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;height:fit-content;max-width:var(--ck-menu-bar-menu-panel-max-width)}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_es,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_se{border-top-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_sw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ws{border-top-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_en,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_ne{border-bottom-left-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_nw,.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel.ck-menu-bar__menu__panel_position_wn{border-bottom-right-radius:0}.ck.ck-menu-bar__menu>.ck.ck-menu-bar__menu__panel:focus{outline:none}.ck.ck-menu-bar .ck-list-item-button:active,.ck.ck-menu-bar .ck-list-item-button:focus{border-color:transparent;box-shadow:none}.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:active,.ck.ck-menu-bar.ck-menu-bar_focus-border-enabled .ck-list-item-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none;position:relative;z-index:2}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/menubar/menubarmenupanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AAKA,MACC,iCAAkC,CAClC,+CACD,CAEA,mDAEC,2CAA4C,CAC5C,iBAAkB,CAFlB,yBAkDD,CA9CC,gLAEC,WACD,CAEA,gLAGC,WAAY,CADZ,QAED,CAEA,gLAEC,MACD,CAEA,gLAEC,OACD,CAEA,gLAEC,kEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CAEA,gLAEC,mEACD,CAEA,wFACC,KACD,CAEA,wFACC,QACD,CCnDD,MACC,uCACD,CAEA,mDCFC,eDoCD,CAlCA,6ICEE,qCDgCF,CAlCA,mDAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CEVT,oCAA8B,CFW9B,kBAAmB,CACnB,iDA0BD,CAvBC,gLAEC,wBACD,CAEA,gLAEC,yBACD,CAEA,gLAEC,2BACD,CAEA,gLAEC,4BACD,CAEA,yDACC,YACD,CAKC,uFAEC,wBAAyB,CACzB,eACD,CAIA,yJGhDD,2BAA2B,CDF3B,2CAA8B,CCC9B,YAAa,CHoDX,iBAAkB,CAClB,SAID",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-menu-bar-menu-max-width: 75vw;\n\t--ck-menu-bar-nested-menu-horizontal-offset: 5px;\n}\n\n.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {\n\tz-index: var(--ck-z-panel);\n\tmax-width: var(--ck-menu-bar-menu-max-width);\n\tposition: absolute;\n\n\t&.ck-menu-bar__menu__panel_position_ne,\n\t&.ck-menu-bar__menu__panel_position_nw {\n\t\tbottom: 100%;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_se,\n\t&.ck-menu-bar__menu__panel_position_sw {\n\t\ttop: 100%;\n\t\tbottom: auto;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_ne,\n\t&.ck-menu-bar__menu__panel_position_se {\n\t\tleft: 0px;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_nw,\n\t&.ck-menu-bar__menu__panel_position_sw {\n\t\tright: 0px;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_es,\n\t&.ck-menu-bar__menu__panel_position_en {\n\t\tleft: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) );\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_es {\n\t\ttop: 0px;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_en {\n\t\tbottom: 0px;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_ws,\n\t&.ck-menu-bar__menu__panel_position_wn {\n\t\tright: calc( 100% - var(--ck-menu-bar-nested-menu-horizontal-offset) );\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_ws {\n\t\ttop: 0px;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_wn {\n\t\tbottom: 0px;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n\n:root {\n\t--ck-menu-bar-menu-panel-max-width: 75vw;\n}\n\n.ck.ck-menu-bar__menu > .ck.ck-menu-bar__menu__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\theight: fit-content;\n\tmax-width: var(--ck-menu-bar-menu-panel-max-width);\n\n\t/* Corner border radius consistent with the button. */\n\t&.ck-menu-bar__menu__panel_position_es,\n\t&.ck-menu-bar__menu__panel_position_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_ws,\n\t&.ck-menu-bar__menu__panel_position_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_en,\n\t&.ck-menu-bar__menu__panel_position_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-menu-bar__menu__panel_position_wn,\n\t&.ck-menu-bar__menu__panel_position_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-menu-bar {\n\t& .ck-list-item-button {\n\t\t&:focus,\n\t\t&:active {\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\t}\n\n\t&.ck-menu-bar_focus-border-enabled .ck-list-item-button {\n\t\t&:focus,\n\t\t&:active {\n\t\t\t/* Fix truncated shadows due to rendering order. */\n\t\t\tposition: relative;\n\t\t\tz-index: 2;\n\n\t\t\t@mixin ck-focus-ring;\n\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n"],sourceRoot:""}]);const s=a},3710:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-panel)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-panel);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},991:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const s=a},5380:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-panel) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-panel) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},8298:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-panel)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-panel); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const s=a},2722:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-number,.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAoED,CAlEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA+CF,CA7CE,8CACC,wDAYD,CAVC,4HAEC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDrEH",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text,\n\t\t\t& .ck-input-number {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const s=a},8107:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const s=a},109:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:ck-spinner-rotate 1.5s linear infinite;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@media (prefers-reduced-motion:reduce){.ck.ck-spinner-container{animation-duration:3s}}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent;height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}@keyframes ck-spinner-rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,gDAAiD,CADjD,qCAAsC,CADtC,oCAOD,CAHC,uCALD,yBAME,qBAEF,CADC,CAGD,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCAA6B,CAH7B,qCAAsC,CADtC,oCAKD,CAEA,6BACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite ck-spinner-rotate linear;\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\tanimation-duration: 3s;\n\t}\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes ck-spinner-rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n"],sourceRoot:""}]);const s=a},1671:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const s=a},2710:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const s=a},9677:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{background:var(--ck-color-toolbar-border);height:var(--ck-icon-size);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCAIC,yCAA0C,CAH1C,0BAA2B,CAU3B,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\theight: var(--ck-icon-size);\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const s=a},9205:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck.ck-balloon-panel.ck-tooltip{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:calc(var(--ck-z-dialog) + 100);--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);box-shadow:none;padding:0 var(--ck-spacing-medium)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;max-width:200px;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAOA,gCCEC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBAAgB,CDFhB,sCAAyC,CEFzC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAkB/D,eAAgB,CAhBhB,kCFJD,CEMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CAErB,eAAgB,CADhB,wCAAyC,CAFzC,wBAID,CAMA,uCACC,YACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t@mixin ck-unselectable;\n\n\tz-index: calc( var(--ck-z-dialog) + 100 );\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t\tmax-width: 200px;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const s=a},7676:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck-hidden{display:none!important}:root{--ck-z-default:1;--ck-z-panel:calc(var(--ck-z-default) + 999);--ck-z-dialog:9999}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-panel) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-dialog-background:var(--ck-custom-background);--ck-color-dialog-form-header-border:var(--ck-custom-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{background:transparent;border:0;box-sizing:border-box;height:auto;margin:0;padding:0;position:static;text-decoration:none;transition:none;vertical-align:middle;width:auto;word-wrap:break-word}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,MACC,gBAAiB,CACjB,4CAA+C,CAC/C,kBACD,CCDA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,wDAAiE,CACjE,4DAAmE,CAInE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,CAIzD,yBAAgD,CChHhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJgHD,CI1GA,2EAYC,sBAAuB,CADvB,QAAS,CART,qBAAsB,CAEtB,WAAY,CAIZ,QAAS,CACT,SAAU,CAJV,eAAgB,CAOhB,oBAAqB,CAErB,eAAgB,CADhB,qBAAsB,CAVtB,UAAW,CAcX,oBACD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCxFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-panel: calc( var(--ck-z-default) + 999 );\n\t--ck-z-dialog: 9999;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-panel) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Dialog -------------------------------------------------------------------------------- */\n\n\t--ck-color-dialog-background: \t\t\t\t\t\t\t\tvar(--ck-custom-background);\n\t--ck-color-dialog-form-header-border: \t\t\t\t\t\tvar(--ck-custom-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------- */\n\n\t--ck-color-light-red:\t\t\t\t\t\t\t\t\t\thsl(0, 100%, 90%);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const s=a},695:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget{transition:none}}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{box-shadow:var(--ck-inner-shadow),0 0}@media (forced-colors:none){.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background)}}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused:not(td,th),.ck .ck-editor__nested-editable:focus:not(td,th){border:var(--ck-focus-ring);outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}@media (prefers-reduced-motion:reduce){.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{transition:none}}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-ui/theme/mixins/_mediacolors.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CChFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAcD,CAZC,uCAND,eAOE,eAWF,CAVC,CAEA,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAoBD,CAhBC,yGCrCA,qCDoDA,CE/CA,4BACC,yGFmCC,iEEjCD,CACD,CFwCC,+HG/CD,2BAA2B,CAD3B,YHkDC,CAKD,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAwCD,CA3BC,uCAzBD,4EA0BE,eA0BF,CAzBC,CAEA,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAeD,CAVC,kHACC,SAAU,CAGV,+DAKD,CAHC,uCAND,kHAOE,eAEF,CADC,CAKF,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_mediacolors.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\ttransition: none;\n\t}\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t\t@mixin ck-media-default-colors {\n\t\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t\t}\n\n\t\t/**\n\t\t * Focus border should not be applied to table cells because it overrides the default table cell border color.\n\t\t * In other words - in some scenarios, the part of the table cell border has focus color style, which is not expected behavior\n\t\t * because it should be the same as the table cell border color.\n\t\t */\n\t\t&:not(td, th) {\n\t\t\t@mixin ck-focus-ring;\n\t\t}\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\n\t\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-forced-colors {\n\t@media (forced-colors: active) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n\n@define-mixin ck-media-default-colors {\n\t@media (forced-colors: none) {\n\t\t& {\n\t\t\t@mixin-content;\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n"],sourceRoot:""}]);const s=a},4095:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const s=a},8508:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(9372),r=n.n(i),o=n(935),a=n.n(o)()(r());a.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button svg{transition:none}}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}@media (prefers-reduced-motion:reduce){.ck .ck-widget .ck-widget__type-around__button:hover,.ck .ck-widget .ck-widget__type-around__button:hover svg line,.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:none}}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAwED,CAhEC,uCATD,+CAUE,eA+DF,CA9DC,CAEA,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAwBD,CAlBC,uCAPD,mDAQE,eAiBF,CAhBC,CAEA,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DA4BD,CAtBE,kEACC,oDACD,CAEA,8DACC,wDACD,CAGD,uCAQE,qLACC,cACD,CAEF,CASD,uKA7FD,SAAU,CACV,mBA8FC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAxKD,SAAU,CACV,mBAyKC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAxNF,SAAU,CACV,mBAyNE,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\ttransition: none;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\ttransition: none;\n\t\t\t}\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media (prefers-reduced-motion: reduce) {\n\t\t\t\tanimation: none;\n\n\t\t\t\t& svg {\n\t\t\t\t\t& polyline {\n\t\t\t\t\t\tanimation: none;\n\t\t\t\t\t}\n\n\t\t\t\t\t& line {\n\t\t\t\t\t\tanimation: none;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const s=a},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);i&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},9372:t=>{"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return n(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(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}t.exports=function(t){var n=e(t,4),i=n[1],r=n[3];if(!r)return i;if("function"==typeof btoa){var o=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),s="/*# ".concat(a," */"),c=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[i].concat(c).concat([s]).join("\n")}return[i].join("\n")}},5465:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";function i(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var r=i.reduce((function(t,e){var n=e.match(/\n([\t ]+|(?!\s).)/g);return n?t.concat(n.map((function(t){var e,n;return null!==(n=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==n?n:0}))):t}),[]);if(r.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,r)+"}","g");i=i.map((function(t){return t.replace(o,"\n")}))}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return e.forEach((function(t,e){var n=a.match(/(?:^|\n)( *)$/),r=n?n[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map((function(t,e){return 0===e?t:""+r+t})).join("\n")),a+=o+i[e+1]})),a}var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var a,s={};a=function(){var t=1e3,e=6e4,n=36e5,i="millisecond",r="second",o="minute",a="hour",s="day",c="week",l="month",u="quarter",h="year",d="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},b=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},w={s:b,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+b(i,2,"0")+":"+b(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(i,l),o=n-r<0,a=e.clone().add(i+(o?-1:1),l);return+(-(i+(n-r)/(o?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:h,w:c,d:s,D:d,h:a,m:o,s:r,ms:i,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},k="en",v={};v[k]=m;var y=function(t){return t instanceof x},_=function t(e,n,i){var r;if(!e)return k;if("string"==typeof e){var o=e.toLowerCase();v[o]&&(r=o),n&&(v[o]=n,r=o);var a=e.split("-");if(!r&&a.length>1)return t(a[0])}else{var s=e.name;v[s]=e,r=s}return!i&&r&&(k=r),r||!i&&k},C=function(t,e){if(y(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new x(n)},A=w;A.l=_,A.i=y,A.w=function(t,e){return C(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var x=function(){function m(t){this.$L=_(t.locale,null,!0),this.parse(t)}var b=m.prototype;return b.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(g);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},b.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},b.$utils=function(){return A},b.isValid=function(){return!(this.$d.toString()===f)},b.isSame=function(t,e){var n=C(t);return this.startOf(e)<=n&&n<=this.endOf(e)},b.isAfter=function(t,e){return C(t)<this.startOf(e)},b.isBefore=function(t,e){return this.endOf(e)<C(t)},b.$g=function(t,e,n){return A.u(t)?this[e]:this.set(n,t)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(t,e){var n=this,i=!!A.u(e)||e,u=A.p(t),f=function(t,e){var r=A.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?r:r.endOf(s)},g=function(t,e){return A.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,m=this.$M,b=this.$D,w="set"+(this.$u?"UTC":"");switch(u){case h:return i?f(1,0):f(31,11);case l:return i?f(1,m):f(0,m+1);case c:var k=this.$locale().weekStart||0,v=(p<k?p+7:p)-k;return f(i?b-v:b+(6-v),m);case s:case d:return g(w+"Hours",0);case a:return g(w+"Minutes",1);case o:return g(w+"Seconds",2);case r:return g(w+"Milliseconds",3);default:return this.clone()}},b.endOf=function(t){return this.startOf(t,!1)},b.$set=function(t,e){var n,c=A.p(t),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[d]=u+"Date",n[l]=u+"Month",n[h]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[r]=u+"Seconds",n[i]=u+"Milliseconds",n)[c],g=c===s?this.$D+(e-this.$W):e;if(c===l||c===h){var p=this.clone().set(d,1);p.$d[f](g),p.init(),this.$d=p.set(d,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},b.set=function(t,e){return this.clone().$set(t,e)},b.get=function(t){return this[A.p(t)]()},b.add=function(i,u){var d,f=this;i=Number(i);var g=A.p(u),p=function(t){var e=C(f);return A.w(e.date(e.date()+Math.round(t*i)),f)};if(g===l)return this.set(l,this.$M+i);if(g===h)return this.set(h,this.$y+i);if(g===s)return p(1);if(g===c)return p(7);var m=(d={},d[o]=e,d[a]=n,d[r]=t,d)[g]||1,b=this.$d.getTime()+i*m;return A.w(b,this)},b.subtract=function(t,e){return this.add(-1*t,e)},b.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var i=t||"YYYY-MM-DDTHH:mm:ssZ",r=A.z(this),o=this.$H,a=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=function(t,n,r,o){return t&&(t[n]||t(e,i))||r[n].slice(0,o)},h=function(t){return A.s(o%12||12,t,"0")},d=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:A.s(s+1,2,"0"),MMM:u(n.monthsShort,s,l,3),MMMM:u(l,s),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,c,2),ddd:u(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:A.s(o,2,"0"),h:h(1),hh:h(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:A.s(a,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:r};return i.replace(p,(function(t,e){return e||g[t]||r.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(i,d,f){var g,p=A.p(d),m=C(i),b=(m.utcOffset()-this.utcOffset())*e,w=this-m,k=A.m(this,m);return k=(g={},g[h]=k/12,g[l]=k,g[u]=k/3,g[c]=(w-b)/6048e5,g[s]=(w-b)/864e5,g[a]=w/n,g[o]=w/e,g[r]=w/t,g)[p]||w,f?k:A.a(k)},b.daysInMonth=function(){return this.endOf(l).$D},b.$locale=function(){return v[this.$L]},b.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=_(t,e,!0);return i&&(n.$L=i),n},b.clone=function(){return A.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},m}(),E=x.prototype;return C.prototype=E,[["$ms",i],["$s",r],["$m",o],["$H",a],["$W",s],["$M",l],["$y",h],["$D",d]].forEach((function(t){E[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),C.extend=function(t,e){return t.$i||(t(e,x,C),t.$i=!0),C},C.locale=_,C.isDayjs=y,C.unix=function(t){return C(1e3*t)},C.en=v[k],C.Ls=v,C.p={},C},{get exports(){return s},set exports(t){s=t}}.exports=a();const l=s,u={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},h={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},d=function(t="fatal"){let e=u.fatal;"string"==typeof t?(t=t.toLowerCase())in u&&(e=u[t]):"number"==typeof t&&(e=t),h.trace=()=>{},h.debug=()=>{},h.info=()=>{},h.warn=()=>{},h.error=()=>{},h.fatal=()=>{},e<=u.fatal&&(h.fatal=console.error?console.error.bind(console,f("FATAL"),"color: orange"):console.log.bind(console,"",f("FATAL"))),e<=u.error&&(h.error=console.error?console.error.bind(console,f("ERROR"),"color: orange"):console.log.bind(console,"",f("ERROR"))),e<=u.warn&&(h.warn=console.warn?console.warn.bind(console,f("WARN"),"color: orange"):console.log.bind(console,"",f("WARN"))),e<=u.info&&(h.info=console.info?console.info.bind(console,f("INFO"),"color: lightblue"):console.log.bind(console,"",f("INFO"))),e<=u.debug&&(h.debug=console.debug?console.debug.bind(console,f("DEBUG"),"color: lightgreen"):console.log.bind(console,"",f("DEBUG"))),e<=u.trace&&(h.trace=console.debug?console.debug.bind(console,f("TRACE"),"color: lightgreen"):console.log.bind(console,"",f("TRACE")))},f=t=>`%c${l().format("ss.SSS")} : ${t} : `;var g={};Object.defineProperty(g,"__esModule",{value:!0});var p=g.sanitizeUrl=void 0,m=/^([^\w]*)(javascript|data|vbscript)/im,b=/&#(\w+)(^\w|;)?/g,w=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,k=/^([^:]+):/gm,v=[".","/"];function y(t){return v.indexOf(t[0])>-1}function _(t){return t.replace(b,(function(t,e){return String.fromCharCode(e)}))}function C(t){var e=_(t||"").replace(w,"").trim();if(!e)return"about:blank";if(y(e))return e;var n=e.match(k);if(!n)return e;var i=n[0];return m.test(i)?"about:blank":e}function A(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function x(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function E(t){let e,n,i;function r(t,i,r=0,o=t.length){if(r<o){if(0!==e(i,i))return o;do{const e=r+o>>>1;n(t[e],i)<0?r=e+1:o=e}while(r<o)}return r}function o(t,i,r=0,o=t.length){if(r<o){if(0!==e(i,i))return o;do{const e=r+o>>>1;n(t[e],i)<=0?r=e+1:o=e}while(r<o)}return r}function a(t,e,n=0,o=t.length){const a=r(t,e,n,o-1);return a>n&&i(t[a-1],e)>-i(t[a],e)?a-1:a}return 2!==t.length?(e=A,n=(e,n)=>A(t(e),n),i=(e,n)=>t(e)-n):(e=t===A||t===x?t:T,n=t,i=t),{left:r,center:a,right:o}}function T(){return 0}function S(t){return null===t?NaN:+t}p=g.sanitizeUrl=C;const D=E(A).right;E(S).center;const I=D;class B extends Map{constructor(t,e=O){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(M(this,t))}has(t){return super.has(M(this,t))}set(t,e){return super.set(P(this,t),e)}delete(t){return super.delete(L(this,t))}}function M({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function P({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function L({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function O(t){return null!==t&&"object"==typeof t?t.valueOf():t}var N=Math.sqrt(50),R=Math.sqrt(10),F=Math.sqrt(2);function j(t,e,n){var i,r,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=$(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),i=Math.round(e/a);for(n*a<t&&++n,i*a>e&&--i,o=new Array(r=i-n+1);++s<r;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(t*a),i=Math.round(e*a);for(n/a<t&&++n,i/a>e&&--i,o=new Array(r=i-n+1);++s<r;)o[s]=(n+s)/a}return i&&o.reverse(),o}function $(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=N?10:o>=R?5:o>=F?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=N?10:o>=R?5:o>=F?2:1)}function z(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=N?r*=10:o>=R?r*=5:o>=F&&(r*=2),e<t?-r:r}function V(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function H(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let i=-1;for(let r of t)null!=(r=e(r,++i,t))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function q(t){return t}var U=1,G=2,W=3,K=4,Y=1e-6;function X(t){return"translate("+t+",0)"}function Z(t){return"translate(0,"+t+")"}function Q(t){return e=>+t(e)}function J(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function tt(){return!this.__axis}function et(t,e){var n=[],i=null,r=null,o=6,a=6,s=3,c="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===U||t===K?-1:1,u=t===K||t===G?"x":"y",h=t===U||t===W?X:Z;function d(d){var f=null==i?e.ticks?e.ticks.apply(e,n):e.domain():i,g=null==r?e.tickFormat?e.tickFormat.apply(e,n):q:r,p=Math.max(o,0)+s,m=e.range(),b=+m[0]+c,w=+m[m.length-1]+c,k=(e.bandwidth?J:Q)(e.copy(),c),v=d.selection?d.selection():d,y=v.selectAll(".domain").data([null]),_=v.selectAll(".tick").data(f,e).order(),C=_.exit(),A=_.enter().append("g").attr("class","tick"),x=_.select("line"),E=_.select("text");y=y.merge(y.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(A),x=x.merge(A.append("line").attr("stroke","currentColor").attr(u+"2",l*o)),E=E.merge(A.append("text").attr("fill","currentColor").attr(u,l*p).attr("dy",t===U?"0em":t===W?"0.71em":"0.32em")),d!==v&&(y=y.transition(d),_=_.transition(d),x=x.transition(d),E=E.transition(d),C=C.transition(d).attr("opacity",Y).attr("transform",(function(t){return isFinite(t=k(t))?h(t+c):this.getAttribute("transform")})),A.attr("opacity",Y).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:k(t))+c)}))),C.remove(),y.attr("d",t===K||t===G?a?"M"+l*a+","+b+"H"+c+"V"+w+"H"+l*a:"M"+c+","+b+"V"+w:a?"M"+b+","+l*a+"V"+c+"H"+w+"V"+l*a:"M"+b+","+c+"H"+w),_.attr("opacity",1).attr("transform",(function(t){return h(k(t)+c)})),x.attr(u+"2",l*o),E.attr(u,l*p).text(g),v.filter(tt).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===G?"start":t===K?"end":"middle"),v.each((function(){this.__axis=k}))}return d.scale=function(t){return arguments.length?(e=t,d):e},d.ticks=function(){return n=Array.from(arguments),d},d.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),d):n.slice()},d.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),d):i&&i.slice()},d.tickFormat=function(t){return arguments.length?(r=t,d):r},d.tickSize=function(t){return arguments.length?(o=a=+t,d):o},d.tickSizeInner=function(t){return arguments.length?(o=+t,d):o},d.tickSizeOuter=function(t){return arguments.length?(a=+t,d):a},d.tickPadding=function(t){return arguments.length?(s=+t,d):s},d.offset=function(t){return arguments.length?(c=+t,d):c},d}function nt(t){return et(U,t)}function it(t){return et(W,t)}var rt={value:()=>{}};function ot(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new at(i)}function at(t){this._=t}function st(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");if(i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function ct(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function lt(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=rt,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}at.prototype=ot.prototype={constructor:at,on:function(t,e){var n,i=this._,r=st(t+"",i),o=-1,a=r.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<a;)if(n=(t=r[o]).type)i[n]=lt(i[n],t.name,e);else if(null==e)for(n in i)i[n]=lt(i[n],t.name,null);return this}for(;++o<a;)if((n=(t=r[o]).type)&&(n=ct(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new at(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var ut="http://www.w3.org/1999/xhtml";const ht={svg:"http://www.w3.org/2000/svg",xhtml:ut,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function dt(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ht.hasOwnProperty(e)?{space:ht[e],local:t}:t}function ft(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ut&&e.documentElement.namespaceURI===ut?e.createElement(t):e.createElementNS(n,t)}}function gt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function pt(t){var e=dt(t);return(e.local?gt:ft)(e)}function mt(){}function bt(t){return null==t?mt:function(){return this.querySelector(t)}}function wt(t){"function"!=typeof t&&(t=bt(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a,s=e[r],c=s.length,l=i[r]=new Array(c),u=0;u<c;++u)(o=s[u])&&(a=t.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),l[u]=a);return new sn(i,this._parents)}function kt(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function vt(){return[]}function yt(t){return null==t?vt:function(){return this.querySelectorAll(t)}}function _t(t){return function(){return kt(t.apply(this,arguments))}}function Ct(t){t="function"==typeof t?_t(t):yt(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var a,s=e[o],c=s.length,l=0;l<c;++l)(a=s[l])&&(i.push(t.call(a,a.__data__,l,s)),r.push(a));return new sn(i,r)}function At(t){return function(){return this.matches(t)}}function xt(t){return function(e){return e.matches(t)}}var Et=Array.prototype.find;function Tt(t){return function(){return Et.call(this.children,t)}}function St(){return this.firstElementChild}function Dt(t){return this.select(null==t?St:Tt("function"==typeof t?t:xt(t)))}var It=Array.prototype.filter;function Bt(){return Array.from(this.children)}function Mt(t){return function(){return It.call(this.children,t)}}function Pt(t){return this.selectAll(null==t?Bt:Mt("function"==typeof t?t:xt(t)))}function Lt(t){"function"!=typeof t&&(t=At(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],s=a.length,c=i[r]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&c.push(o);return new sn(i,this._parents)}function Ot(t){return new Array(t.length)}function Nt(){return new sn(this._enter||this._groups.map(Ot),this._parents)}function Rt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function Ft(t){return function(){return t}}function jt(t,e,n,i,r,o){for(var a,s=0,c=e.length,l=o.length;s<l;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new Rt(t,o[s]);for(;s<c;++s)(a=e[s])&&(r[s]=a)}function $t(t,e,n,i,r,o,a){var s,c,l,u=new Map,h=e.length,d=o.length,f=new Array(h);for(s=0;s<h;++s)(c=e[s])&&(f[s]=l=a.call(c,c.__data__,s,e)+"",u.has(l)?r[s]=c:u.set(l,c));for(s=0;s<d;++s)l=a.call(t,o[s],s,o)+"",(c=u.get(l))?(i[s]=c,c.__data__=o[s],u.delete(l)):n[s]=new Rt(t,o[s]);for(s=0;s<h;++s)(c=e[s])&&u.get(f[s])===c&&(r[s]=c)}function zt(t){return t.__data__}function Vt(t,e){if(!arguments.length)return Array.from(this,zt);var n=e?$t:jt,i=this._parents,r=this._groups;"function"!=typeof t&&(t=Ft(t));for(var o=r.length,a=new Array(o),s=new Array(o),c=new Array(o),l=0;l<o;++l){var u=i[l],h=r[l],d=h.length,f=Ht(t.call(u,u&&u.__data__,l,i)),g=f.length,p=s[l]=new Array(g),m=a[l]=new Array(g);n(u,h,p,m,c[l]=new Array(d),f,e);for(var b,w,k=0,v=0;k<g;++k)if(b=p[k]){for(k>=v&&(v=k+1);!(w=m[v])&&++v<g;);b._next=w||null}}return(a=new sn(a,i))._enter=s,a._exit=c,a}function Ht(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function qt(){return new sn(this._exit||this._groups.map(Ot),this._parents)}function Ut(t,e,n){var i=this.enter(),r=this,o=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(r=e(r))&&(r=r.selection()),null==n?o.remove():n(o),i&&r?i.merge(r).order():r}function Gt(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,a=Math.min(r,o),s=new Array(r),c=0;c<a;++c)for(var l,u=n[c],h=i[c],d=u.length,f=s[c]=new Array(d),g=0;g<d;++g)(l=u[g]||h[g])&&(f[g]=l);for(;c<r;++c)s[c]=n[c];return new sn(s,this._parents)}function Wt(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,a=r[o];--o>=0;)(i=r[o])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this}function Kt(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Yt);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var a,s=n[o],c=s.length,l=r[o]=new Array(c),u=0;u<c;++u)(a=s[u])&&(l[u]=a);l.sort(e)}return new sn(r,this._parents).order()}function Yt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Xt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Zt(){return Array.from(this)}function Qt(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var a=i[r];if(a)return a}return null}function Jt(){let t=0;for(const e of this)++t;return t}function te(){return!this.node()}function ee(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],a=0,s=o.length;a<s;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this}function ne(t){return function(){this.removeAttribute(t)}}function ie(t){return function(){this.removeAttributeNS(t.space,t.local)}}function re(t,e){return function(){this.setAttribute(t,e)}}function oe(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ae(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function se(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ce(t,e){var n=dt(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?ie:ne:"function"==typeof e?n.local?se:ae:n.local?oe:re)(n,e))}function le(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function ue(t){return function(){this.style.removeProperty(t)}}function he(t,e,n){return function(){this.style.setProperty(t,e,n)}}function de(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function fe(t,e,n){return arguments.length>1?this.each((null==e?ue:"function"==typeof e?de:he)(t,e,null==n?"":n)):ge(this.node(),t)}function ge(t,e){return t.style.getPropertyValue(e)||le(t).getComputedStyle(t,null).getPropertyValue(e)}function pe(t){return function(){delete this[t]}}function me(t,e){return function(){this[t]=e}}function be(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function we(t,e){return arguments.length>1?this.each((null==e?pe:"function"==typeof e?be:me)(t,e)):this.node()[t]}function ke(t){return t.trim().split(/^|\s+/)}function ve(t){return t.classList||new ye(t)}function ye(t){this._node=t,this._names=ke(t.getAttribute("class")||"")}function _e(t,e){for(var n=ve(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Ce(t,e){for(var n=ve(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Ae(t){return function(){_e(this,t)}}function xe(t){return function(){Ce(this,t)}}function Ee(t,e){return function(){(e.apply(this,arguments)?_e:Ce)(this,t)}}function Te(t,e){var n=ke(t+"");if(arguments.length<2){for(var i=ve(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?Ee:e?Ae:xe)(n,e))}function Se(){this.textContent=""}function De(t){return function(){this.textContent=t}}function Ie(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Be(t){return arguments.length?this.each(null==t?Se:("function"==typeof t?Ie:De)(t)):this.node().textContent}function Me(){this.innerHTML=""}function Pe(t){return function(){this.innerHTML=t}}function Le(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Oe(t){return arguments.length?this.each(null==t?Me:("function"==typeof t?Le:Pe)(t)):this.node().innerHTML}function Ne(){this.nextSibling&&this.parentNode.appendChild(this)}function Re(){return this.each(Ne)}function Fe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function je(){return this.each(Fe)}function $e(t){var e="function"==typeof t?t:pt(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))}function ze(){return null}function Ve(t,e){var n="function"==typeof t?t:pt(t),i=null==e?ze:"function"==typeof e?e:bt(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))}function He(){var t=this.parentNode;t&&t.removeChild(this)}function qe(){return this.each(He)}function Ue(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ge(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function We(t){return this.select(t?Ge:Ue)}function Ke(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Ye(t){return function(e){t.call(this,e,this.__data__)}}function Xe(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ze(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function Qe(t,e,n){return function(){var i,r=this.__on,o=Ye(e);if(r)for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e);this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function Je(t,e,n){var i,r,o=Xe(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Qe:Ze,i=0;i<a;++i)this.each(s(o[i],e,n));return this}var s=this.node().__on;if(s)for(var c,l=0,u=s.length;l<u;++l)for(i=0,c=s[l];i<a;++i)if((r=o[i]).type===c.type&&r.name===c.name)return c.value}function tn(t,e,n){var i=le(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function en(t,e){return function(){return tn(this,t,e)}}function nn(t,e){return function(){return tn(this,t,e.apply(this,arguments))}}function rn(t,e){return this.each(("function"==typeof e?nn:en)(t,e))}function*on(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i,r=t[e],o=0,a=r.length;o<a;++o)(i=r[o])&&(yield i)}Rt.prototype={constructor:Rt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},ye.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var an=[null];function sn(t,e){this._groups=t,this._parents=e}function cn(){return new sn([[document.documentElement]],an)}function ln(){return this}function un(t){return"string"==typeof t?new sn([[document.querySelector(t)]],[document.documentElement]):new sn([[t]],an)}function hn(t){return"string"==typeof t?new sn([document.querySelectorAll(t)],[document.documentElement]):new sn([kt(t)],an)}function dn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function fn(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function gn(){}sn.prototype=cn.prototype={constructor:sn,select:wt,selectAll:Ct,selectChild:Dt,selectChildren:Pt,filter:Lt,data:Vt,enter:Nt,exit:qt,join:Ut,merge:Gt,selection:ln,order:Wt,sort:Kt,call:Xt,nodes:Zt,node:Qt,size:Jt,empty:te,each:ee,attr:ce,style:fe,property:we,classed:Te,text:Be,html:Oe,raise:Re,lower:je,append:$e,insert:Ve,remove:qe,clone:We,datum:Ke,on:Je,dispatch:rn,[Symbol.iterator]:on};var pn=.7,mn=1/pn,bn="\\s*([+-]?\\d+)\\s*",wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",kn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vn=/^#([0-9a-f]{3,8})$/,yn=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),_n=new RegExp(`^rgb\\(${kn},${kn},${kn}\\)$`),Cn=new RegExp(`^rgba\\(${bn},${bn},${bn},${wn}\\)$`),An=new RegExp(`^rgba\\(${kn},${kn},${kn},${wn}\\)$`),xn=new RegExp(`^hsl\\(${wn},${kn},${kn}\\)$`),En=new RegExp(`^hsla\\(${wn},${kn},${kn},${wn}\\)$`),Tn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Sn(){return this.rgb().formatHex()}function Dn(){return this.rgb().formatHex8()}function In(){return Un(this).formatHsl()}function Bn(){return this.rgb().formatRgb()}function Mn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=vn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Pn(e):3===n?new Rn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ln(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ln(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=yn.exec(t))?new Rn(e[1],e[2],e[3],1):(e=_n.exec(t))?new Rn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Cn.exec(t))?Ln(e[1],e[2],e[3],e[4]):(e=An.exec(t))?Ln(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=xn.exec(t))?qn(e[1],e[2]/100,e[3]/100,1):(e=En.exec(t))?qn(e[1],e[2]/100,e[3]/100,e[4]):Tn.hasOwnProperty(t)?Pn(Tn[t]):"transparent"===t?new Rn(NaN,NaN,NaN,0):null}function Pn(t){return new Rn(t>>16&255,t>>8&255,255&t,1)}function Ln(t,e,n,i){return i<=0&&(t=e=n=NaN),new Rn(t,e,n,i)}function On(t){return t instanceof gn||(t=Mn(t)),t?new Rn((t=t.rgb()).r,t.g,t.b,t.opacity):new Rn}function Nn(t,e,n,i){return 1===arguments.length?On(t):new Rn(t,e,n,null==i?1:i)}function Rn(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Fn(){return`#${Hn(this.r)}${Hn(this.g)}${Hn(this.b)}`}function jn(){return`#${Hn(this.r)}${Hn(this.g)}${Hn(this.b)}${Hn(255*(isNaN(this.opacity)?1:this.opacity))}`}function $n(){const t=zn(this.opacity);return`${1===t?"rgb(":"rgba("}${Vn(this.r)}, ${Vn(this.g)}, ${Vn(this.b)}${1===t?")":`, ${t})`}`}function zn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Vn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Hn(t){return((t=Vn(t))<16?"0":"")+t.toString(16)}function qn(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Wn(t,e,n,i)}function Un(t){if(t instanceof Wn)return new Wn(t.h,t.s,t.l,t.opacity);if(t instanceof gn||(t=Mn(t)),!t)return new Wn;if(t instanceof Wn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,c=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=c<.5?o+r:2-o-r,a*=60):s=c>0&&c<1?0:a,new Wn(a,s,c,t.opacity)}function Gn(t,e,n,i){return 1===arguments.length?Un(t):new Wn(t,e,n,null==i?1:i)}function Wn(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Kn(t){return(t=(t||0)%360)<0?t+360:t}function Yn(t){return Math.max(0,Math.min(1,t||0))}function Xn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}dn(gn,Mn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Sn,formatHex:Sn,formatHex8:Dn,formatHsl:In,formatRgb:Bn,toString:Bn}),dn(Rn,Nn,fn(gn,{brighter(t){return t=null==t?mn:Math.pow(mn,t),new Rn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?pn:Math.pow(pn,t),new Rn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Rn(Vn(this.r),Vn(this.g),Vn(this.b),zn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fn,formatHex:Fn,formatHex8:jn,formatRgb:$n,toString:$n})),dn(Wn,Gn,fn(gn,{brighter(t){return t=null==t?mn:Math.pow(mn,t),new Wn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?pn:Math.pow(pn,t),new Wn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Rn(Xn(t>=240?t-240:t+120,r,i),Xn(t,r,i),Xn(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new Wn(Kn(this.h),Yn(this.s),Yn(this.l),zn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=zn(this.opacity);return`${1===t?"hsl(":"hsla("}${Kn(this.h)}, ${100*Yn(this.s)}%, ${100*Yn(this.l)}%${1===t?")":`, ${t})`}`}}));const Zn=Math.PI/180,Qn=180/Math.PI,Jn=18,ti=.96422,ei=1,ni=.82521,ii=4/29,ri=6/29,oi=3*ri*ri,ai=ri*ri*ri;function si(t){if(t instanceof li)return new li(t.l,t.a,t.b,t.opacity);if(t instanceof mi)return bi(t);t instanceof Rn||(t=On(t));var e,n,i=fi(t.r),r=fi(t.g),o=fi(t.b),a=ui((.2225045*i+.7168786*r+.0606169*o)/ei);return i===r&&r===o?e=n=a:(e=ui((.4360747*i+.3850649*r+.1430804*o)/ti),n=ui((.0139322*i+.0971045*r+.7141733*o)/ni)),new li(116*a-16,500*(e-a),200*(a-n),t.opacity)}function ci(t,e,n,i){return 1===arguments.length?si(t):new li(t,e,n,null==i?1:i)}function li(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function ui(t){return t>ai?Math.pow(t,1/3):t/oi+ii}function hi(t){return t>ri?t*t*t:oi*(t-ii)}function di(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function fi(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function gi(t){if(t instanceof mi)return new mi(t.h,t.c,t.l,t.opacity);if(t instanceof li||(t=si(t)),0===t.a&&0===t.b)return new mi(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Qn;return new mi(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function pi(t,e,n,i){return 1===arguments.length?gi(t):new mi(t,e,n,null==i?1:i)}function mi(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function bi(t){if(isNaN(t.h))return new li(t.l,0,0,t.opacity);var e=t.h*Zn;return new li(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}dn(li,ci,fn(gn,{brighter(t){return new li(this.l+Jn*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new li(this.l-Jn*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Rn(di(3.1338561*(e=ti*hi(e))-1.6168667*(t=ei*hi(t))-.4906146*(n=ni*hi(n))),di(-.9787684*e+1.9161415*t+.033454*n),di(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),dn(mi,pi,fn(gn,{brighter(t){return new mi(this.h,this.c,this.l+Jn*(null==t?1:t),this.opacity)},darker(t){return new mi(this.h,this.c,this.l-Jn*(null==t?1:t),this.opacity)},rgb(){return bi(this).rgb()}}));const wi=t=>()=>t;function ki(t,e){return function(n){return t+n*e}}function vi(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function yi(t,e){var n=e-t;return n?ki(t,n>180||n<-180?n-360*Math.round(n/360):n):wi(isNaN(t)?e:t)}function _i(t){return 1==(t=+t)?Ci:function(e,n){return n-e?vi(e,n,t):wi(isNaN(e)?n:e)}}function Ci(t,e){var n=e-t;return n?ki(t,n):wi(isNaN(t)?e:t)}const Ai=function t(e){var n=_i(e);function i(t,e){var i=n((t=Nn(t)).r,(e=Nn(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=Ci(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function xi(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}}function Ei(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ti(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=Ni(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<r;++n)a[n]=o[n](t);return a}}function Si(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Di(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ii(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Ni(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var Bi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mi=new RegExp(Bi.source,"g");function Pi(t){return function(){return t}}function Li(t){return function(e){return t(e)+""}}function Oi(t,e){var n,i,r,o=Bi.lastIndex=Mi.lastIndex=0,a=-1,s=[],c=[];for(t+="",e+="";(n=Bi.exec(t))&&(i=Mi.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Di(n,i)})),o=Mi.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?c[0]?Li(c[0].x):Pi(e):(e=c.length,function(t){for(var n,i=0;i<e;++i)s[(n=c[i]).i]=n.x(t);return s.join("")})}function Ni(t,e){var n,i=typeof e;return null==e||"boolean"===i?wi(e):("number"===i?Di:"string"===i?(n=Mn(e))?(e=n,Ai):Oi:e instanceof Mn?Ai:e instanceof Date?Si:Ei(e)?xi:Array.isArray(e)?Ti:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ii:Di)(t,e)}function Ri(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Fi,ji=180/Math.PI,$i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zi(t,e,n,i,r,o){var a,s,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,c/=s),t*i<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*ji,skewX:Math.atan(c)*ji,scaleX:a,scaleY:s}}function Vi(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?$i:zi(e.a,e.b,e.c,e.d,e.e,e.f)}function Hi(t){return null==t?$i:(Fi||(Fi=document.createElementNS("http://www.w3.org/2000/svg","g")),Fi.setAttribute("transform",t),(t=Fi.transform.baseVal.consolidate())?zi((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):$i)}function qi(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}function o(t,i,r,o,a,s){if(t!==r||i!==o){var c=a.push("translate(",null,e,null,n);s.push({i:c-4,x:Di(t,r)},{i:c-2,x:Di(i,o)})}else(r||o)&&a.push("translate("+r+e+o+n)}function a(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Di(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}function s(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Di(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}function c(t,e,n,i,o,a){if(t!==n||e!==i){var s=o.push(r(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Di(t,n)},{i:s-2,x:Di(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}return function(e,n){var i=[],r=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,i,r),a(e.rotate,n.rotate,i,r),s(e.skewX,n.skewX,i,r),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,i,r),e=n=null,function(t){for(var e,n=-1,o=r.length;++n<o;)i[(e=r[n]).i]=e.x(t);return i.join("")}}}var Ui=qi(Vi,"px, ","px)","deg)"),Gi=qi(Hi,", ",")",")");function Wi(t){return function(e,n){var i=t((e=pi(e)).h,(n=pi(n)).h),r=Ci(e.c,n.c),o=Ci(e.l,n.l),a=Ci(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=r(t),e.l=o(t),e.opacity=a(t),e+""}}}const Ki=Wi(yi);var Yi,Xi,Zi=0,Qi=0,Ji=0,tr=1e3,er=0,nr=0,ir=0,rr="object"==typeof performance&&performance.now?performance:Date,or="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ar(){return nr||(or(sr),nr=rr.now()+ir)}function sr(){nr=0}function cr(){this._call=this._time=this._next=null}function lr(t,e,n){var i=new cr;return i.restart(t,e,n),i}function ur(){ar(),++Zi;for(var t,e=Yi;e;)(t=nr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Zi}function hr(){nr=(er=rr.now())+ir,Zi=Qi=0;try{ur()}finally{Zi=0,fr(),nr=0}}function dr(){var t=rr.now(),e=t-er;e>tr&&(ir-=e,er=t)}function fr(){for(var t,e,n=Yi,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Yi=e);Xi=t,gr(i)}function gr(t){Zi||(Qi&&(Qi=clearTimeout(Qi)),t-nr>24?(t<1/0&&(Qi=setTimeout(hr,t-rr.now()-ir)),Ji&&(Ji=clearInterval(Ji))):(Ji||(er=rr.now(),Ji=setInterval(dr,tr)),Zi=1,or(hr)))}function pr(t,e,n){var i=new cr;return e=null==e?0:+e,i.restart((n=>{i.stop(),t(n+e)}),e,n),i}cr.prototype=lr.prototype={constructor:cr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?ar():+n)+(null==e?0:+e),this._next||Xi===this||(Xi?Xi._next=this:Yi=this,Xi=this),this._call=t,this._time=n,gr()},stop:function(){this._call&&(this._call=null,this._time=1/0,gr())}};var mr=ot("start","end","cancel","interrupt"),br=[],wr=0,kr=1,vr=2,yr=3,_r=4,Cr=5,Ar=6;function xr(t,e,n,i,r,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};Dr(t,n,{name:e,index:i,group:r,on:mr,tween:br,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:wr})}function Er(t,e){var n=Sr(t,e);if(n.state>wr)throw new Error("too late; already scheduled");return n}function Tr(t,e){var n=Sr(t,e);if(n.state>yr)throw new Error("too late; already running");return n}function Sr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Dr(t,e,n){var i,r=t.__transition;function o(t){n.state=kr,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,u,h,d;if(n.state!==kr)return c();for(l in r)if((d=r[l]).name===n.name){if(d.state===yr)return pr(a);d.state===_r?(d.state=Ar,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[l]):+l<e&&(d.state=Ar,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete r[l])}if(pr((function(){n.state===yr&&(n.state=_r,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=vr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===vr){for(n.state=yr,i=new Array(h=n.tween.length),l=0,u=-1;l<h;++l)(d=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[++u]=d);i.length=u+1}}function s(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(c),n.state=Cr,1),o=-1,a=i.length;++o<a;)i[o].call(t,r);n.state===Cr&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){for(var i in n.state=Ar,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=lr(o,0,n.time)}function Ir(t,e){var n,i,r,o=t.__transition,a=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>vr&&n.state<Cr,n.state=Ar,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):a=!1;a&&delete t.__transition}}function Br(t){return this.each((function(){Ir(this,t)}))}function Mr(t,e){var n,i;return function(){var r=Tr(this,t),o=r.tween;if(o!==n)for(var a=0,s=(i=n=o).length;a<s;++a)if(i[a].name===e){(i=i.slice()).splice(a,1);break}r.tween=i}}function Pr(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=Tr(this,t),a=o.tween;if(a!==i){r=(i=a).slice();for(var s={name:e,value:n},c=0,l=r.length;c<l;++c)if(r[c].name===e){r[c]=s;break}c===l&&r.push(s)}o.tween=r}}function Lr(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=Sr(this.node(),n).tween,o=0,a=r.length;o<a;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?Mr:Pr)(n,t,e))}function Or(t,e,n){var i=t._id;return t.each((function(){var t=Tr(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Sr(t,i).value[e]}}function Nr(t,e){var n;return("number"==typeof e?Di:e instanceof Mn?Ai:(n=Mn(e))?(e=n,Ai):Oi)(t,e)}function Rr(t){return function(){this.removeAttribute(t)}}function Fr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function jr(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===i?r:r=e(i=a,n)}}function $r(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===i?r:r=e(i=a,n)}}function zr(t,e,n){var i,r,o;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttribute(t))===(s=c+"")?null:a===i&&s===r?o:(r=s,o=e(i=a,c));this.removeAttribute(t)}}function Vr(t,e,n){var i,r,o;return function(){var a,s,c=n(this);if(null!=c)return(a=this.getAttributeNS(t.space,t.local))===(s=c+"")?null:a===i&&s===r?o:(r=s,o=e(i=a,c));this.removeAttributeNS(t.space,t.local)}}function Hr(t,e){var n=dt(t),i="transform"===n?Gi:Nr;return this.attrTween(t,"function"==typeof e?(n.local?Vr:zr)(n,i,Or(this,"attr."+t,e)):null==e?(n.local?Fr:Rr)(n):(n.local?$r:jr)(n,i,e))}function qr(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ur(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Gr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&Ur(t,r)),n}return r._value=e,r}function Wr(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&qr(t,r)),n}return r._value=e,r}function Kr(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=dt(t);return this.tween(n,(i.local?Gr:Wr)(i,e))}function Yr(t,e){return function(){Er(this,t).delay=+e.apply(this,arguments)}}function Xr(t,e){return e=+e,function(){Er(this,t).delay=e}}function Zr(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Yr:Xr)(e,t)):Sr(this.node(),e).delay}function Qr(t,e){return function(){Tr(this,t).duration=+e.apply(this,arguments)}}function Jr(t,e){return e=+e,function(){Tr(this,t).duration=e}}function to(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Qr:Jr)(e,t)):Sr(this.node(),e).duration}function eo(t,e){if("function"!=typeof e)throw new Error;return function(){Tr(this,t).ease=e}}function no(t){var e=this._id;return arguments.length?this.each(eo(e,t)):Sr(this.node(),e).ease}function io(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Tr(this,t).ease=n}}function ro(t){if("function"!=typeof t)throw new Error;return this.each(io(this._id,t))}function oo(t){"function"!=typeof t&&(t=At(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],s=a.length,c=i[r]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&c.push(o);return new Oo(i,this._parents,this._name,this._id)}function ao(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),a=new Array(i),s=0;s<o;++s)for(var c,l=e[s],u=n[s],h=l.length,d=a[s]=new Array(h),f=0;f<h;++f)(c=l[f]||u[f])&&(d[f]=c);for(;s<i;++s)a[s]=e[s];return new Oo(a,this._parents,this._name,this._id)}function so(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}function co(t,e,n){var i,r,o=so(e)?Er:Tr;return function(){var a=o(this,t),s=a.on;s!==i&&(r=(i=s).copy()).on(e,n),a.on=r}}function lo(t,e){var n=this._id;return arguments.length<2?Sr(this.node(),n).on.on(t):this.each(co(n,t,e))}function uo(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ho(){return this.on("end.remove",uo(this._id))}function fo(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=bt(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var s,c,l=i[a],u=l.length,h=o[a]=new Array(u),d=0;d<u;++d)(s=l[d])&&(c=t.call(s,s.__data__,d,l))&&("__data__"in s&&(c.__data__=s.__data__),h[d]=c,xr(h[d],e,n,d,h,Sr(s,n)));return new Oo(o,this._parents,e,n)}function go(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=yt(t));for(var i=this._groups,r=i.length,o=[],a=[],s=0;s<r;++s)for(var c,l=i[s],u=l.length,h=0;h<u;++h)if(c=l[h]){for(var d,f=t.call(c,c.__data__,h,l),g=Sr(c,n),p=0,m=f.length;p<m;++p)(d=f[p])&&xr(d,e,n,p,f,g);o.push(f),a.push(c)}return new Oo(o,a,e,n)}var po=cn.prototype.constructor;function mo(){return new po(this._groups,this._parents)}function bo(t,e){var n,i,r;return function(){var o=ge(this,t),a=(this.style.removeProperty(t),ge(this,t));return o===a?null:o===n&&a===i?r:r=e(n=o,i=a)}}function wo(t){return function(){this.style.removeProperty(t)}}function ko(t,e,n){var i,r,o=n+"";return function(){var a=ge(this,t);return a===o?null:a===i?r:r=e(i=a,n)}}function vo(t,e,n){var i,r,o;return function(){var a=ge(this,t),s=n(this),c=s+"";return null==s&&(this.style.removeProperty(t),c=s=ge(this,t)),a===c?null:a===i&&c===r?o:(r=c,o=e(i=a,s))}}function yo(t,e){var n,i,r,o,a="style."+e,s="end."+a;return function(){var c=Tr(this,t),l=c.on,u=null==c.value[a]?o||(o=wo(e)):void 0;l===n&&r===u||(i=(n=l).copy()).on(s,r=u),c.on=i}}function _o(t,e,n){var i="transform"==(t+="")?Ui:Nr;return null==e?this.styleTween(t,bo(t,i)).on("end.style."+t,wo(t)):"function"==typeof e?this.styleTween(t,vo(t,i,Or(this,"style."+t,e))).each(yo(this._id,t)):this.styleTween(t,ko(t,i,e),n).on("end.style."+t,null)}function Co(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Ao(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&Co(t,o,n)),i}return o._value=e,o}function xo(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,Ao(t,e,null==n?"":n))}function Eo(t){return function(){this.textContent=t}}function To(t){return function(){var e=t(this);this.textContent=null==e?"":e}}function So(t){return this.tween("text","function"==typeof t?To(Or(this,"text",t)):Eo(null==t?"":t+""))}function Do(t){return function(e){this.textContent=t.call(this,e)}}function Io(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&Do(i)),e}return i._value=t,i}function Bo(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,Io(t))}function Mo(){for(var t=this._name,e=this._id,n=No(),i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],c=s.length,l=0;l<c;++l)if(a=s[l]){var u=Sr(a,e);xr(a,t,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Oo(i,this._parents,t,n)}function Po(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(o,a){var s={value:a},c={value:function(){0==--r&&o()}};n.each((function(){var n=Tr(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(c)),n.on=e})),0===r&&o()}))}var Lo=0;function Oo(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function No(){return++Lo}var Ro=cn.prototype;function Fo(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Oo.prototype={constructor:Oo,select:fo,selectAll:go,selectChild:Ro.selectChild,selectChildren:Ro.selectChildren,filter:oo,merge:ao,selection:mo,transition:Mo,call:Ro.call,nodes:Ro.nodes,node:Ro.node,size:Ro.size,empty:Ro.empty,each:Ro.each,on:lo,attr:Hr,attrTween:Kr,style:_o,styleTween:xo,text:So,textTween:Bo,remove:ho,tween:Lr,delay:Zr,duration:to,ease:no,easeVarying:ro,end:Po,[Symbol.iterator]:Ro[Symbol.iterator]};var jo={time:null,delay:0,duration:250,ease:Fo};function $o(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function zo(t){var e,n;t instanceof Oo?(e=t._id,t=t._name):(e=No(),(n=jo).time=ar(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],c=s.length,l=0;l<c;++l)(a=s[l])&&xr(a,t,e,l,s,n||$o(a,e));return new Oo(i,this._parents,t,e)}cn.prototype.interrupt=Br,cn.prototype.transition=zo;const Vo=Math.PI,Ho=2*Vo,qo=1e-6,Uo=Ho-qo;function Go(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Wo(){return new Go}function Ko(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function Yo(t,e){return fetch(t,e).then(Ko)}function Xo(t){return(e,n)=>Yo(e,n).then((e=>(new DOMParser).parseFromString(e,t)))}Go.prototype=Wo.prototype={constructor:Go,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var o=this._x1,a=this._y1,s=n-t,c=i-e,l=o-t,u=a-e,h=l*l+u*u;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>qo)if(Math.abs(u*s-c*l)>qo&&r){var d=n-o,f=i-a,g=s*s+c*c,p=d*d+f*f,m=Math.sqrt(g),b=Math.sqrt(h),w=r*Math.tan((Vo-Math.acos((g+h-p)/(2*m*b)))/2),k=w/b,v=w/m;Math.abs(k-1)>qo&&(this._+="L"+(t+k*l)+","+(e+k*u)),this._+="A"+r+","+r+",0,0,"+ +(u*d>l*f)+","+(this._x1=t+v*s)+","+(this._y1=e+v*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(i),s=n*Math.sin(i),c=t+a,l=e+s,u=1^o,h=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>qo||Math.abs(this._y1-l)>qo)&&(this._+="L"+c+","+l),n&&(h<0&&(h=h%Ho+Ho),h>Uo?this._+="A"+n+","+n+",0,1,"+u+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=c)+","+(this._y1=l):h>qo&&(this._+="A"+n+","+n+",0,"+ +(h>=Vo)+","+u+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var Zo=Xo("image/svg+xml");function Qo(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Jo(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function ta(t){return(t=Jo(Math.abs(t)))?t[1]:NaN}function ea(t,e){return function(n,i){for(var r=n.length,o=[],a=0,s=t[0],c=0;r>0&&s>0&&(c+s+1>i&&(s=Math.max(1,i-c)),o.push(n.substring(r-=s,r+s)),!((c+=s+1)>i));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}function na(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}var ia,ra=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function oa(t){if(!(e=ra.exec(t)))throw new Error("invalid format: "+t);var e;return new aa({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function aa(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function sa(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}function ca(t,e){var n=Jo(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(ia=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+Jo(t,Math.max(0,e+o-1))[0]}function la(t,e){var n=Jo(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}oa.prototype=aa.prototype,aa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ua={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Qo,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>la(100*t,e),r:la,s:ca,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ha(t){return t}var da,fa,ga,pa=Array.prototype.map,ma=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ba(t){var e=void 0===t.grouping||void 0===t.thousands?ha:ea(pa.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",r=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?ha:na(pa.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function l(t){var l=(t=oa(t)).fill,u=t.align,h=t.sign,d=t.symbol,f=t.zero,g=t.width,p=t.comma,m=t.precision,b=t.trim,w=t.type;"n"===w?(p=!0,w="g"):ua[w]||(void 0===m&&(m=12),b=!0,w="g"),(f||"0"===l&&"="===u)&&(f=!0,l="0",u="=");var k="$"===d?n:"#"===d&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",v="$"===d?i:/[%p]/.test(w)?a:"",y=ua[w],_=/[defgprs%]/.test(w);function C(t){var n,i,a,d=k,C=v;if("c"===w)C=y(t)+C,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:y(Math.abs(t),m),b&&(t=sa(t)),A&&0==+t&&"+"!==h&&(A=!1),d=(A?"("===h?h:s:"-"===h||"("===h?"":h)+d,C=("s"===w?ma[8+ia/3]:"")+C+(A&&"("===h?")":""),_)for(n=-1,i=t.length;++n<i;)if(48>(a=t.charCodeAt(n))||a>57){C=(46===a?r+t.slice(n+1):t.slice(n))+C,t=t.slice(0,n);break}}p&&!f&&(t=e(t,1/0));var x=d.length+t.length+C.length,E=x<g?new Array(g-x+1).join(l):"";switch(p&&f&&(t=e(E+t,E.length?g-C.length:1/0),E=""),u){case"<":t=d+t+C+E;break;case"=":t=d+E+t+C;break;case"^":t=E.slice(0,x=E.length>>1)+d+t+C+E.slice(x);break;default:t=E+d+t+C}return o(t)}return m=void 0===m?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),C.toString=function(){return t+""},C}function u(t,e){var n=l(((t=oa(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(ta(e)/3))),r=Math.pow(10,-i),o=ma[8+i/3];return function(t){return n(r*t)+o}}return{format:l,formatPrefix:u}}function wa(t){return da=ba(t),fa=da.format,ga=da.formatPrefix,da}function ka(t){return Math.max(0,-ta(Math.abs(t)))}function va(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ta(e)/3)))-ta(Math.abs(t)))}function ya(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ta(e)-ta(t))+1}function _a(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}wa({thousands:",",grouping:[3],currency:["$",""]});const Ca=Symbol("implicit");function Aa(){var t=new B,e=[],n=[],i=Ca;function r(r){let o=t.get(r);if(void 0===o){if(i!==Ca)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new B;for(const i of n)t.has(i)||t.set(i,e.push(i)-1);return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return Aa(e,n).unknown(i)},_a.apply(r,arguments),r}function xa(t){return function(){return t}}function Ea(t){return+t}var Ta=[0,1];function Sa(t){return t}function Da(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:xa(isNaN(e)?NaN:.5)}function Ia(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function Ba(t,e,n){var i=t[0],r=t[1],o=e[0],a=e[1];return r<i?(i=Da(r,i),o=n(a,o)):(i=Da(i,r),o=n(o,a)),function(t){return o(i(t))}}function Ma(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)r[a]=Da(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=I(t,e,1,i)-1;return o[n](r[n](e))}}function Pa(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function La(){var t,e,n,i,r,o,a=Ta,s=Ta,c=Ni,l=Sa;function u(){var t=Math.min(a.length,s.length);return l!==Sa&&(l=Ia(a[0],a[t-1])),i=t>2?Ma:Ba,r=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(a.map(t),s,c)))(t(l(e)))}return h.invert=function(n){return l(e((o||(o=i(s,a.map(t),Di)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Ea),u()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),c=Ri,u()},h.clamp=function(t){return arguments.length?(l=!!t||Sa,u()):l!==Sa},h.interpolate=function(t){return arguments.length?(c=t,u()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,u()}}function Oa(){return La()(Sa,Sa)}function Na(t,e,n,i){var r,o=z(t,e,n);switch((i=oa(null==i?",f":i)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=va(o,a))||(i.precision=r),ga(i,a);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=ya(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=ka(o))||(i.precision=r-2*("%"===i.type))}return fa(i)}function Ra(t){var e=t.domain;return t.ticks=function(t){var n=e();return j(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return Na(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,o=e(),a=0,s=o.length-1,c=o[a],l=o[s],u=10;for(l<c&&(r=c,c=l,l=r,r=a,a=s,s=r);u-- >0;){if((r=$(c,l,n))===i)return o[a]=c,o[s]=l,e(o);if(r>0)c=Math.floor(c/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;c=Math.ceil(c*r)/r,l=Math.floor(l*r)/r}i=r}return t},t}function Fa(){var t=Oa();return t.copy=function(){return Pa(t,Fa())},_a.apply(t,arguments),Ra(t)}function ja(t,e){var n,i=0,r=(t=t.slice()).length-1,o=t[i],a=t[r];return a<o&&(n=i,i=r,r=n,n=o,o=a,a=n),t[i]=e.floor(o),t[r]=e.ceil(a),t}var $a=new Date,za=new Date;function Va(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,o){var a,s=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<i);return s},r.filter=function(n){return Va((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return $a.setTime(+e),za.setTime(+i),t($a),t(za),Math.floor(n($a,za))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var Ha=Va((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Ha.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Va((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Ha:null};const qa=Ha;Ha.range;const Ua=1e3,Ga=60*Ua,Wa=60*Ga,Ka=24*Wa,Ya=7*Ka,Xa=30*Ka,Za=365*Ka;var Qa=Va((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Ua)}),(function(t,e){return(e-t)/Ua}),(function(t){return t.getUTCSeconds()}));const Ja=Qa;Qa.range;var ts=Va((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ua)}),(function(t,e){t.setTime(+t+e*Ga)}),(function(t,e){return(e-t)/Ga}),(function(t){return t.getMinutes()}));const es=ts;ts.range;var ns=Va((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ua-t.getMinutes()*Ga)}),(function(t,e){t.setTime(+t+e*Wa)}),(function(t,e){return(e-t)/Wa}),(function(t){return t.getHours()}));const is=ns;ns.range;var rs=Va((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ga)/Ka),(t=>t.getDate()-1));const os=rs;function as(t){return Va((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ga)/Ya}))}rs.range;var ss=as(0),cs=as(1),ls=as(2),us=as(3),hs=as(4),ds=as(5),fs=as(6);ss.range,cs.range,ls.range,us.range,hs.range,ds.range,fs.range;var gs=Va((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const ps=gs;gs.range;var ms=Va((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ms.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Va((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const bs=ms;ms.range;var ws=Va((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Ga)}),(function(t,e){return(e-t)/Ga}),(function(t){return t.getUTCMinutes()}));const ks=ws;ws.range;var vs=Va((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Wa)}),(function(t,e){return(e-t)/Wa}),(function(t){return t.getUTCHours()}));const ys=vs;vs.range;var _s=Va((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Ka}),(function(t){return t.getUTCDate()-1}));const Cs=_s;function As(t){return Va((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Ya}))}_s.range;var xs=As(0),Es=As(1),Ts=As(2),Ss=As(3),Ds=As(4),Is=As(5),Bs=As(6);xs.range,Es.range,Ts.range,Ss.range,Ds.range,Is.range,Bs.range;var Ms=Va((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Ps=Ms;Ms.range;var Ls=Va((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Ls.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Va((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Os=Ls;function Ns(t,e,n,i,r,o){const a=[[Ja,1,Ua],[Ja,5,5*Ua],[Ja,15,15*Ua],[Ja,30,30*Ua],[o,1,Ga],[o,5,5*Ga],[o,15,15*Ga],[o,30,30*Ga],[r,1,Wa],[r,3,3*Wa],[r,6,6*Wa],[r,12,12*Wa],[i,1,Ka],[i,2,2*Ka],[n,1,Ya],[e,1,Xa],[e,3,3*Xa],[t,1,Za]];function s(t,e,n){const i=e<t;i&&([t,e]=[e,t]);const r=n&&"function"==typeof n.range?n:c(t,e,n),o=r?r.range(t,+e+1):[];return i?o.reverse():o}function c(e,n,i){const r=Math.abs(n-e)/i,o=E((([,,t])=>t)).right(a,r);if(o===a.length)return t.every(z(e/Za,n/Za,i));if(0===o)return qa.every(Math.max(z(e,n,i),1));const[s,c]=a[r/a[o-1][2]<a[o][2]/r?o-1:o];return s.every(c)}return[s,c]}Ls.range,Ns(Os,Ps,xs,Cs,ys,ks);const[Rs,Fs]=Ns(bs,ps,ss,os,is,es);function js(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function $s(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function zs(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Vs(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,a=t.shortDays,s=t.months,c=t.shortMonths,l=Zs(r),u=Qs(r),h=Zs(o),d=Qs(o),f=Zs(a),g=Qs(a),p=Zs(s),m=Qs(s),b=Zs(c),w=Qs(c),k={a:P,A:L,b:O,B:N,c:null,d:kc,e:kc,f:Ac,g:Oc,G:Rc,H:vc,I:yc,j:_c,L:Cc,m:xc,M:Ec,p:R,q:F,Q:al,s:sl,S:Tc,u:Sc,U:Dc,V:Bc,w:Mc,W:Pc,x:null,X:null,y:Lc,Y:Nc,Z:Fc,"%":ol},v={a:j,A:$,b:z,B:V,c:null,d:jc,e:jc,f:qc,g:el,G:il,H:$c,I:zc,j:Vc,L:Hc,m:Uc,M:Gc,p:H,q,Q:al,s:sl,S:Wc,u:Kc,U:Yc,V:Zc,w:Qc,W:Jc,x:null,X:null,y:tl,Y:nl,Z:rl,"%":ol},y={a:E,A:T,b:S,B:D,c:I,d:lc,e:lc,f:pc,g:oc,G:rc,H:hc,I:hc,j:uc,L:gc,m:cc,M:dc,p:x,q:sc,Q:bc,s:wc,S:fc,u:tc,U:ec,V:nc,w:Js,W:ic,x:B,X:M,y:oc,Y:rc,Z:ac,"%":mc};function _(t,e){return function(n){var i,r,o,a=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(a.push(t.slice(c,s)),null!=(r=Us[i=t.charAt(++s)])?i=t.charAt(++s):r="e"===i?" ":"0",(o=e[i])&&(i=o(n,r)),a.push(i),c=s+1);return a.push(t.slice(c,s)),a.join("")}}function C(t,e){return function(n){var i,r,o=zs(1900,void 0,1);if(A(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=$s(zs(o.y,0,1))).getUTCDay(),i=r>4||0===r?Es.ceil(i):Es(i),i=Cs.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=js(zs(o.y,0,1))).getDay(),i=r>4||0===r?cs.ceil(i):cs(i),i=os.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?$s(zs(o.y,0,1)).getUTCDay():js(zs(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,$s(o)):js(o)}}function A(t,e,n,i){for(var r,o,a=0,s=e.length,c=n.length;a<s;){if(i>=c)return-1;if(37===(r=e.charCodeAt(a++))){if(r=e.charAt(a++),!(o=y[r in Us?e.charAt(a++):r])||(i=o(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}function x(t,e,n){var i=l.exec(e.slice(n));return i?(t.p=u.get(i[0].toLowerCase()),n+i[0].length):-1}function E(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=g.get(i[0].toLowerCase()),n+i[0].length):-1}function T(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=d.get(i[0].toLowerCase()),n+i[0].length):-1}function S(t,e,n){var i=b.exec(e.slice(n));return i?(t.m=w.get(i[0].toLowerCase()),n+i[0].length):-1}function D(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=m.get(i[0].toLowerCase()),n+i[0].length):-1}function I(t,n,i){return A(t,e,n,i)}function B(t,e,i){return A(t,n,e,i)}function M(t,e,n){return A(t,i,e,n)}function P(t){return a[t.getDay()]}function L(t){return o[t.getDay()]}function O(t){return c[t.getMonth()]}function N(t){return s[t.getMonth()]}function R(t){return r[+(t.getHours()>=12)]}function F(t){return 1+~~(t.getMonth()/3)}function j(t){return a[t.getUTCDay()]}function $(t){return o[t.getUTCDay()]}function z(t){return c[t.getUTCMonth()]}function V(t){return s[t.getUTCMonth()]}function H(t){return r[+(t.getUTCHours()>=12)]}function q(t){return 1+~~(t.getUTCMonth()/3)}return k.x=_(n,k),k.X=_(i,k),k.c=_(e,k),v.x=_(n,v),v.X=_(i,v),v.c=_(e,v),{format:function(t){var e=_(t+="",k);return e.toString=function(){return t},e},parse:function(t){var e=C(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",v);return e.toString=function(){return t},e},utcParse:function(t){var e=C(t+="",!0);return e.toString=function(){return t},e}}}var Hs,qs,Us={"-":"",_:" ",0:"0"},Gs=/^\s*\d+/,Ws=/^%/,Ks=/[\\^$*+?|[\]().{}]/g;function Ys(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function Xs(t){return t.replace(Ks,"\\$&")}function Zs(t){return new RegExp("^(?:"+t.map(Xs).join("|")+")","i")}function Qs(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Js(t,e,n){var i=Gs.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function tc(t,e,n){var i=Gs.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function ec(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function nc(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function ic(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function rc(t,e,n){var i=Gs.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function oc(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function ac(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function sc(t,e,n){var i=Gs.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function cc(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function lc(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function uc(t,e,n){var i=Gs.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function hc(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function dc(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function fc(t,e,n){var i=Gs.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function gc(t,e,n){var i=Gs.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function pc(t,e,n){var i=Gs.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function mc(t,e,n){var i=Ws.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function bc(t,e,n){var i=Gs.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function wc(t,e,n){var i=Gs.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function kc(t,e){return Ys(t.getDate(),e,2)}function vc(t,e){return Ys(t.getHours(),e,2)}function yc(t,e){return Ys(t.getHours()%12||12,e,2)}function _c(t,e){return Ys(1+os.count(bs(t),t),e,3)}function Cc(t,e){return Ys(t.getMilliseconds(),e,3)}function Ac(t,e){return Cc(t,e)+"000"}function xc(t,e){return Ys(t.getMonth()+1,e,2)}function Ec(t,e){return Ys(t.getMinutes(),e,2)}function Tc(t,e){return Ys(t.getSeconds(),e,2)}function Sc(t){var e=t.getDay();return 0===e?7:e}function Dc(t,e){return Ys(ss.count(bs(t)-1,t),e,2)}function Ic(t){var e=t.getDay();return e>=4||0===e?hs(t):hs.ceil(t)}function Bc(t,e){return t=Ic(t),Ys(hs.count(bs(t),t)+(4===bs(t).getDay()),e,2)}function Mc(t){return t.getDay()}function Pc(t,e){return Ys(cs.count(bs(t)-1,t),e,2)}function Lc(t,e){return Ys(t.getFullYear()%100,e,2)}function Oc(t,e){return Ys((t=Ic(t)).getFullYear()%100,e,2)}function Nc(t,e){return Ys(t.getFullYear()%1e4,e,4)}function Rc(t,e){var n=t.getDay();return Ys((t=n>=4||0===n?hs(t):hs.ceil(t)).getFullYear()%1e4,e,4)}function Fc(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ys(e/60|0,"0",2)+Ys(e%60,"0",2)}function jc(t,e){return Ys(t.getUTCDate(),e,2)}function $c(t,e){return Ys(t.getUTCHours(),e,2)}function zc(t,e){return Ys(t.getUTCHours()%12||12,e,2)}function Vc(t,e){return Ys(1+Cs.count(Os(t),t),e,3)}function Hc(t,e){return Ys(t.getUTCMilliseconds(),e,3)}function qc(t,e){return Hc(t,e)+"000"}function Uc(t,e){return Ys(t.getUTCMonth()+1,e,2)}function Gc(t,e){return Ys(t.getUTCMinutes(),e,2)}function Wc(t,e){return Ys(t.getUTCSeconds(),e,2)}function Kc(t){var e=t.getUTCDay();return 0===e?7:e}function Yc(t,e){return Ys(xs.count(Os(t)-1,t),e,2)}function Xc(t){var e=t.getUTCDay();return e>=4||0===e?Ds(t):Ds.ceil(t)}function Zc(t,e){return t=Xc(t),Ys(Ds.count(Os(t),t)+(4===Os(t).getUTCDay()),e,2)}function Qc(t){return t.getUTCDay()}function Jc(t,e){return Ys(Es.count(Os(t)-1,t),e,2)}function tl(t,e){return Ys(t.getUTCFullYear()%100,e,2)}function el(t,e){return Ys((t=Xc(t)).getUTCFullYear()%100,e,2)}function nl(t,e){return Ys(t.getUTCFullYear()%1e4,e,4)}function il(t,e){var n=t.getUTCDay();return Ys((t=n>=4||0===n?Ds(t):Ds.ceil(t)).getUTCFullYear()%1e4,e,4)}function rl(){return"+0000"}function ol(){return"%"}function al(t){return+t}function sl(t){return Math.floor(+t/1e3)}function cl(t){return Hs=Vs(t),qs=Hs.format,Hs.parse,Hs.utcFormat,Hs.utcParse,Hs}function ll(t){return new Date(t)}function ul(t){return t instanceof Date?+t:+new Date(+t)}function hl(t,e,n,i,r,o,a,s,c,l){var u=Oa(),h=u.invert,d=u.domain,f=l(".%L"),g=l(":%S"),p=l("%I:%M"),m=l("%I %p"),b=l("%a %d"),w=l("%b %d"),k=l("%B"),v=l("%Y");function y(t){return(c(t)<t?f:s(t)<t?g:a(t)<t?p:o(t)<t?m:i(t)<t?r(t)<t?b:w:n(t)<t?k:v)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,ul)):d().map(ll)},u.ticks=function(e){var n=d();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?y:l(e)},u.nice=function(t){var n=d();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?d(ja(n,t)):u},u.copy=function(){return Pa(u,hl(t,e,n,i,r,o,a,s,c,l))},u}function dl(){return _a.apply(hl(Rs,Fs,bs,ps,ss,os,is,es,Ja,qs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fl(t){return function(){return t}}cl({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const gl=Math.abs,pl=Math.atan2,ml=Math.cos,bl=Math.max,wl=Math.min,kl=Math.sin,vl=Math.sqrt,yl=1e-12,_l=Math.PI,Cl=_l/2,Al=2*_l;function xl(t){return t>1?0:t<-1?_l:Math.acos(t)}function El(t){return t>=1?Cl:t<=-1?-Cl:Math.asin(t)}function Tl(t){return t.innerRadius}function Sl(t){return t.outerRadius}function Dl(t){return t.startAngle}function Il(t){return t.endAngle}function Bl(t){return t&&t.padAngle}function Ml(t,e,n,i,r,o,a,s){var c=n-t,l=i-e,u=a-r,h=s-o,d=h*c-u*l;if(!(d*d<yl))return[t+(d=(u*(e-o)-h*(t-r))/d)*c,e+d*l]}function Pl(t,e,n,i,r,o,a){var s=t-n,c=e-i,l=(a?o:-o)/vl(s*s+c*c),u=l*c,h=-l*s,d=t+u,f=e+h,g=n+u,p=i+h,m=(d+g)/2,b=(f+p)/2,w=g-d,k=p-f,v=w*w+k*k,y=r-o,_=d*p-g*f,C=(k<0?-1:1)*vl(bl(0,y*y*v-_*_)),A=(_*k-w*C)/v,x=(-_*w-k*C)/v,E=(_*k+w*C)/v,T=(-_*w+k*C)/v,S=A-m,D=x-b,I=E-m,B=T-b;return S*S+D*D>I*I+B*B&&(A=E,x=T),{cx:A,cy:x,x01:-u,y01:-h,x11:A*(r/y-1),y11:x*(r/y-1)}}function Ll(){var t=Tl,e=Sl,n=fl(0),i=null,r=Dl,o=Il,a=Bl,s=null;function c(){var c,l,u=+t.apply(this,arguments),h=+e.apply(this,arguments),d=r.apply(this,arguments)-Cl,f=o.apply(this,arguments)-Cl,g=gl(f-d),p=f>d;if(s||(s=c=Wo()),h<u&&(l=h,h=u,u=l),h>yl)if(g>Al-yl)s.moveTo(h*ml(d),h*kl(d)),s.arc(0,0,h,d,f,!p),u>yl&&(s.moveTo(u*ml(f),u*kl(f)),s.arc(0,0,u,f,d,p));else{var m,b,w=d,k=f,v=d,y=f,_=g,C=g,A=a.apply(this,arguments)/2,x=A>yl&&(i?+i.apply(this,arguments):vl(u*u+h*h)),E=wl(gl(h-u)/2,+n.apply(this,arguments)),T=E,S=E;if(x>yl){var D=El(x/u*kl(A)),I=El(x/h*kl(A));(_-=2*D)>yl?(v+=D*=p?1:-1,y-=D):(_=0,v=y=(d+f)/2),(C-=2*I)>yl?(w+=I*=p?1:-1,k-=I):(C=0,w=k=(d+f)/2)}var B=h*ml(w),M=h*kl(w),P=u*ml(y),L=u*kl(y);if(E>yl){var O,N=h*ml(k),R=h*kl(k),F=u*ml(v),j=u*kl(v);if(g<_l&&(O=Ml(B,M,F,j,N,R,P,L))){var $=B-O[0],z=M-O[1],V=N-O[0],H=R-O[1],q=1/kl(xl(($*V+z*H)/(vl($*$+z*z)*vl(V*V+H*H)))/2),U=vl(O[0]*O[0]+O[1]*O[1]);T=wl(E,(u-U)/(q-1)),S=wl(E,(h-U)/(q+1))}}C>yl?S>yl?(m=Pl(F,j,B,M,h,S,p),b=Pl(N,R,P,L,h,S,p),s.moveTo(m.cx+m.x01,m.cy+m.y01),S<E?s.arc(m.cx,m.cy,S,pl(m.y01,m.x01),pl(b.y01,b.x01),!p):(s.arc(m.cx,m.cy,S,pl(m.y01,m.x01),pl(m.y11,m.x11),!p),s.arc(0,0,h,pl(m.cy+m.y11,m.cx+m.x11),pl(b.cy+b.y11,b.cx+b.x11),!p),s.arc(b.cx,b.cy,S,pl(b.y11,b.x11),pl(b.y01,b.x01),!p))):(s.moveTo(B,M),s.arc(0,0,h,w,k,!p)):s.moveTo(B,M),u>yl&&_>yl?T>yl?(m=Pl(P,L,N,R,u,-T,p),b=Pl(B,M,F,j,u,-T,p),s.lineTo(m.cx+m.x01,m.cy+m.y01),T<E?s.arc(m.cx,m.cy,T,pl(m.y01,m.x01),pl(b.y01,b.x01),!p):(s.arc(m.cx,m.cy,T,pl(m.y01,m.x01),pl(m.y11,m.x11),!p),s.arc(0,0,u,pl(m.cy+m.y11,m.cx+m.x11),pl(b.cy+b.y11,b.cx+b.x11),p),s.arc(b.cx,b.cy,T,pl(b.y11,b.x11),pl(b.y01,b.x01),!p))):s.arc(0,0,u,y,v,p):s.lineTo(P,L)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-_l/2;return[ml(i)*n,kl(i)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:fl(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:fl(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:fl(+t),c):n},c.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:fl(+t),c):i},c.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:fl(+t),c):r},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:fl(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:fl(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function Ol(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Nl(t){this._context=t}function Rl(t){return new Nl(t)}function Fl(t){return t[0]}function jl(t){return t[1]}function $l(t,e){var n=fl(!0),i=null,r=Rl,o=null;function a(a){var s,c,l,u=(a=Ol(a)).length,h=!1;for(null==i&&(o=r(l=Wo())),s=0;s<=u;++s)!(s<u&&n(c=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(c,s,a),+e(c,s,a));if(l)return o=null,l+""||null}return t="function"==typeof t?t:void 0===t?Fl:fl(t),e="function"==typeof e?e:void 0===e?jl:fl(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:fl(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:fl(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:fl(!!t),a):n},a.curve=function(t){return arguments.length?(r=t,null!=i&&(o=r(i)),a):r},a.context=function(t){return arguments.length?(null==t?i=o=null:o=r(i=t),a):i},a}function zl(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Vl(t){return t}function Hl(){var t=Vl,e=zl,n=null,i=fl(0),r=fl(Al),o=fl(0);function a(a){var s,c,l,u,h,d=(a=Ol(a)).length,f=0,g=new Array(d),p=new Array(d),m=+i.apply(this,arguments),b=Math.min(Al,Math.max(-Al,r.apply(this,arguments)-m)),w=Math.min(Math.abs(b)/d,o.apply(this,arguments)),k=w*(b<0?-1:1);for(s=0;s<d;++s)(h=p[g[s]=s]=+t(a[s],s,a))>0&&(f+=h);for(null!=e?g.sort((function(t,n){return e(p[t],p[n])})):null!=n&&g.sort((function(t,e){return n(a[t],a[e])})),s=0,l=f?(b-d*k)/f:0;s<d;++s,m=u)c=g[s],u=m+((h=p[c])>0?h*l:0)+k,p[c]={data:a[c],index:s,value:h,startAngle:m,endAngle:u,padAngle:w};return p}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:fl(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:fl(+t),a):i},a.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:fl(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:fl(+t),a):o},a}Nl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),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:this._context.lineTo(t,e)}}};class ql{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function Ul(t){return new ql(t,!0)}function Gl(t){return new ql(t,!1)}function Wl(){}function Kl(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Yl(t){this._context=t}function Xl(t){return new Yl(t)}function Zl(t){this._context=t}function Ql(t){return new Zl(t)}function Jl(t){this._context=t}function tu(t){return new Jl(t)}function eu(t,e){this._basis=new Yl(t),this._beta=e}Yl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Kl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Kl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Zl.prototype={areaStart:Wl,areaEnd:Wl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Kl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Kl(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},eu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],o=e[0],a=t[n]-r,s=e[n]-o,c=-1;++c<=n;)i=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(r+i*a),this._beta*e[c]+(1-this._beta)*(o+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const nu=function t(e){function n(t){return 1===e?new Yl(t):new eu(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function iu(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ru(t,e){this._context=t,this._k=(1-e)/6}ru.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:iu(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),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,this._x1=t,this._y1=e;break;case 2:this._point=3;default:iu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ou=function t(e){function n(t){return new ru(t,e)}return n.tension=function(e){return t(+e)},n}(0);function au(t,e){this._context=t,this._k=(1-e)/6}au.prototype={areaStart:Wl,areaEnd:Wl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:iu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const su=function t(e){function n(t){return new au(t,e)}return n.tension=function(e){return t(+e)},n}(0);function cu(t,e){this._context=t,this._k=(1-e)/6}cu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:iu(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lu=function t(e){function n(t){return new cu(t,e)}return n.tension=function(e){return t(+e)},n}(0);function uu(t,e,n){var i=t._x1,r=t._y1,o=t._x2,a=t._y2;if(t._l01_a>yl){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>yl){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(i,r,o,a,t._x2,t._y2)}function hu(t,e){this._context=t,this._alpha=e}hu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}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;default:uu(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const du=function t(e){function n(t){return e?new hu(t,e):new ru(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function fu(t,e){this._context=t,this._alpha=e}fu.prototype={areaStart:Wl,areaEnd:Wl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:uu(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const gu=function t(e){function n(t){return e?new fu(t,e):new au(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function pu(t,e){this._context=t,this._alpha=e}pu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:uu(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const mu=function t(e){function n(t){return e?new pu(t,e):new cu(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function bu(t){this._context=t}function wu(t){return new bu(t)}function ku(t){return t<0?-1:1}function vu(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),a=(n-t._y1)/(r||i<0&&-0),s=(o*r+a*i)/(i+r);return(ku(o)+ku(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function yu(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function _u(t,e,n){var i=t._x0,r=t._y0,o=t._x1,a=t._y1,s=(o-i)/3;t._context.bezierCurveTo(i+s,r+s*e,o-s,a-s*n,o,a)}function Cu(t){this._context=t}function Au(t){this._context=new xu(t)}function xu(t){this._context=t}function Eu(t){return new Cu(t)}function Tu(t){return new Au(t)}function Su(t){this._context=t}function Du(t){var e,n,i=t.length-1,r=new Array(i),o=new Array(i),a=new Array(i);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<i-1;++e)r[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(r[i-1]=2,o[i-1]=7,a[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=r[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(r[i-1]=a[i-1]/o[i-1],e=i-2;e>=0;--e)r[e]=(a[e]-r[e+1])/o[e];for(o[i-1]=(t[i]+r[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function Iu(t){return new Su(t)}function Bu(t,e){this._context=t,this._t=e}function Mu(t){return new Bu(t,.5)}function Pu(t){return new Bu(t,0)}function Lu(t){return new Bu(t,1)}function Ou(t,e,n){this.k=t,this.x=e,this.y=n}
/*! @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._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Ou.prototype={constructor:Ou,scale:function(t){return 1===t?this:new Ou(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Ou(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Ou.prototype;var Gu=Object.hasOwnProperty,Wu=Object.setPrototypeOf,Ku=Object.isFrozen,Yu=Object.getPrototypeOf,Xu=Object.getOwnPropertyDescriptor,Zu=Object.freeze,Qu=Object.seal,Ju=Object.create,th="undefined"!=typeof Reflect&&Reflect,eh=th.apply,nh=th.construct;eh||(eh=function(t,e,n){return t.apply(e,n)}),Zu||(Zu=function(t){return t}),Qu||(Qu=function(t){return t}),nh||(nh=function(t,e){return ju(t,$u(e))});var ih=gh(Array.prototype.forEach),rh=gh(Array.prototype.pop),oh=gh(Array.prototype.push),ah=gh(String.prototype.toLowerCase),sh=gh(String.prototype.toString),ch=gh(String.prototype.match),lh=gh(String.prototype.replace),uh=gh(String.prototype.indexOf),hh=gh(String.prototype.trim),dh=gh(RegExp.prototype.test),fh=ph(TypeError);function gh(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return eh(t,e,i)}}function ph(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return nh(t,n)}}function mh(t,e,n){n=n||ah,Wu&&Wu(t,null);for(var i=e.length;i--;){var r=e[i];if("string"==typeof r){var o=n(r);o!==r&&(Ku(e)||(e[i]=o),r=o)}t[r]=!0}return t}function bh(t){var e,n=Ju(null);for(e in t)!0===eh(Gu,t,[e])&&(n[e]=t[e]);return n}function wh(t,e){for(;null!==t;){var n=Xu(t,e);if(n){if(n.get)return gh(n.get);if("function"==typeof n.value)return gh(n.value)}t=Yu(t)}function i(t){return console.warn("fallback value for",t),null}return i}var kh=Zu(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vh=Zu(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),yh=Zu(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_h=Zu(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ch=Zu(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Ah=Zu(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xh=Zu(["#text"]),Eh=Zu(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Th=Zu(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Sh=Zu(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dh=Zu(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ih=Qu(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Bh=Qu(/<%[\w\W]*|[\w\W]*%>/gm),Mh=Qu(/\${[\w\W]*}/gm),Ph=Qu(/^data-[\-\w.\u00B7-\uFFFF]/),Lh=Qu(/^aria-[\-\w]+$/),Oh=Qu(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Nh=Qu(/^(?:\w+script|data):/i),Rh=Qu(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fh=Qu(/^html$/i),jh=function(){return"undefined"==typeof window?null:window},$h=function(t,e){if("object"!==Nu(t)||"function"!=typeof t.createPolicy)return null;var n=null,i="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(i)&&(n=e.currentScript.getAttribute(i));var r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function zh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jh(),e=function(t){return zh(t)};if(e.version="2.4.3",e.removed=[],!t||!t.document||9!==t.document.nodeType)return e.isSupported=!1,e;var n=t.document,i=t.document,r=t.DocumentFragment,o=t.HTMLTemplateElement,a=t.Node,s=t.Element,c=t.NodeFilter,l=t.NamedNodeMap,u=void 0===l?t.NamedNodeMap||t.MozNamedAttrMap:l,h=t.HTMLFormElement,d=t.DOMParser,f=t.trustedTypes,g=s.prototype,p=wh(g,"cloneNode"),m=wh(g,"nextSibling"),b=wh(g,"childNodes"),w=wh(g,"parentNode");if("function"==typeof o){var k=i.createElement("template");k.content&&k.content.ownerDocument&&(i=k.content.ownerDocument)}var v=$h(f,n),y=v?v.createHTML(""):"",_=i,C=_.implementation,A=_.createNodeIterator,x=_.createDocumentFragment,E=_.getElementsByTagName,T=n.importNode,S={};try{S=bh(i).documentMode?i.documentMode:{}}catch(t){}var D={};e.isSupported="function"==typeof w&&C&&void 0!==C.createHTMLDocument&&9!==S;var I,B,M=Ih,P=Bh,L=Mh,O=Ph,N=Lh,R=Nh,F=Rh,j=Oh,$=null,z=mh({},[].concat($u(kh),$u(vh),$u(yh),$u(Ch),$u(xh))),V=null,H=mh({},[].concat($u(Eh),$u(Th),$u(Sh),$u(Dh))),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,G=null,W=!0,K=!0,Y=!1,X=!1,Z=!1,Q=!1,J=!1,tt=!1,et=!1,nt=!1,it=!0,rt=!1,ot="user-content-",at=!0,st=!1,ct={},lt=null,ut=mh({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ht=null,dt=mh({},["audio","video","img","source","image","track"]),ft=null,gt=mh({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pt="http://www.w3.org/1998/Math/MathML",mt="http://www.w3.org/2000/svg",bt="http://www.w3.org/1999/xhtml",wt=bt,kt=!1,vt=null,yt=mh({},[pt,mt,bt],sh),_t=["application/xhtml+xml","text/html"],Ct="text/html",At=null,xt=i.createElement("form"),Et=function(t){return t instanceof RegExp||t instanceof Function},Tt=function(t){At&&At===t||(t&&"object"===Nu(t)||(t={}),t=bh(t),I=I=-1===_t.indexOf(t.PARSER_MEDIA_TYPE)?Ct:t.PARSER_MEDIA_TYPE,B="application/xhtml+xml"===I?sh:ah,$="ALLOWED_TAGS"in t?mh({},t.ALLOWED_TAGS,B):z,V="ALLOWED_ATTR"in t?mh({},t.ALLOWED_ATTR,B):H,vt="ALLOWED_NAMESPACES"in t?mh({},t.ALLOWED_NAMESPACES,sh):yt,ft="ADD_URI_SAFE_ATTR"in t?mh(bh(gt),t.ADD_URI_SAFE_ATTR,B):gt,ht="ADD_DATA_URI_TAGS"in t?mh(bh(dt),t.ADD_DATA_URI_TAGS,B):dt,lt="FORBID_CONTENTS"in t?mh({},t.FORBID_CONTENTS,B):ut,U="FORBID_TAGS"in t?mh({},t.FORBID_TAGS,B):{},G="FORBID_ATTR"in t?mh({},t.FORBID_ATTR,B):{},ct="USE_PROFILES"in t&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,K=!1!==t.ALLOW_DATA_ATTR,Y=t.ALLOW_UNKNOWN_PROTOCOLS||!1,X=t.SAFE_FOR_TEMPLATES||!1,Z=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,nt=t.RETURN_TRUSTED_TYPE||!1,J=t.FORCE_BODY||!1,it=!1!==t.SANITIZE_DOM,rt=t.SANITIZE_NAMED_PROPS||!1,at=!1!==t.KEEP_CONTENT,st=t.IN_PLACE||!1,j=t.ALLOWED_URI_REGEXP||j,wt=t.NAMESPACE||bt,t.CUSTOM_ELEMENT_HANDLING&&Et(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Et(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(q.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(K=!1),et&&(tt=!0),ct&&($=mh({},$u(xh)),V=[],!0===ct.html&&(mh($,kh),mh(V,Eh)),!0===ct.svg&&(mh($,vh),mh(V,Th),mh(V,Dh)),!0===ct.svgFilters&&(mh($,yh),mh(V,Th),mh(V,Dh)),!0===ct.mathMl&&(mh($,Ch),mh(V,Sh),mh(V,Dh))),t.ADD_TAGS&&($===z&&($=bh($)),mh($,t.ADD_TAGS,B)),t.ADD_ATTR&&(V===H&&(V=bh(V)),mh(V,t.ADD_ATTR,B)),t.ADD_URI_SAFE_ATTR&&mh(ft,t.ADD_URI_SAFE_ATTR,B),t.FORBID_CONTENTS&&(lt===ut&&(lt=bh(lt)),mh(lt,t.FORBID_CONTENTS,B)),at&&($["#text"]=!0),Z&&mh($,["html","head","body"]),$.table&&(mh($,["tbody"]),delete U.tbody),Zu&&Zu(t),At=t)},St=mh({},["mi","mo","mn","ms","mtext"]),Dt=mh({},["foreignobject","desc","title","annotation-xml"]),It=mh({},["title","style","font","a","script"]),Bt=mh({},vh);mh(Bt,yh),mh(Bt,_h);var Mt=mh({},Ch);mh(Mt,Ah);var Pt=function(t){var e=w(t);e&&e.tagName||(e={namespaceURI:wt,tagName:"template"});var n=ah(t.tagName),i=ah(e.tagName);return!!vt[t.namespaceURI]&&(t.namespaceURI===mt?e.namespaceURI===bt?"svg"===n:e.namespaceURI===pt?"svg"===n&&("annotation-xml"===i||St[i]):Boolean(Bt[n]):t.namespaceURI===pt?e.namespaceURI===bt?"math"===n:e.namespaceURI===mt?"math"===n&&Dt[i]:Boolean(Mt[n]):t.namespaceURI===bt?!(e.namespaceURI===mt&&!Dt[i])&&!(e.namespaceURI===pt&&!St[i])&&!Mt[n]&&(It[n]||!Bt[n]):!("application/xhtml+xml"!==I||!vt[t.namespaceURI]))},Lt=function(t){oh(e.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=y}catch(e){t.remove()}}},Ot=function(t,n){try{oh(e.removed,{attribute:n.getAttributeNode(t),from:n})}catch(t){oh(e.removed,{attribute:null,from:n})}if(n.removeAttribute(t),"is"===t&&!V[t])if(tt||et)try{Lt(n)}catch(t){}else try{n.setAttribute(t,"")}catch(t){}},Nt=function(t){var e,n;if(J)t="<remove></remove>"+t;else{var r=ch(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===I&&wt===bt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var o=v?v.createHTML(t):t;if(wt===bt)try{e=(new d).parseFromString(o,I)}catch(t){}if(!e||!e.documentElement){e=C.createDocument(wt,"template",null);try{e.documentElement.innerHTML=kt?y:o}catch(t){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),wt===bt?E.call(e,Z?"html":"body")[0]:Z?e.documentElement:a},Rt=function(t){return A.call(t.ownerDocument||t,t,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Ft=function(t){return t instanceof h&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof u)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},jt=function(t){return"object"===Nu(a)?t instanceof a:t&&"object"===Nu(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},$t=function(t,n,i){D[t]&&ih(D[t],(function(t){t.call(e,n,i,At)}))},zt=function(t){var n;if($t("beforeSanitizeElements",t,null),Ft(t))return Lt(t),!0;if(dh(/[\u0080-\uFFFF]/,t.nodeName))return Lt(t),!0;var i=B(t.nodeName);if($t("uponSanitizeElement",t,{tagName:i,allowedTags:$}),t.hasChildNodes()&&!jt(t.firstElementChild)&&(!jt(t.content)||!jt(t.content.firstElementChild))&&dh(/<[/\w]/g,t.innerHTML)&&dh(/<[/\w]/g,t.textContent))return Lt(t),!0;if("select"===i&&dh(/<template/i,t.innerHTML))return Lt(t),!0;if(!$[i]||U[i]){if(!U[i]&&Ht(i)){if(q.tagNameCheck instanceof RegExp&&dh(q.tagNameCheck,i))return!1;if(q.tagNameCheck instanceof Function&&q.tagNameCheck(i))return!1}if(at&&!lt[i]){var r=w(t)||t.parentNode,o=b(t)||t.childNodes;if(o&&r)for(var a=o.length-1;a>=0;--a)r.insertBefore(p(o[a],!0),m(t))}return Lt(t),!0}return t instanceof s&&!Pt(t)?(Lt(t),!0):"noscript"!==i&&"noembed"!==i||!dh(/<\/no(script|embed)/i,t.innerHTML)?(X&&3===t.nodeType&&(n=t.textContent,n=lh(n,M," "),n=lh(n,P," "),n=lh(n,L," "),t.textContent!==n&&(oh(e.removed,{element:t.cloneNode()}),t.textContent=n)),$t("afterSanitizeElements",t,null),!1):(Lt(t),!0)},Vt=function(t,e,n){if(it&&("id"===e||"name"===e)&&(n in i||n in xt))return!1;if(K&&!G[e]&&dh(O,e));else if(W&&dh(N,e));else if(!V[e]||G[e]){if(!(Ht(t)&&(q.tagNameCheck instanceof RegExp&&dh(q.tagNameCheck,t)||q.tagNameCheck instanceof Function&&q.tagNameCheck(t))&&(q.attributeNameCheck instanceof RegExp&&dh(q.attributeNameCheck,e)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(e))||"is"===e&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&dh(q.tagNameCheck,n)||q.tagNameCheck instanceof Function&&q.tagNameCheck(n))))return!1}else if(ft[e]);else if(dh(j,lh(n,F,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==uh(n,"data:")||!ht[t])if(Y&&!dh(R,lh(n,F,"")));else if(n)return!1;return!0},Ht=function(t){return t.indexOf("-")>0},qt=function(t){var n,i,r,o;$t("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V};for(o=a.length;o--;){var c=n=a[o],l=c.name,u=c.namespaceURI;if(i="value"===l?n.value:hh(n.value),r=B(l),s.attrName=r,s.attrValue=i,s.keepAttr=!0,s.forceKeepAttr=void 0,$t("uponSanitizeAttribute",t,s),i=s.attrValue,!s.forceKeepAttr&&(Ot(l,t),s.keepAttr))if(dh(/\/>/i,i))Ot(l,t);else{X&&(i=lh(i,M," "),i=lh(i,P," "),i=lh(i,L," "));var h=B(t.nodeName);if(Vt(h,r,i)){if(!rt||"id"!==r&&"name"!==r||(Ot(l,t),i=ot+i),v&&"object"===Nu(f)&&"function"==typeof f.getAttributeType)if(u);else switch(f.getAttributeType(h,r)){case"TrustedHTML":i=v.createHTML(i);break;case"TrustedScriptURL":i=v.createScriptURL(i)}try{u?t.setAttributeNS(u,l,i):t.setAttribute(l,i),rh(e.removed)}catch(t){}}}}$t("afterSanitizeAttributes",t,null)}},Ut=function t(e){var n,i=Rt(e);for($t("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)$t("uponSanitizeShadowNode",n,null),zt(n)||(n.content instanceof r&&t(n.content),qt(n));$t("afterSanitizeShadowDOM",e,null)};return e.sanitize=function(i){var o,s,c,l,u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((kt=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!jt(i)){if("function"!=typeof i.toString)throw fh("toString is not a function");if("string"!=typeof(i=i.toString()))throw fh("dirty is not a string, aborting")}if(!e.isSupported){if("object"===Nu(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof i)return t.toStaticHTML(i);if(jt(i))return t.toStaticHTML(i.outerHTML)}return i}if(Q||Tt(h),e.removed=[],"string"==typeof i&&(st=!1),st){if(i.nodeName){var d=B(i.nodeName);if(!$[d]||U[d])throw fh("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof a)1===(s=(o=Nt("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!tt&&!X&&!Z&&-1===i.indexOf("<"))return v&&nt?v.createHTML(i):i;if(!(o=Nt(i)))return tt?null:nt?y:""}o&&J&&Lt(o.firstChild);for(var f=Rt(st?i:o);c=f.nextNode();)3===c.nodeType&&c===l||zt(c)||(c.content instanceof r&&Ut(c.content),qt(c),l=c);if(l=null,st)return i;if(tt){if(et)for(u=x.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return V.shadowroot&&(u=T.call(n,u,!0)),u}var g=Z?o.outerHTML:o.innerHTML;return Z&&$["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&dh(Fh,o.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+g),X&&(g=lh(g,M," "),g=lh(g,P," "),g=lh(g,L," ")),v&&nt?v.createHTML(g):g},e.setConfig=function(t){Tt(t),Q=!0},e.clearConfig=function(){At=null,Q=!1},e.isValidAttribute=function(t,e,n){At||Tt({});var i=B(t),r=B(e);return Vt(i,r,n)},e.addHook=function(t,e){"function"==typeof e&&(D[t]=D[t]||[],oh(D[t],e))},e.removeHook=function(t){if(D[t])return rh(D[t])},e.removeHooks=function(t){D[t]&&(D[t]=[])},e.removeAllHooks=function(){D={}},e}var Vh=zh();const Hh=t=>t?Xh(t).replace(/\\n/g,"#br#").split("#br#"):[""],qh=t=>Vh.sanitize(t),Uh=(t,e)=>{var n;if(!1!==(null==(n=e.flowchart)?void 0:n.htmlLabels)){const n=e.securityLevel;"antiscript"===n||"strict"===n?t=qh(t):"loose"!==n&&(t=(t=(t=Xh(t)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),t=Yh(t))}return t},Gh=(t,e)=>t?t=e.dompurifyConfig?Vh.sanitize(Uh(t,e),e.dompurifyConfig).toString():Vh.sanitize(Uh(t,e),{FORBID_TAGS:["style"]}).toString():t,Wh=(t,e)=>"string"==typeof t?Gh(t,e):t.flat().map((t=>Gh(t,e))),Kh=/<br\s*\/?>/gi,Yh=t=>t.replace(/#br#/g,"<br/>"),Xh=t=>t.replace(Kh,"#br#"),Zh=t=>!1!==t&&!["false","null","0"].includes(String(t).trim().toLowerCase()),Qh=function(t){let e=t;if(t.split("~").length-1>=2){let t=e;do{e=t,t=e.replace(/~([^\s,:;]+)~/,"<$1>")}while(t!=e);return Qh(t)}return e},Jh={getRows:Hh,sanitizeText:Gh,sanitizeTextOrArray:Wh,hasBreaks:t=>Kh.test(t),splitBreaks:t=>t.split(Kh),lineBreakRegex:Kh,removeScript:qh,getUrl:t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},evaluate:Zh},td={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t),hsl2rgb:({h:t,s:e,l:n},i)=>{if(!e)return 2.55*n;t/=360,e/=100;const r=(n/=100)<.5?n*(1+e):n+e-n*e,o=2*n-r;switch(i){case"r":return 255*td.hue2rgb(o,r,t+1/3);case"g":return 255*td.hue2rgb(o,r,t);case"b":return 255*td.hue2rgb(o,r,t-1/3)}},rgb2hsl:({r:t,g:e,b:n},i)=>{t/=255,e/=255,n/=255;const r=Math.max(t,e,n),o=Math.min(t,e,n),a=(r+o)/2;if("l"===i)return 100*a;if(r===o)return 0;const s=r-o;if("s"===i)return 100*(a>.5?s/(2-r-o):s/(r+o));switch(r){case t:return 60*((e-n)/s+(e<n?6:0));case e:return 60*((n-t)/s+2);case n:return 60*((t-e)/s+4);default:return-1}}},ed={channel:td,lang:{clamp:(t,e,n)=>e>n?Math.min(e,Math.max(n,t)):Math.min(n,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}},nd={};for(let t=0;t<=255;t++)nd[t]=ed.unit.dec2hex(t);const id={ALL:0,RGB:1,HSL:2};class rd{constructor(){this.type=id.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=id.ALL}is(t){return this.type===t}}const od=rd;class ad{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new od}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=id.ALL,this}_ensureHSL(){const t=this.data,{h:e,s:n,l:i}=t;void 0===e&&(t.h=ed.channel.rgb2hsl(t,"h")),void 0===n&&(t.s=ed.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=ed.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:e,g:n,b:i}=t;void 0===e&&(t.r=ed.channel.hsl2rgb(t,"r")),void 0===n&&(t.g=ed.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=ed.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,e=t.r;return this.type.is(id.HSL)||void 0===e?(this._ensureHSL(),ed.channel.hsl2rgb(t,"r")):e}get g(){const t=this.data,e=t.g;return this.type.is(id.HSL)||void 0===e?(this._ensureHSL(),ed.channel.hsl2rgb(t,"g")):e}get b(){const t=this.data,e=t.b;return this.type.is(id.HSL)||void 0===e?(this._ensureHSL(),ed.channel.hsl2rgb(t,"b")):e}get h(){const t=this.data,e=t.h;return this.type.is(id.RGB)||void 0===e?(this._ensureRGB(),ed.channel.rgb2hsl(t,"h")):e}get s(){const t=this.data,e=t.s;return this.type.is(id.RGB)||void 0===e?(this._ensureRGB(),ed.channel.rgb2hsl(t,"s")):e}get l(){const t=this.data,e=t.l;return this.type.is(id.RGB)||void 0===e?(this._ensureRGB(),ed.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(id.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(id.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(id.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(id.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(id.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(id.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const sd=new ad({r:0,g:0,b:0,a:0},"transparent"),cd={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;const e=t.match(cd.re);if(!e)return;const n=e[1],i=parseInt(n,16),r=n.length,o=r%4==0,a=r>4,s=a?1:17,c=a?8:4,l=o?0:-1,u=a?255:15;return sd.set({r:(i>>c*(l+3)&u)*s,g:(i>>c*(l+2)&u)*s,b:(i>>c*(l+1)&u)*s,a:o?(i&u)*s/255:1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`#${nd[Math.round(e)]}${nd[Math.round(n)]}${nd[Math.round(i)]}${nd[Math.round(255*r)]}`:`#${nd[Math.round(e)]}${nd[Math.round(n)]}${nd[Math.round(i)]}`}},ld=cd,ud={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(ud.hueRe);if(e){const[,t,n]=e;switch(n){case"grad":return ed.channel.clamp.h(.9*parseFloat(t));case"rad":return ed.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return ed.channel.clamp.h(360*parseFloat(t))}}return ed.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(104!==e&&72!==e)return;const n=t.match(ud.re);if(!n)return;const[,i,r,o,a,s]=n;return sd.set({h:ud._hue2deg(i),s:ed.channel.clamp.s(parseFloat(r)),l:ed.channel.clamp.l(parseFloat(o)),a:a?ed.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},t)},stringify:t=>{const{h:e,s:n,l:i,a:r}=t;return r<1?`hsla(${ed.lang.round(e)}, ${ed.lang.round(n)}%, ${ed.lang.round(i)}%, ${r})`:`hsl(${ed.lang.round(e)}, ${ed.lang.round(n)}%, ${ed.lang.round(i)}%)`}},hd=ud,dd={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=dd.colors[t];if(e)return ld.parse(e)},stringify:t=>{const e=ld.stringify(t);for(const t in dd.colors)if(dd.colors[t]===e)return t}},fd=dd,gd={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(114!==e&&82!==e)return;const n=t.match(gd.re);if(!n)return;const[,i,r,o,a,s,c,l,u]=n;return sd.set({r:ed.channel.clamp.r(r?2.55*parseFloat(i):parseFloat(i)),g:ed.channel.clamp.g(a?2.55*parseFloat(o):parseFloat(o)),b:ed.channel.clamp.b(c?2.55*parseFloat(s):parseFloat(s)),a:l?ed.channel.clamp.a(u?parseFloat(l)/100:parseFloat(l)):1},t)},stringify:t=>{const{r:e,g:n,b:i,a:r}=t;return r<1?`rgba(${ed.lang.round(e)}, ${ed.lang.round(n)}, ${ed.lang.round(i)}, ${ed.lang.round(r)})`:`rgb(${ed.lang.round(e)}, ${ed.lang.round(n)}, ${ed.lang.round(i)})`}},pd=gd,md={format:{keyword:fd,hex:ld,rgb:pd,rgba:pd,hsl:hd,hsla:hd},parse:t=>{if("string"!=typeof t)return t;const e=ld.parse(t)||pd.parse(t)||hd.parse(t)||fd.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(id.HSL)||void 0===t.data.r?hd.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?pd.stringify(t):ld.stringify(t)},bd=(t,e)=>{const n=md.parse(t);for(const t in e)n[t]=ed.channel.clamp[t](e[t]);return md.stringify(n)},wd=(t,e,n=0,i=1)=>{if("number"!=typeof t)return bd(t,{a:e});const r=sd.set({r:ed.channel.clamp.r(t),g:ed.channel.clamp.g(e),b:ed.channel.clamp.b(n),a:ed.channel.clamp.a(i)});return md.stringify(r)},kd=t=>{const{r:e,g:n,b:i}=md.parse(t),r=.2126*ed.channel.toLinear(e)+.7152*ed.channel.toLinear(n)+.0722*ed.channel.toLinear(i);return ed.lang.round(r)},vd=t=>kd(t)>=.5,yd=t=>!vd(t),_d=(t,e,n)=>{const i=md.parse(t),r=i[e],o=ed.channel.clamp[e](r+n);return r!==o&&(i[e]=o),md.stringify(i)},Cd=(t,e)=>_d(t,"l",e),Ad=(t,e)=>_d(t,"l",-e),xd=(t,e)=>{const n=md.parse(t),i={};for(const t in e)e[t]&&(i[t]=n[t]+e[t]);return bd(t,i)},Ed=(t,e,n=50)=>{const{r:i,g:r,b:o,a}=md.parse(t),{r:s,g:c,b:l,a:u}=md.parse(e),h=n/100,d=2*h-1,f=a-u,g=((d*f==-1?d:(d+f)/(1+d*f))+1)/2,p=1-g;return wd(i*g+s*p,r*g+c*p,o*g+l*p,a*h+u*(1-h))},Td=(t,e=100)=>{const n=md.parse(t);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,Ed(n,t,e)},Sd=(t,e)=>xd(t,e?{s:-40,l:10}:{s:-40,l:-10}),Dd="#ffffff",Id="#f2f2f2";let Bd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||xd(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||xd(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Sd(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Sd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Sd(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Sd(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Td(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Td(this.tertiaryColor),this.lineColor=this.lineColor||Td(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Ad(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Ad(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Td(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Cd(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||xd(this.primaryColor,{h:30}),this.cScale4=this.cScale4||xd(this.primaryColor,{h:60}),this.cScale5=this.cScale5||xd(this.primaryColor,{h:90}),this.cScale6=this.cScale6||xd(this.primaryColor,{h:120}),this.cScale7=this.cScale7||xd(this.primaryColor,{h:150}),this.cScale8=this.cScale8||xd(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||xd(this.primaryColor,{h:270}),this.cScale10=this.cScale10||xd(this.primaryColor,{h:300}),this.cScale11=this.cScale11||xd(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Ad(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Ad(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Td(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||Cd(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||Ad(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||xd(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||xd(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||xd(this.primaryColor,{h:64}),this.fillType3=this.fillType3||xd(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||xd(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||xd(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||xd(this.primaryColor,{h:128}),this.fillType7=this.fillType7||xd(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||xd(this.primaryColor,{l:-10}),this.pie5=this.pie5||xd(this.secondaryColor,{l:-10}),this.pie6=this.pie6||xd(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||xd(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||xd(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||xd(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||xd(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||xd(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||xd(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ad(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||xd(this.primaryColor,{h:-30}),this.git4=this.git4||xd(this.primaryColor,{h:-60}),this.git5=this.git5||xd(this.primaryColor,{h:-90}),this.git6=this.git6||xd(this.primaryColor,{h:60}),this.git7=this.git7||xd(this.primaryColor,{h:120}),this.darkMode?(this.git0=Cd(this.git0,25),this.git1=Cd(this.git1,25),this.git2=Cd(this.git2,25),this.git3=Cd(this.git3,25),this.git4=Cd(this.git4,25),this.git5=Cd(this.git5,25),this.git6=Cd(this.git6,25),this.git7=Cd(this.git7,25)):(this.git0=Ad(this.git0,25),this.git1=Ad(this.git1,25),this.git2=Ad(this.git2,25),this.git3=Ad(this.git3,25),this.git4=Ad(this.git4,25),this.git5=Ad(this.git5,25),this.git6=Ad(this.git6,25),this.git7=Ad(this.git7,25)),this.gitInv0=this.gitInv0||Td(this.git0),this.gitInv1=this.gitInv1||Td(this.git1),this.gitInv2=this.gitInv2||Td(this.git2),this.gitInv3=this.gitInv3||Td(this.git3),this.gitInv4=this.gitInv4||Td(this.git4),this.gitInv5=this.gitInv5||Td(this.git5),this.gitInv6=this.gitInv6||Td(this.git6),this.gitInv7=this.gitInv7||Td(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Dd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Id}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};const Md=t=>{const e=new Bd;return e.calculate(t),e};let Pd=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Cd(this.primaryColor,16),this.tertiaryColor=xd(this.primaryColor,{h:-160}),this.primaryBorderColor=Td(this.background),this.secondaryBorderColor=Sd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Sd(this.tertiaryColor,this.darkMode),this.primaryTextColor=Td(this.primaryColor),this.secondaryTextColor=Td(this.secondaryColor),this.tertiaryTextColor=Td(this.tertiaryColor),this.lineColor=Td(this.background),this.textColor=Td(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Cd(Td("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=wd(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Ad("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=wd(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=wd(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=Cd(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Cd(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=Cd(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=xd(this.primaryColor,{h:64}),this.fillType3=xd(this.secondaryColor,{h:64}),this.fillType4=xd(this.primaryColor,{h:-64}),this.fillType5=xd(this.secondaryColor,{h:-64}),this.fillType6=xd(this.primaryColor,{h:128}),this.fillType7=xd(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||xd(this.primaryColor,{h:30}),this.cScale4=this.cScale4||xd(this.primaryColor,{h:60}),this.cScale5=this.cScale5||xd(this.primaryColor,{h:90}),this.cScale6=this.cScale6||xd(this.primaryColor,{h:120}),this.cScale7=this.cScale7||xd(this.primaryColor,{h:150}),this.cScale8=this.cScale8||xd(this.primaryColor,{h:210}),this.cScale9=this.cScale9||xd(this.primaryColor,{h:270}),this.cScale10=this.cScale10||xd(this.primaryColor,{h:300}),this.cScale11=this.cScale11||xd(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Td(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||Cd(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||xd(this.mainBkg,{h:30,s:-30,l:-(4*t-10)}),this["surfacePeer"+t]=this["surfacePeer"+t]||xd(this.mainBkg,{h:30,s:-30,l:-(4*t-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?Ad(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Cd(this.secondaryColor,20),this.git1=Cd(this.pie2||this.secondaryColor,20),this.git2=Cd(this.pie3||this.tertiaryColor,20),this.git3=Cd(this.pie4||xd(this.primaryColor,{h:-30}),20),this.git4=Cd(this.pie5||xd(this.primaryColor,{h:-60}),20),this.git5=Cd(this.pie6||xd(this.primaryColor,{h:-90}),10),this.git6=Cd(this.pie7||xd(this.primaryColor,{h:60}),10),this.git7=Cd(this.pie8||xd(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Td(this.git0),this.gitInv1=this.gitInv1||Td(this.git1),this.gitInv2=this.gitInv2||Td(this.git2),this.gitInv3=this.gitInv3||Td(this.git3),this.gitInv4=this.gitInv4||Td(this.git4),this.gitInv5=this.gitInv5||Td(this.git5),this.gitInv6=this.gitInv6||Td(this.git6),this.gitInv7=this.gitInv7||Td(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Cd(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Cd(this.background,2)}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};const Ld=t=>{const e=new Pd;return e.calculate(t),e};let Od=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=xd(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=xd(this.primaryColor,{h:-160}),this.primaryBorderColor=Sd(this.primaryColor,this.darkMode),this.secondaryBorderColor=Sd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Sd(this.tertiaryColor,this.darkMode),this.primaryTextColor=Td(this.primaryColor),this.secondaryTextColor=Td(this.secondaryColor),this.tertiaryTextColor=Td(this.tertiaryColor),this.lineColor=Td(this.background),this.textColor=Td(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=wd(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||xd(this.primaryColor,{h:30}),this.cScale4=this.cScale4||xd(this.primaryColor,{h:60}),this.cScale5=this.cScale5||xd(this.primaryColor,{h:90}),this.cScale6=this.cScale6||xd(this.primaryColor,{h:120}),this.cScale7=this.cScale7||xd(this.primaryColor,{h:150}),this.cScale8=this.cScale8||xd(this.primaryColor,{h:210}),this.cScale9=this.cScale9||xd(this.primaryColor,{h:270}),this.cScale10=this.cScale10||xd(this.primaryColor,{h:300}),this.cScale11=this.cScale11||xd(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ad(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ad(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Ad(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Ad(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||xd(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||xd(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||xd(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||Td(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Td(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=Cd(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=xd(this.primaryColor,{h:64}),this.fillType3=xd(this.secondaryColor,{h:64}),this.fillType4=xd(this.primaryColor,{h:-64}),this.fillType5=xd(this.secondaryColor,{h:-64}),this.fillType6=xd(this.primaryColor,{h:128}),this.fillType7=xd(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||xd(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||xd(this.primaryColor,{l:-10}),this.pie5=this.pie5||xd(this.secondaryColor,{l:-30}),this.pie6=this.pie6||xd(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||xd(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||xd(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||xd(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||xd(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||xd(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||xd(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||xd(this.primaryColor,{h:-30}),this.git4=this.git4||xd(this.primaryColor,{h:-60}),this.git5=this.git5||xd(this.primaryColor,{h:-90}),this.git6=this.git6||xd(this.primaryColor,{h:60}),this.git7=this.git7||xd(this.primaryColor,{h:120}),this.darkMode?(this.git0=Cd(this.git0,25),this.git1=Cd(this.git1,25),this.git2=Cd(this.git2,25),this.git3=Cd(this.git3,25),this.git4=Cd(this.git4,25),this.git5=Cd(this.git5,25),this.git6=Cd(this.git6,25),this.git7=Cd(this.git7,25)):(this.git0=Ad(this.git0,25),this.git1=Ad(this.git1,25),this.git2=Ad(this.git2,25),this.git3=Ad(this.git3,25),this.git4=Ad(this.git4,25),this.git5=Ad(this.git5,25),this.git6=Ad(this.git6,25),this.git7=Ad(this.git7,25)),this.gitInv0=this.gitInv0||Ad(Td(this.git0),25),this.gitInv1=this.gitInv1||Td(this.git1),this.gitInv2=this.gitInv2||Td(this.git2),this.gitInv3=this.gitInv3||Td(this.git3),this.gitInv4=this.gitInv4||Td(this.git4),this.gitInv5=this.gitInv5||Td(this.git5),this.gitInv6=this.gitInv6||Td(this.git6),this.gitInv7=this.gitInv7||Td(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Td(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Td(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Dd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Id}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};const Nd=t=>{const e=new Od;return e.calculate(t),e};let Rd=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Cd("#cde498",10),this.primaryBorderColor=Sd(this.primaryColor,this.darkMode),this.secondaryBorderColor=Sd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Sd(this.tertiaryColor,this.darkMode),this.primaryTextColor=Td(this.primaryColor),this.secondaryTextColor=Td(this.secondaryColor),this.tertiaryTextColor=Td(this.primaryColor),this.lineColor=Td(this.background),this.textColor=Td(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||xd(this.primaryColor,{h:30}),this.cScale4=this.cScale4||xd(this.primaryColor,{h:60}),this.cScale5=this.cScale5||xd(this.primaryColor,{h:90}),this.cScale6=this.cScale6||xd(this.primaryColor,{h:120}),this.cScale7=this.cScale7||xd(this.primaryColor,{h:150}),this.cScale8=this.cScale8||xd(this.primaryColor,{h:210}),this.cScale9=this.cScale9||xd(this.primaryColor,{h:270}),this.cScale10=this.cScale10||xd(this.primaryColor,{h:300}),this.cScale11=this.cScale11||xd(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ad(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ad(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=Ad(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||Ad(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||xd(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||xd(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||xd(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=Ad(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=xd(this.primaryColor,{h:64}),this.fillType3=xd(this.secondaryColor,{h:64}),this.fillType4=xd(this.primaryColor,{h:-64}),this.fillType5=xd(this.secondaryColor,{h:-64}),this.fillType6=xd(this.primaryColor,{h:128}),this.fillType7=xd(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||xd(this.primaryColor,{l:-30}),this.pie5=this.pie5||xd(this.secondaryColor,{l:-30}),this.pie6=this.pie6||xd(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||xd(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||xd(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||xd(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||xd(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||xd(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||xd(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||xd(this.primaryColor,{h:-30}),this.git4=this.git4||xd(this.primaryColor,{h:-60}),this.git5=this.git5||xd(this.primaryColor,{h:-90}),this.git6=this.git6||xd(this.primaryColor,{h:60}),this.git7=this.git7||xd(this.primaryColor,{h:120}),this.darkMode?(this.git0=Cd(this.git0,25),this.git1=Cd(this.git1,25),this.git2=Cd(this.git2,25),this.git3=Cd(this.git3,25),this.git4=Cd(this.git4,25),this.git5=Cd(this.git5,25),this.git6=Cd(this.git6,25),this.git7=Cd(this.git7,25)):(this.git0=Ad(this.git0,25),this.git1=Ad(this.git1,25),this.git2=Ad(this.git2,25),this.git3=Ad(this.git3,25),this.git4=Ad(this.git4,25),this.git5=Ad(this.git5,25),this.git6=Ad(this.git6,25),this.git7=Ad(this.git7,25)),this.gitInv0=this.gitInv0||Td(this.git0),this.gitInv1=this.gitInv1||Td(this.git1),this.gitInv2=this.gitInv2||Td(this.git2),this.gitInv3=this.gitInv3||Td(this.git3),this.gitInv4=this.gitInv4||Td(this.git4),this.gitInv5=this.gitInv5||Td(this.git5),this.gitInv6=this.gitInv6||Td(this.git6),this.gitInv7=this.gitInv7||Td(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Dd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Id}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}};const Fd=t=>{const e=new Rd;return e.calculate(t),e};class jd{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Cd(this.contrast,55),this.background="#ffffff",this.tertiaryColor=xd(this.primaryColor,{h:-160}),this.primaryBorderColor=Sd(this.primaryColor,this.darkMode),this.secondaryBorderColor=Sd(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Sd(this.tertiaryColor,this.darkMode),this.primaryTextColor=Td(this.primaryColor),this.secondaryTextColor=Td(this.secondaryColor),this.tertiaryTextColor=Td(this.tertiaryColor),this.lineColor=Td(this.background),this.textColor=Td(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=Cd(this.contrast,55),this.border2=this.contrast,this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||Td(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||Cd(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||Ad(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||xd(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||xd(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=Cd(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=Cd(this.contrast,30),this.sectionBkgColor2=Cd(this.contrast,30),this.taskBorderColor=Ad(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=Cd(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Ad(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=xd(this.primaryColor,{h:64}),this.fillType3=xd(this.secondaryColor,{h:64}),this.fillType4=xd(this.primaryColor,{h:-64}),this.fillType5=xd(this.secondaryColor,{h:-64}),this.fillType6=xd(this.primaryColor,{h:128}),this.fillType7=xd(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ad(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||xd(this.primaryColor,{h:-30}),this.git4=this.pie5||xd(this.primaryColor,{h:-60}),this.git5=this.pie6||xd(this.primaryColor,{h:-90}),this.git6=this.pie7||xd(this.primaryColor,{h:60}),this.git7=this.pie8||xd(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Td(this.git0),this.gitInv1=this.gitInv1||Td(this.git1),this.gitInv2=this.gitInv2||Td(this.git2),this.gitInv3=this.gitInv3||Td(this.git3),this.gitInv4=this.gitInv4||Td(this.git4),this.gitInv5=this.gitInv5||Td(this.git5),this.gitInv6=this.gitInv6||Td(this.git6),this.gitInv7=this.gitInv7||Td(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Dd,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Id}calculate(t){if("object"!=typeof t)return void this.updateColors();const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]})),this.updateColors(),e.forEach((e=>{this[e]=t[e]}))}}const $d={base:{getThemeVariables:Md},dark:{getThemeVariables:Ld},default:{getThemeVariables:Nd},forest:{getThemeVariables:Fd},neutral:{getThemeVariables:t=>{const e=new jd;return e.calculate(t),e}}},zd={theme:"default",themeVariables:$d.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};zd.class&&(zd.class.arrowMarkerAbsolute=zd.arrowMarkerAbsolute),zd.gitGraph&&(zd.gitGraph.arrowMarkerAbsolute=zd.arrowMarkerAbsolute);const Vd=(t,e="")=>Object.keys(t).reduce(((n,i)=>Array.isArray(t[i])?n:"object"==typeof t[i]&&null!==t[i]?[...n,e+i,...Vd(t[i],"")]:[...n,e+i]),[]),Hd=Vd(zd,""),qd=zd;
/*! 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: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof uf))throw new tf("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new tf("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new tf("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof uf))throw new tf("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(ff.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=hf(i,"implicit"),i.compiledExplicit=hf(i,"explicit"),i.compiledTypeMap=df(i.compiledImplicit,i.compiledExplicit),i};var gf=ff,pf=new uf("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),mf=new uf("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),bf=new uf("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),wf=new gf({explicit:[pf,mf,bf]});function kf(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function vf(){return null}function yf(t){return null===t}var _f=new uf("tag:yaml.org,2002:null",{kind:"scalar",resolve:kf,construct:vf,predicate:yf,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Cf(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function Af(t){return"true"===t||"True"===t||"TRUE"===t}function xf(t){return"[object Boolean]"===Object.prototype.toString.call(t)}var Ef=new uf("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Cf,construct:Af,predicate:xf,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Tf(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Sf(t){return 48<=t&&t<=55}function Df(t){return 48<=t&&t<=57}function If(t){if(null===t)return!1;var e,n=t.length,i=0,r=!1;if(!n)return!1;if("-"!==(e=t[i])&&"+"!==e||(e=t[++i]),"0"===e){if(i+1===n)return!0;if("b"===(e=t[++i])){for(i++;i<n;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;r=!0}return r&&"_"!==e}if("x"===e){for(i++;i<n;i++)if("_"!==(e=t[i])){if(!Tf(t.charCodeAt(i)))return!1;r=!0}return r&&"_"!==e}if("o"===e){for(i++;i<n;i++)if("_"!==(e=t[i])){if(!Sf(t.charCodeAt(i)))return!1;r=!0}return r&&"_"!==e}}if("_"===e)return!1;for(;i<n;i++)if("_"!==(e=t[i])){if(!Df(t.charCodeAt(i)))return!1;r=!0}return!(!r||"_"===e)}function Bf(t){var e,n=t,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(i=-1),e=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===e){if("b"===n[1])return i*parseInt(n.slice(2),2);if("x"===n[1])return i*parseInt(n.slice(2),16);if("o"===n[1])return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)}function Mf(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!Zd.isNegativeZero(t)}var Pf=new uf("tag:yaml.org,2002:int",{kind:"scalar",resolve:If,construct:Bf,predicate:Mf,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Lf=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Of(t){return null!==t&&!(!Lf.test(t)||"_"===t[t.length-1])}function Nf(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)}var Rf=/^[-+]?[0-9]+e/;function Ff(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Zd.isNegativeZero(t))return"-0.0";return n=t.toString(10),Rf.test(n)?n.replace("e",".e"):n}function jf(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||Zd.isNegativeZero(t))}var $f=new uf("tag:yaml.org,2002:float",{kind:"scalar",resolve:Of,construct:Nf,predicate:jf,represent:Ff,defaultStyle:"lowercase"}),zf=wf.extend({implicit:[_f,Ef,Pf,$f]}),Vf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Hf=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qf(t){return null!==t&&(null!==Vf.exec(t)||null!==Hf.exec(t))}function Uf(t){var e,n,i,r,o,a,s,c,l=0,u=null;if(null===(e=Vf.exec(t))&&(e=Hf.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,s,l)),u&&c.setTime(c.getTime()-u),c}function Gf(t){return t.toISOString()}var Wf=new uf("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qf,construct:Uf,instanceOf:Date,represent:Gf});function Kf(t){return"<<"===t||null===t}var Yf=new uf("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Kf}),Xf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function Zf(t){if(null===t)return!1;var e,n,i=0,r=t.length,o=Xf;for(n=0;n<r;n++)if(!((e=o.indexOf(t.charAt(n)))>64)){if(e<0)return!1;i+=6}return i%8==0}function Qf(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,o=Xf,a=0,s=[];for(e=0;e<r;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(i.charAt(e));return 0==(n=r%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)}function Jf(t){var e,n,i="",r=0,o=t.length,a=Xf;for(e=0;e<o;e++)e%3==0&&e&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+t[e];return 0==(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}function tg(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}var eg=new uf("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Zf,construct:Qf,predicate:tg,represent:Jf}),ng=Object.prototype.hasOwnProperty,ig=Object.prototype.toString;function rg(t){if(null===t)return!0;var e,n,i,r,o,a=[],s=t;for(e=0,n=s.length;e<n;e+=1){if(i=s[e],o=!1,"[object Object]"!==ig.call(i))return!1;for(r in i)if(ng.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(r))return!1;a.push(r)}return!0}function og(t){return null!==t?t:[]}var ag=new uf("tag:yaml.org,2002:omap",{kind:"sequence",resolve:rg,construct:og}),sg=Object.prototype.toString;function cg(t){if(null===t)return!0;var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1){if(i=a[e],"[object Object]"!==sg.call(i))return!1;if(1!==(r=Object.keys(i)).length)return!1;o[e]=[r[0],i[r[0]]]}return!0}function lg(t){if(null===t)return[];var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1)i=a[e],r=Object.keys(i),o[e]=[r[0],i[r[0]]];return o}var ug=new uf("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cg,construct:lg}),hg=Object.prototype.hasOwnProperty;function dg(t){if(null===t)return!0;var e,n=t;for(e in n)if(hg.call(n,e)&&null!==n[e])return!1;return!0}function fg(t){return null!==t?t:{}}var gg=new uf("tag:yaml.org,2002:set",{kind:"mapping",resolve:dg,construct:fg}),pg=zf.extend({implicit:[Wf,Yf],explicit:[eg,ag,ug,gg]}),mg=Object.prototype.hasOwnProperty,bg=1,wg=2,kg=3,vg=4,yg=1,_g=2,Cg=3,Ag=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,xg=/[\x85\u2028\u2029]/,Eg=/[,\[\]\{\}]/,Tg=/^(?:!|!!|![a-z\-]+!)$/i,Sg=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Dg(t){return Object.prototype.toString.call(t)}function Ig(t){return 10===t||13===t}function Bg(t){return 9===t||32===t}function Mg(t){return 9===t||32===t||10===t||13===t}function Pg(t){return 44===t||91===t||93===t||123===t||125===t}function Lg(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function Og(t){return 120===t?2:117===t?4:85===t?8:0}function Ng(t){return 48<=t&&t<=57?t-48:-1}function Rg(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function Fg(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var jg=new Array(256),$g=new Array(256),zg=0;zg<256;zg++)jg[zg]=Rg(zg)?1:0,$g[zg]=Rg(zg);function Vg(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||pg,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Hg(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=of(n),new tf(e,n)}function qg(t,e){throw Hg(t,e)}function Ug(t,e){t.onWarning&&t.onWarning.call(null,Hg(t,e))}var Gg={YAML:function(t,e,n){var i,r,o;null!==t.version&&qg(t,"duplication of %YAML directive"),1!==n.length&&qg(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&qg(t,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&qg(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&Ug(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var i,r;2!==n.length&&qg(t,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],Tg.test(i)||qg(t,"ill-formed tag handle (first argument) of the TAG directive"),mg.call(t.tagMap,i)&&qg(t,'there is a previously declared suffix for "'+i+'" tag handle'),Sg.test(r)||qg(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(e){qg(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function Wg(t,e,n,i){var r,o,a,s;if(e<n){if(s=t.input.slice(e,n),i)for(r=0,o=s.length;r<o;r+=1)9===(a=s.charCodeAt(r))||32<=a&&a<=1114111||qg(t,"expected valid JSON character");else Ag.test(s)&&qg(t,"the stream contains non-printable characters");t.result+=s}}function Kg(t,e,n,i){var r,o,a,s;for(Zd.isObject(n)||qg(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(r=Object.keys(n)).length;a<s;a+=1)o=r[a],mg.call(e,o)||(e[o]=n[o],i[o]=!0)}function Yg(t,e,n,i,r,o,a,s,c){var l,u;if(Array.isArray(r))for(l=0,u=(r=Array.prototype.slice.call(r)).length;l<u;l+=1)Array.isArray(r[l])&&qg(t,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===Dg(r[l])&&(r[l]="[object Object]");if("object"==typeof r&&"[object Object]"===Dg(r)&&(r="[object Object]"),r=String(r),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)Kg(t,e,o[l],n);else Kg(t,e,o,n);else t.json||mg.call(n,r)||!mg.call(e,r)||(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=c||t.position,qg(t,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[r]=o,delete n[r];return e}function Xg(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):qg(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Zg(t,e,n){for(var i=0,r=t.input.charCodeAt(t.position);0!==r;){for(;Bg(r);)9===r&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),r=t.input.charCodeAt(++t.position);if(e&&35===r)do{r=t.input.charCodeAt(++t.position)}while(10!==r&&13!==r&&0!==r);if(!Ig(r))break;for(Xg(t),r=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===r;)t.lineIndent++,r=t.input.charCodeAt(++t.position)}return-1!==n&&0!==i&&t.lineIndent<n&&Ug(t,"deficient indentation"),i}function Qg(t){var e,n=t.position;return!(45!==(e=t.input.charCodeAt(n))&&46!==e||e!==t.input.charCodeAt(n+1)||e!==t.input.charCodeAt(n+2)||(n+=3,0!==(e=t.input.charCodeAt(n))&&!Mg(e)))}function Jg(t,e){1===e?t.result+=" ":e>1&&(t.result+=Zd.repeat("\n",e-1))}function tp(t,e,n){var i,r,o,a,s,c,l,u,h=t.kind,d=t.result;if(Mg(u=t.input.charCodeAt(t.position))||Pg(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Mg(i=t.input.charCodeAt(t.position+1))||n&&Pg(i)))return!1;for(t.kind="scalar",t.result="",r=o=t.position,a=!1;0!==u;){if(58===u){if(Mg(i=t.input.charCodeAt(t.position+1))||n&&Pg(i))break}else if(35===u){if(Mg(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&Qg(t)||n&&Pg(u))break;if(Ig(u)){if(s=t.line,c=t.lineStart,l=t.lineIndent,Zg(t,!1,-1),t.lineIndent>=e){a=!0,u=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=c,t.lineIndent=l;break}}a&&(Wg(t,r,o,!1),Jg(t,t.line-s),r=o=t.position,a=!1),Bg(u)||(o=t.position+1),u=t.input.charCodeAt(++t.position)}return Wg(t,r,o,!1),!!t.result||(t.kind=h,t.result=d,!1)}function ep(t,e){var n,i,r;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(Wg(t,i,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,r=t.position}else Ig(n)?(Wg(t,i,r,!0),Jg(t,Zg(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Qg(t)?qg(t,"unexpected end of the document within a single quoted scalar"):(t.position++,r=t.position);qg(t,"unexpected end of the stream within a single quoted scalar")}function np(t,e){var n,i,r,o,a,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return Wg(t,n,t.position,!0),t.position++,!0;if(92===s){if(Wg(t,n,t.position,!0),Ig(s=t.input.charCodeAt(++t.position)))Zg(t,!1,e);else if(s<256&&jg[s])t.result+=$g[s],t.position++;else if((a=Og(s))>0){for(r=a,o=0;r>0;r--)(a=Lg(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+a:qg(t,"expected hexadecimal character");t.result+=Fg(o),t.position++}else qg(t,"unknown escape sequence");n=i=t.position}else Ig(s)?(Wg(t,n,i,!0),Jg(t,Zg(t,!1,e)),n=i=t.position):t.position===t.lineStart&&Qg(t)?qg(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}qg(t,"unexpected end of the stream within a double quoted scalar")}function ip(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g=!0,p=t.tag,m=t.anchor,b=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))a=93,l=!1,o=[];else{if(123!==f)return!1;a=125,l=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),f=t.input.charCodeAt(++t.position);0!==f;){if(Zg(t,!0,e),(f=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=p,t.anchor=m,t.kind=l?"mapping":"sequence",t.result=o,!0;g?44===f&&qg(t,"expected the node content, but found ','"):qg(t,"missed comma between flow collection entries"),h=u=d=null,s=c=!1,63===f&&Mg(t.input.charCodeAt(t.position+1))&&(s=c=!0,t.position++,Zg(t,!0,e)),n=t.line,i=t.lineStart,r=t.position,up(t,e,bg,!1,!0),h=t.tag,u=t.result,Zg(t,!0,e),f=t.input.charCodeAt(t.position),!c&&t.line!==n||58!==f||(s=!0,f=t.input.charCodeAt(++t.position),Zg(t,!0,e),up(t,e,bg,!1,!0),d=t.result),l?Yg(t,o,b,h,u,d,n,i,r):s?o.push(Yg(t,null,b,h,u,d,n,i,r)):o.push(u),Zg(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(g=!0,f=t.input.charCodeAt(++t.position)):g=!1}qg(t,"unexpected end of the stream within a flow collection")}function rp(t,e){var n,i,r,o,a=yg,s=!1,c=!1,l=e,u=0,h=!1;if(124===(o=t.input.charCodeAt(t.position)))i=!1;else{if(62!==o)return!1;i=!0}for(t.kind="scalar",t.result="";0!==o;)if(43===(o=t.input.charCodeAt(++t.position))||45===o)yg===a?a=43===o?Cg:_g:qg(t,"repeat of a chomping mode identifier");else{if(!((r=Ng(o))>=0))break;0===r?qg(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?qg(t,"repeat of an indentation width identifier"):(l=e+r-1,c=!0)}if(Bg(o)){do{o=t.input.charCodeAt(++t.position)}while(Bg(o));if(35===o)do{o=t.input.charCodeAt(++t.position)}while(!Ig(o)&&0!==o)}for(;0!==o;){for(Xg(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!c||t.lineIndent<l)&&32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);if(!c&&t.lineIndent>l&&(l=t.lineIndent),Ig(o))u++;else{if(t.lineIndent<l){a===Cg?t.result+=Zd.repeat("\n",s?1+u:u):a===yg&&s&&(t.result+="\n");break}for(i?Bg(o)?(h=!0,t.result+=Zd.repeat("\n",s?1+u:u)):h?(h=!1,t.result+=Zd.repeat("\n",u+1)):0===u?s&&(t.result+=" "):t.result+=Zd.repeat("\n",u):t.result+=Zd.repeat("\n",s?1+u:u),s=!0,c=!0,u=0,n=t.position;!Ig(o)&&0!==o;)o=t.input.charCodeAt(++t.position);Wg(t,n,t.position,!1)}}return!0}function op(t,e){var n,i,r=t.tag,o=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,qg(t,"tab characters must not be used in indentation")),45===i)&&Mg(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,Zg(t,!0,-1)&&t.lineIndent<=e)a.push(null),i=t.input.charCodeAt(t.position);else if(n=t.line,up(t,e,kg,!1,!0),a.push(t.result),Zg(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==i)qg(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=r,t.anchor=o,t.kind="sequence",t.result=a,!0)}function ap(t,e,n){var i,r,o,a,s,c,l,u=t.tag,h=t.anchor,d={},f=Object.create(null),g=null,p=null,m=null,b=!1,w=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),l=t.input.charCodeAt(t.position);0!==l;){if(b||-1===t.firstTabInLine||(t.position=t.firstTabInLine,qg(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),o=t.line,63!==l&&58!==l||!Mg(i)){if(a=t.line,s=t.lineStart,c=t.position,!up(t,n,wg,!1,!0))break;if(t.line===o){for(l=t.input.charCodeAt(t.position);Bg(l);)l=t.input.charCodeAt(++t.position);if(58===l)Mg(l=t.input.charCodeAt(++t.position))||qg(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(Yg(t,d,f,g,p,null,a,s,c),g=p=m=null),w=!0,b=!1,r=!1,g=t.tag,p=t.result;else{if(!w)return t.tag=u,t.anchor=h,!0;qg(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!w)return t.tag=u,t.anchor=h,!0;qg(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(b&&(Yg(t,d,f,g,p,null,a,s,c),g=p=m=null),w=!0,b=!0,r=!0):b?(b=!1,r=!0):qg(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,l=i;if((t.line===o||t.lineIndent>e)&&(b&&(a=t.line,s=t.lineStart,c=t.position),up(t,e,vg,!0,r)&&(b?p=t.result:m=t.result),b||(Yg(t,d,f,g,p,m,a,s,c),g=p=m=null),Zg(t,!0,-1),l=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==l)qg(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&Yg(t,d,f,g,p,null,a,s,c),w&&(t.tag=u,t.anchor=h,t.kind="mapping",t.result=d),w}function sp(t){var e,n,i,r,o=!1,a=!1;if(33!==(r=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&qg(t,"duplication of a tag property"),60===(r=t.input.charCodeAt(++t.position))?(o=!0,r=t.input.charCodeAt(++t.position)):33===r?(a=!0,n="!!",r=t.input.charCodeAt(++t.position)):n="!",e=t.position,o){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&62!==r);t.position<t.length?(i=t.input.slice(e,t.position),r=t.input.charCodeAt(++t.position)):qg(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!Mg(r);)33===r&&(a?qg(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),Tg.test(n)||qg(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),r=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),Eg.test(i)&&qg(t,"tag suffix cannot contain flow indicator characters")}i&&!Sg.test(i)&&qg(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(e){qg(t,"tag name is malformed: "+i)}return o?t.tag=i:mg.call(t.tagMap,n)?t.tag=t.tagMap[n]+i:"!"===n?t.tag="!"+i:"!!"===n?t.tag="tag:yaml.org,2002:"+i:qg(t,'undeclared tag handle "'+n+'"'),!0}function cp(t){var e,n;if(38!==(n=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&qg(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!Mg(n)&&!Pg(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&qg(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function lp(t){var e,n,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!Mg(i)&&!Pg(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&qg(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),mg.call(t.anchorMap,n)||qg(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],Zg(t,!0,-1),!0}function up(t,e,n,i,r){var o,a,s,c,l,u,h,d,f,g=1,p=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=vg===n||kg===n,i&&Zg(t,!0,-1)&&(p=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;sp(t)||cp(t);)Zg(t,!0,-1)?(p=!0,s=o,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):s=!1;if(s&&(s=p||r),1!==g&&vg!==n||(d=bg===n||wg===n?e:e+1,f=t.position-t.lineStart,1===g?s&&(op(t,f)||ap(t,f,d))||ip(t,d)?m=!0:(a&&rp(t,d)||ep(t,d)||np(t,d)?m=!0:lp(t)?(m=!0,null===t.tag&&null===t.anchor||qg(t,"alias node should not have any properties")):tp(t,d,bg===n)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(m=s&&op(t,f))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&qg(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,l=t.implicitTypes.length;c<l;c+=1)if((h=t.implicitTypes[c]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(mg.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,c=0,l=(u=t.typeMap.multi[t.kind||"fallback"]).length;c<l;c+=1)if(t.tag.slice(0,u[c].tag.length)===u[c].tag){h=u[c];break}h||qg(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&qg(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):qg(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function hp(t){var e,n,i,r,o=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(r=t.input.charCodeAt(t.position))&&(Zg(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){for(a=!0,r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!Mg(r);)r=t.input.charCodeAt(++t.position);for(i=[],(n=t.input.slice(e,t.position)).length<1&&qg(t,"directive name must not be less than one character in length");0!==r;){for(;Bg(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&!Ig(r));break}if(Ig(r))break;for(e=t.position;0!==r&&!Mg(r);)r=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==r&&Xg(t),mg.call(Gg,n)?Gg[n](t,n,i):Ug(t,'unknown document directive "'+n+'"')}Zg(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,Zg(t,!0,-1)):a&&qg(t,"directives end mark is expected"),up(t,t.lineIndent-1,vg,!1,!0),Zg(t,!0,-1),t.checkLineBreaks&&xg.test(t.input.slice(o,t.position))&&Ug(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Qg(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,Zg(t,!0,-1)):t.position<t.length-1&&qg(t,"end of the stream or a document separator is expected")}function dp(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new Vg(t,e),i=t.indexOf("\0");for(-1!==i&&(n.position=i,qg(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)hp(n);return n.documents}function fp(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);var i=dp(t,n);if("function"!=typeof e)return i;for(var r=0,o=i.length;r<o;r+=1)e(i[r])}function gp(t,e){var n=dp(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new tf("expected a single document in the stream, but found more")}}var pp=wf,mp={loadAll:fp,load:gp}.load;const bp=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function wp(t,e){var n;const i=t.match(bp);if(i){const r=mp(i[1],{schema:pp});return(null==r?void 0:r.title)&&(null==(n=e.setDiagramTitle)||n.call(e,r.title)),t.slice(i[0].length)}return t}const kp=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,vp=/\s*%%.*\n/gm,yp={},_p=function(t,e){t=t.replace(bp,"").replace(kp,"").replace(vp,"\n");for(const[n,{detector:i}]of Object.entries(yp))if(i(t,e))return n;throw new Error(`No diagram type detected for text: ${t}`)},Cp=(...t)=>{for(const{id:e,detector:n,loader:i}of t)Ap(e,n,i)},Ap=(t,e,n)=>{yp[t]?h.error(`Detector with key ${t} already exists`):yp[t]={detector:e,loader:n},h.debug(`Detector with key ${t} added${n?" with loader":""}`)},xp=t=>yp[t].loader,Ep=function(t,e,n){const{depth:i,clobber:r}=Object.assign({depth:2,clobber:!1},n);return Array.isArray(e)&&!Array.isArray(t)?(e.forEach((e=>Ep(t,e,n))),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach((e=>{t.includes(e)||t.push(e)})),t):void 0===t||i<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach((n=>{"object"!=typeof e[n]||void 0!==t[n]&&"object"!=typeof t[n]?(r||"object"!=typeof t[n]&&"object"!=typeof e[n])&&(t[n]=e[n]):(void 0===t[n]&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=Ep(t[n],e[n],{depth:i-1,clobber:r}))})),t)},Tp=Ep,Sp="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var Dp="object"==typeof self&&self&&self.Object===Object&&self;const Ip=Sp||Dp||Function("return this")(),Bp=Ip.Symbol;var Mp=Object.prototype,Pp=Mp.hasOwnProperty,Lp=Mp.toString,Op=Bp?Bp.toStringTag:void 0;function Np(t){var e=Pp.call(t,Op),n=t[Op];try{t[Op]=void 0;var i=!0}catch(t){}var r=Lp.call(t);return i&&(e?t[Op]=n:delete t[Op]),r}var Rp=Object.prototype.toString;function Fp(t){return Rp.call(t)}var jp="[object Null]",$p="[object Undefined]",zp=Bp?Bp.toStringTag:void 0;function Vp(t){return null==t?void 0===t?$p:jp:zp&&zp in Object(t)?Np(t):Fp(t)}function Hp(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var qp="[object AsyncFunction]",Up="[object Function]",Gp="[object GeneratorFunction]",Wp="[object Proxy]";function Kp(t){if(!Hp(t))return!1;var e=Vp(t);return e==Up||e==Gp||e==qp||e==Wp}const Yp=Ip["__core-js_shared__"];var Xp=function(){var t=/[^.]+$/.exec(Yp&&Yp.keys&&Yp.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Zp(t){return!!Xp&&Xp in t}var Qp=Function.prototype.toString;function Jp(t){if(null!=t){try{return Qp.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var tm=/[\\^$.*+?()[\]{}|]/g,em=/^\[object .+?Constructor\]$/,nm=Function.prototype,im=Object.prototype,rm=nm.toString,om=im.hasOwnProperty,am=RegExp("^"+rm.call(om).replace(tm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sm(t){return!(!Hp(t)||Zp(t))&&(Kp(t)?am:em).test(Jp(t))}function cm(t,e){return null==t?void 0:t[e]}function lm(t,e){var n=cm(t,e);return sm(n)?n:void 0}const um=lm(Object,"create");function hm(){this.__data__=um?um(null):{},this.size=0}function dm(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var fm="__lodash_hash_undefined__",gm=Object.prototype.hasOwnProperty;function pm(t){var e=this.__data__;if(um){var n=e[t];return n===fm?void 0:n}return gm.call(e,t)?e[t]:void 0}var mm=Object.prototype.hasOwnProperty;function bm(t){var e=this.__data__;return um?void 0!==e[t]:mm.call(e,t)}var wm="__lodash_hash_undefined__";function km(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=um&&void 0===e?wm:e,this}function vm(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function ym(){this.__data__=[],this.size=0}function _m(t,e){return t===e||t!=t&&e!=e}function Cm(t,e){for(var n=t.length;n--;)if(_m(t[n][0],e))return n;return-1}vm.prototype.clear=hm,vm.prototype.delete=dm,vm.prototype.get=pm,vm.prototype.has=bm,vm.prototype.set=km;var Am=Array.prototype.splice;function xm(t){var e=this.__data__,n=Cm(e,t);return!(n<0||(n==e.length-1?e.pop():Am.call(e,n,1),--this.size,0))}function Em(t){var e=this.__data__,n=Cm(e,t);return n<0?void 0:e[n][1]}function Tm(t){return Cm(this.__data__,t)>-1}function Sm(t,e){var n=this.__data__,i=Cm(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function Dm(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Dm.prototype.clear=ym,Dm.prototype.delete=xm,Dm.prototype.get=Em,Dm.prototype.has=Tm,Dm.prototype.set=Sm;const Im=lm(Ip,"Map");function Bm(){this.size=0,this.__data__={hash:new vm,map:new(Im||Dm),string:new vm}}function Mm(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}function Pm(t,e){var n=t.__data__;return Mm(e)?n["string"==typeof e?"string":"hash"]:n.map}function Lm(t){var e=Pm(this,t).delete(t);return this.size-=e?1:0,e}function Om(t){return Pm(this,t).get(t)}function Nm(t){return Pm(this,t).has(t)}function Rm(t,e){var n=Pm(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}function Fm(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Fm.prototype.clear=Bm,Fm.prototype.delete=Lm,Fm.prototype.get=Om,Fm.prototype.has=Nm,Fm.prototype.set=Rm;var jm="Expected a function";function $m(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(jm);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new($m.Cache||Fm),n}$m.Cache=Fm;const zm={curveBasis:Xl,curveBasisClosed:Ql,curveBasisOpen:tu,curveBumpX:Ul,curveBumpY:Gl,curveBundle:nu,curveCardinalClosed:su,curveCardinalOpen:lu,curveCardinal:ou,curveCatmullRomClosed:gu,curveCatmullRomOpen:mu,curveCatmullRom:du,curveLinear:Rl,curveLinearClosed:wu,curveMonotoneX:Eu,curveMonotoneY:Tu,curveNatural:Iu,curveStep:Mu,curveStepAfter:Lu,curveStepBefore:Pu},Vm=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Hm=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,qm=function(t,e){const n=Um(t,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const t=n.map((t=>t.args));gb(t),i=Tp(i,[...t])}else i=n.args;if(i){let n=_p(t,e);["config"].forEach((t=>{void 0!==i[t]&&("flowchart-v2"===n&&(n="flowchart"),i[n]=i[t],delete i[t])}))}return i},Um=function(t,e=null){try{const n=new RegExp(`[%]{2}(?![{]${Hm.source})(?=[}][%]{2}).*\n`,"ig");let i;t=t.trim().replace(n,"").replace(/'/gm,'"'),h.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);const r=[];for(;null!==(i=Vm.exec(t));)if(i.index===Vm.lastIndex&&Vm.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){const t=i[1]?i[1]:i[2],e=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;r.push({type:t,args:e})}return 0===r.length&&r.push({type:t,args:null}),1===r.length?r[0]:r}catch(n){return h.error(`ERROR: ${n.message} - Unable to parse directive\n ${null!==e?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}},Gm=function(t,e){for(const[n,i]of e.entries())if(i.match(t))return n;return-1};function Wm(t,e){if(!t)return e;const n=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return zm[n]||e}function Km(t,e){const n=t.trim();if(n)return"loose"!==e.securityLevel?p(n):n}const Ym=(t,...e)=>{const n=t.split("."),i=n.length-1,r=n[i];let o=window;for(let t=0;t<i;t++)if(o=o[n[t]],!o)return;o[r](...e)};function Xm(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function Zm(t){let e,n=0;t.forEach((t=>{n+=Xm(t,e),e=t}));let i,r=n/2;return e=void 0,t.forEach((t=>{if(e&&!i){const n=Xm(t,e);if(n<r)r-=n;else{const o=r/n;o<=0&&(i=e),o>=1&&(i={x:t.x,y:t.y}),o>0&&o<1&&(i={x:(1-o)*e.x+o*t.x,y:(1-o)*e.y+o*t.y})}}e=t})),i}function Qm(t){return 1===t.length?t[0]:Zm(t)}const Jm=(t,e,n)=>{let i;h.info(`our points ${JSON.stringify(e)}`),e[0]!==n&&(e=e.reverse());let r,o=25;i=void 0,e.forEach((t=>{if(i&&!r){const e=Xm(t,i);if(e<o)o-=e;else{const n=o/e;n<=0&&(r=i),n>=1&&(r={x:t.x,y:t.y}),n>0&&n<1&&(r={x:(1-n)*i.x+n*t.x,y:(1-n)*i.y+n*t.y})}}i=t}));const a=t?10:5,s=Math.atan2(e[0].y-r.y,e[0].x-r.x),c={x:0,y:0};return c.x=Math.sin(s)*a+(e[0].x+r.x)/2,c.y=-Math.cos(s)*a+(e[0].y+r.y)/2,c};function tb(t,e,n){let i,r=JSON.parse(JSON.stringify(n));h.info("our points",r),"start_left"!==e&&"start_right"!==e&&(r=r.reverse()),r.forEach((t=>{i=t}));let o,a=25+t;i=void 0,r.forEach((t=>{if(i&&!o){const e=Xm(t,i);if(e<a)a-=e;else{const n=a/e;n<=0&&(o=i),n>=1&&(o={x:t.x,y:t.y}),n>0&&n<1&&(o={x:(1-n)*i.x+n*t.x,y:(1-n)*i.y+n*t.y})}}i=t}));const s=10+.5*t,c=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return l.x=Math.sin(c)*s+(r[0].x+o.x)/2,l.y=-Math.cos(c)*s+(r[0].y+o.y)/2,"start_left"===e&&(l.x=Math.sin(c+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(c+Math.PI)*s+(r[0].y+o.y)/2),"end_right"===e&&(l.x=Math.sin(c-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(c-Math.PI)*s+(r[0].y+o.y)/2-5),"end_left"===e&&(l.x=Math.sin(c)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(c)*s+(r[0].y+o.y)/2-5),l}function eb(t){let e="",n="";for(const i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?n=n+i+";":e=e+i+";");return{style:e,labelStyle:n}}let nb=0;const ib=()=>(nb++,"id-"+Math.random().toString(36).substr(2,12)+"-"+nb);function rb(t){let e="";const n="0123456789abcdef",i=n.length;for(let r=0;r<t;r++)e+=n.charAt(Math.floor(Math.random()*i));return e}const ob=t=>rb(t.length),ab=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},sb=function(t,e){const n=e.text.replace(Jh.lineBreakRegex," "),[,i]=wb(e.fontSize),r=t.append("text");r.attr("x",e.x),r.attr("y",e.y),r.style("text-anchor",e.anchor),r.style("font-family",e.fontFamily),r.style("font-size",i),r.style("font-weight",e.fontWeight),r.attr("fill",e.fill),void 0!==e.class&&r.attr("class",e.class);const o=r.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(n),r},cb=$m(((t,e,n)=>{if(!t)return t;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Jh.lineBreakRegex.test(t))return t;const i=t.split(" "),r=[];let o="";return i.forEach(((t,a)=>{const s=hb(`${t} `,n),c=hb(o,n);if(s>e){const{hyphenatedStrings:i,remainingWord:a}=lb(t,e,"-",n);r.push(o,...i),o=a}else c+s>=e?(r.push(o),o=t):o=[o,t].filter(Boolean).join(" ");a+1===i.length&&r.push(o)})),r.filter((t=>""!==t)).join(n.joinWith)}),((t,e,n)=>`${t}${e}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`)),lb=$m(((t,e,n="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const r=[...t],o=[];let a="";return r.forEach(((t,s)=>{const c=`${a}${t}`;if(hb(c,i)>=e){const t=s+1,e=r.length===t,i=`${c}${n}`;o.push(e?c:i),a=""}else a=c})),{hyphenatedStrings:o,remainingWord:a}}),((t,e,n="-",i)=>`${t}${e}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}`));function ub(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),db(t,e).height}function hb(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),db(t,e).width}const db=$m(((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:n,fontFamily:i,fontWeight:r}=e;if(!t)return{width:0,height:0};const[,o]=wb(n),a=["sans-serif",i],s=t.split(Jh.lineBreakRegex),c=[],l=un("body");if(!l.remove)return{width:0,height:0,lineHeight:0};const u=l.append("svg");for(const t of a){let e=0;const n={width:0,height:0,lineHeight:0};for(const i of s){const a=ab();a.text=i;const s=sb(u,a).style("font-size",o).style("font-weight",r).style("font-family",t),c=(s._groups||s)[0][0].getBBox();n.width=Math.round(Math.max(n.width,c.width)),e=Math.round(c.height),n.height+=e,n.lineHeight=Math.round(Math.max(n.lineHeight,e))}c.push(n)}return u.remove(),c[isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`));let fb;const gb=t=>{if(h.debug("directiveSanitizer called with",t),"object"==typeof t&&(t.length?t.forEach((t=>gb(t))):Object.keys(t).forEach((e=>{h.debug("Checking key",e),e.startsWith("__")&&(h.debug("sanitize deleting __ option",e),delete t[e]),e.includes("proto")&&(h.debug("sanitize deleting proto option",e),delete t[e]),e.includes("constr")&&(h.debug("sanitize deleting constr option",e),delete t[e]),e.includes("themeCSS")&&(h.debug("sanitizing themeCss option"),t[e]=pb(t[e])),e.includes("fontFamily")&&(h.debug("sanitizing fontFamily option"),t[e]=pb(t[e])),e.includes("altFontFamily")&&(h.debug("sanitizing altFontFamily option"),t[e]=pb(t[e])),Hd.includes(e)?"object"==typeof t[e]&&(h.debug("sanitize deleting object",e),gb(t[e])):(h.debug("sanitize deleting option",e),delete t[e])}))),t.themeVariables){const e=Object.keys(t.themeVariables);for(const n of e){const e=t.themeVariables[n];e&&e.match&&!e.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[n]="")}}h.debug("After sanitization",t)},pb=t=>{let e=0,n=0;for(const i of t){if(e<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===i?e++:"}"===i&&n++}return e!==n?"{ /* ERROR: Unbalanced CSS */ }":t};function mb(t){return"str"in t}function bb(t){return t instanceof Error?t.message:String(t)}const wb=t=>{if("number"==typeof t)return[t,t+"px"];const e=parseInt(t,10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},kb={assignWithDepth:Tp,wrapLabel:cb,calculateTextHeight:ub,calculateTextWidth:hb,calculateTextDimensions:db,detectInit:qm,detectDirective:Um,isSubstringInArray:Gm,interpolateToCurve:Wm,calcLabelPosition:Qm,calcCardinalityPosition:Jm,calcTerminalLabelPosition:tb,formatUrl:Km,getStylesFromArray:eb,generateId:ib,random:ob,runFunc:Ym,entityDecode:function(t){return fb=fb||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),fb.innerHTML=t,unescape(fb.textContent)},initIdGenerator:class{constructor(t,e){this.deterministic=t,this.seed=e,this.count=e?e.length:0}next(){return this.deterministic?this.count++:Date.now()}},directiveSanitizer:gb,sanitizeCss:pb,insertTitle:(t,e,n,i)=>{if(!i)return;const r=t.node().getBBox();t.append("text").text(i).attr("x",r.x+r.width/2).attr("y",-n).attr("class",e)},parseFontSize:wb};var vb="comm",yb="rule",_b="decl",Cb="@import",Ab="@keyframes",xb=Math.abs,Eb=String.fromCharCode;function Tb(t){return t.trim()}function Sb(t,e,n){return t.replace(e,n)}function Db(t,e){return t.indexOf(e)}function Ib(t,e){return 0|t.charCodeAt(e)}function Bb(t,e,n){return t.slice(e,n)}function Mb(t){return t.length}function Pb(t){return t.length}function Lb(t,e){return e.push(t),t}var Ob=1,Nb=1,Rb=0,Fb=0,jb=0,$b="";function zb(t,e,n,i,r,o,a){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:Ob,column:Nb,length:a,return:""}}function Vb(){return jb}function Hb(){return jb=Fb>0?Ib($b,--Fb):0,Nb--,10===jb&&(Nb=1,Ob--),jb}function qb(){return jb=Fb<Rb?Ib($b,Fb++):0,Nb++,10===jb&&(Nb=1,Ob++),jb}function Ub(){return Ib($b,Fb)}function Gb(){return Fb}function Wb(t,e){return Bb($b,t,e)}function Kb(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Yb(t){return Ob=Nb=1,Rb=Mb($b=t),Fb=0,[]}function Xb(t){return $b="",t}function Zb(t){return Tb(Wb(Fb-1,tw(91===t?t+2:40===t?t+1:t)))}function Qb(t){for(;(jb=Ub())&&jb<33;)qb();return Kb(t)>2||Kb(jb)>3?"":" "}function Jb(t,e){for(;--e&&qb()&&!(jb<48||jb>102||jb>57&&jb<65||jb>70&&jb<97););return Wb(t,Gb()+(e<6&&32==Ub()&&32==qb()))}function tw(t){for(;qb();)switch(jb){case t:return Fb;case 34:case 39:34!==t&&39!==t&&tw(jb);break;case 40:41===t&&tw(t);break;case 92:qb()}return Fb}function ew(t,e){for(;qb()&&t+jb!==57&&(t+jb!==84||47!==Ub()););return"/*"+Wb(e,Fb-1)+"*"+Eb(47===t?t:qb())}function nw(t){for(;!Kb(Ub());)qb();return Wb(t,Fb)}function iw(t){return Xb(rw("",null,null,null,[""],t=Yb(t),0,[0],t))}function rw(t,e,n,i,r,o,a,s,c){for(var l=0,u=0,h=a,d=0,f=0,g=0,p=1,m=1,b=1,w=0,k="",v=r,y=o,_=i,C=k;m;)switch(g=w,w=qb()){case 40:if(108!=g&&58==Ib(C,h-1)){-1!=Db(C+=Sb(Zb(w),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=Zb(w);break;case 9:case 10:case 13:case 32:C+=Qb(g);break;case 92:C+=Jb(Gb()-1,7);continue;case 47:switch(Ub()){case 42:case 47:Lb(aw(ew(qb(),Gb()),e,n),c);break;default:C+="/"}break;case 123*p:s[l++]=Mb(C)*b;case 125*p:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+u:f>0&&Mb(C)-h&&Lb(f>32?sw(C+";",i,n,h-1):sw(Sb(C," ","")+";",i,n,h-2),c);break;case 59:C+=";";default:if(Lb(_=ow(C,e,n,l,u,r,s,k,v=[],y=[],h),o),123===w)if(0===u)rw(C,e,_,_,v,o,h,s,y);else switch(d){case 100:case 109:case 115:rw(t,_,_,i&&Lb(ow(t,_,_,0,0,r,s,k,r,v=[],h),y),r,y,h,s,i?v:y);break;default:rw(C,_,_,_,[""],y,0,s,y)}}l=u=f=0,p=b=1,k=C="",h=a;break;case 58:h=1+Mb(C),f=g;default:if(p<1)if(123==w)--p;else if(125==w&&0==p++&&125==Hb())continue;switch(C+=Eb(w),w*p){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[l++]=(Mb(C)-1)*b,b=1;break;case 64:45===Ub()&&(C+=Zb(qb())),d=Ub(),u=h=Mb(k=C+=nw(Gb())),w++;break;case 45:45===g&&2==Mb(C)&&(p=0)}}return o}function ow(t,e,n,i,r,o,a,s,c,l,u){for(var h=r-1,d=0===r?o:[""],f=Pb(d),g=0,p=0,m=0;g<i;++g)for(var b=0,w=Bb(t,h+1,h=xb(p=a[g])),k=t;b<f;++b)(k=Tb(p>0?d[b]+" "+w:Sb(w,/&\f/g,d[b])))&&(c[m++]=k);return zb(t,e,n,0===r?yb:s,c,l,u)}function aw(t,e,n){return zb(t,e,n,vb,Eb(Vb()),Bb(t,2,-2),0)}function sw(t,e,n,i){return zb(t,e,n,_b,Bb(t,0,i),Bb(t,i+1,-1),i)}function cw(t,e){for(var n="",i=Pb(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function lw(t,e,n,i){switch(t.type){case Cb:case _b:return t.return=t.return||t.value;case vb:return"";case Ab:return t.return=t.value+"{"+cw(t.children,i)+"}";case yb:t.value=t.props.join(",")}return Mb(n=cw(t.children,i))?t.return=t.value+"{"+n+"}":""}const uw="9.4.3",hw=Object.freeze(qd);let dw,fw=Tp({},hw),gw=[],pw=Tp({},hw);const mw=(t,e)=>{let n=Tp({},t),i={};for(const t of e)Cw(t),i=Tp(i,t);if(n=Tp(n,i),i.theme&&i.theme in $d){const t=Tp({},dw),e=Tp(t.themeVariables||{},i.themeVariables);n.theme&&n.theme in $d&&(n.themeVariables=$d[n.theme].getThemeVariables(e))}return pw=n,Dw(pw),pw},bw=t=>(fw=Tp({},hw),fw=Tp(fw,t),t.theme&&$d[t.theme]&&(fw.themeVariables=$d[t.theme].getThemeVariables(t.themeVariables)),mw(fw,gw),fw),ww=t=>{dw=Tp({},t)},kw=t=>(fw=Tp(fw,t),mw(fw,gw),fw),vw=()=>Tp({},fw),yw=t=>(Dw(t),Tp(pw,t),_w()),_w=()=>Tp({},pw),Cw=t=>{["secure",...fw.secure??[]].forEach((e=>{void 0!==t[e]&&(h.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])})),Object.keys(t).forEach((e=>{0===e.indexOf("__")&&delete t[e]})),Object.keys(t).forEach((e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&Cw(t[e])}))},Aw=t=>{t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),gw.push(t),mw(fw,gw)},xw=(t=fw)=>{gw=[],mw(t,gw)};var Ew=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(Ew||{});const Tw={},Sw=t=>{Tw[t]||(h.warn(Ew[t]),Tw[t]=!0)},Dw=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Sw("LAZY_LOAD_DEPRECATED")},Iw=function(t,e){for(let n of e)t.attr(n[0],n[1])},Bw=function(t,e,n){let i=new Map;return n?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},Mw=function(t,e,n,i){const r=Bw(e,n,i);Iw(t,r)},Pw=function(t,e,n,i){const r=e.node().getBBox(),o=r.width,a=r.height;h.info(`SVG bounds: ${o}x${a}`,r);let s=0,c=0;h.info(`Graph bounds: ${s}x${c}`,t),s=o+2*n,c=a+2*n,h.info(`Calculated bounds: ${s}x${c}`),Mw(e,c,s,i);const l=`${r.x-n} ${r.y-n} ${r.width+2*n} ${r.height+2*n}`;e.attr("viewBox",l)},Lw=t=>`g.classGroup text {\n fill: ${t.nodeBorder};\n fill: ${t.classText};\n stroke: none;\n font-family: ${t.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${t.classText};\n}\n.edgeLabel .label rect {\n fill: ${t.mainBkg};\n}\n.label text {\n fill: ${t.classText};\n}\n.edgeLabel .label span {\n background: ${t.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${t.nodeBorder};\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${t.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${t.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`,Ow=t=>`\n .entityBox {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxOdd {\n fill: ${t.attributeBackgroundColorOdd};\n stroke: ${t.nodeBorder};\n }\n\n .attributeBoxEven {\n fill: ${t.attributeBackgroundColorEven};\n stroke: ${t.nodeBorder};\n }\n\n .relationshipLabelBox {\n fill: ${t.tertiaryColor};\n opacity: 0.7;\n background-color: ${t.tertiaryColor};\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ${t.lineColor};\n }\n\n .entityTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n } \n`,Nw=()=>"",Rw=t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span {\n color: ${t.titleColor};\n }\n\n .label text,span {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`,Fw=t=>`\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n .exclude-range {\n fill: ${t.excludeBkgColor};\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ${t.sectionBkgColor};\n }\n\n .section2 {\n fill: ${t.sectionBkgColor2};\n }\n\n .section1,\n .section3 {\n fill: ${t.altSectionBkgColor};\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle1 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle2 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle3 {\n fill: ${t.titleColor};\n }\n\n .sectionTitle {\n text-anchor: start;\n // font-size: ${t.ganttFontSize};\n // text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ${t.gridColor};\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ${t.fontFamily};\n fill: ${t.textColor};\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ${t.todayLineColor};\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n // .taskText:not([font-size]) {\n // font-size: ${t.ganttFontSize};\n // }\n\n .taskTextOutsideRight {\n fill: ${t.taskTextDarkColor};\n text-anchor: start;\n // font-size: ${t.ganttFontSize};\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ${t.taskTextDarkColor};\n text-anchor: end;\n // font-size: ${t.ganttFontSize};\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ${t.taskTextClickableColor} !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ${t.taskTextColor};\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ${t.taskBkgColor};\n stroke: ${t.taskBorderColor};\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ${t.taskTextOutsideColor};\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ${t.taskTextOutsideColor};\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ${t.activeTaskBkgColor};\n stroke: ${t.activeTaskBorderColor};\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ${t.doneTaskBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.critBkgColor};\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.activeTaskBkgColor};\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ${t.critBorderColor};\n fill: ${t.doneTaskBkgColor};\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ${t.taskTextDarkColor} !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor} ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n`,jw=()=>"",$w=t=>`\n .pieCircle{\n stroke: ${t.pieStrokeColor};\n stroke-width : ${t.pieStrokeWidth};\n opacity : ${t.pieOpacity};\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${t.pieTitleTextSize};\n fill: ${t.pieTitleTextColor};\n font-family: ${t.fontFamily};\n }\n .slice {\n font-family: ${t.fontFamily};\n fill: ${t.pieSectionTextColor};\n font-size:${t.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${t.pieLegendTextColor};\n font-family: ${t.fontFamily};\n font-size: ${t.pieLegendTextSize};\n }\n`,zw=t=>`\n\n marker {\n fill: ${t.relationColor};\n stroke: ${t.relationColor};\n }\n\n marker.cross {\n stroke: ${t.lineColor};\n }\n\n svg {\n font-family: ${t.fontFamily};\n font-size: ${t.fontSize};\n }\n\n .reqBox {\n fill: ${t.requirementBackground};\n fill-opacity: 100%;\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${t.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${t.relationLabelBackground};\n fill-opacity: 100%;\n }\n\n .req-title-line {\n stroke: ${t.requirementBorderColor};\n stroke-width: ${t.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${t.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${t.relationLabelColor};\n }\n\n`,Vw=t=>`.actor {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n\n text.actor > tspan {\n fill: ${t.actorTextColor};\n stroke: none;\n }\n\n .actor-line {\n stroke: ${t.actorLineColor};\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ${t.signalColor};\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ${t.signalColor};\n }\n\n #arrowhead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .sequenceNumber {\n fill: ${t.sequenceNumberColor};\n }\n\n #sequencenumber {\n fill: ${t.signalColor};\n }\n\n #crosshead path {\n fill: ${t.signalColor};\n stroke: ${t.signalColor};\n }\n\n .messageText {\n fill: ${t.signalTextColor};\n stroke: none;\n }\n\n .labelBox {\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBkgColor};\n }\n\n .labelText, .labelText > tspan {\n fill: ${t.labelTextColor};\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ${t.loopTextColor};\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ${t.labelBoxBorderColor};\n fill: ${t.labelBoxBorderColor};\n }\n\n .note {\n //stroke: #decc93;\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n }\n\n .noteText, .noteText > tspan {\n fill: ${t.noteTextColor};\n stroke: none;\n }\n\n .activation0 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation1 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .activation2 {\n fill: ${t.activationBkgColor};\n stroke: ${t.activationBorderColor};\n }\n\n .actorPopupMenu {\n position: absolute;\n }\n\n .actorPopupMenuPanel {\n position: absolute;\n fill: ${t.actorBkg};\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n .actor-man line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n }\n .actor-man circle, line {\n stroke: ${t.actorBorder};\n fill: ${t.actorBkg};\n stroke-width: 2px;\n }\n`,Hw=t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`,qw=t=>`.label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ${t.textColor};\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ${t.textColor}\n }\n\n .legend {\n fill: ${t.textColor};\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ${t.textColor}\n }\n\n .face {\n ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ${t.fillType0?`fill: ${t.fillType0}`:""};\n }\n .task-type-1, .section-type-1 {\n ${t.fillType0?`fill: ${t.fillType1}`:""};\n }\n .task-type-2, .section-type-2 {\n ${t.fillType0?`fill: ${t.fillType2}`:""};\n }\n .task-type-3, .section-type-3 {\n ${t.fillType0?`fill: ${t.fillType3}`:""};\n }\n .task-type-4, .section-type-4 {\n ${t.fillType0?`fill: ${t.fillType4}`:""};\n }\n .task-type-5, .section-type-5 {\n ${t.fillType0?`fill: ${t.fillType5}`:""};\n }\n .task-type-6, .section-type-6 {\n ${t.fillType0?`fill: ${t.fillType6}`:""};\n }\n .task-type-7, .section-type-7 {\n ${t.fillType0?`fill: ${t.fillType7}`:""};\n }\n\n .actor-0 {\n ${t.actor0?`fill: ${t.actor0}`:""};\n }\n .actor-1 {\n ${t.actor1?`fill: ${t.actor1}`:""};\n }\n .actor-2 {\n ${t.actor2?`fill: ${t.actor2}`:""};\n }\n .actor-3 {\n ${t.actor3?`fill: ${t.actor3}`:""};\n }\n .actor-4 {\n ${t.actor4?`fill: ${t.actor4}`:""};\n }\n .actor-5 {\n ${t.actor5?`fill: ${t.actor5}`:""};\n }\n`,Uw=t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`,Gw={flowchart:Rw,"flowchart-v2":Rw,sequence:Vw,gantt:Fw,classDiagram:Lw,"classDiagram-v2":Lw,class:Lw,stateDiagram:Hw,state:Hw,info:jw,pie:$w,er:Ow,error:Nw,journey:qw,requirement:zw,c4:Uw},Ww=(t,e)=>{Gw[t]=e},Kw=(t,e,n)=>{let i="";return t in Gw&&Gw[t]?i=Gw[t](n):h.warn(`No theme found for ${t}`),` & {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n fill: ${n.textColor}\n }\n\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${n.errorBkgColor};\n }\n & .error-text {\n fill: ${n.errorTextColor};\n stroke: ${n.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 2px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${n.lineColor};\n stroke: ${n.lineColor};\n }\n & .marker.cross {\n stroke: ${n.lineColor};\n }\n\n & svg {\n font-family: ${n.fontFamily};\n font-size: ${n.fontSize};\n }\n\n ${i}\n\n ${e}\n`};let Yw="",Xw="",Zw="";const Qw=t=>Gh(t,_w()),Jw=function(){Yw="",Zw="",Xw=""},tk=function(t){Yw=Qw(t).replace(/^\s+/g,"")},ek=function(){return Yw||Xw},nk=function(t){Zw=Qw(t).replace(/\n\s+/g,"\n")},ik=function(){return Zw},rk=function(t){Xw=Qw(t)},ok=function(){return Xw},ak={setAccTitle:tk,getAccTitle:ek,setDiagramTitle:rk,getDiagramTitle:ok,getAccDescription:ik,setAccDescription:nk,clear:Jw},sk=Object.freeze(Object.defineProperty({__proto__:null,clear:Jw,default:ak,getAccDescription:ik,getAccTitle:ek,getDiagramTitle:ok,setAccDescription:nk,setAccTitle:tk,setDiagramTitle:rk},Symbol.toStringTag,{value:"Module"}));let ck={};const lk=function(t,e,n,i){h.debug("parseDirective is being called",e,n,i);try{if(void 0!==e)switch(e=e.trim(),n){case"open_directive":ck={};break;case"type_directive":if(!ck)throw new Error("currentDirective is undefined");ck.type=e.toLowerCase();break;case"arg_directive":if(!ck)throw new Error("currentDirective is undefined");ck.args=JSON.parse(e);break;case"close_directive":uk(t,ck,i),ck=void 0}}catch(t){h.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${n}`),h.error(t.message)}},uk=function(t,e,n){switch(h.info(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":["config"].forEach((t=>{void 0!==e.args[t]&&("flowchart-v2"===n&&(n="flowchart"),e.args[n]=e.args[t],delete e.args[t])})),h.info("sanitize in handleDirective",e.args),gb(e.args),h.info("sanitize in handleDirective (done)",e.args),Aw(e.args);break;case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap("wrap"===e.type);break;case"themeCss":h.warn("themeCss encountered");break;default:h.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e)}},hk=h,dk=d,fk=_w,gk=t=>Gh(t,fk()),pk=Pw,mk=()=>sk,bk=(t,e,n,i)=>lk(t,e,n,i),wk={},kk=(t,e,n)=>{if(wk[t])throw new Error(`Diagram ${t} already registered.`);wk[t]=e,n&&Ap(t,n),Ww(t,e.styles),e.injectUtils&&e.injectUtils(hk,dk,fk,gk,pk,mk(),bk)},vk=t=>{if(t in wk)return wk[t];throw new Error(`Diagram ${t} not found.`)};var yk=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,4],n=[1,7],i=[1,5],r=[1,9],o=[1,6],a=[2,6],s=[1,16],c=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],l=[8,14,20,22,24,25,27,29,32,37,40],u=[8,13,14,20,22,24,25,27,29,32,37,40],h=[1,26],d=[6,8,14,50,55],f=[8,14,55],g=[1,53],p=[1,52],m=[8,14,30,33,35,38,55],b=[1,67],w=[1,68],k=[1,69],v=[8,14,33,35,42,55],y={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 3:return o[s];case 4:return o[s-1];case 5:return i.setDirection(o[s-3]),o[s-1];case 7:i.setOptions(o[s-1]),this.$=o[s];break;case 8:o[s-1]+=o[s],this.$=o[s-1];break;case 10:this.$=[];break;case 11:o[s-1].push(o[s]),this.$=o[s-1];break;case 12:this.$=o[s-1];break;case 17:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 20:i.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 22:i.checkout(o[s]);break;case 23:i.branch(o[s]);break;case 24:i.branch(o[s-2],o[s]);break;case 25:i.cherryPick(o[s],"",void 0);break;case 26:i.cherryPick(o[s-2],"",o[s]);break;case 27:case 29:i.cherryPick(o[s-2],"","");break;case 28:i.cherryPick(o[s],"",o[s-2]);break;case 30:i.merge(o[s],"","","");break;case 31:i.merge(o[s-2],o[s],"","");break;case 32:i.merge(o[s-2],"",o[s],"");break;case 33:i.merge(o[s-2],"","",o[s]);break;case 34:i.merge(o[s-4],o[s],"",o[s-2]);break;case 35:i.merge(o[s-4],"",o[s],o[s-2]);break;case 36:i.merge(o[s-4],"",o[s-2],o[s]);break;case 37:i.merge(o[s-4],o[s-2],o[s],"");break;case 38:i.merge(o[s-4],o[s-2],"",o[s]);break;case 39:i.merge(o[s-4],o[s],o[s-2],"");break;case 40:i.merge(o[s-6],o[s-4],o[s-2],o[s]);break;case 41:i.merge(o[s-6],o[s],o[s-4],o[s-2]);break;case 42:i.merge(o[s-6],o[s-4],o[s],o[s-2]);break;case 43:i.merge(o[s-6],o[s-2],o[s-4],o[s]);break;case 44:i.merge(o[s-6],o[s],o[s-2],o[s-4]);break;case 45:i.merge(o[s-6],o[s-2],o[s],o[s-4]);break;case 46:i.commit(o[s]);break;case 47:i.commit("","",i.commitType.NORMAL,o[s]);break;case 48:i.commit("","",o[s],"");break;case 49:i.commit("","",o[s],o[s-2]);break;case 50:i.commit("","",o[s-2],o[s]);break;case 51:i.commit("",o[s],i.commitType.NORMAL,"");break;case 52:i.commit("",o[s-2],i.commitType.NORMAL,o[s]);break;case 53:i.commit("",o[s],i.commitType.NORMAL,o[s-2]);break;case 54:i.commit("",o[s-2],o[s],"");break;case 55:i.commit("",o[s],o[s-2],"");break;case 56:i.commit("",o[s-4],o[s-2],o[s]);break;case 57:i.commit("",o[s-4],o[s],o[s-2]);break;case 58:i.commit("",o[s-2],o[s-4],o[s]);break;case 59:i.commit("",o[s],o[s-4],o[s-2]);break;case 60:i.commit("",o[s],o[s-2],o[s-4]);break;case 61:i.commit("",o[s-2],o[s],o[s-4]);break;case 62:i.commit(o[s],"",i.commitType.NORMAL,"");break;case 63:i.commit(o[s],"",i.commitType.NORMAL,o[s-2]);break;case 64:i.commit(o[s-2],"",i.commitType.NORMAL,o[s]);break;case 65:i.commit(o[s-2],"",o[s],"");break;case 66:i.commit(o[s],"",o[s-2],"");break;case 67:i.commit(o[s],o[s-2],i.commitType.NORMAL,"");break;case 68:i.commit(o[s-2],o[s],i.commitType.NORMAL,"");break;case 69:i.commit(o[s-4],"",o[s-2],o[s]);break;case 70:i.commit(o[s-4],"",o[s],o[s-2]);break;case 71:i.commit(o[s-2],"",o[s-4],o[s]);break;case 72:i.commit(o[s],"",o[s-4],o[s-2]);break;case 73:i.commit(o[s],"",o[s-2],o[s-4]);break;case 74:i.commit(o[s-2],"",o[s],o[s-4]);break;case 75:i.commit(o[s-4],o[s],o[s-2],"");break;case 76:i.commit(o[s-4],o[s-2],o[s],"");break;case 77:i.commit(o[s-2],o[s],o[s-4],"");break;case 78:i.commit(o[s],o[s-2],o[s-4],"");break;case 79:i.commit(o[s],o[s-4],o[s-2],"");break;case 80:i.commit(o[s-2],o[s-4],o[s],"");break;case 81:i.commit(o[s-4],o[s],i.commitType.NORMAL,o[s-2]);break;case 82:i.commit(o[s-4],o[s-2],i.commitType.NORMAL,o[s]);break;case 83:i.commit(o[s-2],o[s],i.commitType.NORMAL,o[s-4]);break;case 84:i.commit(o[s],o[s-2],i.commitType.NORMAL,o[s-4]);break;case 85:i.commit(o[s],o[s-4],i.commitType.NORMAL,o[s-2]);break;case 86:i.commit(o[s-2],o[s-4],i.commitType.NORMAL,o[s]);break;case 87:i.commit(o[s-6],o[s-4],o[s-2],o[s]);break;case 88:i.commit(o[s-6],o[s-4],o[s],o[s-2]);break;case 89:i.commit(o[s-6],o[s-2],o[s-4],o[s]);break;case 90:i.commit(o[s-6],o[s],o[s-4],o[s-2]);break;case 91:i.commit(o[s-6],o[s-2],o[s],o[s-4]);break;case 92:i.commit(o[s-6],o[s],o[s-2],o[s-4]);break;case 93:i.commit(o[s-4],o[s-6],o[s-2],o[s]);break;case 94:i.commit(o[s-4],o[s-6],o[s],o[s-2]);break;case 95:i.commit(o[s-2],o[s-6],o[s-4],o[s]);break;case 96:i.commit(o[s],o[s-6],o[s-4],o[s-2]);break;case 97:i.commit(o[s-2],o[s-6],o[s],o[s-4]);break;case 98:i.commit(o[s],o[s-6],o[s-2],o[s-4]);break;case 99:i.commit(o[s],o[s-4],o[s-2],o[s-6]);break;case 100:i.commit(o[s-2],o[s-4],o[s],o[s-6]);break;case 101:i.commit(o[s],o[s-2],o[s-4],o[s-6]);break;case 102:i.commit(o[s-2],o[s],o[s-4],o[s-6]);break;case 103:i.commit(o[s-4],o[s-2],o[s],o[s-6]);break;case 104:i.commit(o[s-4],o[s],o[s-2],o[s-6]);break;case 105:i.commit(o[s-2],o[s-4],o[s-6],o[s]);break;case 106:i.commit(o[s],o[s-4],o[s-6],o[s-2]);break;case 107:i.commit(o[s-2],o[s],o[s-6],o[s-4]);break;case 108:i.commit(o[s],o[s-2],o[s-6],o[s-4]);break;case 109:i.commit(o[s-4],o[s-2],o[s-6],o[s]);break;case 110:i.commit(o[s-4],o[s],o[s-6],o[s-2]);break;case 111:this.$="";break;case 112:this.$=o[s];break;case 113:this.$=i.commitType.NORMAL;break;case 114:this.$=i.commitType.REVERSE;break;case 115:this.$=i.commitType.HIGHLIGHT;break;case 118:i.parseDirective("%%{","open_directive");break;case 119:i.parseDirective(o[s],"type_directive");break;case 120:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 121:i.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:e,8:n,14:i,46:8,50:r,55:o},{1:[3]},{3:10,4:2,5:3,6:e,8:n,14:i,46:8,50:r,55:o},{3:11,4:2,5:3,6:e,8:n,14:i,46:8,50:r,55:o},{7:12,8:a,9:[1,13],10:[1,14],11:15,14:s},t(c,[2,124]),t(c,[2,125]),t(c,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:a,11:15,14:s},{9:[1,21]},t(l,[2,10],{12:22,13:[1,23]}),t(u,[2,9]),{9:[1,25],48:24,53:h},t([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:a,11:15,14:s},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},t(u,[2,8]),t(d,[2,116]),{49:45,52:[1,46]},t(d,[2,121]),{1:[2,4]},{8:[1,47]},t(l,[2,11]),{4:48,8:n,14:i,55:o},t(l,[2,13]),t(f,[2,14]),t(f,[2,15]),t(f,[2,16]),{21:[1,49]},{23:[1,50]},t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),{28:51,34:g,54:p},t(f,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:g,54:p},{33:[1,61],35:[1,62]},{28:63,34:g,54:p},{48:64,53:h},{53:[2,120]},{1:[2,5]},t(l,[2,12]),t(f,[2,17]),t(f,[2,18]),t(f,[2,22]),t(m,[2,122]),t(m,[2,123]),t(f,[2,46]),{34:[1,65]},{39:66,43:b,44:w,45:k},{34:[1,70]},{34:[1,71]},t(f,[2,112]),t(f,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},t(f,[2,23],{30:[1,78]}),t(d,[2,117]),t(f,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),t(f,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),t(v,[2,113]),t(v,[2,114]),t(v,[2,115]),t(f,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),t(f,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:b,44:w,45:k},{34:[1,93]},t(f,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:b,44:w,45:k},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:b,44:w,45:k},{34:[1,106]},{34:[1,107]},{39:108,43:b,44:w,45:k},{34:[1,109]},t(f,[2,31],{35:[1,111],38:[1,110]}),t(f,[2,32],{33:[1,113],35:[1,112]}),t(f,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},t(f,[2,24]),t(f,[2,49],{33:[1,120],42:[1,121]}),t(f,[2,53],{38:[1,122],42:[1,123]}),t(f,[2,63],{33:[1,125],38:[1,124]}),t(f,[2,50],{33:[1,126],42:[1,127]}),t(f,[2,55],{35:[1,128],42:[1,129]}),t(f,[2,66],{33:[1,131],35:[1,130]}),t(f,[2,52],{38:[1,132],42:[1,133]}),t(f,[2,54],{35:[1,134],42:[1,135]}),t(f,[2,67],{35:[1,137],38:[1,136]}),t(f,[2,64],{33:[1,139],38:[1,138]}),t(f,[2,65],{33:[1,141],35:[1,140]}),t(f,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:b,44:w,45:k},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:b,44:w,45:k},t(f,[2,26]),t(f,[2,27]),t(f,[2,28]),t(f,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:b,44:w,45:k},{34:[1,153]},{39:154,43:b,44:w,45:k},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:b,44:w,45:k},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:b,44:w,45:k},{34:[1,167]},{39:168,43:b,44:w,45:k},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:b,44:w,45:k},{34:[1,173]},t(f,[2,37],{35:[1,174]}),t(f,[2,38],{38:[1,175]}),t(f,[2,36],{33:[1,176]}),t(f,[2,39],{35:[1,177]}),t(f,[2,34],{38:[1,178]}),t(f,[2,35],{33:[1,179]}),t(f,[2,60],{42:[1,180]}),t(f,[2,73],{33:[1,181]}),t(f,[2,61],{42:[1,182]}),t(f,[2,84],{38:[1,183]}),t(f,[2,74],{33:[1,184]}),t(f,[2,83],{38:[1,185]}),t(f,[2,59],{42:[1,186]}),t(f,[2,72],{33:[1,187]}),t(f,[2,58],{42:[1,188]}),t(f,[2,78],{35:[1,189]}),t(f,[2,71],{33:[1,190]}),t(f,[2,77],{35:[1,191]}),t(f,[2,57],{42:[1,192]}),t(f,[2,85],{38:[1,193]}),t(f,[2,56],{42:[1,194]}),t(f,[2,79],{35:[1,195]}),t(f,[2,80],{35:[1,196]}),t(f,[2,86],{38:[1,197]}),t(f,[2,70],{33:[1,198]}),t(f,[2,81],{38:[1,199]}),t(f,[2,69],{33:[1,200]}),t(f,[2,75],{35:[1,201]}),t(f,[2,76],{35:[1,202]}),t(f,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:b,44:w,45:k},{34:[1,206]},{34:[1,207]},{39:208,43:b,44:w,45:k},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:b,44:w,45:k},{34:[1,214]},{39:215,43:b,44:w,45:k},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:b,44:w,45:k},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:b,44:w,45:k},{34:[1,228]},{39:229,43:b,44:w,45:k},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:b,44:w,45:k},t(f,[2,40]),t(f,[2,42]),t(f,[2,41]),t(f,[2,43]),t(f,[2,45]),t(f,[2,44]),t(f,[2,101]),t(f,[2,102]),t(f,[2,99]),t(f,[2,100]),t(f,[2,104]),t(f,[2,103]),t(f,[2,108]),t(f,[2,107]),t(f,[2,106]),t(f,[2,105]),t(f,[2,110]),t(f,[2,109]),t(f,[2,98]),t(f,[2,97]),t(f,[2,96]),t(f,[2,95]),t(f,[2,93]),t(f,[2,94]),t(f,[2,92]),t(f,[2,91]),t(f,[2,90]),t(f,[2,89]),t(f,[2,87]),t(f,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},_={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 34:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};function C(){this.yy={}}return y.lexer=_,C.prototype=y,y.Parser=C,new C}();yk.parser=yk;const _k=yk,Ck=t=>null!==t.match(/^\s*gitGraph/);let Ak=_w().gitGraph.mainBranchName,xk=_w().gitGraph.mainBranchOrder,Ek={},Tk=null,Sk={};Sk[Ak]={name:Ak,order:xk};let Dk={};Dk[Ak]=Tk;let Ik=Ak,Bk="LR",Mk=0;function Pk(){return ob({length:7})}function Lk(t,e){const n=Object.create(null);return t.reduce(((t,i)=>{const r=e(i);return n[r]||(n[r]=!0,t.push(i)),t}),[])}let Ok={};const Nk=function(t,e,n,i){h.debug("Entering commit:",t,e,n,i),e=Jh.sanitizeText(e,_w()),t=Jh.sanitizeText(t,_w()),i=Jh.sanitizeText(i,_w());const r={id:e||Mk+"-"+Pk(),message:t,seq:Mk++,type:n||Uk.NORMAL,tag:i||"",parents:null==Tk?[]:[Tk.id],branch:Ik};Tk=r,Ek[r.id]=r,Dk[Ik]=r.id,h.debug("in pushCommit "+r.id)},Rk=function(t,e){if(t=Jh.sanitizeText(t,_w()),void 0!==Dk[t]){let e=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+t+'")');throw e.hash={text:"branch "+t,token:"branch "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+t+'"']},e}Dk[t]=null!=Tk?Tk.id:null,Sk[t]={name:t,order:e?parseInt(e,10):null},$k(t),h.debug("in createBranch")},Fk=function(t,e,n,i){t=Jh.sanitizeText(t,_w()),e=Jh.sanitizeText(e,_w());const r=Ek[Dk[Ik]],o=Ek[Dk[t]];if(Ik===t){let e=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(void 0===r||!r){let e=new Error('Incorrect usage of "merge". Current branch ('+Ik+")has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},e}if(void 0===Dk[t]){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") does not exist");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+t]},e}if(void 0===o||!o){let e=new Error('Incorrect usage of "merge". Branch to be merged ('+t+") has no commits");throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},e}if(r===o){let e=new Error('Incorrect usage of "merge". Both branches have same head');throw e.hash={text:"merge "+t,token:"merge "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},e}if(e&&void 0!==Ek[e]){let r=new Error('Incorrect usage of "merge". Commit with id:'+e+" already exists, use different custom Id");throw r.hash={text:"merge "+t+e+n+i,token:"merge "+t+e+n+i,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+t+" "+e+"_UNIQUE "+n+" "+i]},r}const a={id:e||Mk+"-"+Pk(),message:"merged branch "+t+" into "+Ik,seq:Mk++,parents:[null==Tk?null:Tk.id,Dk[t]],branch:Ik,type:Uk.MERGE,customType:n,customId:!!e,tag:i||""};Tk=a,Ek[a.id]=a,Dk[Ik]=a.id,h.debug(Dk),h.debug("in mergeBranch")},jk=function(t,e,n){if(h.debug("Entering cherryPick:",t,e,n),t=Jh.sanitizeText(t,_w()),e=Jh.sanitizeText(e,_w()),n=Jh.sanitizeText(n,_w()),!t||void 0===Ek[t]){let n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}let i=Ek[t],r=i.branch;if(i.type===Uk.MERGE){let n=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}if(!e||void 0===Ek[e]){if(r===Ik){let n=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const o=Ek[Dk[Ik]];if(void 0===o||!o){let n=new Error('Incorrect usage of "cherry-pick". Current branch ('+Ik+")has no commits");throw n.hash={text:"cherryPick "+t+" "+e,token:"cherryPick "+t+" "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const a={id:Mk+"-"+Pk(),message:"cherry-picked "+i+" into "+Ik,seq:Mk++,parents:[null==Tk?null:Tk.id,i.id],branch:Ik,type:Uk.CHERRY_PICK,tag:n??"cherry-pick:"+i.id};Tk=a,Ek[a.id]=a,Dk[Ik]=a.id,h.debug(Dk),h.debug("in cherryPick")}},$k=function(t){if(t=Jh.sanitizeText(t,_w()),void 0===Dk[t]){let e=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+t+'")');throw e.hash={text:"checkout "+t,token:"checkout "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+t+'"']},e}{Ik=t;const e=Dk[Ik];Tk=Ek[e]}};function zk(t,e,n){const i=t.indexOf(e);-1===i?t.push(n):t.splice(i,1,n)}function Vk(t){const e=t.reduce(((t,e)=>t.seq>e.seq?t:e),t[0]);let n="";t.forEach((function(t){n+=t===e?"\t*":"\t|"}));const i=[n,e.id,e.seq];for(let t in Dk)Dk[t]===e.id&&i.push(t);if(h.debug(i.join(" ")),e.parents&&2==e.parents.length){const n=Ek[e.parents[0]];zk(t,e,n),t.push(Ek[e.parents[1]])}else{if(0==e.parents.length)return;{const n=Ek[e.parents];zk(t,e,n)}}Vk(t=Lk(t,(t=>t.id)))}const Hk=function(){h.debug(Ek),Vk([qk()[0]])},qk=function(){const t=Object.keys(Ek).map((function(t){return Ek[t]}));return t.forEach((function(t){h.debug(t.id)})),t.sort(((t,e)=>t.seq-e.seq)),t},Uk={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Gk={parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().gitGraph,setDirection:function(t){Bk=t},setOptions:function(t){h.debug("options str",t),t=(t=t&&t.trim())||"{}";try{Ok=JSON.parse(t)}catch(t){h.error("error while parsing gitGraph options",t.message)}},getOptions:function(){return Ok},commit:Nk,branch:Rk,merge:Fk,cherryPick:jk,checkout:$k,prettyPrint:Hk,clear:function(){Ek={},Tk=null;let t=_w().gitGraph.mainBranchName,e=_w().gitGraph.mainBranchOrder;Dk={},Dk[t]=null,Sk={},Sk[t]={name:t,order:e},Ik=t,Mk=0,Jw()},getBranchesAsObjArray:function(){return Object.values(Sk).map(((t,e)=>null!==t.order?t:{...t,order:parseFloat(`0.${e}`,10)})).sort(((t,e)=>t.order-e.order)).map((({name:t})=>({name:t})))},getBranches:function(){return Dk},getCommits:function(){return Ek},getCommitsArray:qk,getCurrentBranch:function(){return Ik},getDirection:function(){return Bk},getHead:function(){return Tk},setAccTitle:tk,getAccTitle:ek,getAccDescription:ik,setAccDescription:nk,setDiagramTitle:rk,getDiagramTitle:ok,commitType:Uk};let Wk={};const Kk={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Yk=8;let Xk={},Zk={},Qk=[],Jk=0;const tv=()=>{Xk={},Zk={},Wk={},Jk=0,Qk=[]},ev=t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");let n=[];n="string"==typeof t?t.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(t)?t:[];for(const t of n){const n=document.createElementNS("http://www.w3.org/2000/svg","tspan");n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.setAttribute("dy","1em"),n.setAttribute("x","0"),n.setAttribute("class","row"),n.textContent=t.trim(),e.appendChild(n)}return e},nv=(t,e,n)=>{const i=fk().gitGraph,r=t.append("g").attr("class","commit-bullets"),o=t.append("g").attr("class","commit-labels");let a=0;Object.keys(e).sort(((t,n)=>e[t].seq-e[n].seq)).forEach((t=>{const s=e[t],c=Xk[s.branch].pos,l=a+10;if(n){let t,e=void 0!==s.customType&&""!==s.customType?s.customType:s.type;switch(e){case Kk.NORMAL:t="commit-normal";break;case Kk.REVERSE:t="commit-reverse";break;case Kk.HIGHLIGHT:t="commit-highlight";break;case Kk.MERGE:t="commit-merge";break;case Kk.CHERRY_PICK:t="commit-cherry-pick";break;default:t="commit-normal"}if(e===Kk.HIGHLIGHT){const e=r.append("rect");e.attr("x",l-10),e.attr("y",c-10),e.attr("height",20),e.attr("width",20),e.attr("class",`commit ${s.id} commit-highlight${Xk[s.branch].index%Yk} ${t}-outer`),r.append("rect").attr("x",l-6).attr("y",c-6).attr("height",12).attr("width",12).attr("class",`commit ${s.id} commit${Xk[s.branch].index%Yk} ${t}-inner`)}else if(e===Kk.CHERRY_PICK)r.append("circle").attr("cx",l).attr("cy",c).attr("r",10).attr("class",`commit ${s.id} ${t}`),r.append("circle").attr("cx",l-3).attr("cy",c+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${t}`),r.append("circle").attr("cx",l+3).attr("cy",c+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${t}`),r.append("line").attr("x1",l+3).attr("y1",c+1).attr("x2",l).attr("y2",c-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${t}`),r.append("line").attr("x1",l-3).attr("y1",c+1).attr("x2",l).attr("y2",c-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${t}`);else{const n=r.append("circle");if(n.attr("cx",l),n.attr("cy",c),n.attr("r",s.type===Kk.MERGE?9:10),n.attr("class",`commit ${s.id} commit${Xk[s.branch].index%Yk}`),e===Kk.MERGE){const e=r.append("circle");e.attr("cx",l),e.attr("cy",c),e.attr("r",6),e.attr("class",`commit ${t} ${s.id} commit${Xk[s.branch].index%Yk}`)}e===Kk.REVERSE&&r.append("path").attr("d",`M ${l-5},${c-5}L${l+5},${c+5}M${l-5},${c+5}L${l+5},${c-5}`).attr("class",`commit ${t} ${s.id} commit${Xk[s.branch].index%Yk}`)}}if(Zk[s.id]={x:a+10,y:c},n){const t=4,e=2;if(s.type!==Kk.CHERRY_PICK&&(s.customId&&s.type===Kk.MERGE||s.type!==Kk.MERGE)&&i.showCommitLabel){const t=o.append("g"),n=t.insert("rect").attr("class","commit-label-bkg"),r=t.append("text").attr("x",a).attr("y",c+25).attr("class","commit-label").text(s.id);let l=r.node().getBBox();if(n.attr("x",a+10-l.width/2-e).attr("y",c+13.5).attr("width",l.width+2*e).attr("height",l.height+2*e),r.attr("x",a+10-l.width/2),i.rotateCommitLabel){let e=-7.5-(l.width+10)/25*9.5,n=10+l.width/25*8.5;t.attr("transform","translate("+e+", "+n+") rotate(-45, "+a+", "+c+")")}}if(s.tag){const n=o.insert("polygon"),i=o.append("circle"),r=o.append("text").attr("y",c-16).attr("class","tag-label").text(s.tag);let l=r.node().getBBox();r.attr("x",a+10-l.width/2);const u=l.height/2,h=c-19.2;n.attr("class","tag-label-bkg").attr("points",`\n ${a-l.width/2-t/2},${h+e}\n ${a-l.width/2-t/2},${h-e}\n ${a+10-l.width/2-t},${h-u-e}\n ${a+10+l.width/2+t},${h-u-e}\n ${a+10+l.width/2+t},${h+u+e}\n ${a+10-l.width/2-t},${h+u+e}`),i.attr("cx",a-l.width/2+t/2).attr("cy",h).attr("r",1.5).attr("class","tag-hole")}}a+=50,a>Jk&&(Jk=a)}))},iv=(t,e,n)=>Object.keys(n).filter((i=>n[i].branch===e.branch&&n[i].seq>t.seq&&n[i].seq<e.seq)).length>0,rv=(t,e,n=0)=>{const i=t+Math.abs(t-e)/2;if(n>5)return i;if(Qk.every((t=>Math.abs(t-i)>=10)))return Qk.push(i),i;const r=Math.abs(t-e);return rv(t,e-r/5,n+1)},ov=(t,e,n,i)=>{const r=Zk[e.id],o=Zk[n.id],a=iv(e,n,i);let s,c="",l="",u=0,h=0,d=Xk[n.branch].index;if(a){c="A 10 10, 0, 0, 0,",l="A 10 10, 0, 0, 1,",u=10,h=10,d=Xk[n.branch].index;const t=r.y<o.y?rv(r.y,o.y):rv(o.y,r.y);s=r.y<o.y?`M ${r.x} ${r.y} L ${r.x} ${t-u} ${c} ${r.x+h} ${t} L ${o.x-u} ${t} ${l} ${o.x} ${t+h} L ${o.x} ${o.y}`:`M ${r.x} ${r.y} L ${r.x} ${t+u} ${l} ${r.x+h} ${t} L ${o.x-u} ${t} ${c} ${o.x} ${t-h} L ${o.x} ${o.y}`}else r.y<o.y&&(c="A 20 20, 0, 0, 0,",u=20,h=20,d=Xk[n.branch].index,s=`M ${r.x} ${r.y} L ${r.x} ${o.y-u} ${c} ${r.x+h} ${o.y} L ${o.x} ${o.y}`),r.y>o.y&&(c="A 20 20, 0, 0, 0,",u=20,h=20,d=Xk[e.branch].index,s=`M ${r.x} ${r.y} L ${o.x-u} ${r.y} ${c} ${o.x} ${r.y-h} L ${o.x} ${o.y}`),r.y===o.y&&(d=Xk[e.branch].index,s=`M ${r.x} ${r.y} L ${r.x} ${o.y-u} ${c} ${r.x+h} ${o.y} L ${o.x} ${o.y}`);t.append("path").attr("d",s).attr("class","arrow arrow"+d%Yk)},av=(t,e)=>{const n=t.append("g").attr("class","commit-arrows");Object.keys(e).forEach((t=>{const i=e[t];i.parents&&i.parents.length>0&&i.parents.forEach((t=>{ov(n,e[t],i,e)}))}))},sv=(t,e)=>{const n=fk().gitGraph,i=t.append("g");e.forEach(((t,e)=>{const r=e%Yk,o=Xk[t.name].pos,a=i.append("line");a.attr("x1",0),a.attr("y1",o),a.attr("x2",Jk),a.attr("y2",o),a.attr("class","branch branch"+r),Qk.push(o);let s=t.name;const c=ev(s),l=i.insert("rect"),u=i.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+r);u.node().appendChild(c);let h=c.getBBox();l.attr("class","branchLabelBkg label"+r).attr("rx",4).attr("ry",4).attr("x",-h.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-h.height/2+8).attr("width",h.width+18).attr("height",h.height+4),u.attr("transform","translate("+(-h.width-14-(!0===n.rotateCommitLabel?30:0))+", "+(o-h.height/2-1)+")"),l.attr("transform","translate(-19, "+(o-h.height/2)+")")}))},cv={draw:function(t,e,n,i){tv();const r=fk(),o=r.gitGraph;h.debug("in gitgraph renderer",t+"\n","id:",e,n),Wk=i.db.getCommits();const a=i.db.getBranchesAsObjArray();let s=0;a.forEach(((t,e)=>{Xk[t.name]={pos:s,index:e},s+=50+(o.rotateCommitLabel?40:0)}));const c=un(`[id="${e}"]`);nv(c,Wk,!1),o.showBranches&&sv(c,a),av(c,Wk),nv(c,Wk,!0),kb.insertTitle(c,"gitTitleText",o.titleTopMargin,i.db.getDiagramTitle()),pk(void 0,c,o.diagramPadding,o.useMaxWidth??r.useMaxWidth)}},lv=t=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map((e=>`\n .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${e} { fill: ${t["git"+e]}; }\n .arrow${e} { stroke: ${t["git"+e]}; }\n `)).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${t.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n .commit-reverse {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n }\n`;var uv=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,6],n=[1,7],i=[1,8],r=[1,9],o=[1,16],a=[1,11],s=[1,12],l=[1,13],u=[1,14],h=[1,15],d=[1,27],f=[1,33],g=[1,34],p=[1,35],m=[1,36],b=[1,37],w=[1,72],k=[1,73],v=[1,74],y=[1,75],_=[1,76],C=[1,77],A=[1,78],x=[1,38],E=[1,39],T=[1,40],S=[1,41],D=[1,42],I=[1,43],B=[1,44],M=[1,45],P=[1,46],L=[1,47],O=[1,48],N=[1,49],R=[1,50],F=[1,51],j=[1,52],$=[1,53],z=[1,54],V=[1,55],H=[1,56],q=[1,57],U=[1,59],G=[1,60],W=[1,61],K=[1,62],Y=[1,63],X=[1,64],Z=[1,65],Q=[1,66],J=[1,67],tt=[1,68],et=[1,69],nt=[24,52],it=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],rt=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ot=[1,94],at=[1,95],st=[1,96],ct=[1,97],lt=[15,24,52],ut=[7,8,9,10,18,22,25,26,27,28],ht=[15,24,43,52],dt=[15,24,43,52,86,87,89,90],ft=[15,43],gt=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],pt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 4:i.setDirection("TB");break;case 5:i.setDirection("BT");break;case 6:i.setDirection("RL");break;case 7:i.setDirection("LR");break;case 11:i.parseDirective("%%{","open_directive");break;case 12:break;case 13:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 14:i.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:i.setC4Type(o[s-3]);break;case 26:i.setTitle(o[s].substring(6)),this.$=o[s].substring(6);break;case 27:i.setAccDescription(o[s].substring(15)),this.$=o[s].substring(15);break;case 28:this.$=o[s].trim(),i.setTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 35:case 36:o[s].splice(2,0,"ENTERPRISE"),i.addPersonOrSystemBoundary(...o[s]),this.$=o[s];break;case 37:i.addPersonOrSystemBoundary(...o[s]),this.$=o[s];break;case 38:o[s].splice(2,0,"CONTAINER"),i.addContainerBoundary(...o[s]),this.$=o[s];break;case 39:i.addDeploymentNode("node",...o[s]),this.$=o[s];break;case 40:i.addDeploymentNode("nodeL",...o[s]),this.$=o[s];break;case 41:i.addDeploymentNode("nodeR",...o[s]),this.$=o[s];break;case 42:i.popBoundaryParseStack();break;case 46:i.addPersonOrSystem("person",...o[s]),this.$=o[s];break;case 47:i.addPersonOrSystem("external_person",...o[s]),this.$=o[s];break;case 48:i.addPersonOrSystem("system",...o[s]),this.$=o[s];break;case 49:i.addPersonOrSystem("system_db",...o[s]),this.$=o[s];break;case 50:i.addPersonOrSystem("system_queue",...o[s]),this.$=o[s];break;case 51:i.addPersonOrSystem("external_system",...o[s]),this.$=o[s];break;case 52:i.addPersonOrSystem("external_system_db",...o[s]),this.$=o[s];break;case 53:i.addPersonOrSystem("external_system_queue",...o[s]),this.$=o[s];break;case 54:i.addContainer("container",...o[s]),this.$=o[s];break;case 55:i.addContainer("container_db",...o[s]),this.$=o[s];break;case 56:i.addContainer("container_queue",...o[s]),this.$=o[s];break;case 57:i.addContainer("external_container",...o[s]),this.$=o[s];break;case 58:i.addContainer("external_container_db",...o[s]),this.$=o[s];break;case 59:i.addContainer("external_container_queue",...o[s]),this.$=o[s];break;case 60:i.addComponent("component",...o[s]),this.$=o[s];break;case 61:i.addComponent("component_db",...o[s]),this.$=o[s];break;case 62:i.addComponent("component_queue",...o[s]),this.$=o[s];break;case 63:i.addComponent("external_component",...o[s]),this.$=o[s];break;case 64:i.addComponent("external_component_db",...o[s]),this.$=o[s];break;case 65:i.addComponent("external_component_queue",...o[s]),this.$=o[s];break;case 67:i.addRel("rel",...o[s]),this.$=o[s];break;case 68:i.addRel("birel",...o[s]),this.$=o[s];break;case 69:i.addRel("rel_u",...o[s]),this.$=o[s];break;case 70:i.addRel("rel_d",...o[s]),this.$=o[s];break;case 71:i.addRel("rel_l",...o[s]),this.$=o[s];break;case 72:i.addRel("rel_r",...o[s]),this.$=o[s];break;case 73:i.addRel("rel_b",...o[s]),this.$=o[s];break;case 74:o[s].splice(0,1),i.addRel("rel",...o[s]),this.$=o[s];break;case 75:i.updateElStyle("update_el_style",...o[s]),this.$=o[s];break;case 76:i.updateRelStyle("update_rel_style",...o[s]),this.$=o[s];break;case 77:i.updateLayoutConfig("update_layout_config",...o[s]),this.$=o[s];break;case 78:this.$=[o[s]];break;case 79:o[s].unshift(o[s-1]),this.$=o[s];break;case 80:case 82:this.$=o[s].trim();break;case 81:let t={};t[o[s-1].trim()]=o[s].trim(),this.$=t;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:e,8:n,9:i,10:r,11:5,12:10,18:o,22:a,25:s,26:l,27:u,28:h},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:e,8:n,9:i,10:r,11:5,12:10,18:o,22:a,25:s,26:l,27:u,28:h},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:d},t([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:f,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:w,46:k,47:v,48:y,49:_,50:C,51:A,53:32,54:x,55:E,56:T,57:S,58:D,59:I,60:B,61:M,62:P,63:L,64:O,65:N,66:R,67:F,68:j,69:$,70:z,71:V,72:H,73:q,74:U,75:G,76:W,77:K,78:Y,79:X,80:Z,81:Q,82:J,83:tt,84:et},{23:79,29:29,30:30,31:31,32:f,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:w,46:k,47:v,48:y,49:_,50:C,51:A,53:32,54:x,55:E,56:T,57:S,58:D,59:I,60:B,61:M,62:P,63:L,64:O,65:N,66:R,67:F,68:j,69:$,70:z,71:V,72:H,73:q,74:U,75:G,76:W,77:K,78:Y,79:X,80:Z,81:Q,82:J,83:tt,84:et},{23:80,29:29,30:30,31:31,32:f,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:w,46:k,47:v,48:y,49:_,50:C,51:A,53:32,54:x,55:E,56:T,57:S,58:D,59:I,60:B,61:M,62:P,63:L,64:O,65:N,66:R,67:F,68:j,69:$,70:z,71:V,72:H,73:q,74:U,75:G,76:W,77:K,78:Y,79:X,80:Z,81:Q,82:J,83:tt,84:et},{23:81,29:29,30:30,31:31,32:f,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:w,46:k,47:v,48:y,49:_,50:C,51:A,53:32,54:x,55:E,56:T,57:S,58:D,59:I,60:B,61:M,62:P,63:L,64:O,65:N,66:R,67:F,68:j,69:$,70:z,71:V,72:H,73:q,74:U,75:G,76:W,77:K,78:Y,79:X,80:Z,81:Q,82:J,83:tt,84:et},{23:82,29:29,30:30,31:31,32:f,33:g,34:p,36:m,38:b,39:58,40:70,42:71,44:w,46:k,47:v,48:y,49:_,50:C,51:A,53:32,54:x,55:E,56:T,57:S,58:D,59:I,60:B,61:M,62:P,63:L,64:O,65:N,66:R,67:F,68:j,69:$,70:z,71:V,72:H,73:q,74:U,75:G,76:W,77:K,78:Y,79:X,80:Z,81:Q,82:J,83:tt,84:et},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},t(nt,[2,20],{53:32,39:58,40:70,42:71,30:87,44:w,46:k,47:v,48:y,49:_,50:C,51:A,54:x,55:E,56:T,57:S,58:D,59:I,60:B,61:M,62:P,63:L,64:O,65:N,66:R,67:F,68:j,69:$,70:z,71:V,72:H,73:q,74:U,75:G,76:W,77:K,78:Y,79:X,80:Z,81:Q,82:J,83:tt,84:et}),t(nt,[2,21]),t(it,[2,23],{15:[1,88]}),t(nt,[2,43],{15:[1,89]}),t(rt,[2,26]),t(rt,[2,27]),{35:[1,90]},{37:[1,91]},t(rt,[2,30]),{45:92,85:93,86:ot,87:at,89:st,90:ct},{45:98,85:93,86:ot,87:at,89:st,90:ct},{45:99,85:93,86:ot,87:at,89:st,90:ct},{45:100,85:93,86:ot,87:at,89:st,90:ct},{45:101,85:93,86:ot,87:at,89:st,90:ct},{45:102,85:93,86:ot,87:at,89:st,90:ct},{45:103,85:93,86:ot,87:at,89:st,90:ct},{45:104,85:93,86:ot,87:at,89:st,90:ct},{45:105,85:93,86:ot,87:at,89:st,90:ct},{45:106,85:93,86:ot,87:at,89:st,90:ct},{45:107,85:93,86:ot,87:at,89:st,90:ct},{45:108,85:93,86:ot,87:at,89:st,90:ct},{45:109,85:93,86:ot,87:at,89:st,90:ct},{45:110,85:93,86:ot,87:at,89:st,90:ct},{45:111,85:93,86:ot,87:at,89:st,90:ct},{45:112,85:93,86:ot,87:at,89:st,90:ct},{45:113,85:93,86:ot,87:at,89:st,90:ct},{45:114,85:93,86:ot,87:at,89:st,90:ct},{45:115,85:93,86:ot,87:at,89:st,90:ct},{45:116,85:93,86:ot,87:at,89:st,90:ct},t(lt,[2,66]),{45:117,85:93,86:ot,87:at,89:st,90:ct},{45:118,85:93,86:ot,87:at,89:st,90:ct},{45:119,85:93,86:ot,87:at,89:st,90:ct},{45:120,85:93,86:ot,87:at,89:st,90:ct},{45:121,85:93,86:ot,87:at,89:st,90:ct},{45:122,85:93,86:ot,87:at,89:st,90:ct},{45:123,85:93,86:ot,87:at,89:st,90:ct},{45:124,85:93,86:ot,87:at,89:st,90:ct},{45:125,85:93,86:ot,87:at,89:st,90:ct},{45:126,85:93,86:ot,87:at,89:st,90:ct},{45:127,85:93,86:ot,87:at,89:st,90:ct},{30:128,39:58,40:70,42:71,44:w,46:k,47:v,48:y,49:_,50:C,51:A,53:32,54:x,55:E,56:T,57:S,58:D,59:I,60:B,61:M,62:P,63:L,64:O,65:N,66:R,67:F,68:j,69:$,70:z,71:V,72:H,73:q,74:U,75:G,76:W,77:K,78:Y,79:X,80:Z,81:Q,82:J,83:tt,84:et},{15:[1,130],43:[1,129]},{45:131,85:93,86:ot,87:at,89:st,90:ct},{45:132,85:93,86:ot,87:at,89:st,90:ct},{45:133,85:93,86:ot,87:at,89:st,90:ct},{45:134,85:93,86:ot,87:at,89:st,90:ct},{45:135,85:93,86:ot,87:at,89:st,90:ct},{45:136,85:93,86:ot,87:at,89:st,90:ct},{45:137,85:93,86:ot,87:at,89:st,90:ct},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},t(ut,[2,9]),{14:142,21:d},{21:[2,13]},{1:[2,15]},t(nt,[2,22]),t(it,[2,24],{31:31,29:143,32:f,33:g,34:p,36:m,38:b}),t(nt,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:f,33:g,34:p,36:m,38:b,44:w,46:k,47:v,48:y,49:_,50:C,51:A,54:x,55:E,56:T,57:S,58:D,59:I,60:B,61:M,62:P,63:L,64:O,65:N,66:R,67:F,68:j,69:$,70:z,71:V,72:H,73:q,74:U,75:G,76:W,77:K,78:Y,79:X,80:Z,81:Q,82:J,83:tt,84:et}),t(rt,[2,28]),t(rt,[2,29]),t(lt,[2,46]),t(ht,[2,78],{85:93,45:145,86:ot,87:at,89:st,90:ct}),t(dt,[2,80]),{88:[1,146]},t(dt,[2,82]),t(dt,[2,83]),t(lt,[2,47]),t(lt,[2,48]),t(lt,[2,49]),t(lt,[2,50]),t(lt,[2,51]),t(lt,[2,52]),t(lt,[2,53]),t(lt,[2,54]),t(lt,[2,55]),t(lt,[2,56]),t(lt,[2,57]),t(lt,[2,58]),t(lt,[2,59]),t(lt,[2,60]),t(lt,[2,61]),t(lt,[2,62]),t(lt,[2,63]),t(lt,[2,64]),t(lt,[2,65]),t(lt,[2,67]),t(lt,[2,68]),t(lt,[2,69]),t(lt,[2,70]),t(lt,[2,71]),t(lt,[2,72]),t(lt,[2,73]),t(lt,[2,74]),t(lt,[2,75]),t(lt,[2,76]),t(lt,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},t(ft,[2,35]),t(ft,[2,36]),t(ft,[2,37]),t(ft,[2,38]),t(ft,[2,39]),t(ft,[2,40]),t(ft,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},t(it,[2,25]),t(nt,[2,45]),t(ht,[2,79]),t(dt,[2,81]),t(lt,[2,31]),t(lt,[2,42]),t(gt,[2,32]),t(gt,[2,33],{15:[1,152]}),t(ut,[2,10]),t(gt,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},mt={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 78:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:case 75:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:case 58:return this.begin("rel_u"),76;case 59:case 60:return this.begin("rel_d"),77;case 61:case 62:return this.begin("rel_l"),78;case 63:case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:case 84:this.popState(),this.popState();break;case 74:case 76:return 90;case 77:this.begin("string");break;case 79:case 85:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}};function bt(){this.yy={}}return pt.lexer=mt,bt.prototype=pt,pt.Parser=bt,new bt}();uv.parser=uv;const hv=uv,dv=t=>null!==t.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/);let fv=[],gv=[""],pv="global",mv="",bv=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],wv=[],kv="",vv=!1,yv=4,_v=2;var Cv;const Av=function(t,e,n,i,r,o,a,s,c){if(null==t||null==e||null==n||null==i)return;let l={};const u=wv.find((t=>t.from===e&&t.to===n));if(u?l=u:wv.push(l),l.type=t,l.from=e,l.to=n,l.label={text:i},null==r)l.techn={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];l[t]={text:e}}else l.techn={text:r};if(null==o)l.descr={text:""};else if("object"==typeof o){let[t,e]=Object.entries(o)[0];l[t]={text:e}}else l.descr={text:o};if("object"==typeof a){let[t,e]=Object.entries(a)[0];l[t]=e}else l.sprite=a;if("object"==typeof s){let[t,e]=Object.entries(s)[0];l[t]=e}else l.tags=s;if("object"==typeof c){let[t,e]=Object.entries(c)[0];l[t]=e}else l.link=c;l.wrap=Pv()},xv=function(t,e,n,i,r,o,a){if(null===e||null===n)return;let s={};const c=fv.find((t=>t.alias===e));if(c&&e===c.alias?s=c:(s.alias=e,fv.push(s)),s.label=null==n?{text:""}:{text:n},null==i)s.descr={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]={text:e}}else s.descr={text:i};if("object"==typeof r){let[t,e]=Object.entries(r)[0];s[t]=e}else s.sprite=r;if("object"==typeof o){let[t,e]=Object.entries(o)[0];s[t]=e}else s.tags=o;if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=e}else s.link=a;s.typeC4Shape={text:t},s.parentBoundary=pv,s.wrap=Pv()},Ev=function(t,e,n,i,r,o,a,s){if(null===e||null===n)return;let c={};const l=fv.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,fv.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.techn={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.sprite=o;if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]=e}else c.tags=a;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.wrap=Pv(),c.typeC4Shape={text:t},c.parentBoundary=pv},Tv=function(t,e,n,i,r,o,a,s){if(null===e||null===n)return;let c={};const l=fv.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,fv.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.techn={text:""};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.techn={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof o){let[t,e]=Object.entries(o)[0];c[t]=e}else c.sprite=o;if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]=e}else c.tags=a;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.wrap=Pv(),c.typeC4Shape={text:t},c.parentBoundary=pv},Sv=function(t,e,n,i,r){if(null===t||null===e)return;let o={};const a=bv.find((e=>e.alias===t));if(a&&t===a.alias?o=a:(o.alias=t,bv.push(o)),o.label=null==e?{text:""}:{text:e},null==n)o.type={text:"system"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.type={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]=e}else o.tags=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.link=r;o.parentBoundary=pv,o.wrap=Pv(),mv=pv,pv=t,gv.push(mv)},Dv=function(t,e,n,i,r){if(null===t||null===e)return;let o={};const a=bv.find((e=>e.alias===t));if(a&&t===a.alias?o=a:(o.alias=t,bv.push(o)),o.label=null==e?{text:""}:{text:e},null==n)o.type={text:"container"};else if("object"==typeof n){let[t,e]=Object.entries(n)[0];o[t]={text:e}}else o.type={text:n};if("object"==typeof i){let[t,e]=Object.entries(i)[0];o[t]=e}else o.tags=i;if("object"==typeof r){let[t,e]=Object.entries(r)[0];o[t]=e}else o.link=r;o.parentBoundary=pv,o.wrap=Pv(),mv=pv,pv=t,gv.push(mv)},Iv=function(t,e,n,i,r,o,a,s){if(null===e||null===n)return;let c={};const l=bv.find((t=>t.alias===e));if(l&&e===l.alias?c=l:(c.alias=e,bv.push(c)),c.label=null==n?{text:""}:{text:n},null==i)c.type={text:"node"};else if("object"==typeof i){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else c.type={text:i};if(null==r)c.descr={text:""};else if("object"==typeof r){let[t,e]=Object.entries(r)[0];c[t]={text:e}}else c.descr={text:r};if("object"==typeof a){let[t,e]=Object.entries(a)[0];c[t]=e}else c.tags=a;if("object"==typeof s){let[t,e]=Object.entries(s)[0];c[t]=e}else c.link=s;c.nodeType=t,c.parentBoundary=pv,c.wrap=Pv(),mv=pv,pv=e,gv.push(mv)},Bv=function(t){return null==t?fv:fv.filter((e=>e.parentBoundary===t))},Mv=function(t){return Object.keys(Bv(t))},Pv=function(){return vv},Lv={addPersonOrSystem:xv,addPersonOrSystemBoundary:Sv,addContainer:Ev,addContainerBoundary:Dv,addComponent:Tv,addDeploymentNode:Iv,popBoundaryParseStack:function(){pv=mv,gv.pop(),mv=gv.pop(),gv.push(mv)},addRel:Av,updateElStyle:function(t,e,n,i,r,o,a,s,c,l,u){let h=fv.find((t=>t.alias===e));if(void 0!==h||(h=bv.find((t=>t.alias===e)),void 0!==h)){if(null!=n)if("object"==typeof n){let[t,e]=Object.entries(n)[0];h[t]=e}else h.bgColor=n;if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];h[t]=e}else h.fontColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];h[t]=e}else h.borderColor=r;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];h[t]=e}else h.shadowing=o;if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];h[t]=e}else h.shape=a;if(null!=s)if("object"==typeof s){let[t,e]=Object.entries(s)[0];h[t]=e}else h.sprite=s;if(null!=c)if("object"==typeof c){let[t,e]=Object.entries(c)[0];h[t]=e}else h.techn=c;if(null!=l)if("object"==typeof l){let[t,e]=Object.entries(l)[0];h[t]=e}else h.legendText=l;if(null!=u)if("object"==typeof u){let[t,e]=Object.entries(u)[0];h[t]=e}else h.legendSprite=u}},updateRelStyle:function(t,e,n,i,r,o,a){const s=wv.find((t=>t.from===e&&t.to===n));if(void 0!==s){if(null!=i)if("object"==typeof i){let[t,e]=Object.entries(i)[0];s[t]=e}else s.textColor=i;if(null!=r)if("object"==typeof r){let[t,e]=Object.entries(r)[0];s[t]=e}else s.lineColor=r;if(null!=o)if("object"==typeof o){let[t,e]=Object.entries(o)[0];s[t]=parseInt(e)}else s.offsetX=parseInt(o);if(null!=a)if("object"==typeof a){let[t,e]=Object.entries(a)[0];s[t]=parseInt(e)}else s.offsetY=parseInt(a)}},updateLayoutConfig:function(t,e,n){let i=yv,r=_v;if("object"==typeof e){const t=Object.values(e)[0];i=parseInt(t)}else i=parseInt(e);if("object"==typeof n){const t=Object.values(n)[0];r=parseInt(t)}else r=parseInt(n);i>=1&&(yv=i),r>=1&&(_v=r)},autoWrap:Pv,setWrap:function(t){vv=t},getC4ShapeArray:Bv,getC4Shape:function(t){return fv.find((e=>e.alias===t))},getC4ShapeKeys:Mv,getBoundarys:function(t){return null==t?bv:bv.filter((e=>e.parentBoundary===t))},getCurrentBoundaryParse:function(){return pv},getParentBoundaryParse:function(){return mv},getRels:function(){return wv},getTitle:function(){return kv},getC4Type:function(){return Cv},getC4ShapeInRow:function(){return yv},getC4BoundaryInRow:function(){return _v},setAccTitle:tk,getAccTitle:ek,getAccDescription:ik,setAccDescription:nk,parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().c4,clear:function(){fv=[],bv=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],mv="",pv="global",gv=[""],wv=[],gv=[""],kv="",vv=!1,yv=4,_v=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(t){let e=Gh(t,_w());kv=e},setC4Type:function(t){let e=Gh(t,_w());Cv=e}},Ov=function(t,e){const n=t.append("rect");if(n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),"undefined"!==e.attrs&&null!==e.attrs)for(let t in e.attrs)n.attr(t,e.attrs[t]);return"undefined"!==e.class&&n.attr("class",e.class),n},Nv=function(t,e,n,i,r,o){const a=t.append("image");a.attr("width",e),a.attr("height",n),a.attr("x",i),a.attr("y",r);let s=o.startsWith("data:image/png;base64")?o:p(o);a.attr("xlink:href",s)},Rv=(t,e,n)=>{const i=t.append("g");let r=0;for(let t of e){let e=t.textColor?t.textColor:"#444444",o=t.lineColor?t.lineColor:"#444444",a=t.offsetX?parseInt(t.offsetX):0,s=t.offsetY?parseInt(t.offsetY):0,c="";if(0===r){let e=i.append("line");e.attr("x1",t.startPoint.x),e.attr("y1",t.startPoint.y),e.attr("x2",t.endPoint.x),e.attr("y2",t.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",o),e.style("fill","none"),"rel_b"!==t.type&&e.attr("marker-end","url("+c+"#arrowhead)"),"birel"!==t.type&&"rel_b"!==t.type||e.attr("marker-start","url("+c+"#arrowend)"),r=-1}else{let e=i.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",o).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",t.startPoint.x).replaceAll("starty",t.startPoint.y).replaceAll("controlx",t.startPoint.x+(t.endPoint.x-t.startPoint.x)/2-(t.endPoint.x-t.startPoint.x)/4).replaceAll("controly",t.startPoint.y+(t.endPoint.y-t.startPoint.y)/2).replaceAll("stopx",t.endPoint.x).replaceAll("stopy",t.endPoint.y)),"rel_b"!==t.type&&e.attr("marker-end","url("+c+"#arrowhead)"),"birel"!==t.type&&"rel_b"!==t.type||e.attr("marker-start","url("+c+"#arrowend)")}let l=n.messageFont();Xv(n)(t.label.text,i,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+a,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+s,t.label.width,t.label.height,{fill:e},l),t.techn&&""!==t.techn.text&&(l=n.messageFont(),Xv(n)("["+t.techn.text+"]",i,Math.min(t.startPoint.x,t.endPoint.x)+Math.abs(t.endPoint.x-t.startPoint.x)/2+a,Math.min(t.startPoint.y,t.endPoint.y)+Math.abs(t.endPoint.y-t.startPoint.y)/2+n.messageFontSize+5+s,Math.max(t.label.width,t.techn.width),t.techn.height,{fill:e,"font-style":"italic"},l))}},Fv=function(t,e,n){const i=t.append("g");let r=e.bgColor?e.bgColor:"none",o=e.borderColor?e.borderColor:"#444444",a=e.fontColor?e.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};e.nodeType&&(s={"stroke-width":1});let c={x:e.x,y:e.y,fill:r,stroke:o,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:s};Ov(i,c);let l=n.boundaryFont();l.fontWeight="bold",l.fontSize=l.fontSize+2,l.fontColor=a,Xv(n)(e.label.text,i,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},l),e.type&&""!==e.type.text&&(l=n.boundaryFont(),l.fontColor=a,Xv(n)(e.type.text,i,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},l)),e.descr&&""!==e.descr.text&&(l=n.boundaryFont(),l.fontSize=l.fontSize-2,l.fontColor=a,Xv(n)(e.descr.text,i,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},l))},jv=function(t,e,n){var i;let r=e.bgColor?e.bgColor:n[e.typeC4Shape.text+"_bg_color"],o=e.borderColor?e.borderColor:n[e.typeC4Shape.text+"_border_color"],a=e.fontColor?e.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}const c=t.append("g");c.attr("class","person-man");const l=Kv();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":l.x=e.x,l.y=e.y,l.fill=r,l.width=e.width,l.height=e.height,l.stroke=o,l.rx=2.5,l.ry=2.5,l.attrs={"stroke-width":.5},Ov(c,l);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":c.append("path").attr("fill",r).attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height)),c.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":c.append("path").attr("fill",r).attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2)),c.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2))}let u=Yv(n,e.typeC4Shape.text);switch(c.append("text").attr("fill",a).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>"),e.typeC4Shape.text){case"person":case"external_person":Nv(c,48,48,e.x+e.width/2-24,e.y+e.image.Y,s)}let h=n[e.typeC4Shape.text+"Font"]();return h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=a,Xv(n)(e.label.text,c,e.x,e.y+e.label.Y,e.width,e.height,{fill:a},h),h=n[e.typeC4Shape.text+"Font"](),h.fontColor=a,e.techn&&""!==(null==(i=e.techn)?void 0:i.text)?Xv(n)(e.techn.text,c,e.x,e.y+e.techn.Y,e.width,e.height,{fill:a,"font-style":"italic"},h):e.type&&""!==e.type.text&&Xv(n)(e.type.text,c,e.x,e.y+e.type.Y,e.width,e.height,{fill:a,"font-style":"italic"},h),e.descr&&""!==e.descr.text&&(h=n.personFont(),h.fontColor=a,Xv(n)(e.descr.text,c,e.x,e.y+e.descr.Y,e.width,e.height,{fill:a},h)),e.height},$v=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},zv=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},Vv=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},Hv=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},qv=function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},Uv=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},Gv=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},Wv=function(t){const e=t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},Kv=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},Yv=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),Xv=function(){function t(t,e,n,r,o,a,s){i(e.append("text").attr("x",n+o/2).attr("y",r+a/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,o,a,s,c){const{fontSize:l,fontFamily:u,fontWeight:h}=c,d=t.split(Jh.lineBreakRegex);for(let t=0;t<d.length;t++){const a=t*l-l*(d.length-1)/2,c=e.append("text").attr("x",n+o/2).attr("y",r).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",l).style("font-weight",h).style("font-family",u);c.append("tspan").attr("dy",a).text(d[t]).attr("alignment-baseline","mathematical"),i(c,s)}}function n(t,n,r,o,a,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",r).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,r,o,a,s,c,l),i(h,c)}function i(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),Zv={drawRect:Ov,drawBoundary:Fv,drawC4Shape:jv,drawRels:Rv,drawImage:Nv,insertArrowHead:Hv,insertArrowEnd:qv,insertArrowFilledHead:Uv,insertDynamicNumber:Gv,insertArrowCrossHead:Wv,insertDatabaseIcon:$v,insertComputerIcon:zv,insertClockIcon:Vv,getNoteRect:Kv,sanitizeUrl:p};let Qv=0,Jv=0,ty=4,ey=2;uv.yy=Lv;let ny={};class iy{constructor(t){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,ry(t.db.getConfig())}setData(t,e,n,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=e,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let e=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+2*t.margin,n=e+t.width,i=this.nextData.starty+2*t.margin,r=i+t.height;(e>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>ty)&&(e=this.nextData.startx+t.margin+ny.nextLinePaddingX,i=this.nextData.stopy+2*t.margin,this.nextData.stopx=n=e+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=r=i+t.height,this.nextData.cnt=1),t.x=e,t.y=i,this.updateVal(this.data,"startx",e,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",r,Math.max),this.updateVal(this.nextData,"startx",e,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",r,Math.max)}init(t){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},ry(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}}const ry=function(t){Tp(ny,t),t.fontFamily&&(ny.personFontFamily=ny.systemFontFamily=ny.messageFontFamily=t.fontFamily),t.fontSize&&(ny.personFontSize=ny.systemFontSize=ny.messageFontSize=t.fontSize),t.fontWeight&&(ny.personFontWeight=ny.systemFontWeight=ny.messageFontWeight=t.fontWeight)},oy=(t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]}),ay=t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight}),sy=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight});function cy(t,e,n,i,r){if(!e[t].width)if(n)e[t].text=cb(e[t].text,r,i),e[t].textLines=e[t].text.split(Jh.lineBreakRegex).length,e[t].width=r,e[t].height=ub(e[t].text,i);else{let n=e[t].text.split(Jh.lineBreakRegex);e[t].textLines=n.length;let r=0;e[t].height=0,e[t].width=0;for(const o of n)e[t].width=Math.max(hb(o,i),e[t].width),r=ub(o,i),e[t].height=e[t].height+r}}const ly=function(t,e,n){e.x=n.data.startx,e.y=n.data.starty,e.width=n.data.stopx-n.data.startx,e.height=n.data.stopy-n.data.starty,e.label.y=ny.c4ShapeMargin-35;let i=e.wrap&&ny.wrap,r=ay(ny);r.fontSize=r.fontSize+2,r.fontWeight="bold",cy("label",e,i,r,hb(e.label.text,r)),Zv.drawBoundary(t,e,ny)},uy=function(t,e,n,i){let r=0;for(const o of i){r=0;const i=n[o];let a=oy(ny,i.typeC4Shape.text);switch(a.fontSize=a.fontSize-2,i.typeC4Shape.width=hb("<<"+i.typeC4Shape.text+">>",a),i.typeC4Shape.height=a.fontSize+2,i.typeC4Shape.Y=ny.c4ShapePadding,r=i.typeC4Shape.Y+i.typeC4Shape.height-4,i.image={width:0,height:0,Y:0},i.typeC4Shape.text){case"person":case"external_person":i.image.width=48,i.image.height=48,i.image.Y=r,r=i.image.Y+i.image.height}i.sprite&&(i.image.width=48,i.image.height=48,i.image.Y=r,r=i.image.Y+i.image.height);let s=i.wrap&&ny.wrap,c=ny.width-2*ny.c4ShapePadding,l=oy(ny,i.typeC4Shape.text);l.fontSize=l.fontSize+2,l.fontWeight="bold",cy("label",i,s,l,c),i.label.Y=r+8,r=i.label.Y+i.label.height,i.type&&""!==i.type.text?(i.type.text="["+i.type.text+"]",cy("type",i,s,oy(ny,i.typeC4Shape.text),c),i.type.Y=r+5,r=i.type.Y+i.type.height):i.techn&&""!==i.techn.text&&(i.techn.text="["+i.techn.text+"]",cy("techn",i,s,oy(ny,i.techn.text),c),i.techn.Y=r+5,r=i.techn.Y+i.techn.height);let u=r,h=i.label.width;i.descr&&""!==i.descr.text&&(cy("descr",i,s,oy(ny,i.typeC4Shape.text),c),i.descr.Y=r+20,r=i.descr.Y+i.descr.height,h=Math.max(i.label.width,i.descr.width),u=r-5*i.descr.textLines),h+=ny.c4ShapePadding,i.width=Math.max(i.width||ny.width,h,ny.width),i.height=Math.max(i.height||ny.height,u,ny.height),i.margin=i.margin||ny.c4ShapeMargin,t.insert(i),Zv.drawC4Shape(e,i,ny)}t.bumpLastMargin(ny.c4ShapeMargin)};let hy=class{constructor(t,e){this.x=t,this.y=e}},dy=function(t,e){let n=t.x,i=t.y,r=e.x,o=e.y,a=n+t.width/2,s=i+t.height/2,c=Math.abs(n-r),l=Math.abs(i-o),u=l/c,h=t.height/t.width,d=null;return i==o&&n<r?d=new hy(n+t.width,s):i==o&&n>r?d=new hy(n,s):n==r&&i<o?d=new hy(a,i+t.height):n==r&&i>o&&(d=new hy(a,i)),n>r&&i<o?d=h>=u?new hy(n,s+u*t.width/2):new hy(a-c/l*t.height/2,i+t.height):n<r&&i<o?d=h>=u?new hy(n+t.width,s+u*t.width/2):new hy(a+c/l*t.height/2,i+t.height):n<r&&i>o?d=h>=u?new hy(n+t.width,s-u*t.width/2):new hy(a+t.height/2*c/l,i):n>r&&i>o&&(d=h>=u?new hy(n,s-t.width/2*u):new hy(a-t.height/2*c/l,i)),d},fy=function(t,e){let n={x:0,y:0};n.x=e.x+e.width/2,n.y=e.y+e.height/2;let i=dy(t,n);return n.x=t.x+t.width/2,n.y=t.y+t.height/2,{startPoint:i,endPoint:dy(e,n)}};const gy=function(t,e,n,i){let r=0;for(let t of e){r+=1;let e=t.wrap&&ny.wrap,o=sy(ny);"C4Dynamic"===i.db.getC4Type()&&(t.label.text=r+": "+t.label.text);let a=hb(t.label.text,o);cy("label",t,e,o,a),t.techn&&""!==t.techn.text&&(a=hb(t.techn.text,o),cy("techn",t,e,o,a)),t.descr&&""!==t.descr.text&&(a=hb(t.descr.text,o),cy("descr",t,e,o,a));let s=n(t.from),c=n(t.to),l=fy(s,c);t.startPoint=l.startPoint,t.endPoint=l.endPoint}Zv.drawRels(t,e,ny)};function py(t,e,n,i,r){let o=new iy(r);o.data.widthLimit=n.data.widthLimit/Math.min(ey,i.length);for(let[a,s]of i.entries()){let i=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=i,i=s.image.Y+s.image.height);let c=s.wrap&&ny.wrap,l=ay(ny);if(l.fontSize=l.fontSize+2,l.fontWeight="bold",cy("label",s,c,l,o.data.widthLimit),s.label.Y=i+8,i=s.label.Y+s.label.height,s.type&&""!==s.type.text&&(s.type.text="["+s.type.text+"]",cy("type",s,c,ay(ny),o.data.widthLimit),s.type.Y=i+5,i=s.type.Y+s.type.height),s.descr&&""!==s.descr.text){let t=ay(ny);t.fontSize=t.fontSize-2,cy("descr",s,c,t,o.data.widthLimit),s.descr.Y=i+20,i=s.descr.Y+s.descr.height}if(0==a||a%ey==0){let t=n.data.startx+ny.diagramMarginX,e=n.data.stopy+ny.diagramMarginY+i;o.setData(t,t,e,e)}else{let t=o.data.stopx!==o.data.startx?o.data.stopx+ny.diagramMarginX:o.data.startx,e=o.data.starty;o.setData(t,t,e,e)}o.name=s.alias;let u=r.db.getC4ShapeArray(s.alias),h=r.db.getC4ShapeKeys(s.alias);h.length>0&&uy(o,t,u,h),e=s.alias;let d=r.db.getBoundarys(e);d.length>0&&py(t,e,o,d,r),"global"!==s.alias&&ly(t,s,o),n.data.stopy=Math.max(o.data.stopy+ny.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(o.data.stopx+ny.c4ShapeMargin,n.data.stopx),Qv=Math.max(Qv,n.data.stopx),Jv=Math.max(Jv,n.data.stopy)}}const my={drawPersonOrSystemArray:uy,drawBoundary:ly,setConf:ry,draw:function(t,e,n,i){ny=_w().c4;const r=_w().securityLevel;let o;"sandbox"===r&&(o=un("#i"+e));const a=un("sandbox"===r?o.nodes()[0].contentDocument.body:"body");let s=i.db;i.db.setWrap(ny.wrap),ty=s.getC4ShapeInRow(),ey=s.getC4BoundaryInRow(),h.debug(`C:${JSON.stringify(ny,null,2)}`);const c="sandbox"===r?a.select(`[id="${e}"]`):un(`[id="${e}"]`);Zv.insertComputerIcon(c),Zv.insertDatabaseIcon(c),Zv.insertClockIcon(c);let l=new iy(i);l.setData(ny.diagramMarginX,ny.diagramMarginX,ny.diagramMarginY,ny.diagramMarginY),l.data.widthLimit=screen.availWidth,Qv=ny.diagramMarginX,Jv=ny.diagramMarginY;const u=i.db.getTitle();py(c,"",l,i.db.getBoundarys(""),i),Zv.insertArrowHead(c),Zv.insertArrowEnd(c),Zv.insertArrowCrossHead(c),Zv.insertArrowFilledHead(c),gy(c,i.db.getRels(),i.db.getC4Shape,i),l.data.stopx=Qv,l.data.stopy=Jv;const d=l.data;let f=d.stopy-d.starty+2*ny.diagramMarginY;const g=d.stopx-d.startx+2*ny.diagramMarginX;u&&c.append("text").text(u).attr("x",(d.stopx-d.startx)/2-4*ny.diagramMarginX).attr("y",d.starty+ny.diagramMarginY),Mw(c,f,g,ny.useMaxWidth);const p=u?60:0;c.attr("viewBox",d.startx-ny.diagramMarginX+" -"+(ny.diagramMarginY+p)+" "+g+" "+(f+p)),h.debug("models:",d)}};var by=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,7],i=[1,8],r=[1,9],o=[1,10],a=[1,13],s=[1,12],c=[1,16,25],l=[1,20],u=[1,32],h=[1,33],d=[1,34],f=[1,36],g=[1,39],p=[1,37],m=[1,38],b=[1,44],w=[1,45],k=[1,40],v=[1,41],y=[1,42],_=[1,43],C=[1,48],A=[1,49],x=[1,50],E=[1,51],T=[16,25],S=[1,65],D=[1,66],I=[1,67],B=[1,68],M=[1,69],P=[1,70],L=[1,71],O=[1,80],N=[16,25,32,45,46,54,60,61,62,63,64,65,66,71,73],R=[16,25,30,32,45,46,50,54,60,61,62,63,64,65,66,71,73,88,89,90,91],F=[5,8,9,10,11,16,19,23,25],j=[54,88,89,90,91],$=[54,65,66,88,89,90,91],z=[54,60,61,62,63,64,88,89,90,91],V=[16,25,32],H=[1,107],q={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,noteStatement:38,acc_title:39,acc_title_value:40,acc_descr:41,acc_descr_value:42,acc_descr_multiline_value:43,CLASS:44,STYLE_SEPARATOR:45,STRUCT_START:46,members:47,STRUCT_STOP:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,STR:54,NOTE_FOR:55,noteText:56,NOTE:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,CSSCLASS:74,commentToken:75,textToken:76,graphCodeTokens:77,textNoTagsToken:78,TAGSTART:79,TAGEND:80,"==":81,"--":82,PCT:83,DEFAULT:84,SPACE:85,MINUS:86,keywords:87,UNICODE_TEXT:88,NUM:89,ALPHA:90,BQUOTE_STR:91,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",39:"acc_title",40:"acc_title_value",41:"acc_descr",42:"acc_descr_value",43:"acc_descr_multiline_value",44:"CLASS",45:"STYLE_SEPARATOR",46:"STRUCT_START",48:"STRUCT_STOP",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"STR",55:"NOTE_FOR",57:"NOTE",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"CSSCLASS",77:"graphCodeTokens",79:"TAGSTART",80:"TAGEND",81:"==",82:"--",83:"PCT",84:"DEFAULT",85:"SPACE",86:"MINUS",87:"keywords",88:"UNICODE_TEXT",89:"NUM",90:"ALPHA",91:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[47,1],[47,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[38,3],[38,2],[53,3],[53,2],[53,2],[53,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[75,1],[75,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[78,1],[78,1],[78,1],[78,1],[28,1],[28,1],[28,1],[29,1],[56,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 5:i.setDirection("TB");break;case 6:i.setDirection("BT");break;case 7:i.setDirection("RL");break;case 8:i.setDirection("LR");break;case 12:i.parseDirective("%%{","open_directive");break;case 13:i.parseDirective(o[s],"type_directive");break;case 14:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 15:i.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=o[s];break;case 22:this.$=o[s-1]+o[s];break;case 23:case 24:this.$=o[s-1]+"~"+o[s];break;case 25:i.addRelation(o[s]);break;case 26:o[s-1].title=i.cleanupLabel(o[s]),i.addRelation(o[s-1]);break;case 35:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 36:case 37:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 38:i.addClass(o[s]);break;case 39:i.addClass(o[s-2]),i.setCssClass(o[s-2],o[s]);break;case 40:i.addClass(o[s-3]),i.addMembers(o[s-3],o[s-1]);break;case 41:i.addClass(o[s-5]),i.setCssClass(o[s-5],o[s-3]),i.addMembers(o[s-5],o[s-1]);break;case 42:i.addAnnotation(o[s],o[s-2]);break;case 43:this.$=[o[s]];break;case 44:o[s].push(o[s-1]),this.$=o[s];break;case 45:case 47:case 48:break;case 46:i.addMember(o[s-1],i.cleanupLabel(o[s]));break;case 49:this.$={id1:o[s-2],id2:o[s],relation:o[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:o[s-3],id2:o[s],relation:o[s-1],relationTitle1:o[s-2],relationTitle2:"none"};break;case 51:this.$={id1:o[s-3],id2:o[s],relation:o[s-2],relationTitle1:"none",relationTitle2:o[s-1]};break;case 52:this.$={id1:o[s-4],id2:o[s],relation:o[s-2],relationTitle1:o[s-3],relationTitle2:o[s-1]};break;case 53:i.addNote(o[s],o[s-1]);break;case 54:i.addNote(o[s]);break;case 55:this.$={type1:o[s-2],type2:o[s],lineType:o[s-1]};break;case 56:this.$={type1:"none",type2:o[s],lineType:o[s-1]};break;case 57:this.$={type1:o[s-1],type2:"none",lineType:o[s]};break;case 58:this.$={type1:"none",type2:"none",lineType:o[s]};break;case 59:this.$=i.relationType.AGGREGATION;break;case 60:this.$=i.relationType.EXTENSION;break;case 61:this.$=i.relationType.COMPOSITION;break;case 62:this.$=i.relationType.DEPENDENCY;break;case 63:this.$=i.relationType.LOLLIPOP;break;case 64:this.$=i.lineType.LINE;break;case 65:this.$=i.lineType.DOTTED_LINE;break;case 66:case 72:this.$=o[s-2],i.setClickEvent(o[s-1],o[s]);break;case 67:case 73:this.$=o[s-3],i.setClickEvent(o[s-2],o[s-1]),i.setTooltip(o[s-2],o[s]);break;case 68:case 76:this.$=o[s-2],i.setLink(o[s-1],o[s]);break;case 69:case 77:this.$=o[s-3],i.setLink(o[s-2],o[s-1],o[s]);break;case 70:case 78:this.$=o[s-3],i.setLink(o[s-2],o[s-1]),i.setTooltip(o[s-2],o[s]);break;case 71:case 79:this.$=o[s-4],i.setLink(o[s-3],o[s-2],o[s]),i.setTooltip(o[s-3],o[s-1]);break;case 74:this.$=o[s-3],i.setClickEvent(o[s-2],o[s-1],o[s]);break;case 75:this.$=o[s-4],i.setClickEvent(o[s-3],o[s-2],o[s-1]),i.setTooltip(o[s-3],o[s]);break;case 80:i.setCssClass(o[s-1],o[s])}},table:[{3:1,4:2,5:e,6:4,7:5,8:n,9:i,10:r,11:o,12:6,13:11,19:a,23:s},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:e,6:4,7:5,8:n,9:i,10:r,11:o,12:6,13:11,19:a,23:s},{1:[2,9]},t(c,[2,5]),t(c,[2,6]),t(c,[2,7]),t(c,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:l},t([17,22],[2,13]),{6:31,7:30,8:n,9:i,10:r,11:o,13:11,19:a,24:21,26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:u,41:h,43:d,44:f,49:g,51:p,52:m,55:b,57:w,67:k,68:v,70:y,74:_,88:C,89:A,90:x,91:E},{16:[1,52]},{18:53,21:[1,54]},{16:[2,15]},{25:[1,55]},{16:[1,56],25:[2,17]},t(T,[2,25],{32:[1,57]}),t(T,[2,27]),t(T,[2,28]),t(T,[2,29]),t(T,[2,30]),t(T,[2,31]),t(T,[2,32]),t(T,[2,33]),t(T,[2,34]),{40:[1,58]},{42:[1,59]},t(T,[2,37]),t(T,[2,45],{53:60,58:63,59:64,32:[1,62],54:[1,61],60:S,61:D,62:I,63:B,64:M,65:P,66:L}),{27:72,28:46,29:47,88:C,89:A,90:x,91:E},t(T,[2,47]),t(T,[2,48]),{28:73,88:C,89:A,90:x},{27:74,28:46,29:47,88:C,89:A,90:x,91:E},{27:75,28:46,29:47,88:C,89:A,90:x,91:E},{27:76,28:46,29:47,88:C,89:A,90:x,91:E},{54:[1,77]},{27:78,28:46,29:47,88:C,89:A,90:x,91:E},{54:O,56:79},t(N,[2,20],{28:46,29:47,27:81,30:[1,82],88:C,89:A,90:x,91:E}),t(N,[2,21],{30:[1,83]}),t(R,[2,94]),t(R,[2,95]),t(R,[2,96]),t([16,25,30,32,45,46,54,60,61,62,63,64,65,66,71,73],[2,97]),t(F,[2,10]),{15:84,22:l},{22:[2,14]},{1:[2,16]},{6:31,7:30,8:n,9:i,10:r,11:o,13:11,19:a,24:85,25:[2,18],26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:u,41:h,43:d,44:f,49:g,51:p,52:m,55:b,57:w,67:k,68:v,70:y,74:_,88:C,89:A,90:x,91:E},t(T,[2,26]),t(T,[2,35]),t(T,[2,36]),{27:86,28:46,29:47,54:[1,87],88:C,89:A,90:x,91:E},{53:88,58:63,59:64,60:S,61:D,62:I,63:B,64:M,65:P,66:L},t(T,[2,46]),{59:89,65:P,66:L},t(j,[2,58],{58:90,60:S,61:D,62:I,63:B,64:M}),t($,[2,59]),t($,[2,60]),t($,[2,61]),t($,[2,62]),t($,[2,63]),t(z,[2,64]),t(z,[2,65]),t(T,[2,38],{45:[1,91],46:[1,92]}),{50:[1,93]},{54:[1,94]},{54:[1,95]},{71:[1,96],73:[1,97]},{28:98,88:C,89:A,90:x},{54:O,56:99},t(T,[2,54]),t(T,[2,98]),t(N,[2,22]),t(N,[2,23]),t(N,[2,24]),{16:[1,100]},{25:[2,19]},t(V,[2,49]),{27:101,28:46,29:47,88:C,89:A,90:x,91:E},{27:102,28:46,29:47,54:[1,103],88:C,89:A,90:x,91:E},t(j,[2,57],{58:104,60:S,61:D,62:I,63:B,64:M}),t(j,[2,56]),{28:105,88:C,89:A,90:x},{47:106,51:H},{27:108,28:46,29:47,88:C,89:A,90:x,91:E},t(T,[2,66],{54:[1,109]}),t(T,[2,68],{54:[1,111],69:[1,110]}),t(T,[2,72],{54:[1,112],72:[1,113]}),t(T,[2,76],{54:[1,115],69:[1,114]}),t(T,[2,80]),t(T,[2,53]),t(F,[2,11]),t(V,[2,51]),t(V,[2,50]),{27:116,28:46,29:47,88:C,89:A,90:x,91:E},t(j,[2,55]),t(T,[2,39],{46:[1,117]}),{48:[1,118]},{47:119,48:[2,43],51:H},t(T,[2,42]),t(T,[2,67]),t(T,[2,69]),t(T,[2,70],{69:[1,120]}),t(T,[2,73]),t(T,[2,74],{54:[1,121]}),t(T,[2,77]),t(T,[2,78],{69:[1,122]}),t(V,[2,52]),{47:123,51:H},t(T,[2,40]),{48:[2,44]},t(T,[2,71]),t(T,[2,75]),t(T,[2,79]),{48:[1,124]},t(T,[2,41])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],54:[2,14],55:[2,16],85:[2,19],119:[2,44]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},U={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 27:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 39:case 42:case 45:case 48:case 51:case 54:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 43:return"STR";case 44:this.begin("bqstring");break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 49:return 73;case 50:this.begin("callback_name");break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 55:return 72;case 56:case 57:case 58:case 59:return 69;case 60:case 61:return 61;case 62:case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[54,55],inclusive:!1},callback_name:{rules:[51,52,53],inclusive:!1},href:{rules:[48,49],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[39,40],inclusive:!1},bqstring:{rules:[45,46],inclusive:!1},string:{rules:[42,43],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,37,38,41,44,47,50,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],inclusive:!0}}};function G(){this.yy={}}return q.lexer=U,G.prototype=q,q.Parser=G,new G}();by.parser=by;const wy=by,ky=(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*classDiagram/)},vy=(t,e)=>{var n;return null!==t.match(/^\s*classDiagram/)&&"dagre-wrapper"===(null==(n=null==e?void 0:e.class)?void 0:n.defaultRenderer)||null!==t.match(/^\s*classDiagram-v2/)},yy="classid-";let _y=[],Cy={},Ay=[],xy=0,Ey=[];const Ty=t=>Jh.sanitizeText(t,_w()),Sy=function(t,e,n){mH.parseDirective(this,t,e,n)},Dy=function(t){let e="",n=t;if(t.indexOf("~")>0){let i=t.split("~");n=i[0],e=Jh.sanitizeText(i[1],_w())}return{className:n,type:e}},Iy=function(t){let e=Dy(t);void 0===Cy[e.className]&&(Cy[e.className]={id:e.className,type:e.type,cssClasses:[],methods:[],members:[],annotations:[],domId:yy+e.className+"-"+xy},xy++)},By=function(t){const e=Object.keys(Cy);for(const n of e)if(Cy[n].id===t)return Cy[n].domId},My=function(){_y=[],Cy={},Ay=[],Ey=[],Ey.push(Qy),Jw()},Py=function(t){return Cy[t]},Ly=function(){return Cy},Oy=function(){return _y},Ny=function(){return Ay},Ry=function(t){h.debug("Adding relation: "+JSON.stringify(t)),Iy(t.id1),Iy(t.id2),t.id1=Dy(t.id1).className,t.id2=Dy(t.id2).className,t.relationTitle1=Jh.sanitizeText(t.relationTitle1.trim(),_w()),t.relationTitle2=Jh.sanitizeText(t.relationTitle2.trim(),_w()),_y.push(t)},Fy=function(t,e){const n=Dy(t).className;Cy[n].annotations.push(e)},jy=function(t,e){const n=Dy(t).className,i=Cy[n];if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(Ty(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(Ty(t)):t&&i.members.push(Ty(t))}},$y=function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((e=>jy(t,e))))},zy=function(t,e){const n={id:`note${Ay.length}`,class:e,text:t};Ay.push(n)},Vy=function(t){return":"===t.substring(0,1)?Jh.sanitizeText(t.substr(1).trim(),_w()):Ty(t.trim())},Hy=function(t,e){t.split(",").forEach((function(t){let n=t;t[0].match(/\d/)&&(n=yy+n),void 0!==Cy[n]&&Cy[n].cssClasses.push(e)}))},qy=function(t,e){const n=_w();t.split(",").forEach((function(t){void 0!==e&&(Cy[t].tooltip=Jh.sanitizeText(e,n))}))},Uy=function(t){return Cy[t].tooltip},Gy=function(t,e,n){const i=_w();t.split(",").forEach((function(t){let r=t;t[0].match(/\d/)&&(r=yy+r),void 0!==Cy[r]&&(Cy[r].link=kb.formatUrl(e,i),"sandbox"===i.securityLevel?Cy[r].linkTarget="_top":Cy[r].linkTarget="string"==typeof n?Ty(n):"_blank")})),Hy(t,"clickable")},Wy=function(t,e,n){t.split(",").forEach((function(t){Ky(t,e,n),Cy[t].haveCallback=!0})),Hy(t,"clickable")},Ky=function(t,e,n){const i=_w();let r=t,o=By(r);if("loose"===i.securityLevel&&void 0!==e&&void 0!==Cy[r]){let t=[];if("string"==typeof n){t=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let n=t[e].trim();'"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substr(1,n.length-2)),t[e]=n}}0===t.length&&t.push(o),Ey.push((function(){const n=document.querySelector(`[id="${o}"]`);null!==n&&n.addEventListener("click",(function(){kb.runFunc(e,...t)}),!1)}))}},Yy=function(t){Ey.forEach((function(e){e(t)}))},Xy={LINE:0,DOTTED_LINE:1},Zy={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},Qy=function(t){let e=un(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=un("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),un(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=un(this);if(null===t.attr("title"))return;const n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),un(this).classed("hover",!1)}))};Ey.push(Qy);let Jy="TB";const t_={parseDirective:Sy,setAccTitle:tk,getAccTitle:ek,getAccDescription:ik,setAccDescription:nk,getConfig:()=>_w().class,addClass:Iy,bindFunctions:Yy,clear:My,getClass:Py,getClasses:Ly,getNotes:Ny,addAnnotation:Fy,addNote:zy,getRelations:Oy,addRelation:Ry,getDirection:()=>Jy,setDirection:t=>{Jy=t},addMember:jy,addMembers:$y,cleanupLabel:Vy,lineType:Xy,relationType:Zy,setClickEvent:Wy,setCssClass:Hy,setLink:Gy,getTooltip:Uy,setTooltip:qy,lookUpDomId:By,setDiagramTitle:rk,getDiagramTitle:ok};function e_(t){return null!=t&&"object"==typeof t}var n_="[object Symbol]";function i_(t){return"symbol"==typeof t||e_(t)&&Vp(t)==n_}function r_(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}const o_=Array.isArray;var a_=1/0,s_=Bp?Bp.prototype:void 0,c_=s_?s_.toString:void 0;function l_(t){if("string"==typeof t)return t;if(o_(t))return r_(t,l_)+"";if(i_(t))return c_?c_.call(t):"";var e=t+"";return"0"==e&&1/t==-a_?"-0":e}var u_=/\s/;function h_(t){for(var e=t.length;e--&&u_.test(t.charAt(e)););return e}var d_=/^\s+/;function f_(t){return t?t.slice(0,h_(t)+1).replace(d_,""):t}var g_=NaN,p_=/^[-+]0x[0-9a-f]+$/i,m_=/^0b[01]+$/i,b_=/^0o[0-7]+$/i,w_=parseInt;function k_(t){if("number"==typeof t)return t;if(i_(t))return g_;if(Hp(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Hp(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=f_(t);var n=m_.test(t);return n||b_.test(t)?w_(t.slice(2),n?2:8):p_.test(t)?g_:+t}var v_=1/0,y_=17976931348623157e292;function __(t){return t?(t=k_(t))===v_||t===-v_?(t<0?-1:1)*y_:t==t?t:0:0===t?t:0}function C_(t){var e=__(t),n=e%1;return e==e?n?e-n:e:0}function A_(t){return t}const x_=lm(Ip,"WeakMap");var E_=Object.create;const T_=function(){function t(){}return function(e){if(!Hp(e))return{};if(E_)return E_(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function S_(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function D_(){}function I_(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var B_=800,M_=16,P_=Date.now;function L_(t){var e=0,n=0;return function(){var i=P_(),r=M_-(i-n);if(n=i,r>0){if(++e>=B_)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function O_(t){return function(){return t}}const N_=function(){try{var t=lm(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),R_=L_(N_?function(t,e){return N_(t,"toString",{configurable:!0,enumerable:!1,value:O_(e),writable:!0})}:A_);function F_(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function j_(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function $_(t){return t!=t}function z_(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}function V_(t,e,n){return e==e?z_(t,e,n):j_(t,$_,n)}function H_(t,e){return!(null==t||!t.length)&&V_(t,e,0)>-1}var q_=9007199254740991,U_=/^(?:0|[1-9]\d*)$/;function G_(t,e){var n=typeof t;return!!(e=null==e?q_:e)&&("number"==n||"symbol"!=n&&U_.test(t))&&t>-1&&t%1==0&&t<e}function W_(t,e,n){"__proto__"==e&&N_?N_(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var K_=Object.prototype.hasOwnProperty;function Y_(t,e,n){var i=t[e];K_.call(t,e)&&_m(i,n)&&(void 0!==n||e in t)||W_(t,e,n)}function X_(t,e,n,i){var r=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],c=i?i(n[s],t[s],s,n,t):void 0;void 0===c&&(c=t[s]),r?W_(n,s,c):Y_(n,s,c)}return n}var Z_=Math.max;function Q_(t,e,n){return e=Z_(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=Z_(i.length-e,0),a=Array(o);++r<o;)a[r]=i[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=i[r];return s[e]=n(a),S_(t,this,s)}}function J_(t,e){return R_(Q_(t,e,A_),t+"")}var tC=9007199254740991;function eC(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=tC}function nC(t){return null!=t&&eC(t.length)&&!Kp(t)}function iC(t,e,n){if(!Hp(n))return!1;var i=typeof e;return!!("number"==i?nC(n)&&G_(e,n.length):"string"==i&&e in n)&&_m(n[e],t)}function rC(t){return J_((function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&iC(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++i<r;){var s=n[i];s&&t(e,s,i,o)}return e}))}var oC=Object.prototype;function aC(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||oC)}function sC(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var cC="[object Arguments]";function lC(t){return e_(t)&&Vp(t)==cC}var uC=Object.prototype,hC=uC.hasOwnProperty,dC=uC.propertyIsEnumerable,fC=lC(function(){return arguments}())?lC:function(t){return e_(t)&&hC.call(t,"callee")&&!dC.call(t,"callee")};const gC=fC;function pC(){return!1}var mC=e&&!e.nodeType&&e,bC=mC&&t&&!t.nodeType&&t,wC=bC&&bC.exports===mC?Ip.Buffer:void 0;const kC=(wC?wC.isBuffer:void 0)||pC;var vC="[object Arguments]",yC="[object Array]",_C="[object Boolean]",CC="[object Date]",AC="[object Error]",xC="[object Function]",EC="[object Map]",TC="[object Number]",SC="[object Object]",DC="[object RegExp]",IC="[object Set]",BC="[object String]",MC="[object WeakMap]",PC="[object ArrayBuffer]",LC="[object DataView]",OC="[object Float64Array]",NC="[object Int8Array]",RC="[object Int16Array]",FC="[object Int32Array]",jC="[object Uint8Array]",$C="[object Uint8ClampedArray]",zC="[object Uint16Array]",VC="[object Uint32Array]",HC={};function qC(t){return e_(t)&&eC(t.length)&&!!HC[Vp(t)]}function UC(t){return function(e){return t(e)}}HC["[object Float32Array]"]=HC[OC]=HC[NC]=HC[RC]=HC[FC]=HC[jC]=HC[$C]=HC[zC]=HC[VC]=!0,HC[vC]=HC[yC]=HC[PC]=HC[_C]=HC[LC]=HC[CC]=HC[AC]=HC[xC]=HC[EC]=HC[TC]=HC[SC]=HC[DC]=HC[IC]=HC[BC]=HC[MC]=!1;var GC=e&&!e.nodeType&&e,WC=GC&&t&&!t.nodeType&&t,KC=WC&&WC.exports===GC&&Sp.process;const YC=function(){try{var t=WC&&WC.require&&WC.require("util").types;return t||KC&&KC.binding&&KC.binding("util")}catch(t){}}();var XC=YC&&YC.isTypedArray;const ZC=XC?UC(XC):qC;var QC=Object.prototype.hasOwnProperty;function JC(t,e){var n=o_(t),i=!n&&gC(t),r=!n&&!i&&kC(t),o=!n&&!i&&!r&&ZC(t),a=n||i||r||o,s=a?sC(t.length,String):[],c=s.length;for(var l in t)!e&&!QC.call(t,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||G_(l,c))||s.push(l);return s}function tA(t,e){return function(n){return t(e(n))}}const eA=tA(Object.keys,Object);var nA=Object.prototype.hasOwnProperty;function iA(t){if(!aC(t))return eA(t);var e=[];for(var n in Object(t))nA.call(t,n)&&"constructor"!=n&&e.push(n);return e}function rA(t){return nC(t)?JC(t):iA(t)}function oA(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var aA=Object.prototype.hasOwnProperty;function sA(t){if(!Hp(t))return oA(t);var e=aC(t),n=[];for(var i in t)("constructor"!=i||!e&&aA.call(t,i))&&n.push(i);return n}function cA(t){return nC(t)?JC(t,!0):sA(t)}var lA=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uA=/^\w*$/;function hA(t,e){if(o_(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i_(t))||uA.test(t)||!lA.test(t)||null!=e&&t in Object(e)}var dA=500;function fA(t){var e=$m(t,(function(t){return n.size===dA&&n.clear(),t})),n=e.cache;return e}var gA=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pA=/\\(\\)?/g;const mA=fA((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(gA,(function(t,n,i,r){e.push(i?r.replace(pA,"$1"):n||t)})),e}));function bA(t){return null==t?"":l_(t)}function wA(t,e){return o_(t)?t:hA(t,e)?[t]:mA(bA(t))}var kA=1/0;function vA(t){if("string"==typeof t||i_(t))return t;var e=t+"";return"0"==e&&1/t==-kA?"-0":e}function yA(t,e){for(var n=0,i=(e=wA(e,t)).length;null!=t&&n<i;)t=t[vA(e[n++])];return n&&n==i?t:void 0}function _A(t,e,n){var i=null==t?void 0:yA(t,e);return void 0===i?n:i}function CA(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}var AA=Bp?Bp.isConcatSpreadable:void 0;function xA(t){return o_(t)||gC(t)||!!(AA&&t&&t[AA])}function EA(t,e,n,i,r){var o=-1,a=t.length;for(n||(n=xA),r||(r=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?EA(s,e-1,n,i,r):CA(r,s):i||(r[r.length]=s)}return r}function TA(t){return null!=t&&t.length?EA(t,1):[]}function SA(t){return R_(Q_(t,void 0,TA),t+"")}const DA=tA(Object.getPrototypeOf,Object);var IA="[object Object]",BA=Function.prototype,MA=Object.prototype,PA=BA.toString,LA=MA.hasOwnProperty,OA=PA.call(Object);function NA(t){if(!e_(t)||Vp(t)!=IA)return!1;var e=DA(t);if(null===e)return!0;var n=LA.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&PA.call(n)==OA}function RA(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function FA(){this.__data__=new Dm,this.size=0}function jA(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function $A(t){return this.__data__.get(t)}function zA(t){return this.__data__.has(t)}var VA=200;function HA(t,e){var n=this.__data__;if(n instanceof Dm){var i=n.__data__;if(!Im||i.length<VA-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Fm(i)}return n.set(t,e),this.size=n.size,this}function qA(t){var e=this.__data__=new Dm(t);this.size=e.size}function UA(t,e){return t&&X_(e,rA(e),t)}function GA(t,e){return t&&X_(e,cA(e),t)}qA.prototype.clear=FA,qA.prototype.delete=jA,qA.prototype.get=$A,qA.prototype.has=zA,qA.prototype.set=HA;var WA=e&&!e.nodeType&&e,KA=WA&&t&&!t.nodeType&&t,YA=KA&&KA.exports===WA?Ip.Buffer:void 0,XA=YA?YA.allocUnsafe:void 0;function ZA(t,e){if(e)return t.slice();var n=t.length,i=XA?XA(n):new t.constructor(n);return t.copy(i),i}function QA(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}function JA(){return[]}var tx=Object.prototype.propertyIsEnumerable,ex=Object.getOwnPropertySymbols;const nx=ex?function(t){return null==t?[]:(t=Object(t),QA(ex(t),(function(e){return tx.call(t,e)})))}:JA;function ix(t,e){return X_(t,nx(t),e)}const rx=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)CA(e,nx(t)),t=DA(t);return e}:JA;function ox(t,e){return X_(t,rx(t),e)}function ax(t,e,n){var i=e(t);return o_(t)?i:CA(i,n(t))}function sx(t){return ax(t,rA,nx)}function cx(t){return ax(t,cA,rx)}const lx=lm(Ip,"DataView"),ux=lm(Ip,"Promise"),hx=lm(Ip,"Set");var dx="[object Map]",fx="[object Object]",gx="[object Promise]",px="[object Set]",mx="[object WeakMap]",bx="[object DataView]",wx=Jp(lx),kx=Jp(Im),vx=Jp(ux),yx=Jp(hx),_x=Jp(x_),Cx=Vp;(lx&&Cx(new lx(new ArrayBuffer(1)))!=bx||Im&&Cx(new Im)!=dx||ux&&Cx(ux.resolve())!=gx||hx&&Cx(new hx)!=px||x_&&Cx(new x_)!=mx)&&(Cx=function(t){var e=Vp(t),n=e==fx?t.constructor:void 0,i=n?Jp(n):"";if(i)switch(i){case wx:return bx;case kx:return dx;case vx:return gx;case yx:return px;case _x:return mx}return e});const Ax=Cx;var xx=Object.prototype.hasOwnProperty;function Ex(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&xx.call(t,"index")&&(n.index=t.index,n.input=t.input),n}const Tx=Ip.Uint8Array;function Sx(t){var e=new t.constructor(t.byteLength);return new Tx(e).set(new Tx(t)),e}function Dx(t,e){var n=e?Sx(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Ix=/\w*$/;function Bx(t){var e=new t.constructor(t.source,Ix.exec(t));return e.lastIndex=t.lastIndex,e}var Mx=Bp?Bp.prototype:void 0,Px=Mx?Mx.valueOf:void 0;function Lx(t){return Px?Object(Px.call(t)):{}}function Ox(t,e){var n=e?Sx(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Nx="[object Boolean]",Rx="[object Date]",Fx="[object Map]",jx="[object Number]",$x="[object RegExp]",zx="[object Set]",Vx="[object String]",Hx="[object Symbol]",qx="[object ArrayBuffer]",Ux="[object DataView]",Gx="[object Float32Array]",Wx="[object Float64Array]",Kx="[object Int8Array]",Yx="[object Int16Array]",Xx="[object Int32Array]",Zx="[object Uint8Array]",Qx="[object Uint8ClampedArray]",Jx="[object Uint16Array]",tE="[object Uint32Array]";function eE(t,e,n){var i=t.constructor;switch(e){case qx:return Sx(t);case Nx:case Rx:return new i(+t);case Ux:return Dx(t,n);case Gx:case Wx:case Kx:case Yx:case Xx:case Zx:case Qx:case Jx:case tE:return Ox(t,n);case Fx:return new i;case jx:case Vx:return new i(t);case $x:return Bx(t);case zx:return new i;case Hx:return Lx(t)}}function nE(t){return"function"!=typeof t.constructor||aC(t)?{}:T_(DA(t))}var iE="[object Map]";function rE(t){return e_(t)&&Ax(t)==iE}var oE=YC&&YC.isMap;const aE=oE?UC(oE):rE;var sE="[object Set]";function cE(t){return e_(t)&&Ax(t)==sE}var lE=YC&&YC.isSet;const uE=lE?UC(lE):cE;var hE=1,dE=2,fE=4,gE="[object Arguments]",pE="[object Array]",mE="[object Boolean]",bE="[object Date]",wE="[object Error]",kE="[object Function]",vE="[object GeneratorFunction]",yE="[object Map]",_E="[object Number]",CE="[object Object]",AE="[object RegExp]",xE="[object Set]",EE="[object String]",TE="[object Symbol]",SE="[object WeakMap]",DE="[object ArrayBuffer]",IE="[object DataView]",BE="[object Float32Array]",ME="[object Float64Array]",PE="[object Int8Array]",LE="[object Int16Array]",OE="[object Int32Array]",NE="[object Uint8Array]",RE="[object Uint8ClampedArray]",FE="[object Uint16Array]",jE="[object Uint32Array]",$E={};function zE(t,e,n,i,r,o){var a,s=e&hE,c=e&dE,l=e&fE;if(n&&(a=r?n(t,i,r,o):n(t)),void 0!==a)return a;if(!Hp(t))return t;var u=o_(t);if(u){if(a=Ex(t),!s)return I_(t,a)}else{var h=Ax(t),d=h==kE||h==vE;if(kC(t))return ZA(t,s);if(h==CE||h==gE||d&&!r){if(a=c||d?{}:nE(t),!s)return c?ox(t,GA(a,t)):ix(t,UA(a,t))}else{if(!$E[h])return r?t:{};a=eE(t,h,s)}}o||(o=new qA);var f=o.get(t);if(f)return f;o.set(t,a),uE(t)?t.forEach((function(i){a.add(zE(i,e,n,i,t,o))})):aE(t)&&t.forEach((function(i,r){a.set(r,zE(i,e,n,r,t,o))}));var g=u?void 0:(l?c?cx:sx:c?cA:rA)(t);return F_(g||t,(function(i,r){g&&(i=t[r=i]),Y_(a,r,zE(i,e,n,r,t,o))})),a}$E[gE]=$E[pE]=$E[DE]=$E[IE]=$E[mE]=$E[bE]=$E[BE]=$E[ME]=$E[PE]=$E[LE]=$E[OE]=$E[yE]=$E[_E]=$E[CE]=$E[AE]=$E[xE]=$E[EE]=$E[TE]=$E[NE]=$E[RE]=$E[FE]=$E[jE]=!0,$E[wE]=$E[kE]=$E[SE]=!1;var VE=4;function HE(t){return zE(t,VE)}var qE=1,UE=4;function GE(t){return zE(t,qE|UE)}var WE="__lodash_hash_undefined__";function KE(t){return this.__data__.set(t,WE),this}function YE(t){return this.__data__.has(t)}function XE(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Fm;++e<n;)this.add(t[e])}function ZE(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function QE(t,e){return t.has(e)}XE.prototype.add=XE.prototype.push=KE,XE.prototype.has=YE;var JE=1,tT=2;function eT(t,e,n,i,r,o){var a=n&JE,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(t),u=o.get(e);if(l&&u)return l==e&&u==t;var h=-1,d=!0,f=n&tT?new XE:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var g=t[h],p=e[h];if(i)var m=a?i(p,g,h,e,t,o):i(g,p,h,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!ZE(e,(function(t,e){if(!QE(f,e)&&(g===t||r(g,t,n,i,o)))return f.push(e)}))){d=!1;break}}else if(g!==p&&!r(g,p,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function nT(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function iT(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var rT=1,oT=2,aT="[object Boolean]",sT="[object Date]",cT="[object Error]",lT="[object Map]",uT="[object Number]",hT="[object RegExp]",dT="[object Set]",fT="[object String]",gT="[object Symbol]",pT="[object ArrayBuffer]",mT="[object DataView]",bT=Bp?Bp.prototype:void 0,wT=bT?bT.valueOf:void 0;function kT(t,e,n,i,r,o,a){switch(n){case mT:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case pT:return!(t.byteLength!=e.byteLength||!o(new Tx(t),new Tx(e)));case aT:case sT:case uT:return _m(+t,+e);case cT:return t.name==e.name&&t.message==e.message;case hT:case fT:return t==e+"";case lT:var s=nT;case dT:var c=i&rT;if(s||(s=iT),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;i|=oT,a.set(t,e);var u=eT(s(t),s(e),i,r,o,a);return a.delete(t),u;case gT:if(wT)return wT.call(t)==wT.call(e)}return!1}var vT=1,yT=Object.prototype.hasOwnProperty;function _T(t,e,n,i,r,o){var a=n&vT,s=sx(t),c=s.length;if(c!=sx(e).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in e:yT.call(e,u)))return!1}var h=o.get(t),d=o.get(e);if(h&&d)return h==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var g=a;++l<c;){var p=t[u=s[l]],m=e[u];if(i)var b=a?i(m,p,u,e,t,o):i(p,m,u,t,e,o);if(!(void 0===b?p===m||r(p,m,n,i,o):b)){f=!1;break}g||(g="constructor"==u)}if(f&&!g){var w=t.constructor,k=e.constructor;w==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(f=!1)}return o.delete(t),o.delete(e),f}var CT=1,AT="[object Arguments]",xT="[object Array]",ET="[object Object]",TT=Object.prototype.hasOwnProperty;function ST(t,e,n,i,r,o){var a=o_(t),s=o_(e),c=a?xT:Ax(t),l=s?xT:Ax(e),u=(c=c==AT?ET:c)==ET,h=(l=l==AT?ET:l)==ET,d=c==l;if(d&&kC(t)){if(!kC(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new qA),a||ZC(t)?eT(t,e,n,i,r,o):kT(t,e,c,n,i,r,o);if(!(n&CT)){var f=u&&TT.call(t,"__wrapped__"),g=h&&TT.call(e,"__wrapped__");if(f||g){var p=f?t.value():t,m=g?e.value():e;return o||(o=new qA),r(p,m,n,i,o)}}return!!d&&(o||(o=new qA),_T(t,e,n,i,r,o))}function DT(t,e,n,i,r){return t===e||(null==t||null==e||!e_(t)&&!e_(e)?t!=t&&e!=e:ST(t,e,n,i,DT,r))}var IT=1,BT=2;function MT(t,e,n,i){var r=n.length,o=r,a=!i;if(null==t)return!o;for(t=Object(t);r--;){var s=n[r];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++r<o;){var c=(s=n[r])[0],l=t[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in t))return!1}else{var h=new qA;if(i)var d=i(l,u,c,t,e,h);if(!(void 0===d?DT(u,l,IT|BT,i,h):d))return!1}}return!0}function PT(t){return t==t&&!Hp(t)}function LT(t){for(var e=rA(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,PT(r)]}return e}function OT(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}function NT(t){var e=LT(t);return 1==e.length&&e[0][2]?OT(e[0][0],e[0][1]):function(n){return n===t||MT(n,t,e)}}function RT(t,e){return null!=t&&e in Object(t)}function FT(t,e,n){for(var i=-1,r=(e=wA(e,t)).length,o=!1;++i<r;){var a=vA(e[i]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&eC(r)&&G_(a,r)&&(o_(t)||gC(t))}function jT(t,e){return null!=t&&FT(t,e,RT)}var $T=1,zT=2;function VT(t,e){return hA(t)&&PT(e)?OT(vA(t),e):function(n){var i=_A(n,t);return void 0===i&&i===e?jT(n,t):DT(e,i,$T|zT)}}function HT(t){return function(e){return null==e?void 0:e[t]}}function qT(t){return function(e){return yA(e,t)}}function UT(t){return hA(t)?HT(vA(t)):qT(t)}function GT(t){return"function"==typeof t?t:null==t?A_:"object"==typeof t?o_(t)?VT(t[0],t[1]):NT(t):UT(t)}function WT(t){return function(e,n,i){for(var r=-1,o=Object(e),a=i(e),s=a.length;s--;){var c=a[t?s:++r];if(!1===n(o[c],c,o))break}return e}}const KT=WT();function YT(t,e){return t&&KT(t,e,rA)}function XT(t,e){return function(n,i){if(null==n)return n;if(!nC(n))return t(n,i);for(var r=n.length,o=e?r:-1,a=Object(n);(e?o--:++o<r)&&!1!==i(a[o],o,a););return n}}const ZT=XT(YT),QT=function(){return Ip.Date.now()};var JT=Object.prototype,tS=JT.hasOwnProperty;const eS=J_((function(t,e){t=Object(t);var n=-1,i=e.length,r=i>2?e[2]:void 0;for(r&&iC(e[0],e[1],r)&&(i=1);++n<i;)for(var o=e[n],a=cA(o),s=-1,c=a.length;++s<c;){var l=a[s],u=t[l];(void 0===u||_m(u,JT[l])&&!tS.call(t,l))&&(t[l]=o[l])}return t}));function nS(t,e,n){(void 0!==n&&!_m(t[e],n)||void 0===n&&!(e in t))&&W_(t,e,n)}function iS(t){return e_(t)&&nC(t)}function rS(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function oS(t){return X_(t,cA(t))}function aS(t,e,n,i,r,o,a){var s=rS(t,n),c=rS(e,n),l=a.get(c);if(l)nS(t,n,l);else{var u=o?o(s,c,n+"",t,e,a):void 0,h=void 0===u;if(h){var d=o_(c),f=!d&&kC(c),g=!d&&!f&&ZC(c);u=c,d||f||g?o_(s)?u=s:iS(s)?u=I_(s):f?(h=!1,u=ZA(c,!0)):g?(h=!1,u=Ox(c,!0)):u=[]:NA(c)||gC(c)?(u=s,gC(s)?u=oS(s):Hp(s)&&!Kp(s)||(u=nE(c))):h=!1}h&&(a.set(c,u),r(u,c,i,o,a),a.delete(c)),nS(t,n,u)}}function sS(t,e,n,i,r){t!==e&&KT(e,(function(o,a){if(r||(r=new qA),Hp(o))aS(t,e,a,n,sS,i,r);else{var s=i?i(rS(t,a),o,a+"",t,e,r):void 0;void 0===s&&(s=o),nS(t,a,s)}}),cA)}function cS(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function lS(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}function uS(t){return"function"==typeof t?t:A_}function hS(t,e){return(o_(t)?F_:ZT)(t,uS(e))}function dS(t,e){var n=[];return ZT(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function fS(t,e){return(o_(t)?QA:dS)(t,GT(e))}function gS(t){return function(e,n,i){var r=Object(e);if(!nC(e)){var o=GT(n);e=rA(e),n=function(t){return o(r[t],t,r)}}var a=t(e,n,i);return a>-1?r[o?e[a]:a]:void 0}}var pS=Math.max;function mS(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:C_(n);return r<0&&(r=pS(i+r,0)),j_(t,GT(e),r)}const bS=gS(mS);function wS(t,e){var n=-1,i=nC(t)?Array(t.length):[];return ZT(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function kS(t,e){return(o_(t)?r_:wS)(t,GT(e))}function vS(t,e){return null==t?t:KT(t,uS(e),cA)}function yS(t,e){return t>e}var _S=Object.prototype.hasOwnProperty;function CS(t,e){return null!=t&&_S.call(t,e)}function AS(t,e){return null!=t&&FT(t,e,CS)}function xS(t,e){return r_(e,(function(e){return t[e]}))}function ES(t){return null==t?[]:xS(t,rA(t))}var TS="[object Map]",SS="[object Set]",DS=Object.prototype.hasOwnProperty;function IS(t){if(null==t)return!0;if(nC(t)&&(o_(t)||"string"==typeof t||"function"==typeof t.splice||kC(t)||ZC(t)||gC(t)))return!t.length;var e=Ax(t);if(e==TS||e==SS)return!t.size;if(aC(t))return!iA(t).length;for(var n in t)if(DS.call(t,n))return!1;return!0}function BS(t){return void 0===t}function MS(t,e){return t<e}function PS(t,e){var n={};return e=GT(e),YT(t,(function(t,i,r){W_(n,i,e(t,i,r))})),n}function LS(t,e,n){for(var i=-1,r=t.length;++i<r;){var o=t[i],a=e(o);if(null!=a&&(void 0===s?a==a&&!i_(a):n(a,s)))var s=a,c=o}return c}function OS(t){return t&&t.length?LS(t,A_,yS):void 0}const NS=rC((function(t,e,n){sS(t,e,n)}));function RS(t){return t&&t.length?LS(t,A_,MS):void 0}function FS(t,e){return t&&t.length?LS(t,GT(e),MS):void 0}function jS(t,e,n,i){if(!Hp(t))return t;for(var r=-1,o=(e=wA(e,t)).length,a=o-1,s=t;null!=s&&++r<o;){var c=vA(e[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(r!=a){var u=s[c];void 0===(l=i?i(u,c,s):void 0)&&(l=Hp(u)?u:G_(e[r+1])?[]:{})}Y_(s,c,l),s=s[c]}return t}function $S(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var a=e[i],s=yA(t,a);n(s,a)&&jS(o,wA(a,t),s)}return o}function zS(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function VS(t,e){if(t!==e){var n=void 0!==t,i=null===t,r=t==t,o=i_(t),a=void 0!==e,s=null===e,c=e==e,l=i_(e);if(!s&&!l&&!o&&t>e||o&&a&&c&&!s&&!l||i&&a&&c||!n&&c||!r)return 1;if(!i&&!o&&!l&&t<e||l&&n&&r&&!i&&!o||s&&n&&r||!a&&r||!c)return-1}return 0}function HS(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,a=r.length,s=n.length;++i<a;){var c=VS(r[i],o[i]);if(c)return i>=s?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}function qS(t,e,n){e=e.length?r_(e,(function(t){return o_(t)?function(e){return yA(e,1===t.length?t[0]:t)}:t})):[A_];var i=-1;return e=r_(e,UC(GT)),zS(wS(t,(function(t,n,r){return{criteria:r_(e,(function(e){return e(t)})),index:++i,value:t}})),(function(t,e){return HS(t,e,n)}))}function US(t,e){return $S(t,e,(function(e,n){return jT(t,n)}))}const GS=SA((function(t,e){return null==t?{}:US(t,e)}));var WS=Math.ceil,KS=Math.max;function YS(t,e,n,i){for(var r=-1,o=KS(WS((e-t)/(n||1)),0),a=Array(o);o--;)a[i?o:++r]=t,t+=n;return a}function XS(t){return function(e,n,i){return i&&"number"!=typeof i&&iC(e,n,i)&&(n=i=void 0),e=__(e),void 0===n?(n=e,e=0):n=__(n),YS(e,n,i=void 0===i?e<n?1:-1:__(i),t)}}const ZS=XS();function QS(t,e,n,i,r){return r(t,(function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)})),n}function JS(t,e,n){var i=o_(t)?RA:QS,r=arguments.length<3;return i(t,GT(e),n,r,ZT)}const tD=J_((function(t,e){if(null==t)return[];var n=e.length;return n>1&&iC(t,e[0],e[1])?e=[]:n>2&&iC(e[0],e[1],e[2])&&(e=[e[0]]),qS(t,EA(e,1),[])}));var eD=1/0;const nD=hx&&1/iT(new hx([,-0]))[1]==eD?function(t){return new hx(t)}:D_;var iD=200;function rD(t,e,n){var i=-1,r=H_,o=t.length,a=!0,s=[],c=s;if(n)a=!1,r=cS;else if(o>=iD){var l=e?null:nD(t);if(l)return iT(l);a=!1,r=QE,c=new XE}else c=e?[]:s;t:for(;++i<o;){var u=t[i],h=e?e(u):u;if(u=n||0!==u?u:0,a&&h==h){for(var d=c.length;d--;)if(c[d]===h)continue t;e&&c.push(h),s.push(u)}else r(c,h,n)||(c!==s&&c.push(h),s.push(u))}return s}const oD=J_((function(t){return rD(EA(t,1,iS,!0))}));var aD=0;function sD(t){var e=++aD;return bA(t)+e}function cD(t,e,n){for(var i=-1,r=t.length,o=e.length,a={};++i<r;){var s=i<o?e[i]:void 0;n(a,t[i],s)}return a}function lD(t,e){return cD(t||[],e||[],Y_)}var uD="\0",hD="\0",dD="";class fD{constructor(t={}){this._isDirected=!AS(t,"directed")||t.directed,this._isMultigraph=!!AS(t,"multigraph")&&t.multigraph,this._isCompound=!!AS(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=O_(void 0),this._defaultEdgeLabelFn=O_(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[hD]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return Kp(t)||(t=O_(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return rA(this._nodes)}sources(){var t=this;return fS(this.nodes(),(function(e){return IS(t._in[e])}))}sinks(){var t=this;return fS(this.nodes(),(function(e){return IS(t._out[e])}))}setNodes(t,e){var n=arguments,i=this;return hS(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this}setNode(t,e){return AS(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=hD,this._children[t]={},this._children[hD][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return AS(this._nodes,t)}removeNode(t){var e=this;if(AS(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],hS(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),hS(rA(this._in[t]),n),delete this._in[t],delete this._preds[t],hS(rA(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(BS(e))e=hD;else{for(var n=e+="";!BS(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==hD)return e}}children(t){if(BS(t)&&(t=hD),this._isCompound){var e=this._children[t];if(e)return rA(e)}else{if(t===hD)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var e=this._preds[t];if(e)return rA(e)}successors(t){var e=this._sucs[t];if(e)return rA(e)}neighbors(t){var e=this.predecessors(t);if(e)return oD(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;hS(this._nodes,(function(n,i){t(i)&&e.setNode(i,n)})),hS(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function r(t){var o=n.parent(t);return void 0===o||e.hasNode(o)?(i[t]=o,o):o in i?i[o]:r(o)}return this._isCompound&&hS(e.nodes(),(function(t){e.setParent(t,r(t))})),e}setDefaultEdgeLabel(t){return Kp(t)||(t=O_(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return ES(this._edgeObjs)}setPath(t,e){var n=this,i=arguments;return JS(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this}setEdge(){var t,e,n,i,r=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(i=arguments[1],r=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),t=""+t,e=""+e,BS(n)||(n=""+n);var a=mD(this._isDirected,t,e,n);if(AS(this._edgeLabels,a))return r&&(this._edgeLabels[a]=i),this;if(!BS(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[a]=r?i:this._defaultEdgeLabelFn(t,e,n);var s=bD(this._isDirected,t,e,n);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[a]=s,gD(this._preds[e],t),gD(this._sucs[t],e),this._in[e][a]=s,this._out[t][a]=s,this._edgeCount++,this}edge(t,e,n){var i=1===arguments.length?wD(this._isDirected,arguments[0]):mD(this._isDirected,t,e,n);return this._edgeLabels[i]}hasEdge(t,e,n){var i=1===arguments.length?wD(this._isDirected,arguments[0]):mD(this._isDirected,t,e,n);return AS(this._edgeLabels,i)}removeEdge(t,e,n){var i=1===arguments.length?wD(this._isDirected,arguments[0]):mD(this._isDirected,t,e,n),r=this._edgeObjs[i];return r&&(t=r.v,e=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],pD(this._preds[e],t),pD(this._sucs[t],e),delete this._in[e][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,e){var n=this._in[t];if(n){var i=ES(n);return e?fS(i,(function(t){return t.v===e})):i}}outEdges(t,e){var n=this._out[t];if(n){var i=ES(n);return e?fS(i,(function(t){return t.w===e})):i}}nodeEdges(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}}function gD(t,e){t[e]?t[e]++:t[e]=1}function pD(t,e){--t[e]||delete t[e]}function mD(t,e,n,i){var r=""+e,o=""+n;if(!t&&r>o){var a=r;r=o,o=a}return r+dD+o+dD+(BS(i)?uD:i)}function bD(t,e,n,i){var r=""+e,o=""+n;if(!t&&r>o){var a=r;r=o,o=a}var s={v:r,w:o};return i&&(s.name=i),s}function wD(t,e){return mD(t,e.v,e.w,e.name)}fD.prototype._nodeCount=0,fD.prototype._edgeCount=0;class kD{constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,e=t._prev;if(e!==t)return vD(e),e}enqueue(t){var e=this._sentinel;t._prev&&t._next&&vD(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e}toString(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,yD)),n=n._prev;return"["+t.join(", ")+"]"}}function vD(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function yD(t,e){if("_next"!==t&&"_prev"!==t)return e}var _D=O_(1);function CD(t,e){if(t.nodeCount()<=1)return[];var n=ED(t,e||_D);return TA(kS(AD(n.graph,n.buckets,n.zeroIdx),(function(e){return t.outEdges(e.v,e.w)})))}function AD(t,e,n){for(var i,r=[],o=e[e.length-1],a=e[0];t.nodeCount();){for(;i=a.dequeue();)xD(t,e,n,i);for(;i=o.dequeue();)xD(t,e,n,i);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(i=e[s].dequeue()){r=r.concat(xD(t,e,n,i,!0));break}}return r}function xD(t,e,n,i,r){var o=r?[]:void 0;return hS(t.inEdges(i.v),(function(i){var a=t.edge(i),s=t.node(i.v);r&&o.push({v:i.v,w:i.w}),s.out-=a,TD(e,n,s)})),hS(t.outEdges(i.v),(function(i){var r=t.edge(i),o=i.w,a=t.node(o);a.in-=r,TD(e,n,a)})),t.removeNode(i.v),o}function ED(t,e){var n=new fD,i=0,r=0;hS(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),hS(t.edges(),(function(t){var o=n.edge(t.v,t.w)||0,a=e(t),s=o+a;n.setEdge(t.v,t.w,s),r=Math.max(r,n.node(t.v).out+=a),i=Math.max(i,n.node(t.w).in+=a)}));var o=ZS(r+i+3).map((function(){return new kD})),a=i+1;return hS(n.nodes(),(function(t){TD(o,a,n.node(t))})),{graph:n,buckets:o,zeroIdx:a}}function TD(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}function SD(t){function e(t){return function(e){return t.edge(e).weight}}hS("greedy"===t.graph().acyclicer?CD(t,e(t)):DD(t),(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,sD("rev"))}))}function DD(t){var e=[],n={},i={};function r(o){AS(i,o)||(i[o]=!0,n[o]=!0,hS(t.outEdges(o),(function(t){AS(n,t.w)?e.push(t):r(t.w)})),delete n[o])}return hS(t.nodes(),r),e}function ID(t){hS(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var i=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,i)}}))}function BD(t,e,n,i){var r;do{r=sD(i)}while(t.hasNode(r));return n.dummy=e,t.setNode(r,n),r}function MD(t){var e=(new fD).setGraph(t.graph());return hS(t.nodes(),(function(n){e.setNode(n,t.node(n))})),hS(t.edges(),(function(n){var i=e.edge(n.v,n.w)||{weight:0,minlen:1},r=t.edge(n);e.setEdge(n.v,n.w,{weight:i.weight+r.weight,minlen:Math.max(i.minlen,r.minlen)})})),e}function PD(t){var e=new fD({multigraph:t.isMultigraph()}).setGraph(t.graph());return hS(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),hS(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e}function LD(t,e){var n,i,r=t.x,o=t.y,a=e.x-r,s=e.y-o,c=t.width/2,l=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*c>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,i=l):(a<0&&(c=-c),n=c,i=c*s/a),{x:r+n,y:o+i}}function OD(t){var e=kS(ZS(jD(t)+1),(function(){return[]}));return hS(t.nodes(),(function(n){var i=t.node(n),r=i.rank;BS(r)||(e[r][i.order]=n)})),e}function ND(t){var e=RS(kS(t.nodes(),(function(e){return t.node(e).rank})));hS(t.nodes(),(function(n){var i=t.node(n);AS(i,"rank")&&(i.rank-=e)}))}function RD(t){var e=RS(kS(t.nodes(),(function(e){return t.node(e).rank}))),n=[];hS(t.nodes(),(function(i){var r=t.node(i).rank-e;n[r]||(n[r]=[]),n[r].push(i)}));var i=0,r=t.graph().nodeRankFactor;hS(n,(function(e,n){BS(e)&&n%r!=0?--i:i&&hS(e,(function(e){t.node(e).rank+=i}))}))}function FD(t,e,n,i){var r={width:0,height:0};return arguments.length>=4&&(r.rank=n,r.order=i),BD(t,"border",r,e)}function jD(t){return OS(kS(t.nodes(),(function(e){var n=t.node(e).rank;if(!BS(n))return n})))}function $D(t,e){var n={lhs:[],rhs:[]};return hS(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n}function zD(t,e){var n=QT();try{return e()}finally{console.log(t+" time: "+(QT()-n)+"ms")}}function VD(t,e){return e()}function HD(t){function e(n){var i=t.children(n),r=t.node(n);if(i.length&&hS(i,e),AS(r,"minRank")){r.borderLeft=[],r.borderRight=[];for(var o=r.minRank,a=r.maxRank+1;o<a;++o)qD(t,"borderLeft","_bl",n,r,o),qD(t,"borderRight","_br",n,r,o)}}hS(t.children(),e)}function qD(t,e,n,i,r,o){var a={width:0,height:0,rank:o,borderType:e},s=r[e][o-1],c=BD(t,"border",a,n);r[e][o]=c,t.setParent(c,i),s&&t.setEdge(s,c,{weight:1})}function UD(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||WD(t)}function GD(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||YD(t),"lr"!==e&&"rl"!==e||(ZD(t),WD(t))}function WD(t){hS(t.nodes(),(function(e){KD(t.node(e))})),hS(t.edges(),(function(e){KD(t.edge(e))}))}function KD(t){var e=t.width;t.width=t.height,t.height=e}function YD(t){hS(t.nodes(),(function(e){XD(t.node(e))})),hS(t.edges(),(function(e){var n=t.edge(e);hS(n.points,XD),AS(n,"y")&&XD(n)}))}function XD(t){t.y=-t.y}function ZD(t){hS(t.nodes(),(function(e){QD(t.node(e))})),hS(t.edges(),(function(e){var n=t.edge(e);hS(n.points,QD),AS(n,"x")&&QD(n)}))}function QD(t){var e=t.x;t.x=t.y,t.y=e}function JD(t){t.graph().dummyChains=[],hS(t.edges(),(function(e){tI(t,e)}))}function tI(t,e){var n=e.v,i=t.node(n).rank,r=e.w,o=t.node(r).rank,a=e.name,s=t.edge(e),c=s.labelRank;if(o!==i+1){var l,u,h;for(t.removeEdge(e),h=0,++i;i<o;++h,++i)s.points=[],l=BD(t,"edge",u={width:0,height:0,edgeLabel:s,edgeObj:e,rank:i},"_d"),i===c&&(u.width=s.width,u.height=s.height,u.dummy="edge-label",u.labelpos=s.labelpos),t.setEdge(n,l,{weight:s.weight},a),0===h&&t.graph().dummyChains.push(l),n=l;t.setEdge(n,r,{weight:s.weight},a)}}function eI(t){hS(t.graph().dummyChains,(function(e){var n,i=t.node(e),r=i.edgeLabel;for(t.setEdge(i.edgeObj,r);i.dummy;)n=t.successors(e)[0],t.removeNode(e),r.points.push({x:i.x,y:i.y}),"edge-label"===i.dummy&&(r.x=i.x,r.y=i.y,r.width=i.width,r.height=i.height),e=n,i=t.node(e)}))}function nI(t){var e={};function n(i){var r=t.node(i);if(AS(e,i))return r.rank;e[i]=!0;var o=RS(kS(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),r.rank=o}hS(t.sources(),n)}function iI(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}function rI(t){var e,n,i=new fD({directed:!1}),r=t.nodes()[0],o=t.nodeCount();for(i.setNode(r,{});oI(i,t)<o;)e=aI(i,t),n=i.hasNode(e.v)?iI(t,e):-iI(t,e),sI(i,t,n);return i}function oI(t,e){function n(i){hS(e.nodeEdges(i),(function(r){var o=r.v,a=i===o?r.w:o;t.hasNode(a)||iI(e,r)||(t.setNode(a,{}),t.setEdge(i,a,{}),n(a))}))}return hS(t.nodes(),n),t.nodeCount()}function aI(t,e){return FS(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return iI(e,n)}))}function sI(t,e,n){hS(t.nodes(),(function(t){e.node(t).rank+=n}))}function cI(){}function lI(t,e,n){o_(e)||(e=[e]);var i=(t.isDirected()?t.successors:t.neighbors).bind(t),r=[],o={};return hS(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);uI(t,e,"post"===n,o,i,r)})),r}function uI(t,e,n,i,r,o){AS(i,e)||(i[e]=!0,n||o.push(e),hS(r(e),(function(e){uI(t,e,n,i,r,o)})),n&&o.push(e))}function hI(t,e){return lI(t,e,"post")}function dI(t,e){return lI(t,e,"pre")}function fI(t){nI(t=MD(t));var e,n=rI(t);for(bI(n),gI(n,t);e=kI(n);)yI(n,t,e,vI(n,t,e))}function gI(t,e){var n=hI(t,t.nodes());hS(n=n.slice(0,n.length-1),(function(n){pI(t,e,n)}))}function pI(t,e,n){var i=t.node(n).parent;t.edge(n,i).cutvalue=mI(t,e,n)}function mI(t,e,n){var i=t.node(n).parent,r=!0,o=e.edge(n,i),a=0;return o||(r=!1,o=e.edge(i,n)),a=o.weight,hS(e.nodeEdges(n),(function(o){var s=o.v===n,c=s?o.w:o.v;if(c!==i){var l=s===r,u=e.edge(o).weight;if(a+=l?u:-u,CI(t,n,c)){var h=t.edge(n,c).cutvalue;a+=l?-h:h}}})),a}function bI(t,e){arguments.length<2&&(e=t.nodes()[0]),wI(t,{},1,e)}function wI(t,e,n,i,r){var o=n,a=t.node(i);return e[i]=!0,hS(t.neighbors(i),(function(r){AS(e,r)||(n=wI(t,e,n,r,i))})),a.low=o,a.lim=n++,r?a.parent=r:delete a.parent,n}function kI(t){return bS(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function vI(t,e,n){var i=n.v,r=n.w;e.hasEdge(i,r)||(i=n.w,r=n.v);var o=t.node(i),a=t.node(r),s=o,c=!1;return o.lim>a.lim&&(s=a,c=!0),FS(fS(e.edges(),(function(e){return c===AI(t,t.node(e.v),s)&&c!==AI(t,t.node(e.w),s)})),(function(t){return iI(e,t)}))}function yI(t,e,n,i){var r=n.v,o=n.w;t.removeEdge(r,o),t.setEdge(i.v,i.w,{}),bI(t),gI(t,e),_I(t,e)}function _I(t,e){var n=bS(t.nodes(),(function(t){return!e.node(t).parent})),i=dI(t,n);hS(i=i.slice(1),(function(n){var i=t.node(n).parent,r=e.edge(n,i),o=!1;r||(r=e.edge(i,n),o=!0),e.node(n).rank=e.node(i).rank+(o?r.minlen:-r.minlen)}))}function CI(t,e,n){return t.hasEdge(e,n)}function AI(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}function xI(t){switch(t.graph().ranker){case"network-simplex":default:SI(t);break;case"tight-tree":TI(t);break;case"longest-path":EI(t)}}cI.prototype=new Error,fI.initLowLimValues=bI,fI.initCutValues=gI,fI.calcCutValue=mI,fI.leaveEdge=kI,fI.enterEdge=vI,fI.exchangeEdges=yI;var EI=nI;function TI(t){nI(t),rI(t)}function SI(t){fI(t)}function DI(t){var e=BD(t,"root",{},"_root"),n=BI(t),i=OS(ES(n))-1,r=2*i+1;t.graph().nestingRoot=e,hS(t.edges(),(function(e){t.edge(e).minlen*=r}));var o=MI(t)+1;hS(t.children(),(function(a){II(t,e,r,o,i,n,a)})),t.graph().nodeRankFactor=r}function II(t,e,n,i,r,o,a){var s=t.children(a);if(s.length){var c=FD(t,"_bt"),l=FD(t,"_bb"),u=t.node(a);t.setParent(c,a),u.borderTop=c,t.setParent(l,a),u.borderBottom=l,hS(s,(function(s){II(t,e,n,i,r,o,s);var u=t.node(s),h=u.borderTop?u.borderTop:s,d=u.borderBottom?u.borderBottom:s,f=u.borderTop?i:2*i,g=h!==d?1:r-o[a]+1;t.setEdge(c,h,{weight:f,minlen:g,nestingEdge:!0}),t.setEdge(d,l,{weight:f,minlen:g,nestingEdge:!0})})),t.parent(a)||t.setEdge(e,c,{weight:0,minlen:r+o[a]})}else a!==e&&t.setEdge(e,a,{weight:0,minlen:n})}function BI(t){var e={};function n(i,r){var o=t.children(i);o&&o.length&&hS(o,(function(t){n(t,r+1)})),e[i]=r}return hS(t.children(),(function(t){n(t,1)})),e}function MI(t){return JS(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}function PI(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,hS(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}function LI(t,e,n){var i,r={};hS(n,(function(n){for(var o,a,s=t.parent(n);s;){if((o=t.parent(s))?(a=r[o],r[o]=s):(a=i,i=s),a&&a!==s)return void e.setEdge(a,s);s=o}}))}function OI(t,e,n){var i=NI(t),r=new fD({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return hS(t.nodes(),(function(o){var a=t.node(o),s=t.parent(o);(a.rank===e||a.minRank<=e&&e<=a.maxRank)&&(r.setNode(o),r.setParent(o,s||i),hS(t[n](o),(function(e){var n=e.v===o?e.w:e.v,i=r.edge(n,o),a=BS(i)?0:i.weight;r.setEdge(n,o,{weight:t.edge(e).weight+a})})),AS(a,"minRank")&&r.setNode(o,{borderLeft:a.borderLeft[e],borderRight:a.borderRight[e]}))})),r}function NI(t){for(var e;t.hasNode(e=sD("_root")););return e}function RI(t,e){for(var n=0,i=1;i<e.length;++i)n+=FI(t,e[i-1],e[i]);return n}function FI(t,e,n){for(var i=lD(n,kS(n,(function(t,e){return e}))),r=TA(kS(e,(function(e){return tD(kS(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),"pos")}))),o=1;o<n.length;)o<<=1;var a=2*o-1;o-=1;var s=kS(new Array(a),(function(){return 0})),c=0;return hS(r.forEach((function(t){var e=t.pos+o;s[e]+=t.weight;for(var n=0;e>0;)e%2&&(n+=s[e+1]),s[e=e-1>>1]+=t.weight;c+=t.weight*n}))),c}function jI(t){var e={},n=fS(t.nodes(),(function(e){return!t.children(e).length})),i=OS(kS(n,(function(e){return t.node(e).rank}))),r=kS(ZS(i+1),(function(){return[]}));function o(n){if(!AS(e,n)){e[n]=!0;var i=t.node(n);r[i.rank].push(n),hS(t.successors(n),o)}}return hS(tD(n,(function(e){return t.node(e).rank})),o),r}function $I(t,e){return kS(e,(function(e){var n=t.inEdges(e);if(n.length){var i=JS(n,(function(e,n){var i=t.edge(n),r=t.node(n.v);return{sum:e.sum+i.weight*r.order,weight:e.weight+i.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}function zI(t,e){var n={};return hS(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};BS(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),hS(e.edges(),(function(t){var e=n[t.v],i=n[t.w];BS(e)||BS(i)||(i.indegree++,e.out.push(n[t.w]))})),VI(fS(n,(function(t){return!t.indegree})))}function VI(t){var e=[];function n(t){return function(e){e.merged||(BS(e.barycenter)||BS(t.barycenter)||e.barycenter>=t.barycenter)&&HI(t,e)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var r=t.pop();e.push(r),hS(r.in.reverse(),n(r)),hS(r.out,i(r))}return kS(fS(e,(function(t){return!t.merged})),(function(t){return GS(t,["vs","i","barycenter","weight"])}))}function HI(t,e){var n=0,i=0;t.weight&&(n+=t.barycenter*t.weight,i+=t.weight),e.weight&&(n+=e.barycenter*e.weight,i+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/i,t.weight=i,t.i=Math.min(e.i,t.i),e.merged=!0}function qI(t,e){var n=$D(t,(function(t){return AS(t,"barycenter")})),i=n.lhs,r=tD(n.rhs,(function(t){return-t.i})),o=[],a=0,s=0,c=0;i.sort(GI(!!e)),c=UI(o,r,c),hS(i,(function(t){c+=t.vs.length,o.push(t.vs),a+=t.barycenter*t.weight,s+=t.weight,c=UI(o,r,c)}));var l={vs:TA(o)};return s&&(l.barycenter=a/s,l.weight=s),l}function UI(t,e,n){for(var i;e.length&&(i=lS(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}function GI(t){return function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:t?n.i-e.i:e.i-n.i}}function WI(t,e,n,i){var r=t.children(e),o=t.node(e),a=o?o.borderLeft:void 0,s=o?o.borderRight:void 0,c={};a&&(r=fS(r,(function(t){return t!==a&&t!==s})));var l=$I(t,r);hS(l,(function(e){if(t.children(e.v).length){var r=WI(t,e.v,n,i);c[e.v]=r,AS(r,"barycenter")&&YI(e,r)}}));var u=zI(l,n);KI(u,c);var h=qI(u,i);if(a&&(h.vs=TA([a,h.vs,s]),t.predecessors(a).length)){var d=t.node(t.predecessors(a)[0]),f=t.node(t.predecessors(s)[0]);AS(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+d.order+f.order)/(h.weight+2),h.weight+=2}return h}function KI(t,e){hS(t,(function(t){t.vs=TA(t.vs.map((function(t){return e[t]?e[t].vs:t})))}))}function YI(t,e){BS(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}function XI(t){var e=jD(t),n=ZI(t,ZS(1,e+1),"inEdges"),i=ZI(t,ZS(e-1,-1,-1),"outEdges"),r=jI(t);JI(t,r);for(var o,a=Number.POSITIVE_INFINITY,s=0,c=0;c<4;++s,++c){QI(s%2?n:i,s%4>=2);var l=RI(t,r=OD(t));l<a&&(c=0,o=GE(r),a=l)}JI(t,o)}function ZI(t,e,n){return kS(e,(function(e){return OI(t,e,n)}))}function QI(t,e){var n=new fD;hS(t,(function(t){var i=t.graph().root,r=WI(t,i,n,e);hS(r.vs,(function(e,n){t.node(e).order=n})),LI(t,n,r.vs)}))}function JI(t,e){hS(e,(function(e){hS(e,(function(e,n){t.node(e).order=n}))}))}function tB(t){var e=nB(t);hS(t.graph().dummyChains,(function(n){for(var i=t.node(n),r=i.edgeObj,o=eB(t,e,r.v,r.w),a=o.path,s=o.lca,c=0,l=a[c],u=!0;n!==r.w;){if(i=t.node(n),u){for(;(l=a[c])!==s&&t.node(l).maxRank<i.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<a.length-1&&t.node(l=a[c+1]).minRank<=i.rank;)c++;l=a[c]}t.setParent(n,l),n=t.successors(n)[0]}}))}function eB(t,e,n,i){var r,o,a=[],s=[],c=Math.min(e[n].low,e[i].low),l=Math.max(e[n].lim,e[i].lim);r=n;do{r=t.parent(r),a.push(r)}while(r&&(e[r].low>c||l>e[r].lim));for(o=r,r=i;(r=t.parent(r))!==o;)s.push(r);return{path:a.concat(s.reverse()),lca:o}}function nB(t){var e={},n=0;function i(r){var o=n;hS(t.children(r),i),e[r]={low:o,lim:n++}}return hS(t.children(),i),e}function iB(t,e){var n={};function i(e,i){var r=0,o=0,a=e.length,s=lS(i);return hS(i,(function(e,c){var l=oB(t,e),u=l?t.node(l).order:a;(l||e===s)&&(hS(i.slice(o,c+1),(function(e){hS(t.predecessors(e),(function(i){var o=t.node(i),a=o.order;!(a<r||u<a)||o.dummy&&t.node(e).dummy||aB(n,i,e)}))})),o=c+1,r=u)})),i}return JS(e,i),n}function rB(t,e){var n={};function i(e,i,r,o,a){var s;hS(ZS(i,r),(function(i){s=e[i],t.node(s).dummy&&hS(t.predecessors(s),(function(e){var i=t.node(e);i.dummy&&(i.order<o||i.order>a)&&aB(n,e,s)}))}))}function r(e,n){var r,o=-1,a=0;return hS(n,(function(s,c){if("border"===t.node(s).dummy){var l=t.predecessors(s);l.length&&(r=t.node(l[0]).order,i(n,a,c,o,r),a=c,o=r)}i(n,a,n.length,r,e.length)})),n}return JS(e,r),n}function oB(t,e){if(t.node(e).dummy)return bS(t.predecessors(e),(function(e){return t.node(e).dummy}))}function aB(t,e,n){if(e>n){var i=e;e=n,n=i}var r=t[e];r||(t[e]=r={}),r[n]=!0}function sB(t,e,n){if(e>n){var i=e;e=n,n=i}return AS(t[e],n)}function cB(t,e,n,i){var r={},o={},a={};return hS(e,(function(t){hS(t,(function(t,e){r[t]=t,o[t]=t,a[t]=e}))})),hS(e,(function(t){var e=-1;hS(t,(function(t){var s=i(t);if(s.length)for(var c=((s=tD(s,(function(t){return a[t]}))).length-1)/2,l=Math.floor(c),u=Math.ceil(c);l<=u;++l){var h=s[l];o[t]===t&&e<a[h]&&!sB(n,t,h)&&(o[h]=t,o[t]=r[t]=r[h],e=a[h])}}))})),{root:r,align:o}}function lB(t,e,n,i,r){var o={},a=uB(t,e,n,r),s=r?"borderLeft":"borderRight";function c(t,e){for(var n=a.nodes(),i=n.pop(),r={};i;)r[i]?t(i):(r[i]=!0,n.push(i),n=n.concat(e(i))),i=n.pop()}function l(t){o[t]=a.inEdges(t).reduce((function(t,e){return Math.max(t,o[e.v]+a.edge(e))}),0)}function u(e){var n=a.outEdges(e).reduce((function(t,e){return Math.min(t,o[e.w]-a.edge(e))}),Number.POSITIVE_INFINITY),i=t.node(e);n!==Number.POSITIVE_INFINITY&&i.borderType!==s&&(o[e]=Math.max(o[e],n))}return c(l,a.predecessors.bind(a)),c(u,a.successors.bind(a)),hS(i,(function(t){o[t]=o[n[t]]})),o}function uB(t,e,n,i){var r=new fD,o=t.graph(),a=pB(o.nodesep,o.edgesep,i);return hS(e,(function(e){var i;hS(e,(function(e){var o=n[e];if(r.setNode(o),i){var s=n[i],c=r.edge(s,o);r.setEdge(s,o,Math.max(a(t,e,i),c||0))}i=e}))})),r}function hB(t,e){return FS(ES(e),(function(e){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return vS(e,(function(e,r){var o=mB(t,r)/2;n=Math.max(e+o,n),i=Math.min(e-o,i)})),n-i}))}function dB(t,e){var n=ES(e),i=RS(n),r=OS(n);hS(["u","d"],(function(n){hS(["l","r"],(function(o){var a,s=n+o,c=t[s];if(c!==e){var l=ES(c);(a="l"===o?i-RS(l):r-OS(l))&&(t[s]=PS(c,(function(t){return t+a})))}}))}))}function fB(t,e){return PS(t.ul,(function(n,i){if(e)return t[e.toLowerCase()][i];var r=tD(kS(t,i));return(r[1]+r[2])/2}))}function gB(t){var e,n=OD(t),i=NS(iB(t,n),rB(t,n)),r={};hS(["u","d"],(function(o){e="u"===o?n:ES(n).reverse(),hS(["l","r"],(function(n){"r"===n&&(e=kS(e,(function(t){return ES(t).reverse()})));var a=("u"===o?t.predecessors:t.successors).bind(t),s=cB(t,e,i,a),c=lB(t,e,s.root,s.align,"r"===n);"r"===n&&(c=PS(c,(function(t){return-t}))),r[o+n]=c}))}));var o=hB(t,r);return dB(r,o),fB(r,t.graph().align)}function pB(t,e,n){return function(i,r,o){var a,s=i.node(r),c=i.node(o),l=0;if(l+=s.width/2,AS(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":a=-s.width/2;break;case"r":a=s.width/2}if(a&&(l+=n?a:-a),a=0,l+=(s.dummy?e:t)/2,l+=(c.dummy?e:t)/2,l+=c.width/2,AS(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":a=c.width/2;break;case"r":a=-c.width/2}return a&&(l+=n?a:-a),a=0,l}}function mB(t,e){return t.node(e).width}function bB(t){wB(t=PD(t)),hS(gB(t),(function(e,n){t.node(n).x=e}))}function wB(t){var e=OD(t),n=t.graph().ranksep,i=0;hS(e,(function(e){var r=OS(kS(e,(function(e){return t.node(e).height})));hS(e,(function(e){t.node(e).y=i+r/2})),i+=r+n}))}function kB(t,e){var n=e&&e.debugTiming?zD:VD;n("layout",(function(){var e=n(" buildLayoutGraph",(function(){return IB(t)}));n(" runLayout",(function(){vB(e,n)})),n(" updateInputGraph",(function(){yB(t,e)}))}))}function vB(t,e){e(" makeSpaceForEdgeLabels",(function(){BB(t)})),e(" removeSelfEdges",(function(){$B(t)})),e(" acyclic",(function(){SD(t)})),e(" nestingGraph.run",(function(){DI(t)})),e(" rank",(function(){xI(PD(t))})),e(" injectEdgeLabelProxies",(function(){MB(t)})),e(" removeEmptyRanks",(function(){RD(t)})),e(" nestingGraph.cleanup",(function(){PI(t)})),e(" normalizeRanks",(function(){ND(t)})),e(" assignRankMinMax",(function(){PB(t)})),e(" removeEdgeLabelProxies",(function(){LB(t)})),e(" normalize.run",(function(){JD(t)})),e(" parentDummyChains",(function(){tB(t)})),e(" addBorderSegments",(function(){HD(t)})),e(" order",(function(){XI(t)})),e(" insertSelfEdges",(function(){zB(t)})),e(" adjustCoordinateSystem",(function(){UD(t)})),e(" position",(function(){bB(t)})),e(" positionSelfEdges",(function(){VB(t)})),e(" removeBorderNodes",(function(){jB(t)})),e(" normalize.undo",(function(){eI(t)})),e(" fixupEdgeLabelCoords",(function(){RB(t)})),e(" undoCoordinateSystem",(function(){GD(t)})),e(" translateGraph",(function(){OB(t)})),e(" assignNodeIntersects",(function(){NB(t)})),e(" reversePoints",(function(){FB(t)})),e(" acyclic.undo",(function(){ID(t)}))}function yB(t,e){hS(t.nodes(),(function(n){var i=t.node(n),r=e.node(n);i&&(i.x=r.x,i.y=r.y,e.children(n).length&&(i.width=r.width,i.height=r.height))})),hS(t.edges(),(function(n){var i=t.edge(n),r=e.edge(n);i.points=r.points,AS(r,"x")&&(i.x=r.x,i.y=r.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}var _B=["nodesep","edgesep","ranksep","marginx","marginy"],CB={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},AB=["acyclicer","ranker","rankdir","align"],xB=["width","height"],EB={width:0,height:0},TB=["minlen","weight","width","height","labeloffset"],SB={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},DB=["labelpos"];function IB(t){var e=new fD({multigraph:!0,compound:!0}),n=qB(t.graph());return e.setGraph(NS({},CB,HB(n,_B),GS(n,AB))),hS(t.nodes(),(function(n){var i=qB(t.node(n));e.setNode(n,eS(HB(i,xB),EB)),e.setParent(n,t.parent(n))})),hS(t.edges(),(function(n){var i=qB(t.edge(n));e.setEdge(n,NS({},SB,HB(i,TB),GS(i,DB)))})),e}function BB(t){var e=t.graph();e.ranksep/=2,hS(t.edges(),(function(n){var i=t.edge(n);i.minlen*=2,"c"!==i.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?i.width+=i.labeloffset:i.height+=i.labeloffset)}))}function MB(t){hS(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var i=t.node(e.v),r={rank:(t.node(e.w).rank-i.rank)/2+i.rank,e};BD(t,"edge-proxy",r,"_ep")}}))}function PB(t){var e=0;hS(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=OS(e,i.maxRank))})),t.graph().maxRank=e}function LB(t){hS(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}function OB(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,r=0,o=t.graph(),a=o.marginx||0,s=o.marginy||0;function c(t){var o=t.x,a=t.y,s=t.width,c=t.height;e=Math.min(e,o-s/2),n=Math.max(n,o+s/2),i=Math.min(i,a-c/2),r=Math.max(r,a+c/2)}hS(t.nodes(),(function(e){c(t.node(e))})),hS(t.edges(),(function(e){var n=t.edge(e);AS(n,"x")&&c(n)})),e-=a,i-=s,hS(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),hS(t.edges(),(function(n){var r=t.edge(n);hS(r.points,(function(t){t.x-=e,t.y-=i})),AS(r,"x")&&(r.x-=e),AS(r,"y")&&(r.y-=i)})),o.width=n-e+a,o.height=r-i+s}function NB(t){hS(t.edges(),(function(e){var n,i,r=t.edge(e),o=t.node(e.v),a=t.node(e.w);r.points?(n=r.points[0],i=r.points[r.points.length-1]):(r.points=[],n=a,i=o),r.points.unshift(LD(o,n)),r.points.push(LD(a,i))}))}function RB(t){hS(t.edges(),(function(e){var n=t.edge(e);if(AS(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}function FB(t){hS(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}function jB(t){hS(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),r=t.node(n.borderBottom),o=t.node(lS(n.borderLeft)),a=t.node(lS(n.borderRight));n.width=Math.abs(a.x-o.x),n.height=Math.abs(r.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),hS(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}function $B(t){hS(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}function zB(t){hS(OD(t),(function(e){var n=0;hS(e,(function(e,i){var r=t.node(e);r.order=i+n,hS(r.selfEdges,(function(e){BD(t,"selfedge",{width:e.label.width,height:e.label.height,rank:r.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete r.selfEdges}))}))}function VB(t){hS(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var i=t.node(n.e.v),r=i.x+i.width/2,o=i.y,a=n.x-r,s=i.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:r+2*a/3,y:o-s},{x:r+5*a/6,y:o-s},{x:r+a,y:o},{x:r+5*a/6,y:o+s},{x:r+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}function HB(t,e){return PS(GS(t,e),Number)}function qB(t){var e={};return hS(t,(function(t,n){e[n.toLowerCase()]=t})),e}let UB=0;const GB=function(t,e,n,i){h.debug("Rendering class ",e,n);const r=e.id,o={id:r,label:e.id,width:0,height:0},a=t.append("g").attr("id",i.db.lookUpDomId(r)).attr("class","classGroup");let s;s=e.link?a.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",n.textHeight+n.padding).attr("x",0):a.append("text").attr("y",n.textHeight+n.padding).attr("x",0);let c=!0;e.annotations.forEach((function(t){const e=s.append("tspan").text("«"+t+"»");c||e.attr("dy",n.textHeight),c=!1}));let l=e.id;void 0!==e.type&&""!==e.type&&(l+="<"+e.type+">");const u=s.append("tspan").text(l).attr("class","title");c||u.attr("dy",n.textHeight);const d=s.node().getBBox().height,f=a.append("line").attr("x1",0).attr("y1",n.padding+d+n.dividerMargin/2).attr("y2",n.padding+d+n.dividerMargin/2),g=a.append("text").attr("x",n.padding).attr("y",d+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.members.forEach((function(t){ZB(g,t,c,n),c=!1}));const p=g.node().getBBox(),m=a.append("line").attr("x1",0).attr("y1",n.padding+d+n.dividerMargin+p.height).attr("y2",n.padding+d+n.dividerMargin+p.height),b=a.append("text").attr("x",n.padding).attr("y",d+2*n.dividerMargin+p.height+n.textHeight).attr("fill","white").attr("class","classText");c=!0,e.methods.forEach((function(t){ZB(b,t,c,n),c=!1}));const w=a.node().getBBox();var k=" ";e.cssClasses.length>0&&(k+=e.cssClasses.join(" "));const v=a.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",w.width+2*n.padding).attr("height",w.height+n.padding+.5*n.dividerMargin).attr("class",k).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(v-t.getBBox().width)/2)})),e.tooltip&&s.insert("title").text(e.tooltip),f.attr("x2",v),m.attr("x2",v),o.width=v,o.height=w.height+n.padding+.5*n.dividerMargin,o},WB=function(t){const e=/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/,n=/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/;let i=t.match(e),r=t.match(n);return i&&!r?KB(i):r?YB(r):XB(t)},KB=function(t){let e="",n="";try{let i=t[1]?t[1].trim():"",r=t[2]?t[2].trim():"",o=t[3]?Qh(t[3].trim()):"",a=t[4]?t[4].trim():"",s=t[5]?t[5].trim():"";n=i+r+o+" "+a,e=QB(s)}catch(e){n=t}return{displayText:n,cssStyle:e}},YB=function(t){let e="",n="";try{let i=t[1]?t[1].trim():"",r=t[2]?t[2].trim():"",o=t[3]?Qh(t[3].trim()):"",a=t[4]?t[4].trim():"";n=i+r+"("+o+")"+(t[5]?" : "+Qh(t[5]).trim():""),e=QB(a)}catch(e){n=t}return{displayText:n,cssStyle:e}},XB=function(t){let e="",n="",i="",r=t.indexOf("("),o=t.indexOf(")");if(r>1&&o>r&&o<=t.length){let a="",s="",c=t.substring(0,1);c.match(/\w/)?s=t.substring(0,r).trim():(c.match(/[#+~-]/)&&(a=c),s=t.substring(1,r).trim());const l=t.substring(r+1,o);t.substring(o+1,1),n=QB(t.substring(o+1,o+2)),e=a+s+"("+Qh(l.trim())+")",o<t.length&&(i=t.substring(o+2).trim(),""!==i&&(i=" : "+Qh(i),e+=i))}else e=Qh(t);return{displayText:e,cssStyle:n}},ZB=function(t,e,n,i){let r=WB(e);const o=t.append("tspan").attr("x",i.padding).text(r.displayText);""!==r.cssStyle&&o.attr("style",r.cssStyle),n||o.attr("dy",i.textHeight)},QB=function(t){switch(t){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},JB={drawClass:GB,drawEdge:function(t,e,n,i,r){const o=function(t){switch(t){case r.db.relationType.AGGREGATION:return"aggregation";case r.db.relationType.EXTENSION:return"extension";case r.db.relationType.COMPOSITION:return"composition";case r.db.relationType.DEPENDENCY:return"dependency";case r.db.relationType.LOLLIPOP:return"lollipop"}};e.points=e.points.filter((t=>!Number.isNaN(t.y)));const a=e.points,s=$l().x((function(t){return t.x})).y((function(t){return t.y})).curve(Xl),c=t.append("path").attr("d",s(a)).attr("id","edge"+UB).attr("class","relation");let l,u,d="";i.arrowMarkerAbsolute&&(d=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,d=d.replace(/\(/g,"\\("),d=d.replace(/\)/g,"\\)")),1==n.relation.lineType&&c.attr("class","relation dashed-line"),10==n.relation.lineType&&c.attr("class","relation dotted-line"),"none"!==n.relation.type1&&c.attr("marker-start","url("+d+"#"+o(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&c.attr("marker-end","url("+d+"#"+o(n.relation.type2)+"End)");const f=e.points.length;let g,p,m,b,w=kb.calcLabelPosition(e.points);if(l=w.x,u=w.y,f%2!=0&&f>1){let t=kb.calcCardinalityPosition("none"!==n.relation.type1,e.points,e.points[0]),i=kb.calcCardinalityPosition("none"!==n.relation.type2,e.points,e.points[f-1]);h.debug("cardinality_1_point "+JSON.stringify(t)),h.debug("cardinality_2_point "+JSON.stringify(i)),g=t.x,p=t.y,m=i.x,b=i.y}if(void 0!==n.title){const e=t.append("g").attr("class","classLabel"),r=e.append("text").attr("class","label").attr("x",l).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=r;const o=r.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",o.x-i.padding/2).attr("y",o.y-i.padding/2).attr("width",o.width+i.padding).attr("height",o.height+i.padding)}h.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",g).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",m).attr("y",b).attr("fill","black").attr("font-size","6").text(n.relationTitle2),UB++},drawNote:function(t,e,n,i){h.debug("Rendering note ",e,n);const r=e.id,o={id:r,text:e.text,width:0,height:0},a=t.append("g").attr("id",r).attr("class","classGroup");let s=a.append("text").attr("y",n.textHeight+n.padding).attr("x",0);const c=JSON.parse(`"${e.text}"`).split("\n");c.forEach((function(t){h.debug(`Adding line: ${t}`),s.append("tspan").text(t).attr("class","title").attr("dy",n.textHeight)}));const l=a.node().getBBox(),u=a.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",l.width+2*n.padding).attr("height",l.height+c.length*n.textHeight+n.padding+.5*n.dividerMargin).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(u-t.getBBox().width)/2)})),o.width=u,o.height=l.height+c.length*n.textHeight+n.padding+.5*n.dividerMargin,o},parseMember:WB};let tM={};const eM=20,nM=function(t){const e=Object.entries(tM).find((e=>e[1].label===t));if(e)return e[0]},iM=function(t){t.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},rM={draw:function(t,e,n,i){const r=_w().class;tM={},h.info("Rendering diagram "+t);const o=_w().securityLevel;let a;"sandbox"===o&&(a=un("#i"+e));const s=un("sandbox"===o?a.nodes()[0].contentDocument.body:"body"),c=s.select(`[id='${e}']`);iM(c);const l=new fD({multigraph:!0});l.setGraph({isMultiGraph:!0}),l.setDefaultEdgeLabel((function(){return{}}));const u=i.db.getClasses(),d=Object.keys(u);for(const t of d){const e=u[t],n=JB.drawClass(c,e,r,i);tM[n.id]=n,l.setNode(n.id,n),h.info("Org height: "+n.height)}i.db.getRelations().forEach((function(t){h.info("tjoho"+nM(t.id1)+nM(t.id2)+JSON.stringify(t)),l.setEdge(nM(t.id1),nM(t.id2),{relation:t},t.title||"DEFAULT")})),i.db.getNotes().forEach((function(t){h.debug(`Adding note: ${JSON.stringify(t)}`);const e=JB.drawNote(c,t,r,i);tM[e.id]=e,l.setNode(e.id,e),t.class&&t.class in u&&l.setEdge(t.id,nM(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),kB(l),l.nodes().forEach((function(t){void 0!==t&&void 0!==l.node(t)&&(h.debug("Node "+t+": "+JSON.stringify(l.node(t))),s.select("#"+(i.db.lookUpDomId(t)||t)).attr("transform","translate("+(l.node(t).x-l.node(t).width/2)+","+(l.node(t).y-l.node(t).height/2)+" )"))})),l.edges().forEach((function(t){void 0!==t&&void 0!==l.edge(t)&&(h.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(l.edge(t))),JB.drawEdge(c,l.edge(t),l.edge(t).relation,r,i))}));const f=c.node().getBBox(),g=f.width+2*eM,p=f.height+2*eM;Mw(c,p,g,r.useMaxWidth);const m=`${f.x-eM} ${f.y-eM} ${g} ${p}`;h.debug(`viewBox ${m}`),c.attr("viewBox",m)}};function oM(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:aM(t),edges:sM(t)};return BS(t.graph())||(e.value=HE(t.graph())),e}function aM(t){return kS(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),r={v:e};return BS(n)||(r.value=n),BS(i)||(r.parent=i),r}))}function sM(t){return kS(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return BS(e.name)||(i.name=e.name),BS(n)||(i.value=n),i}))}const cM=(t,e,n,i)=>{e.forEach((e=>{lM[e](t,n,i)}))},lM={extension:(t,e,n)=>{h.trace("Making markers for ",n),t.append("defs").append("marker").attr("id",e+"-extensionStart").attr("class","marker extension "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-compositionStart").attr("class","marker composition "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:(t,e)=>{t.append("marker").attr("id",e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 12 20").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(t,e)=>{t.append("marker").attr("id",e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(t,e)=>{t.append("marker").attr("id",e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(t,e)=>{t.append("defs").append("marker").attr("id",e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},uM=cM;function hM(t,e){e&&t.attr("style",e)}function dM(t){const e=un(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=e.append("xhtml:div"),i=t.label,r=t.isNode?"nodeLabel":"edgeLabel";return n.html('<span class="'+r+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),hM(n,t.labelStyle),n.style("display","inline-block"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}const fM=(t,e,n,i)=>{let r=t||"";if("object"==typeof r&&(r=r[0]),Zh(_w().flowchart.htmlLabels))return r=r.replace(/\\n|\n/g,"<br />"),h.info("vertexText"+r),dM({isNode:i,label:iH(r).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`)),labelStyle:e.replace("fill:","color:")});{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];i="string"==typeof r?r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?r:[];for(const e of i){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),i.setAttribute("dy","1em"),i.setAttribute("x","0"),n?i.setAttribute("class","title-row"):i.setAttribute("class","row"),i.textContent=e.trim(),t.appendChild(i)}return t}},gM=(t,e,n,i)=>{let r;r=n||"node default";const o=t.insert("g").attr("class",r).attr("id",e.domId||e.id),a=o.insert("g").attr("class","label").attr("style",e.labelStyle);let s;s=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];const c=a.node().appendChild(fM(Gh(iH(s),_w()),e.labelStyle,!1,i));let l=c.getBBox();if(Zh(_w().flowchart.htmlLabels)){const t=c.children[0],e=un(c);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}const u=e.padding/2;return a.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),{shapeSvg:o,bbox:l,halfPadding:u,label:a}},pM=(t,e)=>{const n=e.node().getBBox();t.width=n.width,t.height=n.height};function mM(t,e,n,i){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+n/2+")")}let bM={},wM={},kM={};const vM=()=>{wM={},kM={},bM={}},yM=(t,e)=>(h.trace("In isDecendant",e," ",t," = ",wM[e].includes(t)),!!wM[e].includes(t)),_M=(t,e)=>(h.info("Decendants of ",e," is ",wM[e]),h.info("Edge is ",t),t.v!==e&&t.w!==e&&(wM[e]?wM[e].includes(t.v)||yM(t.v,e)||yM(t.w,e)||wM[e].includes(t.w):(h.debug("Tilt, ",e,",not in decendants"),!1))),CM=(t,e,n,i)=>{h.warn("Copying children of ",t,"root",i,"data",e.node(t),i);const r=e.children(t)||[];t!==i&&r.push(t),h.warn("Copying (nodes) clusterId",t,"nodes",r),r.forEach((r=>{if(e.children(r).length>0)CM(r,e,n,i);else{const o=e.node(r);h.info("cp ",r," to ",i," with parent ",t),n.setNode(r,o),i!==e.parent(r)&&(h.warn("Setting parent",r,e.parent(r)),n.setParent(r,e.parent(r))),t!==i&&r!==t?(h.debug("Setting parent",r,t),n.setParent(r,t)):(h.info("In copy ",t,"root",i,"data",e.node(t),i),h.debug("Not Setting parent for node=",r,"cluster!==rootId",t!==i,"node!==clusterId",r!==t));const a=e.edges(r);h.debug("Copying Edges",a),a.forEach((r=>{h.info("Edge",r);const o=e.edge(r.v,r.w,r.name);h.info("Edge data",o,i);try{_M(r,i)?(h.info("Copying as ",r.v,r.w,o,r.name),n.setEdge(r.v,r.w,o,r.name),h.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):h.info("Skipping copy of edge ",r.v,"--\x3e",r.w," rootId: ",i," clusterId:",t)}catch(t){h.error(t)}}))}h.debug("Removing node",r),e.removeNode(r)}))},AM=(t,e)=>{const n=e.children(t);let i=[...n];for(const r of n)kM[r]=t,i=[...i,...AM(r,e)];return i},xM=(t,e)=>{h.trace("Searching",t);const n=e.children(t);if(h.trace("Searching children of id ",t,n),n.length<1)return h.trace("This is a valid node",t),t;for(const i of n){const n=xM(i,e);if(n)return h.trace("Found replacement for",t," => ",n),n}},EM=t=>bM[t]&&bM[t].externalConnections&&bM[t]?bM[t].id:t,TM=(t,e)=>{!t||e>10?h.debug("Opting out, no graph "):(h.debug("Opting in, graph "),t.nodes().forEach((function(e){t.children(e).length>0&&(h.warn("Cluster identified",e," Replacement id in edges: ",xM(e,t)),wM[e]=AM(e,t),bM[e]={id:xM(e,t),clusterData:t.node(e)})})),t.nodes().forEach((function(e){const n=t.children(e),i=t.edges();n.length>0?(h.debug("Cluster identified",e,wM),i.forEach((t=>{t.v!==e&&t.w!==e&&yM(t.v,e)^yM(t.w,e)&&(h.warn("Edge: ",t," leaves cluster ",e),h.warn("Decendants of XXX ",e,": ",wM[e]),bM[e].externalConnections=!0)}))):h.debug("Not a cluster ",e,wM)})),t.edges().forEach((function(e){const n=t.edge(e);h.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),h.warn("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let i=e.v,r=e.w;if(h.warn("Fix XXX",bM,"ids:",e.v,e.w,"Translating: ",bM[e.v]," --- ",bM[e.w]),bM[e.v]&&bM[e.w]&&bM[e.v]===bM[e.w]){h.warn("Fixing and trixing link to self - removing XXX",e.v,e.w,e.name),h.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),i=EM(e.v),r=EM(e.w),t.removeEdge(e.v,e.w,e.name);const o=e.w+"---"+e.v;t.setNode(o,{domId:o,id:o,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});const a=JSON.parse(JSON.stringify(n)),s=JSON.parse(JSON.stringify(n));a.label="",a.arrowTypeEnd="none",s.label="",a.fromCluster=e.v,s.toCluster=e.v,t.setEdge(i,o,a,e.name+"-cyclic-special"),t.setEdge(o,r,s,e.name+"-cyclic-special")}else(bM[e.v]||bM[e.w])&&(h.warn("Fixing and trixing - removing XXX",e.v,e.w,e.name),i=EM(e.v),r=EM(e.w),t.removeEdge(e.v,e.w,e.name),i!==e.v&&(n.fromCluster=e.v),r!==e.w&&(n.toCluster=e.w),h.warn("Fix Replacing with XXX",i,r,e.name),t.setEdge(i,r,n,e.name))})),h.warn("Adjusted Graph",oM(t)),SM(t,0),h.trace(bM))},SM=(t,e)=>{if(h.warn("extractor - ",e,oM(t),t.children("D")),e>10)return void h.error("Bailing out");let n=t.nodes(),i=!1;for(const e of n){const n=t.children(e);i=i||n.length>0}if(i){h.debug("Nodes = ",n,e);for(const i of n)if(h.debug("Extracting node",i,bM,bM[i]&&!bM[i].externalConnections,!t.parent(i),t.node(i),t.children("D")," Depth ",e),bM[i])if(!bM[i].externalConnections&&t.children(i)&&t.children(i).length>0){h.warn("Cluster without external connections, without a parent and with children",i,e);let n="TB"===t.graph().rankdir?"LR":"TB";bM[i]&&bM[i].clusterData&&bM[i].clusterData.dir&&(n=bM[i].clusterData.dir,h.warn("Fixing dir",bM[i].clusterData.dir,n));const r=new fD({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));h.warn("Old graph before copy",oM(t)),CM(i,t,r,i),t.setNode(i,{clusterNode:!0,id:i,clusterData:bM[i].clusterData,labelText:bM[i].labelText,graph:r}),h.warn("New graph after copy node: (",i,")",oM(r)),h.debug("Old graph after copy",oM(t))}else h.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!bM[i].externalConnections," no parent: ",!t.parent(i)," children ",t.children(i)&&t.children(i).length>0,t.children("D"),e),h.debug(bM);else h.debug("Not a cluster",i,e);n=t.nodes(),h.warn("New list of nodes",n);for(const i of n){const n=t.node(i);h.warn(" Now next level",i,n),n.clusterNode&&SM(n.graph,e+1)}}else h.debug("Done, no node has children",t.nodes())},DM=(t,e)=>{if(0===e.length)return[];let n=Object.assign(e);return e.forEach((e=>{const i=t.children(e),r=DM(t,i);n=[...n,...r]})),n},IM=t=>DM(t,t.children());function BM(t,e){return t.intersect(e)}function MM(t,e,n,i){var r=t.x,o=t.y,a=r-i.x,s=o-i.y,c=Math.sqrt(e*e*s*s+n*n*a*a),l=Math.abs(e*n*a/c);i.x<r&&(l=-l);var u=Math.abs(e*n*s/c);return i.y<o&&(u=-u),{x:r+l,y:o+u}}function PM(t,e,n){return MM(t,e,e,n)}function LM(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p,m;if(r=e.y-t.y,a=t.x-e.x,c=e.x*t.y-t.x*e.y,d=r*n.x+a*n.y+c,f=r*i.x+a*i.y+c,!(0!==d&&0!==f&&OM(d,f)||(o=i.y-n.y,s=n.x-i.x,l=i.x*n.y-n.x*i.y,u=o*t.x+s*t.y+l,h=o*e.x+s*e.y+l,0!==u&&0!==h&&OM(u,h)||0==(g=r*s-o*a))))return p=Math.abs(g/2),{x:(m=a*l-s*c)<0?(m-p)/g:(m+p)/g,y:(m=o*c-r*l)<0?(m-p)/g:(m+p)/g}}function OM(t,e){return t*e>0}function NM(t,e,n){var i=t.x,r=t.y,o=[],a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){a=Math.min(a,t.x),s=Math.min(s,t.y)})):(a=Math.min(a,e.x),s=Math.min(s,e.y));for(var c=i-t.width/2-a,l=r-t.height/2-s,u=0;u<e.length;u++){var h=e[u],d=e[u<e.length-1?u+1:0],f=LM(t,n,{x:c+h.x,y:l+h.y},{x:c+d.x,y:l+d.y});f&&o.push(f)}return o.length?(o.length>1&&o.sort((function(t,e){var i=t.x-n.x,r=t.y-n.y,o=Math.sqrt(i*i+r*r),a=e.x-n.x,s=e.y-n.y,c=Math.sqrt(a*a+s*s);return o<c?-1:o===c?0:1})),o[0]):t}const RM=(t,e)=>{var n,i,r=t.x,o=t.y,a=e.x-r,s=e.y-o,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(a)*l?(s<0&&(l=-l),n=0===s?0:l*a/s,i=l):(a<0&&(c=-c),n=c,i=0===a?0:c*s/a),{x:r+n,y:o+i}},FM={node:BM,circle:PM,ellipse:MM,polygon:NM,rect:RM},jM=(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding+(i.height+e.padding),o=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];h.info("Question main (Circle)");const a=mM(n,r,r,o);return a.attr("style",e.style),pM(e,a),e.intersect=function(t){return h.warn("Intersect called"),FM.polygon(e,o,t)},n};function $M(t,e,n,i){const r=[],o=t=>{r.push(t,0)},a=t=>{r.push(0,t)};e.includes("t")?(h.debug("add top border"),o(n)):a(n),e.includes("r")?(h.debug("add right border"),o(i)):a(i),e.includes("b")?(h.debug("add bottom border"),o(n)):a(n),e.includes("l")?(h.debug("add left border"),o(i)):a(i),t.attr("stroke-dasharray",r.join(" "))}const zM=(t,e,n)=>{const i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let r=70,o=10;"LR"===n&&(r=10,o=70);const a=i.append("rect").attr("x",-1*r/2).attr("y",-1*o/2).attr("width",r).attr("height",o).attr("class","fork-join");return pM(e,a),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return FM.rect(e,t)},i},VM={rhombus:jM,question:jM,rect:(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=gM(t,e,"node "+e.classes,!0);h.trace("Classes = ",e.classes);const o=n.insert("rect",":first-child"),a=i.width+e.padding,s=i.height+e.padding;if(o.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-r).attr("y",-i.height/2-r).attr("width",a).attr("height",s),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&($M(o,e.props.borders,a,s),t.delete("borders")),t.forEach((t=>{h.warn(`Unknown node property ${t}`)}))}return pM(e,o),e.intersect=function(t){return FM.rect(e,t)},n},labelRect:(t,e)=>{const{shapeSvg:n}=gM(t,e,"label",!0);h.trace("Classes = ",e.classes);const i=n.insert("rect",":first-child"),r=0,o=0;if(i.attr("width",r).attr("height",o),n.attr("class","label edgeLabel"),e.props){const t=new Set(Object.keys(e.props));e.props.borders&&($M(i,e.props.borders,r,o),t.delete("borders")),t.forEach((t=>{h.warn(`Unknown node property ${t}`)}))}return pM(e,i),e.intersect=function(t){return FM.rect(e,t)},n},rectWithTitle:(t,e)=>{let n;n=e.classes?"node "+e.classes:"node default";const i=t.insert("g").attr("class",n).attr("id",e.domId||e.id),r=i.insert("rect",":first-child"),o=i.insert("line"),a=i.insert("g").attr("class","label"),s=e.labelText.flat?e.labelText.flat():e.labelText;let c="";c="object"==typeof s?s[0]:s,h.info("Label text abc79",c,s,"object"==typeof s);const l=a.node().appendChild(fM(c,e.labelStyle,!0,!0));let u={width:0,height:0};if(Zh(_w().flowchart.htmlLabels)){const t=l.children[0],e=un(l);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}h.info("Text 2",s);const d=s.slice(1,s.length);let f=l.getBBox();const g=a.node().appendChild(fM(d.join?d.join("<br/>"):d,e.labelStyle,!0,!0));if(Zh(_w().flowchart.htmlLabels)){const t=g.children[0],e=un(g);u=t.getBoundingClientRect(),e.attr("width",u.width),e.attr("height",u.height)}const p=e.padding/2;return un(g).attr("transform","translate( "+(u.width>f.width?0:(f.width-u.width)/2)+", "+(f.height+p+5)+")"),un(l).attr("transform","translate( "+(u.width<f.width?0:-(f.width-u.width)/2)+", 0)"),u=a.node().getBBox(),a.attr("transform","translate("+-u.width/2+", "+(-u.height/2-p+3)+")"),r.attr("class","outer title-state").attr("x",-u.width/2-p).attr("y",-u.height/2-p).attr("width",u.width+e.padding).attr("height",u.height+e.padding),o.attr("class","divider").attr("x1",-u.width/2-p).attr("x2",u.width/2+p).attr("y1",-u.height/2-p+f.height+p).attr("y2",-u.height/2-p+f.height+p),pM(e,r),e.intersect=function(t){return FM.rect(e,t)},i},choice:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=28,r=[{x:0,y:i/2},{x:i/2,y:0},{x:0,y:-i/2},{x:-i/2,y:0}];return n.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return FM.circle(e,14,t)},n},circle:(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=gM(t,e,void 0,!0),o=n.insert("circle",":first-child");return o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),h.info("Circle main"),pM(e,o),e.intersect=function(t){return h.info("Circle intersect",e,i.width/2+r,t),FM.circle(e,i.width/2+r,t)},n},doublecircle:(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=gM(t,e,void 0,!0),o=5,a=n.insert("g",":first-child"),s=a.insert("circle"),c=a.insert("circle");return s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r+o).attr("width",i.width+e.padding+2*o).attr("height",i.height+e.padding+2*o),c.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",i.width/2+r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),h.info("DoubleCircle main"),pM(e,s),e.intersect=function(t){return h.info("DoubleCircle intersect",e,i.width/2+r+o,t),FM.circle(e,i.width/2+r+o,t)},n},stadium:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.height+e.padding,o=i.width+r/4+e.padding,a=n.insert("rect",":first-child").attr("style",e.style).attr("rx",r/2).attr("ry",r/2).attr("x",-o/2).attr("y",-r/2).attr("width",o).attr("height",r);return pM(e,a),e.intersect=function(t){return FM.rect(e,t)},n},hexagon:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=4,o=i.height+e.padding,a=o/r,s=i.width+2*a+e.padding,c=[{x:a,y:0},{x:s-a,y:0},{x:s,y:-o/2},{x:s-a,y:-o},{x:a,y:-o},{x:0,y:-o/2}],l=mM(n,s,o,c);return l.attr("style",e.style),pM(e,l),e.intersect=function(t){return FM.polygon(e,c,t)},n},rect_left_inv_arrow:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding,o=i.height+e.padding,a=[{x:-o/2,y:0},{x:r,y:0},{x:r,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return mM(n,r,o,a).attr("style",e.style),e.width=r+o,e.height=o,e.intersect=function(t){return FM.polygon(e,a,t)},n},lean_right:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding,o=i.height+e.padding,a=[{x:-2*o/6,y:0},{x:r-o/6,y:0},{x:r+2*o/6,y:-o},{x:o/6,y:-o}],s=mM(n,r,o,a);return s.attr("style",e.style),pM(e,s),e.intersect=function(t){return FM.polygon(e,a,t)},n},lean_left:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding,o=i.height+e.padding,a=[{x:2*o/6,y:0},{x:r+o/6,y:0},{x:r-2*o/6,y:-o},{x:-o/6,y:-o}],s=mM(n,r,o,a);return s.attr("style",e.style),pM(e,s),e.intersect=function(t){return FM.polygon(e,a,t)},n},trapezoid:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding,o=i.height+e.padding,a=[{x:-2*o/6,y:0},{x:r+2*o/6,y:0},{x:r-o/6,y:-o},{x:o/6,y:-o}],s=mM(n,r,o,a);return s.attr("style",e.style),pM(e,s),e.intersect=function(t){return FM.polygon(e,a,t)},n},inv_trapezoid:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding,o=i.height+e.padding,a=[{x:o/6,y:0},{x:r-o/6,y:0},{x:r+2*o/6,y:-o},{x:-2*o/6,y:-o}],s=mM(n,r,o,a);return s.attr("style",e.style),pM(e,s),e.intersect=function(t){return FM.polygon(e,a,t)},n},rect_right_inv_arrow:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding,o=i.height+e.padding,a=[{x:0,y:0},{x:r+o/2,y:0},{x:r,y:-o/2},{x:r+o/2,y:-o},{x:0,y:-o}],s=mM(n,r,o,a);return s.attr("style",e.style),pM(e,s),e.intersect=function(t){return FM.polygon(e,a,t)},n},cylinder:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding,o=r/2,a=o/(2.5+r/50),s=i.height+a+e.padding,c="M 0,"+a+" a "+o+","+a+" 0,0,0 "+r+" 0 a "+o+","+a+" 0,0,0 "+-r+" 0 l 0,"+s+" a "+o+","+a+" 0,0,0 "+r+" 0 l 0,"+-s,l=n.attr("label-offset-y",a).insert("path",":first-child").attr("style",e.style).attr("d",c).attr("transform","translate("+-r/2+","+-(s/2+a)+")");return pM(e,l),e.intersect=function(t){const n=FM.rect(e,t),i=n.x-e.x;if(0!=o&&(Math.abs(i)<e.width/2||Math.abs(i)==e.width/2&&Math.abs(n.y-e.y)>e.height/2-a)){let r=a*a*(1-i*i/(o*o));0!=r&&(r=Math.sqrt(r)),r=a-r,t.y-e.y>0&&(r=-r),n.y+=r}return n},n},start:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),pM(e,i),e.intersect=function(t){return FM.circle(e,7,t)},n},end:(t,e)=>{const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),i=n.insert("circle",":first-child"),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),i.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),pM(e,r),e.intersect=function(t){return FM.circle(e,7,t)},n},note:(t,e)=>{const{shapeSvg:n,bbox:i,halfPadding:r}=gM(t,e,"node "+e.classes,!0);h.info("Classes = ",e.classes);const o=n.insert("rect",":first-child");return o.attr("rx",e.rx).attr("ry",e.ry).attr("x",-i.width/2-r).attr("y",-i.height/2-r).attr("width",i.width+e.padding).attr("height",i.height+e.padding),pM(e,o),e.intersect=function(t){return FM.rect(e,t)},n},subroutine:(t,e)=>{const{shapeSvg:n,bbox:i}=gM(t,e,void 0,!0),r=i.width+e.padding,o=i.height+e.padding,a=[{x:0,y:0},{x:r,y:0},{x:r,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],s=mM(n,r,o,a);return s.attr("style",e.style),pM(e,s),e.intersect=function(t){return FM.polygon(e,a,t)},n},fork:zM,join:zM,class_box:(t,e)=>{const n=e.padding/2,i=4,r=8;let o;o=e.classes?"node "+e.classes:"node default";const a=t.insert("g").attr("class",o).attr("id",e.domId||e.id),s=a.insert("rect",":first-child"),c=a.insert("line"),l=a.insert("line");let u=0,h=i;const d=a.insert("g").attr("class","label");let f=0;const g=e.classData.annotations&&e.classData.annotations[0],p=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",m=d.node().appendChild(fM(p,e.labelStyle,!0,!0));let b=m.getBBox();if(Zh(_w().flowchart.htmlLabels)){const t=m.children[0],e=un(m);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}e.classData.annotations[0]&&(h+=b.height+i,u+=b.width);let w=e.classData.id;void 0!==e.classData.type&&""!==e.classData.type&&(_w().flowchart.htmlLabels?w+="&lt;"+e.classData.type+"&gt;":w+="<"+e.classData.type+">");const k=d.node().appendChild(fM(w,e.labelStyle,!0,!0));un(k).attr("class","classTitle");let v=k.getBBox();if(Zh(_w().flowchart.htmlLabels)){const t=k.children[0],e=un(k);v=t.getBoundingClientRect(),e.attr("width",v.width),e.attr("height",v.height)}h+=v.height+i,v.width>u&&(u=v.width);const y=[];e.classData.members.forEach((t=>{const n=WB(t);let r=n.displayText;_w().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const o=d.node().appendChild(fM(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=o.getBBox();if(Zh(_w().flowchart.htmlLabels)){const t=o.children[0],e=un(o);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>u&&(u=a.width),h+=a.height+i,y.push(o)})),h+=r;const _=[];if(e.classData.methods.forEach((t=>{const n=WB(t);let r=n.displayText;_w().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const o=d.node().appendChild(fM(r,n.cssStyle?n.cssStyle:e.labelStyle,!0,!0));let a=o.getBBox();if(Zh(_w().flowchart.htmlLabels)){const t=o.children[0],e=un(o);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}a.width>u&&(u=a.width),h+=a.height+i,_.push(o)})),h+=r,g){let t=(u-b.width)/2;un(m).attr("transform","translate( "+(-1*u/2+t)+", "+-1*h/2+")"),f=b.height+i}let C=(u-v.width)/2;return un(k).attr("transform","translate( "+(-1*u/2+C)+", "+(-1*h/2+f)+")"),f+=v.height+i,c.attr("class","divider").attr("x1",-u/2-n).attr("x2",u/2+n).attr("y1",-h/2-n+r+f).attr("y2",-h/2-n+r+f),f+=r,y.forEach((t=>{un(t).attr("transform","translate( "+-u/2+", "+(-1*h/2+f+r/2)+")"),f+=v.height+i})),f+=r,l.attr("class","divider").attr("x1",-u/2-n).attr("x2",u/2+n).attr("y1",-h/2-n+r+f).attr("y2",-h/2-n+r+f),f+=r,_.forEach((t=>{un(t).attr("transform","translate( "+-u/2+", "+(-1*h/2+f)+")"),f+=v.height+i})),s.attr("class","outer title-state").attr("x",-u/2-n).attr("y",-h/2-n).attr("width",u+e.padding).attr("height",h+e.padding),pM(e,s),e.intersect=function(t){return FM.rect(e,t)},a}};let HM={};const qM=(t,e,n)=>{let i,r;if(e.link){let o;"sandbox"===_w().securityLevel?o="_top":e.linkTarget&&(o=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o),r=VM[e.shape](i,e,n)}else r=VM[e.shape](t,e,n),i=r;return e.tooltip&&r.attr("title",e.tooltip),e.class&&r.attr("class","node default "+e.class),HM[e.id]=i,e.haveCallback&&HM[e.id].attr("class",HM[e.id].attr("class")+" clickable"),i},UM=(t,e)=>{HM[e.id]=t},GM=()=>{HM={}},WM=t=>{const e=HM[t.id];h.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const n=8,i=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-n)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),i},KM={rect:(t,e)=>{h.trace("Creating subgraph rect for ",e.id,e);const n=t.insert("g").attr("class","cluster"+(e.class?" "+e.class:"")).attr("id",e.id),i=n.insert("rect",":first-child"),r=n.insert("g").attr("class","cluster-label"),o=r.node().appendChild(fM(e.labelText,e.labelStyle,void 0,!0));let a=o.getBBox();if(Zh(_w().flowchart.htmlLabels)){const t=o.children[0],e=un(o);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}const s=0*e.padding,c=s/2,l=e.width<=a.width+s?a.width+s:e.width;e.width<=a.width+s?e.diff=(a.width-e.width)/2-e.padding/2:e.diff=-e.padding/2,h.trace("Data ",e,JSON.stringify(e)),i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-l/2).attr("y",e.y-e.height/2-c).attr("width",l).attr("height",e.height+s),r.attr("transform","translate("+(e.x-a.width/2)+", "+(e.y-e.height/2)+")");const u=i.node().getBBox();return e.width=u.width,e.height=u.height,e.intersect=function(t){return RM(e,t)},n},roundedWithTitle:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),i=n.insert("rect",":first-child"),r=n.insert("g").attr("class","cluster-label"),o=n.append("rect"),a=r.node().appendChild(fM(e.labelText,e.labelStyle,void 0,!0));let s=a.getBBox();if(Zh(_w().flowchart.htmlLabels)){const t=a.children[0],e=un(a);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s=a.getBBox();const c=0*e.padding,l=c/2,u=e.width<=s.width+e.padding?s.width+e.padding:e.width;e.width<=s.width+e.padding?e.diff=(s.width+0*e.padding-e.width)/2:e.diff=-e.padding/2,i.attr("class","outer").attr("x",e.x-u/2-l).attr("y",e.y-e.height/2-l).attr("width",u+c).attr("height",e.height+c),o.attr("class","inner").attr("x",e.x-u/2-l).attr("y",e.y-e.height/2-l+s.height-1).attr("width",u+c).attr("height",e.height+c-s.height-3),r.attr("transform","translate("+(e.x-s.width/2)+", "+(e.y-e.height/2-e.padding/3+(Zh(_w().flowchart.htmlLabels)?5:3))+")");const h=i.node().getBBox();return e.height=h.height,e.intersect=function(t){return RM(e,t)},n},noteGroup:(t,e)=>{const n=t.insert("g").attr("class","note-cluster").attr("id",e.id),i=n.insert("rect",":first-child"),r=0*e.padding,o=r/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+r).attr("height",e.height+r).attr("fill","none");const a=i.node().getBBox();return e.width=a.width,e.height=a.height,e.intersect=function(t){return RM(e,t)},n},divider:(t,e)=>{const n=t.insert("g").attr("class",e.classes).attr("id",e.id),i=n.insert("rect",":first-child"),r=0*e.padding,o=r/2;i.attr("class","divider").attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2).attr("width",e.width+r).attr("height",e.height+r);const a=i.node().getBBox();return e.width=a.width,e.height=a.height,e.diff=-e.padding/2,e.intersect=function(t){return RM(e,t)},n}};let YM={};const XM=(t,e)=>{h.trace("Inserting cluster");const n=e.shape||"rect";YM[e.id]=KM[n](t,e)},ZM=()=>{YM={}};let QM={},JM={};const tP=()=>{QM={},JM={}},eP=(t,e)=>{const n=fM(e.label,e.labelStyle),i=t.insert("g").attr("class","edgeLabel"),r=i.insert("g").attr("class","label");r.node().appendChild(n);let o,a=n.getBBox();if(Zh(_w().flowchart.htmlLabels)){const t=n.children[0],e=un(n);a=t.getBoundingClientRect(),e.attr("width",a.width),e.attr("height",a.height)}if(r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),QM[e.id]=i,e.width=a.width,e.height=a.height,e.startLabelLeft){const n=fM(e.startLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");o=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),JM[e.id]||(JM[e.id]={}),JM[e.id].startLeft=i,nP(o,e.startLabelLeft)}if(e.startLabelRight){const n=fM(e.startLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");o=i.node().appendChild(n),r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),JM[e.id]||(JM[e.id]={}),JM[e.id].startRight=i,nP(o,e.startLabelRight)}if(e.endLabelLeft){const n=fM(e.endLabelLeft,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");o=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),i.node().appendChild(n),JM[e.id]||(JM[e.id]={}),JM[e.id].endLeft=i,nP(o,e.endLabelLeft)}if(e.endLabelRight){const n=fM(e.endLabelRight,e.labelStyle),i=t.insert("g").attr("class","edgeTerminals"),r=i.insert("g").attr("class","inner");o=r.node().appendChild(n);const a=n.getBBox();r.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),i.node().appendChild(n),JM[e.id]||(JM[e.id]={}),JM[e.id].endRight=i,nP(o,e.endLabelRight)}return n};function nP(t,e){_w().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}const iP=(t,e)=>{h.info("Moving label abc78 ",t.id,t.label,QM[t.id]);let n=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){const i=QM[t.id];let r=t.x,o=t.y;if(n){const i=kb.calcLabelPosition(n);h.info("Moving label "+t.label+" from (",r,",",o,") to (",i.x,",",i.y,") abc78"),e.updatedPath&&(r=i.x,o=i.y)}i.attr("transform","translate("+r+", "+o+")")}if(t.startLabelLeft){const e=JM[t.id].startLeft;let i=t.x,r=t.y;if(n){const e=kb.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.startLabelRight){const e=JM[t.id].startRight;let i=t.x,r=t.y;if(n){const e=kb.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.endLabelLeft){const e=JM[t.id].endLeft;let i=t.x,r=t.y;if(n){const e=kb.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}if(t.endLabelRight){const e=JM[t.id].endRight;let i=t.x,r=t.y;if(n){const e=kb.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",n);i=e.x,r=e.y}e.attr("transform","translate("+i+", "+r+")")}},rP=(t,e)=>{const n=t.x,i=t.y,r=Math.abs(e.x-n),o=Math.abs(e.y-i),a=t.width/2,s=t.height/2;return r>=a||o>=s},oP=(t,e,n)=>{h.warn(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(n)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,r=t.y,o=Math.abs(i-n.x),a=t.width/2;let s=n.x<e.x?a-o:a+o;const c=t.height/2,l=Math.abs(e.y-n.y),u=Math.abs(e.x-n.x);if(Math.abs(r-e.y)*a>Math.abs(i-e.x)*c){let t=n.y<e.y?e.y-c-r:r-c-e.y;s=u*t/l;const i={x:n.x<e.x?n.x+s:n.x-u+s,y:n.y<e.y?n.y+l-t:n.y-l+t};return 0===s&&(i.x=e.x,i.y=e.y),0===u&&(i.x=e.x),0===l&&(i.y=e.y),h.warn(`abc89 topp/bott calc, Q ${l}, q ${t}, R ${u}, r ${s}`,i),i}{s=n.x<e.x?e.x-a-i:i-a-e.x;let t=l*s/u,r=n.x<e.x?n.x+u-s:n.x-u+s,o=n.y<e.y?n.y+t:n.y-t;return h.warn(`sides calc abc89, Q ${l}, q ${t}, R ${u}, r ${s}`,{_x:r,_y:o}),0===s&&(r=e.x,o=e.y),0===u&&(r=e.x),0===l&&(o=e.y),{x:r,y:o}}},aP=(t,e)=>{h.warn("abc88 cutPathAtIntersect",t,e);let n=[],i=t[0],r=!1;return t.forEach((t=>{if(h.info("abc88 checking point",t,e),rP(e,t)||r)h.warn("abc88 outside",t,i),i=t,r||n.push(t);else{const o=oP(e,i,t);h.warn("abc88 inside",t,i,o),h.warn("abc88 intersection",o);let a=!1;n.forEach((t=>{a=a||t.x===o.x&&t.y===o.y})),n.some((t=>t.x===o.x&&t.y===o.y))?h.warn("abc88 no intersect",o,n):n.push(o),r=!0}})),h.warn("abc88 returning points",n),n},sP=function(t,e,n,i,r,o){let a=n.points,s=!1;const c=o.node(e.v);var l=o.node(e.w);h.info("abc88 InsertEdge: ",n),l.intersect&&c.intersect&&(a=a.slice(1,n.points.length-1),a.unshift(c.intersect(a[0])),h.info("Last point",a[a.length-1],l,l.intersect(a[a.length-1])),a.push(l.intersect(a[a.length-1]))),n.toCluster&&(h.info("to cluster abc88",i[n.toCluster]),a=aP(n.points,i[n.toCluster].node),s=!0),n.fromCluster&&(h.info("from cluster abc88",i[n.fromCluster]),a=aP(a.reverse(),i[n.fromCluster].node).reverse(),s=!0);const u=a.filter((t=>!Number.isNaN(t.y)));let d;d=("graph"===r||"flowchart"===r)&&n.curve||Xl;const f=$l().x((function(t){return t.x})).y((function(t){return t.y})).curve(d);let g;switch(n.thickness){case"normal":g="edge-thickness-normal";break;case"thick":g="edge-thickness-thick";break;default:g=""}switch(n.pattern){case"solid":g+=" edge-pattern-solid";break;case"dotted":g+=" edge-pattern-dotted";break;case"dashed":g+=" edge-pattern-dashed"}const p=t.append("path").attr("d",f(u)).attr("id",n.id).attr("class"," "+g+(n.classes?" "+n.classes:"")).attr("style",n.style);let m="";switch((_w().flowchart.arrowMarkerAbsolute||_w().state.arrowMarkerAbsolute)&&(m=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,m=m.replace(/\(/g,"\\("),m=m.replace(/\)/g,"\\)")),h.info("arrowTypeStart",n.arrowTypeStart),h.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":p.attr("marker-start","url("+m+"#"+r+"-crossStart)");break;case"arrow_point":p.attr("marker-start","url("+m+"#"+r+"-pointStart)");break;case"arrow_barb":p.attr("marker-start","url("+m+"#"+r+"-barbStart)");break;case"arrow_circle":p.attr("marker-start","url("+m+"#"+r+"-circleStart)");break;case"aggregation":p.attr("marker-start","url("+m+"#"+r+"-aggregationStart)");break;case"extension":p.attr("marker-start","url("+m+"#"+r+"-extensionStart)");break;case"composition":p.attr("marker-start","url("+m+"#"+r+"-compositionStart)");break;case"dependency":p.attr("marker-start","url("+m+"#"+r+"-dependencyStart)");break;case"lollipop":p.attr("marker-start","url("+m+"#"+r+"-lollipopStart)")}switch(n.arrowTypeEnd){case"arrow_cross":p.attr("marker-end","url("+m+"#"+r+"-crossEnd)");break;case"arrow_point":p.attr("marker-end","url("+m+"#"+r+"-pointEnd)");break;case"arrow_barb":p.attr("marker-end","url("+m+"#"+r+"-barbEnd)");break;case"arrow_circle":p.attr("marker-end","url("+m+"#"+r+"-circleEnd)");break;case"aggregation":p.attr("marker-end","url("+m+"#"+r+"-aggregationEnd)");break;case"extension":p.attr("marker-end","url("+m+"#"+r+"-extensionEnd)");break;case"composition":p.attr("marker-end","url("+m+"#"+r+"-compositionEnd)");break;case"dependency":p.attr("marker-end","url("+m+"#"+r+"-dependencyEnd)");break;case"lollipop":p.attr("marker-end","url("+m+"#"+r+"-lollipopEnd)")}let b={};return s&&(b.updatedPath=a),b.originalPath=n.points,b},cP=(t,e,n,i)=>{h.info("Graph in recursive render: XXX",oM(e),i);const r=e.graph().rankdir;h.trace("Dir in recursive render - dir:",r);const o=t.insert("g").attr("class","root");e.nodes()?h.info("Recursive render XXX",e.nodes()):h.info("No nodes found for",e),e.edges().length>0&&h.trace("Recursive edges",e.edge(e.edges()[0]));const a=o.insert("g").attr("class","clusters"),s=o.insert("g").attr("class","edgePaths"),c=o.insert("g").attr("class","edgeLabels"),l=o.insert("g").attr("class","nodes");e.nodes().forEach((function(t){const o=e.node(t);if(void 0!==i){const n=JSON.parse(JSON.stringify(i.clusterData));h.info("Setting data for cluster XXX (",t,") ",n,i),e.setNode(i.id,n),e.parent(t)||(h.trace("Setting parent",t,i.id),e.setParent(t,i.id,n))}if(h.info("(Insert) Node XXX"+t+": "+JSON.stringify(e.node(t))),o&&o.clusterNode){h.info("Cluster identified",t,o.width,e.node(t));const i=cP(l,o.graph,n,e.node(t)),r=i.elem;pM(o,r),o.diff=i.diff||0,h.info("Node bounds (abc123)",t,o,o.width,o.x,o.y),UM(r,o),h.warn("Recursive render complete ",r,o)}else e.children(t).length>0?(h.info("Cluster - the non recursive path XXX",t,o.id,o,e),h.info(xM(o.id,e)),bM[o.id]={id:xM(o.id,e),node:o}):(h.info("Node - the non recursive path",t,o.id,o),qM(l,e.node(t),r))})),e.edges().forEach((function(t){const n=e.edge(t.v,t.w,t.name);h.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),h.info("Edge "+t.v+" -> "+t.w+": ",t," ",JSON.stringify(e.edge(t))),h.info("Fix",bM,"ids:",t.v,t.w,"Translateing: ",bM[t.v],bM[t.w]),eP(c,n)})),e.edges().forEach((function(t){h.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t))})),h.info("#############################################"),h.info("### Layout ###"),h.info("#############################################"),h.info(e),kB(e),h.info("Graph after layout:",oM(e));let u=0;return IM(e).forEach((function(t){const n=e.node(t);h.info("Position "+t+": "+JSON.stringify(e.node(t))),h.info("Position "+t+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n&&n.clusterNode?WM(n):e.children(t).length>0?(XM(a,n),bM[n.id].node=n):WM(n)})),e.edges().forEach((function(t){const i=e.edge(t);h.info("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(i),i);const r=sP(s,t,i,bM,n,e);iP(i,r)})),e.nodes().forEach((function(t){const n=e.node(t);h.info(t,n.type,n.diff),"group"===n.type&&(u=n.diff)})),{elem:o,diff:u}},lP=(t,e,n,i,r)=>{uM(t,n,i,r),GM(),tP(),ZM(),vM(),h.warn("Graph at first:",oM(e)),TM(e),h.warn("Graph after:",oM(e)),cP(t,e,i)},uP=t=>Jh.sanitizeText(t,_w());let hP={dividerMargin:10,padding:5,textHeight:10};const dP=function(t,e,n,i){const r=Object.keys(t);h.info("keys:",r),h.info(t),r.forEach((function(n){const r=t[n];let o="";r.cssClasses.length>0&&(o=o+" "+r.cssClasses.join(" "));const a={labelStyle:""};let s=void 0!==r.text?r.text:r.id,c=0,l="";r.type,l="class_box",e.setNode(r.id,{labelStyle:a.labelStyle,shape:l,labelText:uP(s),classData:r,rx:c,ry:c,class:o,style:a.style,id:r.id,domId:r.domId,tooltip:i.db.getTooltip(r.id)||"",haveCallback:r.haveCallback,link:r.link,width:"group"===r.type?500:void 0,type:r.type,padding:_w().flowchart.padding}),h.info("setNode",{labelStyle:a.labelStyle,shape:l,labelText:s,rx:c,ry:c,class:o,style:a.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:_w().flowchart.padding})}))},fP=function(t,e,n,i){h.info(t),t.forEach((function(t,r){const o=t;let a="";const s={labelStyle:"",style:""};let c=o.text,l=0,u="note";if(e.setNode(o.id,{labelStyle:s.labelStyle,shape:u,labelText:uP(c),noteData:o,rx:l,ry:l,class:a,style:s.style,id:o.id,domId:o.id,tooltip:"",type:"note",padding:_w().flowchart.padding}),h.info("setNode",{labelStyle:s.labelStyle,shape:u,labelText:c,rx:l,ry:l,style:s.style,id:o.id,type:"note",padding:_w().flowchart.padding}),!o.class||!(o.class in i))return;const d=n+r,f={classes:"relation",pattern:"dotted"};f.id=`edgeNote${d}`,f.arrowhead="none",h.info(`Note edge: ${JSON.stringify(f)}, ${JSON.stringify(o)}`),f.startLabelRight="",f.endLabelLeft="",f.arrowTypeStart="none",f.arrowTypeEnd="none";let g="fill:none",p="";f.style=g,f.labelStyle=p,f.curve=Wm(hP.curve,Rl),e.setEdge(o.id,o.class,f,d)}))},gP=function(t,e){const n=_w().flowchart;let i=0;t.forEach((function(r){i++;const o={classes:"relation"};o.pattern=1==r.relation.lineType?"dashed":"solid",o.id="id"+i,"arrow_open"===r.type?o.arrowhead="none":o.arrowhead="normal",h.info(o,r),o.startLabelRight="none"===r.relationTitle1?"":r.relationTitle1,o.endLabelLeft="none"===r.relationTitle2?"":r.relationTitle2,o.arrowTypeStart=pP(r.relation.type1),o.arrowTypeEnd=pP(r.relation.type2);let a="",s="";if(void 0!==r.style){const t=eb(r.style);a=t.style,s=t.labelStyle}else a="fill:none";o.style=a,o.labelStyle=s,void 0!==r.interpolate?o.curve=Wm(r.interpolate,Rl):void 0!==t.defaultInterpolate?o.curve=Wm(t.defaultInterpolate,Rl):o.curve=Wm(n.curve,Rl),r.text=r.title,void 0===r.text?void 0!==r.style&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",_w().flowchart.htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+r.text+"</span>"):(o.labelType="text",o.label=r.text.replace(Jh.lineBreakRegex,"\n"),void 0===r.style&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),e.setEdge(r.id1,r.id2,o,i)}))};function pP(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}const mP={setConf:function(t){Object.keys(t).forEach((function(e){hP[e]=t[e]}))},draw:function(t,e,n,i){h.info("Drawing class - ",e);const r=_w().flowchart,o=_w().securityLevel;h.info("config:",r);const a=r.nodeSpacing||50,s=r.rankSpacing||50,c=new fD({multigraph:!0,compound:!0}).setGraph({rankdir:i.db.getDirection(),nodesep:a,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),l=i.db.getClasses(),u=i.db.getRelations(),d=i.db.getNotes();let f;h.info(u),dP(l,c,e,i),gP(u,c),fP(d,c,u.length+1,l),"sandbox"===o&&(f=un("#i"+e));const g=un("sandbox"===o?f.nodes()[0].contentDocument.body:"body"),p=g.select(`[id="${e}"]`),m=g.select("#"+e+" g");if(lP(m,c,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",e),kb.insertTitle(p,"classTitleText",r.titleTopMargin,i.db.getDiagramTitle()),Pw(c,p,r.diagramPadding,r.useMaxWidth),!r.htmlLabels){const t="sandbox"===o?f.nodes()[0].contentDocument:document,n=t.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of n){const n=e.getBBox(),i=t.createElementNS("http://www.w3.org/2000/svg","rect");i.setAttribute("rx",0),i.setAttribute("ry",0),i.setAttribute("width",n.width),i.setAttribute("height",n.height),e.insertBefore(i,e.firstChild)}}}};var bP=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,5],i=[6,9,11,23,25,27,29,30,31,51],r=[1,17],o=[1,18],a=[1,19],s=[1,20],c=[1,21],l=[1,22],u=[1,25],h=[1,30],d=[1,31],f=[1,32],g=[1,33],p=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],m=[1,45],b=[30,31,48,49],w=[4,6,9,11,23,25,27,29,30,31,51],k=[44,45,46,47],v=[22,37],y=[1,65],_=[1,64],C=[22,37,39,41],A={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:o[s-1].push(o[s]),this.$=o[s-1];break;case 5:case 6:case 20:case 43:case 28:case 29:case 32:this.$=o[s];break;case 12:i.addEntity(o[s-4]),i.addEntity(o[s-2]),i.addRelationship(o[s-4],o[s],o[s-2],o[s-3]);break;case 13:i.addEntity(o[s-3]),i.addAttributes(o[s-3],o[s-1]);break;case 14:i.addEntity(o[s-2]);break;case 15:i.addEntity(o[s]);break;case 16:case 17:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 21:case 41:case 42:case 33:this.$=o[s].replace(/"/g,"");break;case 22:case 30:this.$=[o[s]];break;case 23:o[s].push(o[s-1]),this.$=o[s];break;case 24:this.$={attributeType:o[s-1],attributeName:o[s]};break;case 25:this.$={attributeType:o[s-2],attributeName:o[s-1],attributeKeyTypeList:o[s]};break;case 26:this.$={attributeType:o[s-2],attributeName:o[s-1],attributeComment:o[s]};break;case 27:this.$={attributeType:o[s-3],attributeName:o[s-2],attributeKeyTypeList:o[s-1],attributeComment:o[s]};break;case 31:o[s-2].push(o[s]),this.$=o[s-2];break;case 34:this.$={cardA:o[s],relType:o[s-1],cardB:o[s-2]};break;case 35:this.$=i.Cardinality.ZERO_OR_ONE;break;case 36:this.$=i.Cardinality.ZERO_OR_MORE;break;case 37:this.$=i.Cardinality.ONE_OR_MORE;break;case 38:this.$=i.Cardinality.ONLY_ONE;break;case 39:this.$=i.Identification.NON_IDENTIFYING;break;case 40:this.$=i.Identification.IDENTIFYING;break;case 44:i.parseDirective("%%{","open_directive");break;case 45:i.parseDirective(o[s],"type_directive");break;case 46:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 47:i.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:e,7:3,12:4,51:n},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,51:n},{13:8,52:[1,9]},{52:[2,44]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:r,25:o,27:a,29:s,30:c,31:l,51:n},{1:[2,2]},{14:23,15:[1,24],54:u},t([15,54],[2,45]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:15,10:26,12:4,17:16,23:r,25:o,27:a,29:s,30:c,31:l,51:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),t(i,[2,15],{18:27,42:29,20:[1,28],44:h,45:d,46:f,47:g}),{24:[1,34]},{26:[1,35]},{28:[1,36]},t(i,[2,19]),t(p,[2,20]),t(p,[2,21]),{11:[1,37]},{16:38,53:[1,39]},{11:[2,47]},t(i,[2,5]),{17:40,30:c,31:l},{21:41,22:[1,42],32:43,33:44,37:m},{43:46,48:[1,47],49:[1,48]},t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),t(b,[2,38]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(w,[2,9]),{14:49,54:u},{54:[2,46]},{15:[1,50]},{22:[1,51]},t(i,[2,14]),{21:52,22:[2,22],32:43,33:44,37:m},{34:53,37:[1,54]},{37:[2,28]},{42:55,44:h,45:d,46:f,47:g},t(k,[2,39]),t(k,[2,40]),{11:[1,56]},{19:57,30:[1,60],31:[1,59],50:[1,58]},t(i,[2,13]),{22:[2,23]},t(v,[2,24],{35:61,36:62,38:63,40:y,41:_}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(w,[2,10]),t(i,[2,12]),t(i,[2,41]),t(i,[2,42]),t(i,[2,43]),t(v,[2,25],{36:66,39:[1,67],41:_}),t(v,[2,26]),t(C,[2,30]),t(v,[2,33]),t(C,[2,32]),t(v,[2,27]),{38:68,40:y},t(C,[2,31])],defaultActions:{5:[2,44],7:[2,2],25:[2,47],39:[2,46],45:[2,28],52:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:case 13:case 15:case 22:case 27:break;case 14:return 11;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 23:return 40;case 24:case 25:return 37;case 26:return 41;case 28:return this.popState(),22;case 29:case 58:return e.yytext[0];case 30:case 34:case 35:case 48:return 44;case 31:case 32:case 33:case 41:case 43:case 50:return 46;case 36:case 37:case 38:case 39:case 40:case 42:case 49:return 45;case 44:case 45:case 46:case 47:return 47;case 51:case 54:case 55:case 56:return 48;case 52:case 53:return 49;case 57:return 30;case 59:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],inclusive:!0}}};function E(){this.yy={}}return A.lexer=x,E.prototype=A,A.Parser=E,new E}();bP.parser=bP;const wP=bP,kP=t=>null!==t.match(/^\s*erDiagram/);let vP={},yP=[];const _P=function(t){return void 0===vP[t]&&(vP[t]={attributes:[]},h.info("Added new entity :",t)),vP[t]},CP=function(t,e){let n,i=_P(t);for(n=e.length-1;n>=0;n--)i.attributes.push(e[n]),h.debug("Added attribute ",e[n].attributeName)},AP={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().er,addEntity:_P,addAttributes:CP,getEntities:()=>vP,addRelationship:function(t,e,n,i){let r={entityA:t,roleA:e,entityB:n,relSpec:i};yP.push(r),h.debug("Added new relationship :",r)},getRelationships:()=>yP,clear:function(){vP={},yP=[],Jw()},setAccTitle:tk,getAccTitle:ek,setAccDescription:nk,getAccDescription:ik,setDiagramTitle:rk,getDiagramTitle:ok},xP={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"},EP={ERMarkers:xP,insertMarkers:function(t,e){let n;t.append("defs").append("marker").attr("id",xP.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",xP.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),n=t.append("defs").append("marker").attr("id",xP.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M9,0 L9,18"),n=t.append("defs").append("marker").attr("id",xP.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,0 L21,18"),t.append("defs").append("marker").attr("id",xP.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",xP.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),n=t.append("defs").append("marker").attr("id",xP.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),n=t.append("defs").append("marker").attr("id",xP.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",e.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",e.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}},TP=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function SP(t){return"string"==typeof t&&TP.test(t)}const DP=[];for(let t=0;t<256;++t)DP.push((t+256).toString(16).slice(1));function IP(t,e=0){return(DP[t[e+0]]+DP[t[e+1]]+DP[t[e+2]]+DP[t[e+3]]+"-"+DP[t[e+4]]+DP[t[e+5]]+"-"+DP[t[e+6]]+DP[t[e+7]]+"-"+DP[t[e+8]]+DP[t[e+9]]+"-"+DP[t[e+10]]+DP[t[e+11]]+DP[t[e+12]]+DP[t[e+13]]+DP[t[e+14]]+DP[t[e+15]]).toLowerCase()}function BP(t){if(!SP(t))throw TypeError("Invalid UUID");let e;const n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function MP(t){t=unescape(encodeURIComponent(t));const e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}const PP="6ba7b810-9dad-11d1-80b4-00c04fd430c8",LP="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function OP(t,e,n){function i(t,i,r,o){var a;if("string"==typeof t&&(t=MP(t)),"string"==typeof i&&(i=BP(i)),16!==(null===(a=i)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+t.length);if(s.set(i),s.set(t,i.length),s=n(s),s[6]=15&s[6]|e,s[8]=63&s[8]|128,r){o=o||0;for(let t=0;t<16;++t)r[o+t]=s[t];return r}return IP(s)}try{i.name=t}catch(t){}return i.DNS=PP,i.URL=LP,i}function NP(t,e,n,i){switch(t){case 0:return e&n^~e&i;case 1:case 3:return e^n^i;case 2:return e&n^e&i^n&i}}function RP(t,e){return t<<e|t>>>32-e}function FP(t){const e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const e=unescape(encodeURIComponent(t));t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const i=t.length/4+2,r=Math.ceil(i/16),o=new Array(r);for(let e=0;e<r;++e){const n=new Uint32Array(16);for(let i=0;i<16;++i)n[i]=t[64*e+4*i]<<24|t[64*e+4*i+1]<<16|t[64*e+4*i+2]<<8|t[64*e+4*i+3];o[e]=n}o[r-1][14]=8*(t.length-1)/Math.pow(2,32),o[r-1][14]=Math.floor(o[r-1][14]),o[r-1][15]=8*(t.length-1)&4294967295;for(let t=0;t<r;++t){const i=new Uint32Array(80);for(let e=0;e<16;++e)i[e]=o[t][e];for(let t=16;t<80;++t)i[t]=RP(i[t-3]^i[t-8]^i[t-14]^i[t-16],1);let r=n[0],a=n[1],s=n[2],c=n[3],l=n[4];for(let t=0;t<80;++t){const n=Math.floor(t/20),o=RP(r,5)+NP(n,a,s,c)+l+e[n]+i[t]>>>0;l=c,c=s,s=RP(a,30)>>>0,a=r,r=o}n[0]=n[0]+r>>>0,n[1]=n[1]+a>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}const jP=OP("v5",80,FP),$P=/[^\dA-Za-z](\W)*/g;let zP={},VP=new Map;const HP=(t,e,n)=>{const i=zP.entityPadding/3,r=zP.entityPadding/3,o=.85*zP.fontSize,a=e.node().getBBox(),s=[];let c=!1,l=!1,u=0,h=0,d=0,f=0,g=a.height+2*i,p=1;n.forEach((t=>{void 0!==t.attributeKeyTypeList&&t.attributeKeyTypeList.length>0&&(c=!0),void 0!==t.attributeComment&&(l=!0)})),n.forEach((n=>{const r=`${e.node().id}-attr-${p}`;let a=0;const m=Qh(n.attributeType),b=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",_w().fontFamily).style("font-size",o+"px").text(m),w=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",_w().fontFamily).style("font-size",o+"px").text(n.attributeName),k={};k.tn=b,k.nn=w;const v=b.node().getBBox(),y=w.node().getBBox();if(u=Math.max(u,v.width),h=Math.max(h,y.width),a=Math.max(v.height,y.height),c){const e=void 0!==n.attributeKeyTypeList?n.attributeKeyTypeList.join(","):"",i=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",_w().fontFamily).style("font-size",o+"px").text(e);k.kn=i;const s=i.node().getBBox();d=Math.max(d,s.width),a=Math.max(a,s.height)}if(l){const e=t.append("text").classed("er entityLabel",!0).attr("id",`${r}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",_w().fontFamily).style("font-size",o+"px").text(n.attributeComment||"");k.cn=e;const i=e.node().getBBox();f=Math.max(f,i.width),a=Math.max(a,i.height)}k.height=a,s.push(k),g+=a+2*i,p+=1}));let m=4;c&&(m+=2),l&&(m+=2);const b=u+h+d+f,w={width:Math.max(zP.minEntityWidth,Math.max(a.width+2*zP.entityPadding,b+r*m)),height:n.length>0?g:Math.max(zP.minEntityHeight,a.height+2*zP.entityPadding)};if(n.length>0){const n=Math.max(0,(w.width-b-r*m)/(m/2));e.attr("transform","translate("+w.width/2+","+(i+a.height/2)+")");let o=a.height+2*i,g="attributeBoxOdd";s.forEach((e=>{const a=o+i+e.height/2;e.tn.attr("transform","translate("+r+","+a+")");const s=t.insert("rect","#"+e.tn.node().id).classed(`er ${g}`,!0).attr("x",0).attr("y",o).attr("width",u+2*r+n).attr("height",e.height+2*i),p=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));e.nn.attr("transform","translate("+(p+r)+","+a+")");const m=t.insert("rect","#"+e.nn.node().id).classed(`er ${g}`,!0).attr("x",p).attr("y",o).attr("width",h+2*r+n).attr("height",e.height+2*i);let b=parseFloat(m.attr("x"))+parseFloat(m.attr("width"));if(c){e.kn.attr("transform","translate("+(b+r)+","+a+")");const s=t.insert("rect","#"+e.kn.node().id).classed(`er ${g}`,!0).attr("x",b).attr("y",o).attr("width",d+2*r+n).attr("height",e.height+2*i);b=parseFloat(s.attr("x"))+parseFloat(s.attr("width"))}l&&(e.cn.attr("transform","translate("+(b+r)+","+a+")"),t.insert("rect","#"+e.cn.node().id).classed(`er ${g}`,"true").attr("x",b).attr("y",o).attr("width",f+2*r+n).attr("height",e.height+2*i)),o+=e.height+2*i,g="attributeBoxOdd"===g?"attributeBoxEven":"attributeBoxOdd"}))}else w.height=Math.max(zP.minEntityHeight,g),e.attr("transform","translate("+w.width/2+","+w.height/2+")");return w},qP=function(t,e,n){let i;return Object.keys(e).forEach((function(r){const o=ZP(r,"entity");VP.set(r,o);const a=t.append("g").attr("id",o);i=void 0===i?o:i;const s="text-"+o,c=a.append("text").classed("er entityLabel",!0).attr("id",s).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",_w().fontFamily).style("font-size",zP.fontSize+"px").text(r),{width:l,height:u}=HP(a,c,e[r].attributes),h=a.insert("rect","#"+s).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",l).attr("height",u).node().getBBox();n.setNode(o,{width:h.width,height:h.height,shape:"rect",id:o})})),i},UP=function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )")}))},GP=function(t){return(t.entityA+t.roleA+t.entityB).replace(/\s/g,"")},WP=function(t,e){return t.forEach((function(t){e.setEdge(VP.get(t.entityA),VP.get(t.entityB),{relationship:t},GP(t))})),t};let KP=0;const YP=function(t,e,n,i,r){KP++;const o=n.edge(VP.get(e.entityA),VP.get(e.entityB),GP(e)),a=$l().x((function(t){return t.x})).y((function(t){return t.y})).curve(Xl),s=t.insert("path","#"+i).classed("er relationshipLine",!0).attr("d",a(o.points)).style("stroke",zP.stroke).style("fill","none");e.relSpec.relType===r.db.Identification.NON_IDENTIFYING&&s.attr("stroke-dasharray","8,8");let c="";switch(zP.arrowMarkerAbsolute&&(c=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,c=c.replace(/\(/g,"\\("),c=c.replace(/\)/g,"\\)")),e.relSpec.cardA){case r.db.Cardinality.ZERO_OR_ONE:s.attr("marker-end","url("+c+"#"+EP.ERMarkers.ZERO_OR_ONE_END+")");break;case r.db.Cardinality.ZERO_OR_MORE:s.attr("marker-end","url("+c+"#"+EP.ERMarkers.ZERO_OR_MORE_END+")");break;case r.db.Cardinality.ONE_OR_MORE:s.attr("marker-end","url("+c+"#"+EP.ERMarkers.ONE_OR_MORE_END+")");break;case r.db.Cardinality.ONLY_ONE:s.attr("marker-end","url("+c+"#"+EP.ERMarkers.ONLY_ONE_END+")")}switch(e.relSpec.cardB){case r.db.Cardinality.ZERO_OR_ONE:s.attr("marker-start","url("+c+"#"+EP.ERMarkers.ZERO_OR_ONE_START+")");break;case r.db.Cardinality.ZERO_OR_MORE:s.attr("marker-start","url("+c+"#"+EP.ERMarkers.ZERO_OR_MORE_START+")");break;case r.db.Cardinality.ONE_OR_MORE:s.attr("marker-start","url("+c+"#"+EP.ERMarkers.ONE_OR_MORE_START+")");break;case r.db.Cardinality.ONLY_ONE:s.attr("marker-start","url("+c+"#"+EP.ERMarkers.ONLY_ONE_START+")")}const l=s.node().getTotalLength(),u=s.node().getPointAtLength(.5*l),h="rel"+KP,d=t.append("text").classed("er relationshipLabel",!0).attr("id",h).attr("x",u.x).attr("y",u.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",_w().fontFamily).style("font-size",zP.fontSize+"px").text(e.roleA).node().getBBox();t.insert("rect","#"+h).classed("er relationshipLabelBox",!0).attr("x",u.x-d.width/2).attr("y",u.y-d.height/2).attr("width",d.width).attr("height",d.height)},XP="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function ZP(t="",e=""){const n=t.replace($P,"");return`${QP(e)}${QP(n)}${jP(t,XP)}`}function QP(t=""){return t.length>0?`${t}-`:""}const JP={setConf:function(t){const e=Object.keys(t);for(const n of e)zP[n]=t[n]},draw:function(t,e,n,i){zP=_w().er,h.info("Drawing ER diagram");const r=_w().securityLevel;let o;"sandbox"===r&&(o=un("#i"+e));const a=un("sandbox"===r?o.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);let s;EP.insertMarkers(a,zP),s=new fD({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:zP.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));const c=qP(a,i.db.getEntities(),s),l=WP(i.db.getRelationships(),s);kB(s),UP(a,s),l.forEach((function(t){YP(a,t,s,c,i)}));const u=zP.diagramPadding;kb.insertTitle(a,"entityTitleText",zP.titleTopMargin,i.db.getDiagramTitle());const d=a.node().getBBox(),f=d.width+2*u,g=d.height+2*u;Mw(a,g,f,zP.useMaxWidth),a.attr("viewBox",`${d.x-u} ${d.y-u} ${f} ${g}`)}};var tL=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,9],n=[1,7],i=[1,6],r=[1,8],o=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],a=[2,10],s=[1,20],c=[1,21],l=[1,22],u=[1,23],h=[1,30],d=[1,32],f=[1,33],g=[1,34],p=[1,62],m=[1,48],b=[1,52],w=[1,36],k=[1,37],v=[1,38],y=[1,39],_=[1,40],C=[1,56],A=[1,63],x=[1,51],E=[1,53],T=[1,55],S=[1,59],D=[1,60],I=[1,41],B=[1,42],M=[1,43],P=[1,44],L=[1,61],O=[1,50],N=[1,54],R=[1,57],F=[1,58],j=[1,49],$=[1,66],z=[1,71],V=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],H=[1,75],q=[1,74],U=[1,76],G=[20,21,23,81,82],W=[1,99],K=[1,104],Y=[1,107],X=[1,108],Z=[1,101],Q=[1,106],J=[1,109],tt=[1,102],et=[1,114],nt=[1,113],it=[1,103],rt=[1,105],ot=[1,110],at=[1,111],st=[1,112],ct=[1,115],lt=[20,21,22,23,81,82],ut=[20,21,22,23,53,81,82],ht=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],dt=[20,21,23],ft=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],gt=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],pt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],mt=[1,149],bt=[1,157],wt=[1,158],kt=[1,159],vt=[1,160],yt=[1,144],_t=[1,145],Ct=[1,141],At=[1,152],xt=[1,153],Et=[1,154],Tt=[1,155],St=[1,156],Dt=[1,161],It=[1,162],Bt=[1,147],Mt=[1,150],Pt=[1,146],Lt=[1,143],Ot=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Nt=[1,165],Rt=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Ft=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],jt=[12,21,22,24],$t=[22,106],zt=[1,250],Vt=[1,245],Ht=[1,246],qt=[1,254],Ut=[1,251],Gt=[1,248],Wt=[1,247],Kt=[1,249],Yt=[1,252],Xt=[1,253],Zt=[1,255],Qt=[1,273],Jt=[20,21,23,106],te=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ee={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 5:i.parseDirective("%%{","open_directive");break;case 6:i.parseDirective(o[s],"type_directive");break;case 7:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 8:i.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:(!Array.isArray(o[s])||o[s].length>0)&&o[s-1].push(o[s]),this.$=o[s-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=o[s];break;case 19:i.setDirection("TB"),this.$="TB";break;case 20:i.setDirection(o[s-1]),this.$=o[s-1];break;case 35:this.$=o[s-1].nodes;break;case 41:this.$=i.addSubGraph(o[s-6],o[s-1],o[s-4]);break;case 42:this.$=i.addSubGraph(o[s-3],o[s-1],o[s-3]);break;case 43:this.$=i.addSubGraph(void 0,o[s-1],void 0);break;case 45:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 46:case 47:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 51:i.addLink(o[s-2].stmt,o[s],o[s-1]),this.$={stmt:o[s],nodes:o[s].concat(o[s-2].nodes)};break;case 52:i.addLink(o[s-3].stmt,o[s-1],o[s-2]),this.$={stmt:o[s-1],nodes:o[s-1].concat(o[s-3].nodes)};break;case 53:this.$={stmt:o[s-1],nodes:o[s-1]};break;case 54:this.$={stmt:o[s],nodes:o[s]};break;case 55:case 123:case 125:this.$=[o[s]];break;case 56:this.$=o[s-4].concat(o[s]);break;case 57:this.$=[o[s-2]],i.setClass(o[s-2],o[s]);break;case 58:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"square");break;case 59:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"doublecircle");break;case 60:this.$=o[s-5],i.addVertex(o[s-5],o[s-2],"circle");break;case 61:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"ellipse");break;case 62:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"stadium");break;case 63:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"subroutine");break;case 64:this.$=o[s-7],i.addVertex(o[s-7],o[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[o[s-5],o[s-3]]]));break;case 65:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"cylinder");break;case 66:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"round");break;case 67:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"diamond");break;case 68:this.$=o[s-5],i.addVertex(o[s-5],o[s-2],"hexagon");break;case 69:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"odd");break;case 70:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"trapezoid");break;case 71:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"inv_trapezoid");break;case 72:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"lean_right");break;case 73:this.$=o[s-3],i.addVertex(o[s-3],o[s-1],"lean_left");break;case 74:this.$=o[s],i.addVertex(o[s]);break;case 75:o[s-1].text=o[s],this.$=o[s-1];break;case 76:case 77:o[s-2].text=o[s-1],this.$=o[s-2];break;case 79:var c=i.destructLink(o[s],o[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:o[s-1]};break;case 80:c=i.destructLink(o[s]),this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 81:this.$=o[s-1];break;case 83:case 97:case 153:case 151:this.$=o[s-1]+""+o[s];break;case 98:case 99:this.$=o[s-4],i.addClass(o[s-2],o[s]);break;case 100:this.$=o[s-4],i.setClass(o[s-2],o[s]);break;case 101:case 109:this.$=o[s-1],i.setClickEvent(o[s-1],o[s]);break;case 102:case 110:this.$=o[s-3],i.setClickEvent(o[s-3],o[s-2]),i.setTooltip(o[s-3],o[s]);break;case 103:this.$=o[s-2],i.setClickEvent(o[s-2],o[s-1],o[s]);break;case 104:this.$=o[s-4],i.setClickEvent(o[s-4],o[s-3],o[s-2]),i.setTooltip(o[s-4],o[s]);break;case 105:case 111:this.$=o[s-1],i.setLink(o[s-1],o[s]);break;case 106:case 112:this.$=o[s-3],i.setLink(o[s-3],o[s-2]),i.setTooltip(o[s-3],o[s]);break;case 107:case 113:this.$=o[s-3],i.setLink(o[s-3],o[s-2],o[s]);break;case 108:case 114:this.$=o[s-5],i.setLink(o[s-5],o[s-4],o[s]),i.setTooltip(o[s-5],o[s-2]);break;case 115:this.$=o[s-4],i.addVertex(o[s-2],void 0,void 0,o[s]);break;case 116:case 118:this.$=o[s-4],i.updateLink(o[s-2],o[s]);break;case 117:this.$=o[s-4],i.updateLink([o[s-2]],o[s]);break;case 119:this.$=o[s-8],i.updateLinkInterpolate([o[s-6]],o[s-2]),i.updateLink([o[s-6]],o[s]);break;case 120:this.$=o[s-8],i.updateLinkInterpolate(o[s-6],o[s-2]),i.updateLink(o[s-6],o[s]);break;case 121:this.$=o[s-6],i.updateLinkInterpolate([o[s-4]],o[s]);break;case 122:this.$=o[s-6],i.updateLinkInterpolate(o[s-4],o[s]);break;case 124:case 126:o[s-2].push(o[s]),this.$=o[s-2];break;case 128:this.$=o[s-1]+o[s];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:e,16:4,21:n,22:i,24:r},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:n,22:i,24:r},t(o,a,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:i,24:r},{16:15,21:n,22:i,24:r},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:c,22:l,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:31,44:d,46:f,48:g,50:35,51:45,52:p,54:46,66:m,67:b,86:w,87:k,88:v,89:y,90:_,91:C,95:A,105:x,106:E,109:T,111:S,112:D,116:47,118:I,119:B,120:M,121:P,122:L,123:O,124:N,125:R,126:F,127:j},{8:64,10:[1,65],15:$},t([10,15],[2,6]),t(o,[2,17]),t(o,[2,18]),t(o,[2,19]),{20:[1,68],21:[1,69],22:z,27:67,30:70},t(V,[2,11]),t(V,[2,12]),t(V,[2,13]),t(V,[2,14]),t(V,[2,15]),t(V,[2,16]),{9:72,20:H,21:q,23:U,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:H,21:q,23:U},{9:81,20:H,21:q,23:U},{9:82,20:H,21:q,23:U},{9:83,20:H,21:q,23:U},{9:84,20:H,21:q,23:U},{9:86,20:H,21:q,22:[1,85],23:U},t(V,[2,44]),{45:[1,87]},{47:[1,88]},t(V,[2,47]),t(G,[2,54],{30:89,22:z}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:W,52:K,66:Y,67:X,84:[1,97],91:Z,97:96,98:[1,94],100:[1,95],105:Q,106:J,109:tt,111:et,112:nt,115:100,117:98,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(V,[2,158]),t(V,[2,159]),t(V,[2,160]),t(V,[2,161]),t(lt,[2,55],{53:[1,116]}),t(ut,[2,74],{116:129,40:[1,117],52:p,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:m,67:b,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:C,95:A,105:x,106:E,109:T,111:S,112:D,122:L,123:O,124:N,125:R,126:F,127:j}),t(ht,[2,150]),t(ht,[2,175]),t(ht,[2,176]),t(ht,[2,177]),t(ht,[2,178]),t(ht,[2,179]),t(ht,[2,180]),t(ht,[2,181]),t(ht,[2,182]),t(ht,[2,183]),t(ht,[2,184]),t(ht,[2,185]),t(ht,[2,186]),t(ht,[2,187]),t(ht,[2,188]),t(ht,[2,189]),t(ht,[2,190]),{9:130,20:H,21:q,23:U},{11:131,14:[1,132]},t(dt,[2,8]),t(o,[2,20]),t(o,[2,26]),t(o,[2,27]),{21:[1,133]},t(ft,[2,34],{30:134,22:z}),t(V,[2,35]),{50:135,51:45,52:p,54:46,66:m,67:b,91:C,95:A,105:x,106:E,109:T,111:S,112:D,116:47,122:L,123:O,124:N,125:R,126:F,127:j},t(gt,[2,48]),t(gt,[2,49]),t(gt,[2,50]),t(pt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:mt,24:bt,26:wt,38:kt,39:139,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),t(V,[2,36]),t(V,[2,37]),t(V,[2,38]),t(V,[2,39]),t(V,[2,40]),{22:mt,24:bt,26:wt,38:kt,39:163,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(Ot,a,{17:164}),t(V,[2,45]),t(V,[2,46]),t(G,[2,53],{52:Nt}),{26:W,52:K,66:Y,67:X,91:Z,97:166,102:[1,167],105:Q,106:J,109:tt,111:et,112:nt,115:100,117:98,122:it,123:rt,124:ot,125:at,126:st,127:ct},{95:[1,168],103:169,105:[1,170]},{26:W,52:K,66:Y,67:X,91:Z,95:[1,171],97:172,105:Q,106:J,109:tt,111:et,112:nt,115:100,117:98,122:it,123:rt,124:ot,125:at,126:st,127:ct},{26:W,52:K,66:Y,67:X,91:Z,97:173,105:Q,106:J,109:tt,111:et,112:nt,115:100,117:98,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(dt,[2,101],{22:[1,174],99:[1,175]}),t(dt,[2,105],{22:[1,176]}),t(dt,[2,109],{115:100,117:178,22:[1,177],26:W,52:K,66:Y,67:X,91:Z,105:Q,106:J,109:tt,111:et,112:nt,122:it,123:rt,124:ot,125:at,126:st,127:ct}),t(dt,[2,111],{22:[1,179]}),t(Rt,[2,152]),t(Rt,[2,154]),t(Rt,[2,155]),t(Rt,[2,156]),t(Rt,[2,157]),t(Ft,[2,162]),t(Ft,[2,163]),t(Ft,[2,164]),t(Ft,[2,165]),t(Ft,[2,166]),t(Ft,[2,167]),t(Ft,[2,168]),t(Ft,[2,169]),t(Ft,[2,170]),t(Ft,[2,171]),t(Ft,[2,172]),t(Ft,[2,173]),t(Ft,[2,174]),{52:p,54:180,66:m,67:b,91:C,95:A,105:x,106:E,109:T,111:S,112:D,116:47,122:L,123:O,124:N,125:R,126:F,127:j},{22:mt,24:bt,26:wt,38:kt,39:181,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:182,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:184,42:vt,52:K,57:[1,183],66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:185,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:186,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:187,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{66:[1,188]},{22:mt,24:bt,26:wt,38:kt,39:189,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:190,42:vt,52:K,66:Y,67:X,71:[1,191],73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:192,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:193,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:194,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(ht,[2,151]),t(jt,[2,3]),{8:195,15:$},{15:[2,7]},t(o,[2,28]),t(ft,[2,33]),t(G,[2,51],{30:196,22:z}),t(pt,[2,75],{22:[1,197]}),{22:[1,198]},{22:mt,24:bt,26:wt,38:kt,39:199,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,66:Y,67:X,73:yt,81:_t,82:[1,200],83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(Ft,[2,82]),t(Ft,[2,84]),t(Ft,[2,140]),t(Ft,[2,141]),t(Ft,[2,142]),t(Ft,[2,143]),t(Ft,[2,144]),t(Ft,[2,145]),t(Ft,[2,146]),t(Ft,[2,147]),t(Ft,[2,148]),t(Ft,[2,149]),t(Ft,[2,85]),t(Ft,[2,86]),t(Ft,[2,87]),t(Ft,[2,88]),t(Ft,[2,89]),t(Ft,[2,90]),t(Ft,[2,91]),t(Ft,[2,92]),t(Ft,[2,93]),t(Ft,[2,94]),t(Ft,[2,95]),{9:203,20:H,21:q,22:mt,23:U,24:bt,26:wt,38:kt,40:[1,202],42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,204],43:31,44:d,46:f,48:g,50:35,51:45,52:p,54:46,66:m,67:b,86:w,87:k,88:v,89:y,90:_,91:C,95:A,105:x,106:E,109:T,111:S,112:D,116:47,118:I,119:B,120:M,121:P,122:L,123:O,124:N,125:R,126:F,127:j},{22:z,30:205},{22:[1,206],26:W,52:K,66:Y,67:X,91:Z,105:Q,106:J,109:tt,111:et,112:nt,115:100,117:178,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},t($t,[2,123]),{22:[1,211]},{22:[1,212],26:W,52:K,66:Y,67:X,91:Z,105:Q,106:J,109:tt,111:et,112:nt,115:100,117:178,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:[1,213],26:W,52:K,66:Y,67:X,91:Z,105:Q,106:J,109:tt,111:et,112:nt,115:100,117:178,122:it,123:rt,124:ot,125:at,126:st,127:ct},{84:[1,214]},t(dt,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},t(Rt,[2,153]),{84:[1,219],101:[1,220]},t(lt,[2,57],{116:129,52:p,66:m,67:b,91:C,95:A,105:x,106:E,109:T,111:S,112:D,122:L,123:O,124:N,125:R,126:F,127:j}),{22:mt,24:bt,26:wt,38:kt,41:[1,221],42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,56:[1,222],66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:223,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,58:[1,224],66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,60:[1,225],66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,62:[1,226],66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,64:[1,227],66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{67:[1,228]},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,66:Y,67:X,70:[1,229],73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,66:Y,67:X,72:[1,230],73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,39:231,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,41:[1,232],42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,66:Y,67:X,73:yt,75:[1,233],77:[1,234],81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,66:Y,67:X,73:yt,75:[1,236],77:[1,235],81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{9:237,20:H,21:q,23:U},t(G,[2,52],{52:Nt}),t(pt,[2,77]),t(pt,[2,76]),{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,66:Y,67:X,68:[1,238],73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(pt,[2,79]),t(Ft,[2,83]),{22:mt,24:bt,26:wt,38:kt,39:239,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(Ot,a,{17:240}),t(V,[2,43]),{51:241,52:p,54:46,66:m,67:b,91:C,95:A,105:x,106:E,109:T,111:S,112:D,116:47,122:L,123:O,124:N,125:R,126:F,127:j},{22:zt,66:Vt,67:Ht,86:qt,96:242,102:Ut,105:Gt,107:243,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},{22:zt,66:Vt,67:Ht,86:qt,96:256,102:Ut,105:Gt,107:243,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},{22:zt,66:Vt,67:Ht,86:qt,96:257,102:Ut,104:[1,258],105:Gt,107:243,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},{22:zt,66:Vt,67:Ht,86:qt,96:259,102:Ut,104:[1,260],105:Gt,107:243,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},{105:[1,261]},{22:zt,66:Vt,67:Ht,86:qt,96:262,102:Ut,105:Gt,107:243,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},{22:zt,66:Vt,67:Ht,86:qt,96:263,102:Ut,105:Gt,107:243,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},{26:W,52:K,66:Y,67:X,91:Z,97:264,105:Q,106:J,109:tt,111:et,112:nt,115:100,117:98,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(dt,[2,102]),{84:[1,265]},t(dt,[2,106],{22:[1,266]}),t(dt,[2,107]),t(dt,[2,110]),t(dt,[2,112],{22:[1,267]}),t(dt,[2,113]),t(ut,[2,58]),t(ut,[2,59]),{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,58:[1,268],66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(ut,[2,66]),t(ut,[2,61]),t(ut,[2,62]),t(ut,[2,63]),{66:[1,269]},t(ut,[2,65]),t(ut,[2,67]),{22:mt,24:bt,26:wt,38:kt,42:vt,52:K,66:Y,67:X,72:[1,270],73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(ut,[2,69]),t(ut,[2,70]),t(ut,[2,72]),t(ut,[2,71]),t(ut,[2,73]),t(jt,[2,4]),t([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:mt,24:bt,26:wt,38:kt,41:[1,271],42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,272],43:31,44:d,46:f,48:g,50:35,51:45,52:p,54:46,66:m,67:b,86:w,87:k,88:v,89:y,90:_,91:C,95:A,105:x,106:E,109:T,111:S,112:D,116:47,118:I,119:B,120:M,121:P,122:L,123:O,124:N,125:R,126:F,127:j},t(lt,[2,56]),t(dt,[2,115],{106:Qt}),t(Jt,[2,125],{108:274,22:zt,66:Vt,67:Ht,86:qt,102:Ut,105:Gt,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt}),t(te,[2,127]),t(te,[2,129]),t(te,[2,130]),t(te,[2,131]),t(te,[2,132]),t(te,[2,133]),t(te,[2,134]),t(te,[2,135]),t(te,[2,136]),t(te,[2,137]),t(te,[2,138]),t(te,[2,139]),t(dt,[2,116],{106:Qt}),t(dt,[2,117],{106:Qt}),{22:[1,275]},t(dt,[2,118],{106:Qt}),{22:[1,276]},t($t,[2,124]),t(dt,[2,98],{106:Qt}),t(dt,[2,99],{106:Qt}),t(dt,[2,100],{115:100,117:178,26:W,52:K,66:Y,67:X,91:Z,105:Q,106:J,109:tt,111:et,112:nt,122:it,123:rt,124:ot,125:at,126:st,127:ct}),t(dt,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:H,21:q,23:U},t(V,[2,42]),{22:zt,66:Vt,67:Ht,86:qt,102:Ut,105:Gt,107:283,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},t(te,[2,128]),{26:W,52:K,66:Y,67:X,91:Z,97:284,105:Q,106:J,109:tt,111:et,112:nt,115:100,117:98,122:it,123:rt,124:ot,125:at,126:st,127:ct},{26:W,52:K,66:Y,67:X,91:Z,97:285,105:Q,106:J,109:tt,111:et,112:nt,115:100,117:98,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(dt,[2,108]),t(dt,[2,114]),t(ut,[2,60]),{22:mt,24:bt,26:wt,38:kt,39:286,42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:140,84:Ct,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},t(ut,[2,68]),t(Ot,a,{17:287}),t(Jt,[2,126],{108:274,22:zt,66:Vt,67:Ht,86:qt,102:Ut,105:Gt,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt}),t(dt,[2,121],{115:100,117:178,22:[1,288],26:W,52:K,66:Y,67:X,91:Z,105:Q,106:J,109:tt,111:et,112:nt,122:it,123:rt,124:ot,125:at,126:st,127:ct}),t(dt,[2,122],{115:100,117:178,22:[1,289],26:W,52:K,66:Y,67:X,91:Z,105:Q,106:J,109:tt,111:et,112:nt,122:it,123:rt,124:ot,125:at,126:st,127:ct}),{22:mt,24:bt,26:wt,38:kt,41:[1,290],42:vt,52:K,66:Y,67:X,73:yt,81:_t,83:201,85:151,86:At,87:xt,88:Et,89:Tt,90:St,91:Dt,92:It,94:142,95:Bt,105:Q,106:J,109:Mt,111:et,112:nt,113:Pt,114:Lt,115:148,122:it,123:rt,124:ot,125:at,126:st,127:ct},{18:18,19:19,20:s,21:c,22:l,23:u,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,291],43:31,44:d,46:f,48:g,50:35,51:45,52:p,54:46,66:m,67:b,86:w,87:k,88:v,89:y,90:_,91:C,95:A,105:x,106:E,109:T,111:S,112:D,116:47,118:I,119:B,120:M,121:P,122:L,123:O,124:N,125:R,126:F,127:j},{22:zt,66:Vt,67:Ht,86:qt,96:292,102:Ut,105:Gt,107:243,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},{22:zt,66:Vt,67:Ht,86:qt,96:293,102:Ut,105:Gt,107:243,108:244,109:Wt,110:Kt,111:Yt,112:Xt,113:Zt},t(ut,[2,64]),t(V,[2,41]),t(dt,[2,119],{106:Qt}),t(dt,[2,120],{106:Qt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},ne={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:case 37:return t.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:case 41:case 42:case 43:return 101;case 44:return this.popState(),25;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:case 68:case 69:return 82;case 70:case 71:case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[44,45,46,47,48,49,50,51,52,53,54],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],inclusive:!0}}};function ie(){this.yy={}}return ee.lexer=ne,ie.prototype=ee,ee.Parser=ie,new ie}();tL.parser=tL;const eL=tL,nL=(t,e)=>{var n,i;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&null!==t.match(/^\s*graph/)},iL=(t,e)=>{var n,i;return"dagre-d3"!==(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(i=null==e?void 0:e.flowchart)?void 0:i.defaultRenderer)&&(null!==t.match(/^\s*graph/)||null!==t.match(/^\s*flowchart/))},rL="flowchart-";let oL,aL,sL=0,cL=_w(),lL={},uL=[],hL={},dL=[],fL={},gL={},pL=0,mL=!0,bL=[];const wL=t=>Jh.sanitizeText(t,cL),kL=function(t,e,n){mH.parseDirective(this,t,e,n)},vL=function(t){const e=Object.keys(lL);for(const n of e)if(lL[n].id===t)return lL[n].domId;return t},yL=function(t,e,n,i,r,o,a={}){let s,c=t;void 0!==c&&0!==c.trim().length&&(void 0===lL[c]&&(lL[c]={id:c,domId:rL+c+"-"+sL,styles:[],classes:[]}),sL++,void 0!==e?(cL=_w(),s=wL(e.trim()),'"'===s[0]&&'"'===s[s.length-1]&&(s=s.substring(1,s.length-1)),lL[c].text=s):void 0===lL[c].text&&(lL[c].text=t),void 0!==n&&(lL[c].type=n),null!=i&&i.forEach((function(t){lL[c].styles.push(t)})),null!=r&&r.forEach((function(t){lL[c].classes.push(t)})),void 0!==o&&(lL[c].dir=o),void 0===lL[c].props?lL[c].props=a:void 0!==a&&Object.assign(lL[c].props,a))},_L=function(t,e,n,i){const r={start:t,end:e,type:void 0,text:""};void 0!==(i=n.text)&&(r.text=wL(i.trim()),'"'===r.text[0]&&'"'===r.text[r.text.length-1]&&(r.text=r.text.substring(1,r.text.length-1))),void 0!==n&&(r.type=n.type,r.stroke=n.stroke,r.length=n.length),uL.push(r)},CL=function(t,e,n,i){let r,o;for(r=0;r<t.length;r++)for(o=0;o<e.length;o++)_L(t[r],e[o],n,i)},AL=function(t,e){t.forEach((function(t){"default"===t?uL.defaultInterpolate=e:uL[t].interpolate=e}))},xL=function(t,e){t.forEach((function(t){"default"===t?uL.defaultStyle=e:(-1===kb.isSubstringInArray("fill",e)&&e.push("fill:none"),uL[t].style=e)}))},EL=function(t,e){void 0===hL[t]&&(hL[t]={id:t,styles:[],textStyles:[]}),null!=e&&e.forEach((function(e){if(e.match("color")){const n=e.replace("fill","bgFill").replace("color","fill");hL[t].textStyles.push(n)}hL[t].styles.push(e)}))},TL=function(t){oL=t,oL.match(/.*</)&&(oL="RL"),oL.match(/.*\^/)&&(oL="BT"),oL.match(/.*>/)&&(oL="LR"),oL.match(/.*v/)&&(oL="TB"),"TD"===oL&&(oL="TB")},SL=function(t,e){t.split(",").forEach((function(t){let n=t;void 0!==lL[n]&&lL[n].classes.push(e),void 0!==fL[n]&&fL[n].classes.push(e)}))},DL=function(t,e){t.split(",").forEach((function(t){void 0!==e&&(gL["gen-1"===aL?vL(t):t]=wL(e))}))},IL=function(t,e,n){let i=vL(t);if("loose"!==_w().securityLevel)return;if(void 0===e)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<r.length;t++){let e=r[t].trim();'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substr(1,e.length-2)),r[t]=e}}0===r.length&&r.push(t),void 0!==lL[t]&&(lL[t].haveCallback=!0,bL.push((function(){const t=document.querySelector(`[id="${i}"]`);null!==t&&t.addEventListener("click",(function(){kb.runFunc(e,...r)}),!1)})))},BL=function(t,e,n){t.split(",").forEach((function(t){void 0!==lL[t]&&(lL[t].link=kb.formatUrl(e,cL),lL[t].linkTarget=n)})),SL(t,"clickable")},ML=function(t){return gL[t]},PL=function(t,e,n){t.split(",").forEach((function(t){IL(t,e,n)})),SL(t,"clickable")},LL=function(t){bL.forEach((function(e){e(t)}))},OL=function(){return oL.trim()},NL=function(){return lL},RL=function(){return uL},FL=function(){return hL},jL=function(t){let e=un(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=un("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),un(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=un(this);if(null===t.attr("title"))return;const n=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/&lt;br\/&gt;/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0),un(this).classed("hover",!1)}))};bL.push(jL);const $L=function(t="gen-1"){lL={},hL={},uL=[],bL=[jL],dL=[],fL={},pL=0,gL=[],mL=!0,aL=t,Jw()},zL=t=>{aL=t||"gen-2"},VL=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},HL=function(t,e,n){let i=t.trim(),r=n;function o(t){const e={boolean:{},number:{},string:{}},n=[];let i;return{nodeList:t.filter((function(t){const r=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(r in e?!e[r].hasOwnProperty(t)&&(e[r][t]=!0):!n.includes(t)&&n.push(t))})),dir:i}}t===n&&n.match(/\s/)&&(i=void 0);let a=[];const{nodeList:s,dir:c}=o(a.concat.apply(a,e));if(a=s,"gen-1"===aL)for(let t=0;t<a.length;t++)a[t]=vL(a[t]);i=i||"subGraph"+pL,r=r||"",r=wL(r),pL+=1;const l={id:i,nodes:a,title:r.trim(),classes:[],dir:c};return h.info("Adding",l.id,l.nodes,l.dir),l.nodes=iO(l,dL).nodes,dL.push(l),fL[i]=l,i},qL=function(t){for(const[e,n]of dL.entries())if(n.id===t)return e;return-1};let UL=-1;const GL=[],WL=function(t,e){const n=dL[e].nodes;if(UL+=1,UL>2e3)return;if(GL[UL]=e,dL[e].id===t)return{result:!0,count:0};let i=0,r=1;for(;i<n.length;){const e=qL(n[i]);if(e>=0){const n=WL(t,e);if(n.result)return{result:!0,count:r+n.count};r+=n.count}i+=1}return{result:!1,count:r}},KL=function(t){return GL[t]},YL=function(){UL=-1,dL.length>0&&WL("none",dL.length-1)},XL=function(){return dL},ZL=()=>!!mL&&(mL=!1,!0),QL=t=>{let e=t.trim(),n="arrow_open";switch(e[0]){case"<":n="arrow_point",e=e.slice(1);break;case"x":n="arrow_cross",e=e.slice(1);break;case"o":n="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:n,stroke:i}},JL=(t,e)=>{const n=e.length;let i=0;for(let r=0;r<n;++r)e[r]===t&&++i;return i},tO=t=>{const e=t.trim();let n=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross","x"===e[0]&&(i="double_"+i,n=n.slice(1));break;case">":i="arrow_point","<"===e[0]&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle","o"===e[0]&&(i="double_"+i,n=n.slice(1))}let r="normal",o=n.length-1;"="===n[0]&&(r="thick");let a=JL(".",n);return a&&(r="dotted",o=a),{type:i,stroke:r,length:o}},eO=(t,e)=>{const n=tO(t);let i;if(e){if(i=QL(e),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===i.type)i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return"double_arrow"===i.type&&(i.type="double_arrow_point"),i.length=n.length,i}return n},nO=(t,e)=>{let n=!1;return t.forEach((t=>{t.nodes.indexOf(e)>=0&&(n=!0)})),n},iO=(t,e)=>{const n=[];return t.nodes.forEach(((i,r)=>{nO(e,i)||n.push(t.nodes[r])})),{nodes:n}},rO={firstGraph:ZL},oO={parseDirective:kL,defaultConfig:()=>hw.flowchart,setAccTitle:tk,getAccTitle:ek,getAccDescription:ik,setAccDescription:nk,addVertex:yL,lookUpDomId:vL,addLink:CL,updateLinkInterpolate:AL,updateLink:xL,addClass:EL,setDirection:TL,setClass:SL,setTooltip:DL,getTooltip:ML,setClickEvent:PL,setLink:BL,bindFunctions:LL,getDirection:OL,getVertices:NL,getEdges:RL,getClasses:FL,clear:$L,setGen:zL,defaultStyle:VL,addSubGraph:HL,getDepthFirstPos:KL,indexNodes:YL,getSubGraphs:XL,destructLink:eO,lex:rO,exists:nO,makeUniq:iO,setDiagramTitle:rk,getDiagramTitle:ok},aO=Object.freeze(Object.defineProperty({__proto__:null,addClass:EL,addLink:CL,addSingleLink:_L,addSubGraph:HL,addVertex:yL,bindFunctions:LL,clear:$L,default:oO,defaultStyle:VL,destructLink:eO,firstGraph:ZL,getClasses:FL,getDepthFirstPos:KL,getDirection:OL,getEdges:RL,getSubGraphs:XL,getTooltip:ML,getVertices:NL,indexNodes:YL,lex:rO,lookUpDomId:vL,parseDirective:kL,setClass:SL,setClickEvent:PL,setDirection:TL,setGen:zL,setLink:BL,updateLink:xL,updateLinkInterpolate:AL},Symbol.toStringTag,{value:"Module"}));function sO(t,e){return!!t.children(e).length}function cO(t){return uO(t.v)+":"+uO(t.w)+":"+uO(t.name)}var lO=/:/g;function uO(t){return t?String(t).replace(lO,"\\:"):""}function hO(t,e){e&&t.attr("style",e)}function dO(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))}function fO(t,e){var n=e.graph();if(NA(n)){var i=n.transition;if(Kp(i))return i(t)}return t}var gO={normal:mO,vee:bO,undirected:wO};function pO(t){gO=t}function mO(t,e,n,i){var r=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");hO(r,n[i+"Style"]),n[i+"Class"]&&r.attr("class",n[i+"Class"])}function bO(t,e,n,i){var r=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");hO(r,n[i+"Style"]),n[i+"Class"]&&r.attr("class",n[i+"Class"])}function wO(t,e,n,i){var r=t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");hO(r,n[i+"Style"]),n[i+"Class"]&&r.attr("class",n[i+"Class"])}function kO(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var r=e.label;switch(typeof r){case"function":i.insert(r);break;case"object":i.insert((function(){return r}));break;default:i.html(r)}hO(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o=i.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}function vO(t,e){var n=t;return n.node().appendChild(e.label),hO(n,e.labelStyle),n}function yO(t,e){for(var n=t.append("text"),i=_O(e.label).split("\n"),r=0;r<i.length;r++)n.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(i[r]);return hO(n,e.labelStyle),n}function _O(t){for(var e,n="",i=!1,r=0;r<t.length;++r)e=t[r],i?(n+="n"===e?"\n":e,i=!1):"\\"===e?i=!0:n+=e;return n}function CO(t,e,n){var i=e.label,r=t.append("g");"svg"===e.labelType?vO(r,e):"string"!=typeof i||"html"===e.labelType?kO(r,e):yO(r,e);var o,a=r.node().getBBox();switch(n){case"top":o=-e.height/2;break;case"bottom":o=e.height/2-a.height;break;default:o=-a.height/2}return r.attr("transform","translate("+-a.width/2+","+o+")"),r}var AO=function(t,e){var n=e.nodes().filter((function(t){return sO(e,t)})),i=t.selectAll("g.cluster").data(n,(function(t){return t}));fO(i.exit(),e).style("opacity",0).remove();var r=i.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0).each((function(t){var n=e.node(t),i=un(this);un(this).append("rect"),CO(i.append("g").attr("class","label"),n,n.clusterLabelPos)}));return(i=fO(i=i.merge(r),e).style("opacity",1)).selectAll("rect").each((function(t){var n=e.node(t);hO(un(this),n.style)})),i};function xO(t){AO=t}let EO=function(t,e){var n=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return cO(t)})).classed("update",!0);return n.exit().remove(),n.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(n=t.selectAll("g.edgeLabel")).each((function(t){var n=un(this);n.select(".label").remove();var i=e.edge(t),r=CO(n,e.edge(t),0).classed("label",!0),o=r.node().getBBox();i.labelId&&r.attr("id",i.labelId),AS(i,"width")||(i.width=o.width),AS(i,"height")||(i.height=o.height)})),fO(n.exit?n.exit():n.selectAll(null),e).style("opacity",0).remove(),n};function TO(t){EO=t}function SO(t,e){return t.intersect(e)}var DO=function(t,e,n){var i=t.selectAll("g.edgePath").data(e.edges(),(function(t){return cO(t)})).classed("update",!0),r=OO(i,e);NO(i,e);var o=void 0!==i.merge?i.merge(r):i;return fO(o,e).style("opacity",1),o.each((function(t){var n=un(this),i=e.edge(t);i.elem=this,i.id&&n.attr("id",i.id),dO(n,i.class,(n.classed("update")?"update ":"")+"edgePath")})),o.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=sD("arrowhead");var i=un(this).attr("marker-end",(function(){return"url("+BO(location.href,n.arrowheadId)+")"})).style("fill","none");fO(i,e).attr("d",(function(t){return MO(e,t)})),hO(i,n.style)})),o.selectAll("defs *").remove(),o.selectAll("defs").each((function(t){var i=e.edge(t);(0,n[i.arrowhead])(un(this),i.arrowheadId,i,"arrowhead")})),o};function IO(t){DO=t}function BO(t,e){return t.split("#")[0]+"#"+e}function MO(t,e){var n=t.edge(e),i=t.node(e.v),r=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(SO(i,o[0])),o.push(SO(r,o[o.length-1])),PO(n,o)}function PO(t,e){var n=($l||Zo.line)().x((function(t){return t.x})).y((function(t){return t.y}));return(n.curve||n.interpolate)(t.curve),n(e)}function LO(t){var e=t.getBBox(),n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2);return{x:n.e,y:n.f}}function OO(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);return n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return PO(n,ZS(n.points.length).map((function(){return LO(i)})))})),n.append("defs"),n}function NO(t,e){fO(t.exit(),e).style("opacity",0).remove()}var RO=function(t,e,n){var i=e.nodes().filter((function(t){return!sO(e,t)})),r=t.selectAll("g.node").data(i,(function(t){return t})).classed("update",!0);return r.exit().remove(),r.enter().append("g").attr("class","node").style("opacity",0),(r=t.selectAll("g.node")).each((function(t){var i=e.node(t),r=un(this);dO(r,i.class,(r.classed("update")?"update ":"")+"node"),r.select("g.label").remove();var o=r.append("g").attr("class","label"),a=CO(o,i),s=n[i.shape],c=GS(a.node().getBBox(),"width","height");i.elem=this,i.id&&r.attr("id",i.id),i.labelId&&o.attr("id",i.labelId),AS(i,"width")&&(c.width=i.width),AS(i,"height")&&(c.height=i.height),c.width+=i.paddingLeft+i.paddingRight,c.height+=i.paddingTop+i.paddingBottom,o.attr("transform","translate("+(i.paddingLeft-i.paddingRight)/2+","+(i.paddingTop-i.paddingBottom)/2+")");var l=un(this);l.select(".label-container").remove();var u=s(l,c,i).classed("label-container",!0);hO(u,i.style);var h=u.node().getBBox();i.width=h.width,i.height=h.height})),fO(r.exit?r.exit():r.selectAll(null),e).style("opacity",0).remove(),r};function FO(t){RO=t}function jO(t,e){var n=t.filter((function(){return!un(this).classed("update")}));function i(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",i),fO(t,e).style("opacity",1).attr("transform",i),fO(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}function $O(t,e){function n(t){var n=e.edge(t);return AS(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!un(this).classed("update")})).attr("transform",n),fO(t,e).style("opacity",1).attr("transform",n)}function zO(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!un(this).classed("update")})).attr("transform",n),fO(t,e).style("opacity",1).attr("transform",n)}function VO(t,e,n,i){var r=t.x,o=t.y,a=r-i.x,s=o-i.y,c=Math.sqrt(e*e*s*s+n*n*a*a),l=Math.abs(e*n*a/c);i.x<r&&(l=-l);var u=Math.abs(e*n*s/c);return i.y<o&&(u=-u),{x:r+l,y:o+u}}function HO(t,e,n){return VO(t,e,e,n)}function qO(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p,m;if(r=e.y-t.y,a=t.x-e.x,c=e.x*t.y-t.x*e.y,d=r*n.x+a*n.y+c,f=r*i.x+a*i.y+c,!(0!==d&&0!==f&&UO(d,f)||(o=i.y-n.y,s=n.x-i.x,l=i.x*n.y-n.x*i.y,u=o*t.x+s*t.y+l,h=o*e.x+s*e.y+l,0!==u&&0!==h&&UO(u,h)||0==(g=r*s-o*a))))return p=Math.abs(g/2),{x:(m=a*l-s*c)<0?(m-p)/g:(m+p)/g,y:(m=o*c-r*l)<0?(m-p)/g:(m+p)/g}}function UO(t,e){return t*e>0}function GO(t,e,n){var i=t.x,r=t.y,o=[],a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;e.forEach((function(t){a=Math.min(a,t.x),s=Math.min(s,t.y)}));for(var c=i-t.width/2-a,l=r-t.height/2-s,u=0;u<e.length;u++){var h=e[u],d=e[u<e.length-1?u+1:0],f=qO(t,n,{x:c+h.x,y:l+h.y},{x:c+d.x,y:l+d.y});f&&o.push(f)}return o.length?(o.length>1&&o.sort((function(t,e){var i=t.x-n.x,r=t.y-n.y,o=Math.sqrt(i*i+r*r),a=e.x-n.x,s=e.y-n.y,c=Math.sqrt(a*a+s*s);return o<c?-1:o===c?0:1})),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}function WO(t,e){var n,i,r=t.x,o=t.y,a=e.x-r,s=e.y-o,c=t.width/2,l=t.height/2;return Math.abs(s)*c>Math.abs(a)*l?(s<0&&(l=-l),n=0===s?0:l*a/s,i=l):(a<0&&(c=-c),n=c,i=0===a?0:c*s/a),{x:r+n,y:o+i}}var KO={rect:XO,ellipse:ZO,circle:QO,diamond:JO};function YO(t){KO=t}function XO(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return WO(n,t)},i}function ZO(t,e,n){var i=e.width/2,r=e.height/2,o=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",i).attr("ry",r);return n.intersect=function(t){return VO(n,i,r,t)},o}function QO(t,e,n){var i=Math.max(e.width,e.height)/2,r=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",i);return n.intersect=function(t){return HO(n,i,t)},r}function JO(t,e,n){var i=e.width*Math.SQRT2/2,r=e.height*Math.SQRT2/2,o=[{x:0,y:-r},{x:-i,y:0},{x:0,y:r},{x:i,y:0}],a=t.insert("polygon",":first-child").attr("points",o.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return GO(n,o,t)},a}function tN(){var t=function(t,e){iN(e);var n=oN(t,"output"),i=oN(n,"clusters"),r=oN(n,"edgePaths"),o=EO(oN(n,"edgeLabels"),e),a=RO(oN(n,"nodes"),e,KO);kB(e),zO(a,e),$O(o,e),DO(r,e,gO),jO(AO(i,e),e),rN(e)};return t.createNodes=function(e){return arguments.length?(FO(e),t):RO},t.createClusters=function(e){return arguments.length?(xO(e),t):AO},t.createEdgeLabels=function(e){return arguments.length?(TO(e),t):EO},t.createEdgePaths=function(e){return arguments.length?(IO(e),t):DO},t.shapes=function(e){return arguments.length?(YO(e),t):KO},t.arrows=function(e){return arguments.length?(pO(e),t):gO},t}var eN={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},nN={arrowhead:"normal",curve:Rl};function iN(t){t.nodes().forEach((function(e){var n=t.node(e);AS(n,"label")||t.children(e).length||(n.label=e),AS(n,"paddingX")&&eS(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),AS(n,"paddingY")&&eS(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),AS(n,"padding")&&eS(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),eS(n,eN),hS(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),AS(n,"width")&&(n._prevWidth=n.width),AS(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);AS(n,"label")||(n.label=""),eS(n,nN)}))}function rN(t){hS(t.nodes(),(function(e){var n=t.node(e);AS(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,AS(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}function oN(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}function aN(t,e,n){const i=.9*(e.width+e.height),r=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}],o=kN(t,i,i,r);return n.intersect=function(t){return GO(n,r,t)},o}function sN(t,e,n){const i=4,r=e.height,o=r/i,a=e.width+2*o,s=[{x:o,y:0},{x:a-o,y:0},{x:a,y:-r/2},{x:a-o,y:-r},{x:o,y:-r},{x:0,y:-r/2}],c=kN(t,a,r,s);return n.intersect=function(t){return GO(n,s,t)},c}function cN(t,e,n){const i=e.width,r=e.height,o=[{x:-r/2,y:0},{x:i,y:0},{x:i,y:-r},{x:-r/2,y:-r},{x:0,y:-r/2}],a=kN(t,i,r,o);return n.intersect=function(t){return GO(n,o,t)},a}function lN(t,e,n){const i=e.width,r=e.height,o=[{x:-2*r/6,y:0},{x:i-r/6,y:0},{x:i+2*r/6,y:-r},{x:r/6,y:-r}],a=kN(t,i,r,o);return n.intersect=function(t){return GO(n,o,t)},a}function uN(t,e,n){const i=e.width,r=e.height,o=[{x:2*r/6,y:0},{x:i+r/6,y:0},{x:i-2*r/6,y:-r},{x:-r/6,y:-r}],a=kN(t,i,r,o);return n.intersect=function(t){return GO(n,o,t)},a}function hN(t,e,n){const i=e.width,r=e.height,o=[{x:-2*r/6,y:0},{x:i+2*r/6,y:0},{x:i-r/6,y:-r},{x:r/6,y:-r}],a=kN(t,i,r,o);return n.intersect=function(t){return GO(n,o,t)},a}function dN(t,e,n){const i=e.width,r=e.height,o=[{x:r/6,y:0},{x:i-r/6,y:0},{x:i+2*r/6,y:-r},{x:-2*r/6,y:-r}],a=kN(t,i,r,o);return n.intersect=function(t){return GO(n,o,t)},a}function fN(t,e,n){const i=e.width,r=e.height,o=[{x:0,y:0},{x:i+r/2,y:0},{x:i,y:-r/2},{x:i+r/2,y:-r},{x:0,y:-r}],a=kN(t,i,r,o);return n.intersect=function(t){return GO(n,o,t)},a}function gN(t,e,n){const i=e.height,r=e.width+i/4,o=t.insert("rect",":first-child").attr("rx",i/2).attr("ry",i/2).attr("x",-r/2).attr("y",-i/2).attr("width",r).attr("height",i);return n.intersect=function(t){return WO(n,t)},o}function pN(t,e,n){const i=e.width,r=e.height,o=[{x:0,y:0},{x:i,y:0},{x:i,y:-r},{x:0,y:-r},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-r},{x:-8,y:-r},{x:-8,y:0}],a=kN(t,i,r,o);return n.intersect=function(t){return GO(n,o,t)},a}function mN(t,e,n){const i=e.width,r=i/2,o=r/(2.5+i/50),a=e.height+o,s="M 0,"+o+" a "+r+","+o+" 0,0,0 "+i+" 0 a "+r+","+o+" 0,0,0 "+-i+" 0 l 0,"+a+" a "+r+","+o+" 0,0,0 "+i+" 0 l 0,"+-a,c=t.attr("label-offset-y",o).insert("path",":first-child").attr("d",s).attr("transform","translate("+-i/2+","+-(a/2+o)+")");return n.intersect=function(t){const e=WO(n,t),i=e.x-n.x;if(0!=r&&(Math.abs(i)<n.width/2||Math.abs(i)==n.width/2&&Math.abs(e.y-n.y)>n.height/2-o)){let a=o*o*(1-i*i/(r*r));0!=a&&(a=Math.sqrt(a)),a=o-a,t.y-n.y>0&&(a=-a),e.y+=a}return e},c}function bN(t){t.shapes().question=aN,t.shapes().hexagon=sN,t.shapes().stadium=gN,t.shapes().subroutine=pN,t.shapes().cylinder=mN,t.shapes().rect_left_inv_arrow=cN,t.shapes().lean_right=lN,t.shapes().lean_left=uN,t.shapes().trapezoid=hN,t.shapes().inv_trapezoid=dN,t.shapes().rect_right_inv_arrow=fN}function wN(t){t({question:aN}),t({hexagon:sN}),t({stadium:gN}),t({subroutine:pN}),t({cylinder:mN}),t({rect_left_inv_arrow:cN}),t({lean_right:lN}),t({lean_left:uN}),t({trapezoid:hN}),t({inv_trapezoid:dN}),t({rect_right_inv_arrow:fN})}function kN(t,e,n,i){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+-e/2+","+n/2+")")}const vN={addToRender:bN,addToRenderV2:wN},yN={},_N=function(t,e,n,i,r,o){const a=i?i.select(`[id="${n}"]`):un(`[id="${n}"]`),s=r||document;Object.keys(t).forEach((function(n){const i=t[n];let r="default";i.classes.length>0&&(r=i.classes.join(" "));const c=eb(i.styles);let l,u=void 0!==i.text?i.text:i.id;if(Zh(_w().flowchart.htmlLabels)){const t={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))};l=kO(a,t).node(),l.parentNode.removeChild(l)}else{const t=s.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",c.labelStyle.replace("color:","fill:"));const e=u.split(Jh.lineBreakRegex);for(const n of e){const e=s.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","1"),e.textContent=n,t.appendChild(e)}l=t}let d=0,f="";switch(i.type){case"round":d=5,f="rect";break;case"square":case"group":default:f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":case"odd_right":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder"}h.warn("Adding node",i.id,i.domId),e.setNode(o.db.lookUpDomId(i.id),{labelType:"svg",labelStyle:c.labelStyle,shape:f,label:l,rx:d,ry:d,class:r,style:c.style,id:o.db.lookUpDomId(i.id)})}))},CN=function(t,e,n){let i,r,o=0;if(void 0!==t.defaultStyle){const e=eb(t.defaultStyle);i=e.style,r=e.labelStyle}t.forEach((function(a){o++;var s="L-"+a.start+"-"+a.end,c="LS-"+a.start,l="LE-"+a.end;const u={};"arrow_open"===a.type?u.arrowhead="none":u.arrowhead="normal";let h="",d="";if(void 0!==a.style){const t=eb(a.style);h=t.style,d=t.labelStyle}else switch(a.stroke){case"normal":h="fill:none",void 0!==i&&(h=i),void 0!==r&&(d=r);break;case"dotted":h="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":h=" stroke-width: 3.5px;fill:none"}u.style=h,u.labelStyle=d,void 0!==a.interpolate?u.curve=Wm(a.interpolate,Rl):void 0!==t.defaultInterpolate?u.curve=Wm(t.defaultInterpolate,Rl):u.curve=Wm(yN.curve,Rl),void 0===a.text?void 0!==a.style&&(u.arrowheadStyle="fill: #333"):(u.arrowheadStyle="fill: #333",u.labelpos="c",Zh(_w().flowchart.htmlLabels)?(u.labelType="html",u.label=`<span id="L-${s}" class="edgeLabel L-${c}' L-${l}" style="${u.labelStyle}">${a.text.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))}</span>`):(u.labelType="text",u.label=a.text.replace(Jh.lineBreakRegex,"\n"),void 0===a.style&&(u.style=u.style||"stroke: #333; stroke-width: 1.5px;fill:none"),u.labelStyle=u.labelStyle.replace("color:","fill:"))),u.id=s,u.class=c+" "+l,u.minlen=a.length||1,e.setEdge(n.db.lookUpDomId(a.start),n.db.lookUpDomId(a.end),u,o)}))},AN=function(t,e,n,i){h.info("Drawing flowchart"),i.db.clear();const{securityLevel:r,flowchart:o}=_w();let a;"sandbox"===r&&(a=un("#i"+e));const s=un("sandbox"===r?a.nodes()[0].contentDocument.body:"body"),c="sandbox"===r?a.nodes()[0].contentDocument:document;try{i.parser.parse(t)}catch(t){h.debug("Parsing failed")}let l=i.db.getDirection();void 0===l&&(l="TD");const u=o.nodeSpacing||50,d=o.rankSpacing||50,f=new fD({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:u,ranksep:d,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));let g;const p=i.db.getSubGraphs();for(let t=p.length-1;t>=0;t--)g=p[t],i.db.addVertex(g.id,g.title,"group",void 0,g.classes);const m=i.db.getVertices();h.warn("Get vertices",m);const b=i.db.getEdges();let w=0;for(w=p.length-1;w>=0;w--){g=p[w],hn("cluster").append("text");for(let t=0;t<g.nodes.length;t++)h.warn("Setting subgraph",g.nodes[t],i.db.lookUpDomId(g.nodes[t]),i.db.lookUpDomId(g.id)),f.setParent(i.db.lookUpDomId(g.nodes[t]),i.db.lookUpDomId(g.id))}_N(m,f,e,s,c,i),CN(b,f,i);const k=new tN;vN.addToRender(k),k.arrows().none=function(t,e,n,i){hO(t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z"),n[i+"Style"])},k.arrows().normal=function(t,e){t.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const v=s.select(`[id="${e}"]`),y=s.select("#"+e+" g");for(k(y,f),y.selectAll("g.node").attr("title",(function(){return i.db.getTooltip(this.id)})),i.db.indexNodes("subGraph"+w),w=0;w<p.length;w++)if(g=p[w],"undefined"!==g.title){const t=c.querySelectorAll("#"+e+' [id="'+i.db.lookUpDomId(g.id)+'"] rect'),n=c.querySelectorAll("#"+e+' [id="'+i.db.lookUpDomId(g.id)+'"]'),r=t[0].x.baseVal.value,o=t[0].y.baseVal.value,a=t[0].width.baseVal.value,s=un(n[0]).select(".label");s.attr("transform",`translate(${r+a/2}, ${o+14})`),s.attr("id",e+"Text");for(let t=0;t<g.classes.length;t++)n[0].classList.add(g.classes[t])}if(!o.htmlLabels){const t=c.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of t){const t=e.getBBox(),n=c.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",t.width),n.setAttribute("height",t.height),e.insertBefore(n,e.firstChild)}}Pw(f,v,o.diagramPadding,o.useMaxWidth),Object.keys(m).forEach((function(t){const n=m[t];if(n.link){const o=s.select("#"+e+' [id="'+i.db.lookUpDomId(t)+'"]');if(o){const t=c.createElementNS("http://www.w3.org/2000/svg","a");t.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),t.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),t.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===r?t.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&t.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);const e=o.insert((function(){return t}),":first-child"),i=o.select(".label-container");i&&e.append((function(){return i.node()}));const a=o.select(".label");a&&e.append((function(){return a.node()}))}}}))},xN={setConf:function(t){const e=Object.keys(t);for(const n of e)yN[n]=t[n]},addVertices:_N,addEdges:CN,getClasses:function(t,e){h.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch(t){return h.error(t),{}}},draw:AN},EN={},TN=function(t,e,n,i,r,o){const a=i.select(`[id="${n}"]`);Object.keys(t).forEach((function(n){const i=t[n];let s="default";i.classes.length>0&&(s=i.classes.join(" "));const c=eb(i.styles);let l,u=void 0!==i.text?i.text:i.id;if(Zh(_w().flowchart.htmlLabels)){const t={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))};l=kO(a,t).node(),l.parentNode.removeChild(l)}else{const t=r.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",c.labelStyle.replace("color:","fill:"));const e=u.split(Jh.lineBreakRegex);for(const n of e){const e=r.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","1"),e.textContent=n,t.appendChild(e)}l=t}let d=0,f="";switch(i.type){case"round":d=5,f="rect";break;case"square":case"group":default:f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":case"odd_right":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"doublecircle":f="doublecircle"}e.setNode(i.id,{labelStyle:c.labelStyle,shape:f,labelText:u,rx:d,ry:d,class:s,style:c.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:o.db.getTooltip(i.id)||"",domId:o.db.lookUpDomId(i.id),haveCallback:i.haveCallback,width:"group"===i.type?500:void 0,dir:i.dir,type:i.type,props:i.props,padding:_w().flowchart.padding}),h.info("setNode",{labelStyle:c.labelStyle,shape:f,labelText:u,rx:d,ry:d,class:s,style:c.style,id:i.id,domId:o.db.lookUpDomId(i.id),width:"group"===i.type?500:void 0,type:i.type,dir:i.dir,props:i.props,padding:_w().flowchart.padding})}))},SN=function(t,e,n){h.info("abc78 edges = ",t);let i,r,o=0,a={};if(void 0!==t.defaultStyle){const e=eb(t.defaultStyle);i=e.style,r=e.labelStyle}t.forEach((function(n){o++;var s="L-"+n.start+"-"+n.end;void 0===a[s]?(a[s]=0,h.info("abc78 new entry",s,a[s])):(a[s]++,h.info("abc78 new entry",s,a[s]));let c=s+"-"+a[s];h.info("abc78 new link id to be used is",s,c,a[s]);var l="LS-"+n.start,u="LE-"+n.end;const d={style:"",labelStyle:""};switch(d.minlen=n.length||1,"arrow_open"===n.type?d.arrowhead="none":d.arrowhead="normal",d.arrowTypeStart="arrow_open",d.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":d.arrowTypeStart="arrow_cross";case"arrow_cross":d.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":d.arrowTypeStart="arrow_point";case"arrow_point":d.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":d.arrowTypeStart="arrow_circle";case"arrow_circle":d.arrowTypeEnd="arrow_circle"}let f="",g="";switch(n.stroke){case"normal":f="fill:none;",void 0!==i&&(f=i),void 0!==r&&(g=r),d.thickness="normal",d.pattern="solid";break;case"dotted":d.thickness="normal",d.pattern="dotted",d.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":d.thickness="thick",d.pattern="solid",d.style="stroke-width: 3.5px;fill:none;"}if(void 0!==n.style){const t=eb(n.style);f=t.style,g=t.labelStyle}d.style=d.style+=f,d.labelStyle=d.labelStyle+=g,void 0!==n.interpolate?d.curve=Wm(n.interpolate,Rl):void 0!==t.defaultInterpolate?d.curve=Wm(t.defaultInterpolate,Rl):d.curve=Wm(EN.curve,Rl),void 0===n.text?void 0!==n.style&&(d.arrowheadStyle="fill: #333"):(d.arrowheadStyle="fill: #333",d.labelpos="c"),d.labelType="text",d.label=n.text.replace(Jh.lineBreakRegex,"\n"),void 0===n.style&&(d.style=d.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),d.labelStyle=d.labelStyle.replace("color:","fill:"),d.id=c,d.classes="flowchart-link "+l+" "+u,e.setEdge(n.start,n.end,d,o)}))},DN=function(t,e,n,i){h.info("Drawing flowchart"),i.db.clear(),oO.setGen("gen-2"),i.parser.parse(t);let r=i.db.getDirection();void 0===r&&(r="TD");const{securityLevel:o,flowchart:a}=_w(),s=a.nodeSpacing||50,c=a.rankSpacing||50;let l;"sandbox"===o&&(l=un("#i"+e));const u=un("sandbox"===o?l.nodes()[0].contentDocument.body:"body"),d="sandbox"===o?l.nodes()[0].contentDocument:document,f=new fD({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:s,ranksep:c,marginx:0,marginy:0}).setDefaultEdgeLabel((function(){return{}}));let g;const p=i.db.getSubGraphs();h.info("Subgraphs - ",p);for(let t=p.length-1;t>=0;t--)g=p[t],h.info("Subgraph - ",g),i.db.addVertex(g.id,g.title,"group",void 0,g.classes,g.dir);const m=i.db.getVertices(),b=i.db.getEdges();h.info("Edges",b);let w=0;for(w=p.length-1;w>=0;w--){g=p[w],hn("cluster").append("text");for(let t=0;t<g.nodes.length;t++)h.info("Setting up subgraphs",g.nodes[t],g.id),f.setParent(g.nodes[t],g.id)}TN(m,f,e,u,d,i),SN(b,f);const k=u.select(`[id="${e}"]`),v=u.select("#"+e+" g");if(lP(v,f,["point","circle","cross"],"flowchart",e),kb.insertTitle(k,"flowchartTitleText",a.titleTopMargin,i.db.getDiagramTitle()),Pw(f,k,a.diagramPadding,a.useMaxWidth),i.db.indexNodes("subGraph"+w),!a.htmlLabels){const t=d.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const e of t){const t=e.getBBox(),n=d.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",t.width),n.setAttribute("height",t.height),e.insertBefore(n,e.firstChild)}}Object.keys(m).forEach((function(t){const n=m[t];if(n.link){const i=un("#"+e+' [id="'+t+'"]');if(i){const t=d.createElementNS("http://www.w3.org/2000/svg","a");t.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),t.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),t.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===o?t.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&t.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);const e=i.insert((function(){return t}),":first-child"),r=i.select(".label-container");r&&e.append((function(){return r.node()}));const a=i.select(".label");a&&e.append((function(){return a.node()}))}}}))},IN={setConf:function(t){const e=Object.keys(t);for(const n of e)EN[n]=t[n]},addVertices:TN,addEdges:SN,getClasses:function(t,e){h.info("Extracting classes"),e.db.clear();try{return e.parse(t),e.db.getClasses()}catch(t){return}},draw:DN};var BN=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,5],i=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],r=[1,15],o=[1,16],a=[1,17],s=[1,18],c=[1,19],l=[1,20],u=[1,21],h=[1,22],d=[1,23],f=[1,24],g=[1,25],p=[1,26],m=[1,27],b=[1,29],w=[1,31],k=[1,34],v=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],y={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 2:return o[s-1];case 3:case 7:case 8:this.$=[];break;case 4:o[s-1].push(o[s]),this.$=o[s-1];break;case 5:case 6:this.$=o[s];break;case 9:i.setDateFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 10:i.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 11:i.TopAxis(),this.$=o[s].substr(8);break;case 12:i.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 13:i.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 14:i.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 15:i.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 16:i.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 17:i.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 18:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 19:case 20:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 21:i.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 23:i.addTask(o[s-1],o[s]),this.$="task";break;case 27:this.$=o[s-1],i.setClickEvent(o[s-1],o[s],null);break;case 28:this.$=o[s-2],i.setClickEvent(o[s-2],o[s-1],o[s]);break;case 29:this.$=o[s-2],i.setClickEvent(o[s-2],o[s-1],null),i.setLink(o[s-2],o[s]);break;case 30:this.$=o[s-3],i.setClickEvent(o[s-3],o[s-2],o[s-1]),i.setLink(o[s-3],o[s]);break;case 31:this.$=o[s-2],i.setClickEvent(o[s-2],o[s],null),i.setLink(o[s-2],o[s-1]);break;case 32:this.$=o[s-3],i.setClickEvent(o[s-3],o[s-1],o[s]),i.setLink(o[s-3],o[s-2]);break;case 33:this.$=o[s-1],i.setLink(o[s-1],o[s]);break;case 34:case 40:this.$=o[s-1]+" "+o[s];break;case 35:case 36:case 38:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 37:case 39:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break;case 41:i.parseDirective("%%{","open_directive");break;case 42:i.parseDirective(o[s],"type_directive");break;case 43:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 44:i.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:e,30:4,40:n},{1:[3]},{3:6,4:2,5:e,30:4,40:n},t(i,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:r,13:o,14:a,15:s,16:c,17:l,18:u,19:h,20:d,21:f,23:g,25:p,26:m,27:28,28:b,30:4,35:w,40:n},{32:32,33:[1,33],43:k},t([33,43],[2,42]),t(i,[2,8],{1:[2,2]}),t(i,[2,4]),{4:30,10:35,12:r,13:o,14:a,15:s,16:c,17:l,18:u,19:h,20:d,21:f,23:g,25:p,26:m,27:28,28:b,30:4,35:w,40:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),{22:[1,36]},{24:[1,37]},t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),{29:[1,38]},t(i,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},t(i,[2,5]),t(i,[2,18]),t(i,[2,19]),t(i,[2,23]),t(i,[2,27],{37:[1,44],38:[1,45]}),t(i,[2,33],{36:[1,46]}),t(v,[2,25]),{32:47,43:k},{43:[2,43]},t(i,[2,28],{38:[1,48]}),t(i,[2,29]),t(i,[2,31],{37:[1,49]}),{11:[1,50]},t(i,[2,30]),t(i,[2,32]),t(v,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},_={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 38;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 27:return 37;case 28:this.begin("click");break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};function C(){this.yy={}}return y.lexer=_,C.prototype=y,y.Parser=C,new C}();BN.parser=BN;const MN=BN,PN=t=>null!==t.match(/^\s*gantt/);var LN={};!function(t){var e;e=function(){var t="day";return function(e,n,i){var r=function(e){return e.add(4-e.isoWeekday(),t)},o=n.prototype;o.isoWeekYear=function(){return r(this).year()},o.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),t);var n,o,a,s=r(this),c=(n=this.isoWeekYear(),a=4-(o=(this.$u?i.utc:i)().year(n).startOf("year")).isoWeekday(),o.isoWeekday()>4&&(a+=7),o.add(a,t));return s.diff(c,"week")+1},o.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var a=o.startOf;o.startOf=function(t,e){var n=this.$utils(),i=!!n.u(e)||e;return"isoweek"===n.p(t)?i?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(t,e)}}},t.exports=e()}({get exports(){return LN},set exports(t){LN=t}});const ON=LN;var NN={};!function(t){var e;e=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,i=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},a=function(t){return(t=+t)+(t>68?1900:2e3)},s=function(t){return function(e){this[t]=+e}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],l=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},u=function(t,e){var n,i=o.meridiem;if(i){for(var r=1;r<=24;r+=1)if(t.indexOf(i(r,0,e))>-1){n=r>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[r,function(t){this.afternoon=u(t,!1)}],a:[r,function(t){this.afternoon=u(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,s("seconds")],ss:[i,s("seconds")],m:[i,s("minutes")],mm:[i,s("minutes")],H:[i,s("hours")],h:[i,s("hours")],HH:[i,s("hours")],hh:[i,s("hours")],D:[i,s("day")],DD:[n,s("day")],Do:[r,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var i=1;i<=31;i+=1)e(i).replace(/\[|\]/g,"")===t&&(this.day=i)}],M:[i,s("month")],MM:[n,s("month")],MMM:[r,function(t){var e=l("months"),n=(l("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(t){var e=l("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function d(n){var i,r;i=n,r=o&&o.formats;for(var a=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var o=i&&i.toUpperCase();return n||r[i]||t[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),s=a.length,c=0;c<s;c+=1){var l=a[c],u=h[l],d=u&&u[0],f=u&&u[1];a[c]=f?{regex:d,parser:f}:l.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,i=0;n<s;n+=1){var r=a[n];if("string"==typeof r)i+=r.length;else{var o=r.regex,c=r.parser,l=t.slice(i),u=o.exec(l)[0];c.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(a=t.parseTwoDigitYear);var i=e.prototype,r=i.parse;i.parse=function(t){var e=t.date,i=t.utc,a=t.args;this.$u=i;var s=a[1];if("string"==typeof s){var c=!0===a[2],l=!0===a[3],u=c||l,h=a[2];l&&(h=a[2]),o=this.$locale(),!c&&h&&(o=n.Ls[h]),this.$d=function(t,e,n){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=d(e)(t),r=i.year,o=i.month,a=i.day,s=i.hours,c=i.minutes,l=i.seconds,u=i.milliseconds,h=i.zone,f=new Date,g=a||(r||o?1:f.getDate()),p=r||f.getFullYear(),m=0;r&&!o||(m=o>0?o-1:f.getMonth());var b=s||0,w=c||0,k=l||0,v=u||0;return h?new Date(Date.UTC(p,m,g,b,w,k,v+60*h.offset*1e3)):n?new Date(Date.UTC(p,m,g,b,w,k,v)):new Date(p,m,g,b,w,k,v)}catch(t){return new Date("")}}(e,s,i),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),u&&e!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var f=s.length,g=1;g<=f;g+=1){a[1]=s[g-1];var p=n.apply(this,a);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}g===f&&(this.$d=new Date(""))}else r.call(this,t)}}},t.exports=e()}({get exports(){return NN},set exports(t){NN=t}});const RN=NN;var FN={};!function(t){var e;e=function(){return function(t,e){var n=e.prototype,i=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return i.bind(this)(t);var r=this.$utils(),o=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return r.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return r.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return r.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return i.bind(this)(o)}}},t.exports=e()}({get exports(){return FN},set exports(t){FN=t}});const jN=FN;l.extend(ON),l.extend(RN),l.extend(jN);let $N,zN="",VN="",HN="",qN=[],UN=[],GN={},WN=[],KN=[],YN="";const XN=["active","done","crit","milestone"];let ZN=[],QN=!1,JN=!1,tR=0;const eR=function(){WN=[],KN=[],YN="",ZN=[],lR=0,fR=void 0,gR=void 0,pR=[],zN="",VN="",$N=void 0,HN="",qN=[],UN=[],QN=!1,JN=!1,tR=0,GN={},Jw()},nR=function(){let t=wR();const e=10;let n=0;for(;!t&&n<e;)t=wR(),n++;return KN=pR,KN},iR=function(t,e,n,i){return!i.includes(t.format(e.trim()))&&(!!(t.isoWeekday()>=6&&n.includes("weekends"))||!!n.includes(t.format("dddd").toLowerCase())||n.includes(t.format(e.trim())))},rR=function(t,e,n,i){if(!n.length||t.manualEndTime)return;let r,o;r=t.startTime instanceof Date?l(t.startTime):l(t.startTime,e,!0),r=r.add(1,"d"),o=t.endTime instanceof Date?l(t.endTime):l(t.endTime,e,!0);const[a,s]=oR(r,o,e,n,i);t.endTime=a.toDate(),t.renderEndTime=s},oR=function(t,e,n,i,r){let o=!1,a=null;for(;t<=e;)o||(a=e.toDate()),o=iR(t,n,i,r),o&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},aR=function(t,e,n){n=n.trim();const i=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==i){let t=null;if(i[1].split(" ").forEach((function(e){let n=bR(e);void 0!==n&&(t?n.endTime>t.endTime&&(t=n):t=n)})),t)return t.endTime;{const t=new Date;return t.setHours(0,0,0,0),t}}let r=l(n,e.trim(),!0);if(r.isValid())return r.toDate();{h.debug("Invalid date:"+n),h.debug("With date format:"+e.trim());const t=new Date(n);if(void 0===t||isNaN(t.getTime()))throw new Error("Invalid date:"+n);return t}},sR=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return null!==e?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},cR=function(t,e,n,i=!1){n=n.trim();let r=l(n,e.trim(),!0);if(r.isValid())return i&&(r=r.add(1,"d")),r.toDate();let o=l(t);const[a,s]=sR(n);if(!Number.isNaN(a)){const t=o.add(a,s);t.isValid()&&(o=t)}return o.toDate()};let lR=0;const uR=function(t){return void 0===t?(lR+=1,"task"+lR):t},hR=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),r={};AR(i,r,XN);for(let t=0;t<i.length;t++)i[t]=i[t].trim();let o="";switch(i.length){case 1:r.id=uR(),r.startTime=t.endTime,o=i[0];break;case 2:r.id=uR(),r.startTime=aR(void 0,zN,i[0]),o=i[1];break;case 3:r.id=uR(i[0]),r.startTime=aR(void 0,zN,i[1]),o=i[2]}return o&&(r.endTime=cR(r.startTime,zN,o,QN),r.manualEndTime=l(o,"YYYY-MM-DD",!0).isValid(),rR(r,zN,UN,qN)),r},dR=function(t,e){let n;n=":"===e.substr(0,1)?e.substr(1,e.length):e;const i=n.split(","),r={};AR(i,r,XN);for(let t=0;t<i.length;t++)i[t]=i[t].trim();switch(i.length){case 1:r.id=uR(),r.startTime={type:"prevTaskEnd",id:t},r.endTime={data:i[0]};break;case 2:r.id=uR(),r.startTime={type:"getStartDate",startData:i[0]},r.endTime={data:i[1]};break;case 3:r.id=uR(i[0]),r.startTime={type:"getStartDate",startData:i[1]},r.endTime={data:i[2]}}return r};let fR,gR,pR=[];const mR={},bR=function(t){const e=mR[t];return pR[e]},wR=function(){const t=function(t){const e=pR[t];let n="";switch(pR[t].raw.startTime.type){case"prevTaskEnd":{const t=bR(e.prevTaskId);e.startTime=t.endTime;break}case"getStartDate":n=aR(void 0,zN,pR[t].raw.startTime.startData),n&&(pR[t].startTime=n)}return pR[t].startTime&&(pR[t].endTime=cR(pR[t].startTime,zN,pR[t].raw.endTime.data,QN),pR[t].endTime&&(pR[t].processed=!0,pR[t].manualEndTime=l(pR[t].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),rR(pR[t],zN,UN,qN))),pR[t].processed};let e=!0;for(const[n,i]of pR.entries())t(n),e=e&&i.processed;return e},kR=function(t,e){let n=e;"loose"!==_w().securityLevel&&(n=p(e)),t.split(",").forEach((function(t){void 0!==bR(t)&&(_R(t,(()=>{window.open(n,"_self")})),GN[t]=n)})),vR(t,"clickable")},vR=function(t,e){t.split(",").forEach((function(t){let n=bR(t);void 0!==n&&n.classes.push(e)}))},yR=function(t,e,n){if("loose"!==_w().securityLevel)return;if(void 0===e)return;let i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t),void 0!==bR(t)&&_R(t,(()=>{kb.runFunc(e,...i)}))},_R=function(t,e){ZN.push((function(){const n=document.querySelector(`[id="${t}"]`);null!==n&&n.addEventListener("click",(function(){e()}))}),(function(){const n=document.querySelector(`[id="${t}-text"]`);null!==n&&n.addEventListener("click",(function(){e()}))}))},CR={parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().gantt,clear:eR,setDateFormat:function(t){zN=t},getDateFormat:function(){return zN},enableInclusiveEndDates:function(){QN=!0},endDatesAreInclusive:function(){return QN},enableTopAxis:function(){JN=!0},topAxisEnabled:function(){return JN},setAxisFormat:function(t){VN=t},getAxisFormat:function(){return VN},setTickInterval:function(t){$N=t},getTickInterval:function(){return $N},setTodayMarker:function(t){HN=t},getTodayMarker:function(){return HN},setAccTitle:tk,getAccTitle:ek,setDiagramTitle:rk,getDiagramTitle:ok,setAccDescription:nk,getAccDescription:ik,addSection:function(t){YN=t,WN.push(t)},getSections:function(){return WN},getTasks:nR,addTask:function(t,e){const n={section:YN,type:YN,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},i=dR(gR,e);n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=gR,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.order=tR,tR++;const r=pR.push(n);gR=n.id,mR[n.id]=r-1},findTaskById:bR,addTaskOrg:function(t,e){const n={section:YN,type:YN,description:t,task:t,classes:[]},i=hR(fR,e);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,fR=n,KN.push(n)},setIncludes:function(t){qN=t.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return qN},setExcludes:function(t){UN=t.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return UN},setClickEvent:function(t,e,n){t.split(",").forEach((function(t){yR(t,e,n)})),vR(t,"clickable")},setLink:kR,getLinks:function(){return GN},bindFunctions:function(t){ZN.forEach((function(e){e(t)}))},parseDuration:sR,isInvalidDate:iR};function AR(t,e,n){let i=!0;for(;i;)i=!1,n.forEach((function(n){const r=new RegExp("^\\s*"+n+"\\s*$");t[0].match(r)&&(e[n]=!0,t.shift(1),i=!0)}))}let xR;const ER={setConf:function(){h.debug("Something is calling, setConf, remove the call")},draw:function(t,e,n,i){const r=_w().gantt,o=_w().securityLevel;let a;"sandbox"===o&&(a=un("#i"+e));const s=un("sandbox"===o?a.nodes()[0].contentDocument.body:"body"),c="sandbox"===o?a.nodes()[0].contentDocument:document,u=c.getElementById(e);xR=u.parentElement.offsetWidth,void 0===xR&&(xR=1200),void 0!==r.useWidth&&(xR=r.useWidth);const h=i.db.getTasks(),d=h.length*(r.barHeight+r.barGap)+2*r.topPadding;u.setAttribute("viewBox","0 0 "+xR+" "+d);const f=s.select(`[id="${e}"]`),g=dl().domain([H(h,(function(t){return t.startTime})),V(h,(function(t){return t.endTime}))]).rangeRound([0,xR-r.leftPadding-r.rightPadding]);let p=[];for(const t of h)p.push(t.type);const m=p;function b(t,e){const n=t.startTime,i=e.startTime;let r=0;return n>i?r=1:n<i&&(r=-1),r}function w(t,e,n){const o=r.barHeight,a=o+r.barGap,s=r.topPadding,c=r.leftPadding,l=Fa().domain([0,p.length]).range(["#00B9FA","#F95002"]).interpolate(Ki);v(a,s,c,e,n,t,i.db.getExcludes(),i.db.getIncludes()),y(c,s,e,n),k(t,a,s,c,o,l,e),_(a,s),C(c,s,e,n)}function k(t,n,o,a,s,c,l){f.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",(function(t,e){return t.order*n+o-2})).attr("width",(function(){return l-r.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of p.entries())if(t.type===n)return"section section"+e%r.numberSectionStyles;return"section section0"}));const u=f.append("g").selectAll("rect").data(t).enter(),h=i.db.getLinks();if(u.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){return t.milestone?g(t.startTime)+a+.5*(g(t.endTime)-g(t.startTime))-.5*s:g(t.startTime)+a})).attr("y",(function(t,e){return t.order*n+o})).attr("width",(function(t){return t.milestone?s:g(t.renderEndTime||t.endTime)-g(t.startTime)})).attr("height",s).attr("transform-origin",(function(t,e){return e=t.order,(g(t.startTime)+a+.5*(g(t.endTime)-g(t.startTime))).toString()+"px "+(e*n+o+.5*s).toString()+"px"})).attr("class",(function(t){const e="task";let n="";t.classes.length>0&&(n=t.classes.join(" "));let i=0;for(const[e,n]of p.entries())t.type===n&&(i=e%r.numberSectionStyles);let o="";return t.active?t.crit?o+=" activeCrit":o=" active":t.done?o=t.crit?" doneCrit":" done":t.crit&&(o+=" crit"),0===o.length&&(o=" task"),t.milestone&&(o=" milestone "+o),o+=i,o+=" "+n,e+o})),u.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",r.fontSize).attr("x",(function(t){let e=g(t.startTime),n=g(t.renderEndTime||t.endTime);t.milestone&&(e+=.5*(g(t.endTime)-g(t.startTime))-.5*s),t.milestone&&(n=e+s);const i=this.getBBox().width;return i>n-e?n+i+1.5*r.leftPadding>l?e+a-5:n+a+5:(n-e)/2+e+a})).attr("y",(function(t,e){return t.order*n+r.barHeight/2+(r.fontSize/2-2)+o})).attr("text-height",s).attr("class",(function(t){const e=g(t.startTime);let n=g(t.endTime);t.milestone&&(n=e+s);const i=this.getBBox().width;let o="";t.classes.length>0&&(o=t.classes.join(" "));let a=0;for(const[e,n]of p.entries())t.type===n&&(a=e%r.numberSectionStyles);let c="";return t.active&&(c=t.crit?"activeCritText"+a:"activeText"+a),t.done?c=t.crit?c+" doneCritText"+a:c+" doneText"+a:t.crit&&(c=c+" critText"+a),t.milestone&&(c+=" milestoneText"),i>n-e?n+i+1.5*r.leftPadding>l?o+" taskTextOutsideLeft taskTextOutside"+a+" "+c:o+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+i:o+" taskText taskText"+a+" "+c+" width-"+i})),"sandbox"===_w().securityLevel){let t;t=un("#i"+e);const n=t.nodes()[0].contentDocument;u.filter((function(t){return void 0!==h[t.id]})).each((function(t){var e=n.querySelector("#"+t.id),i=n.querySelector("#"+t.id+"-text");const r=e.parentNode;var o=n.createElement("a");o.setAttribute("xlink:href",h[t.id]),o.setAttribute("target","_top"),r.appendChild(o),o.appendChild(e),o.appendChild(i)}))}}function v(t,e,n,o,a,s,c,u){const h=s.reduce(((t,{startTime:e})=>t?Math.min(t,e):e),0),d=s.reduce(((t,{endTime:e})=>t?Math.max(t,e):e),0),p=i.db.getDateFormat();if(!h||!d)return;const m=[];let b=null,w=l(h);for(;w.valueOf()<=d;)i.db.isInvalidDate(w,p,c,u)?b?b.end=w:b={start:w,end:w}:b&&(m.push(b),b=null),w=w.add(1,"d");f.append("g").selectAll("rect").data(m).enter().append("rect").attr("id",(function(t){return"exclude-"+t.start.format("YYYY-MM-DD")})).attr("x",(function(t){return g(t.start)+n})).attr("y",r.gridLineStartPadding).attr("width",(function(t){const e=t.end.add(1,"day");return g(e)-g(t.start)})).attr("height",a-e-r.gridLineStartPadding).attr("transform-origin",(function(e,i){return(g(e.start)+n+.5*(g(e.end)-g(e.start))).toString()+"px "+(i*t+.5*a).toString()+"px"})).attr("class","exclude-range")}function y(t,e,n,o){let a=it(g).tickSize(-o+e+r.gridLineStartPadding).tickFormat(qs(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));const s=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||r.tickInterval);if(null!==s){const t=s[1];switch(s[2]){case"minute":a.ticks(es.every(t));break;case"hour":a.ticks(is.every(t));break;case"day":a.ticks(os.every(t));break;case"week":a.ticks(ss.every(t));break;case"month":a.ticks(ps.every(t))}}if(f.append("g").attr("class","grid").attr("transform","translate("+t+", "+(o-50)+")").call(a).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||r.topAxis){let n=nt(g).tickSize(-o+e+r.gridLineStartPadding).tickFormat(qs(i.db.getAxisFormat()||r.axisFormat||"%Y-%m-%d"));if(null!==s){const t=s[1];switch(s[2]){case"minute":n.ticks(es.every(t));break;case"hour":n.ticks(is.every(t));break;case"day":n.ticks(os.every(t));break;case"week":n.ticks(ss.every(t));break;case"month":n.ticks(ps.every(t))}}f.append("g").attr("class","grid").attr("transform","translate("+t+", "+e+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function _(t,e){const n=[];let i=0;for(const[t,e]of p.entries())n[t]=[e,E(e,m)];f.append("g").selectAll("text").data(n).enter().append((function(t){const e=t[0].split(Jh.lineBreakRegex),n=-(e.length-1)/2,i=c.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[t,n]of e.entries()){const e=c.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),t>0&&e.setAttribute("dy","1em"),e.textContent=n,i.appendChild(e)}return i})).attr("x",10).attr("y",(function(r,o){if(!(o>0))return r[1]*t/2+e;for(let a=0;a<o;a++)return i+=n[o-1][1],r[1]*t/2+i*t+e})).attr("font-size",r.sectionFontSize).attr("font-size",r.sectionFontSize).attr("class",(function(t){for(const[e,n]of p.entries())if(t[0]===n)return"sectionTitle sectionTitle"+e%r.numberSectionStyles;return"sectionTitle"}))}function C(t,e,n,o){const a=i.db.getTodayMarker();if("off"===a)return;const s=f.append("g").attr("class","today"),c=new Date,l=s.append("line");l.attr("x1",g(c)+t).attr("x2",g(c)+t).attr("y1",r.titleTopMargin).attr("y2",o-r.titleTopMargin).attr("class","today"),""!==a&&l.attr("style",a.replace(/,/g,";"))}function A(t){const e={},n=[];for(let i=0,r=t.length;i<r;++i)Object.prototype.hasOwnProperty.call(e,t[i])||(e[t[i]]=!0,n.push(t[i]));return n}function x(t){let e=t.length;const n={};for(;e;)n[t[--e]]=(n[t[e]]||0)+1;return n}function E(t,e){return x(e)[t]||0}p=A(p),h.sort(b),w(h,xR,d),Mw(f,d,xR,r.useMaxWidth),f.append("text").text(i.db.getDiagramTitle()).attr("x",xR/2).attr("y",r.titleTopMargin).attr("class","titleText")}};var TR=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,i,r,o,a){switch(o.length,r){case 1:return i;case 4:break;case 6:i.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},i={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function r(){this.yy={}}return n.lexer=i,r.prototype=n,n.Parser=r,new r}();TR.parser=TR;const SR=TR;var DR="",IR=!1;const BR={setMessage:t=>{h.debug("Setting message to: "+t),DR=t},getMessage:()=>DR,setInfo:t=>{IR=t},getInfo:()=>IR,clear:Jw},MR={draw:(t,e,n)=>{try{h.debug("Rendering info diagram\n"+t);const i=_w().securityLevel;let r;"sandbox"===i&&(r=un("#i"+e));const o=un("sandbox"===i?r.nodes()[0].contentDocument.body:"body").select("#"+e);o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),o.attr("height",100),o.attr("width",400)}catch(t){h.error("Error while rendering info diagram"),h.error(t.message)}}},PR=t=>null!==t.match(/^\s*info/);var LR=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,4],n=[1,5],i=[1,6],r=[1,7],o=[1,9],a=[1,11,13,15,17,19,20,26,27,28,29],s=[2,5],c=[1,6,11,13,15,17,19,20,26,27,28,29],l=[26,27,28],u=[2,8],h=[1,18],d=[1,19],f=[1,20],g=[1,21],p=[1,22],m=[1,23],b=[1,28],w=[6,26,27,28,29],k={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 4:i.setShowData(!0);break;case 7:this.$=o[s-1];break;case 9:i.addSection(o[s-1],i.cleanupValue(o[s]));break;case 10:this.$=o[s].trim(),i.setDiagramTitle(this.$);break;case 11:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 12:case 13:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 14:i.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 21:i.parseDirective("%%{","open_directive");break;case 22:i.parseDirective(o[s],"type_directive");break;case 23:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 24:i.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:e,21:8,26:n,27:i,28:r,29:o},{1:[3]},{3:10,4:2,5:3,6:e,21:8,26:n,27:i,28:r,29:o},{3:11,4:2,5:3,6:e,21:8,26:n,27:i,28:r,29:o},t(a,s,{7:12,8:[1,13]}),t(c,[2,18]),t(c,[2,19]),t(c,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(l,u,{21:8,9:16,10:17,5:24,1:[2,3],11:h,13:d,15:f,17:g,19:p,20:m,29:o}),t(a,s,{7:25}),{23:26,24:[1,27],32:b},t([24,32],[2,22]),t(a,[2,6]),{4:29,26:n,27:i,28:r},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(l,[2,13]),t(l,[2,14]),t(l,[2,15]),t(l,u,{21:8,9:16,10:17,5:24,1:[2,4],11:h,13:d,15:f,17:g,19:p,20:m,29:o}),t(w,[2,16]),{25:34,31:[1,35]},t(w,[2,24]),t(a,[2,7]),t(l,[2,9]),t(l,[2,10]),t(l,[2,11]),t(l,[2,12]),{23:36,32:b},{32:[2,23]},t(w,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},v={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function y(){this.yy={}}return k.lexer=v,y.prototype=k,k.Parser=y,new y}();LR.parser=LR;const OR=LR,NR=t=>null!==t.match(/^\s*pie/)||null!==t.match(/^\s*bar/);let RR={},FR=!1;const jR={parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().pie,addSection:function(t,e){t=Jh.sanitizeText(t,_w()),void 0===RR[t]&&(RR[t]=e,h.debug("Added new section :",t))},getSections:()=>RR,cleanupValue:function(t){return":"===t.substring(0,1)?(t=t.substring(1).trim(),Number(t.trim())):Number(t.trim())},clear:function(){RR={},FR=!1,Jw()},setAccTitle:tk,getAccTitle:ek,setDiagramTitle:rk,getDiagramTitle:ok,setShowData:function(t){FR=t},getShowData:function(){return FR},getAccDescription:ik,setAccDescription:nk};let $R,zR=_w();const VR=450,HR={draw:(t,e,n,i)=>{try{zR=_w(),h.debug("Rendering info diagram\n"+t);const n=_w().securityLevel;let w;"sandbox"===n&&(w=un("#i"+e));const k=un("sandbox"===n?w.nodes()[0].contentDocument.body:"body"),v="sandbox"===n?w.nodes()[0].contentDocument:document;i.db.clear(),i.parser.parse(t),h.debug("Parsed info diagram");const y=v.getElementById(e);$R=y.parentElement.offsetWidth,void 0===$R&&($R=1200),void 0!==zR.useWidth&&($R=zR.useWidth),void 0!==zR.pie.useWidth&&($R=zR.pie.useWidth);const _=k.select("#"+e);Mw(_,VR,$R,zR.pie.useMaxWidth),y.setAttribute("viewBox","0 0 "+$R+" "+VR);var r=40,o=18,a=4,s=Math.min($R,VR)/2-r,c=_.append("g").attr("transform","translate("+$R/2+","+VR/2+")"),l=i.db.getSections(),u=0;Object.keys(l).forEach((function(t){u+=l[t]}));const C=zR.themeVariables;var d=[C.pie1,C.pie2,C.pie3,C.pie4,C.pie5,C.pie6,C.pie7,C.pie8,C.pie9,C.pie10,C.pie11,C.pie12],f=Aa().range(d),g=Object.entries(l).map((function(t,e){return{order:e,name:t[0],value:t[1]}})),p=Hl().value((function(t){return t.value})).sort((function(t,e){return t.order-e.order}))(g),m=Ll().innerRadius(0).outerRadius(s);c.selectAll("mySlices").data(p).enter().append("path").attr("d",m).attr("fill",(function(t){return f(t.data.name)})).attr("class","pieCircle"),c.selectAll("mySlices").data(p).enter().append("text").text((function(t){return(t.data.value/u*100).toFixed(0)+"%"})).attr("transform",(function(t){return"translate("+m.centroid(t)+")"})).style("text-anchor","middle").attr("class","slice"),c.append("text").text(i.db.getDiagramTitle()).attr("x",0).attr("y",-(VR-50)/2).attr("class","pieTitleText");var b=c.selectAll(".legend").data(f.domain()).enter().append("g").attr("class","legend").attr("transform",(function(t,e){const n=o+a,i=n*f.domain().length/2;return"translate("+12*o+","+(e*n-i)+")"}));b.append("rect").attr("width",o).attr("height",o).style("fill",f).style("stroke",f),b.data(p).append("text").attr("x",o+a).attr("y",o-a).text((function(t){return i.db.getShowData()||zR.showData||zR.pie.showData?t.data.name+" ["+t.data.value+"]":t.data.name}))}catch(t){h.error("Error while rendering info diagram"),h.error(t)}}};var qR=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,3],n=[1,5],i=[1,6],r=[1,7],o=[1,8],a=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],s=[1,22],c=[2,13],l=[1,26],u=[1,27],h=[1,28],d=[1,29],f=[1,30],g=[1,31],p=[1,24],m=[1,32],b=[1,33],w=[1,36],k=[71,72],v=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],y=[1,56],_=[1,57],C=[1,58],A=[1,59],x=[1,60],E=[1,61],T=[1,62],S=[62,63],D=[1,74],I=[1,70],B=[1,71],M=[1,72],P=[1,73],L=[1,75],O=[1,79],N=[1,80],R=[1,77],F=[1,78],j=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],$={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 6:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 7:case 8:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 9:i.parseDirective("%%{","open_directive");break;case 10:i.parseDirective(o[s],"type_directive");break;case 11:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 12:i.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:i.addRequirement(o[s-3],o[s-4]);break;case 20:i.setNewReqId(o[s-2]);break;case 21:i.setNewReqText(o[s-2]);break;case 22:i.setNewReqRisk(o[s-2]);break;case 23:i.setNewReqVerifyMethod(o[s-2]);break;case 26:this.$=i.RequirementType.REQUIREMENT;break;case 27:this.$=i.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=i.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=i.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=i.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=i.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=i.RiskLevel.LOW_RISK;break;case 33:this.$=i.RiskLevel.MED_RISK;break;case 34:this.$=i.RiskLevel.HIGH_RISK;break;case 35:this.$=i.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=i.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=i.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=i.VerifyType.VERIFY_TEST;break;case 39:i.addElement(o[s-3]);break;case 40:i.setNewElementType(o[s-2]);break;case 41:i.setNewElementDocRef(o[s-2]);break;case 44:i.addRelationship(o[s-2],o[s],o[s-4]);break;case 45:i.addRelationship(o[s-2],o[s-4],o[s]);break;case 46:this.$=i.Relationships.CONTAINS;break;case 47:this.$=i.Relationships.COPIES;break;case 48:this.$=i.Relationships.DERIVES;break;case 49:this.$=i.Relationships.SATISFIES;break;case 50:this.$=i.Relationships.VERIFIES;break;case 51:this.$=i.Relationships.REFINES;break;case 52:this.$=i.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:4,14:n,16:i,18:r,19:o},{1:[3]},{3:10,4:2,5:[1,9],6:e,9:4,14:n,16:i,18:r,19:o},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},t(a,[2,8]),{20:[2,9]},{3:16,4:2,6:e,9:4,14:n,16:i,18:r,19:o},{1:[2,2]},{4:21,5:s,7:17,8:c,9:4,14:n,16:i,18:r,19:o,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:g,53:p,71:m,72:b},{11:34,12:[1,35],22:w},t([12,22],[2,10]),t(a,[2,6]),t(a,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:s,7:38,8:c,9:4,14:n,16:i,18:r,19:o,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:g,53:p,71:m,72:b},{4:21,5:s,7:39,8:c,9:4,14:n,16:i,18:r,19:o,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:g,53:p,71:m,72:b},{4:21,5:s,7:40,8:c,9:4,14:n,16:i,18:r,19:o,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:g,53:p,71:m,72:b},{4:21,5:s,7:41,8:c,9:4,14:n,16:i,18:r,19:o,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:g,53:p,71:m,72:b},{4:21,5:s,7:42,8:c,9:4,14:n,16:i,18:r,19:o,23:18,24:19,25:20,26:23,32:25,40:l,41:u,42:h,43:d,44:f,45:g,53:p,71:m,72:b},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},t(k,[2,26]),t(k,[2,27]),t(k,[2,28]),t(k,[2,29]),t(k,[2,30]),t(k,[2,31]),t(v,[2,55]),t(v,[2,56]),t(a,[2,4]),{13:51,21:[1,52]},t(a,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:y,65:_,66:C,67:A,68:x,69:E,70:T},{61:63,64:y,65:_,66:C,67:A,68:x,69:E,70:T},{11:64,22:w},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},t(S,[2,46]),t(S,[2,47]),t(S,[2,48]),t(S,[2,49]),t(S,[2,50]),t(S,[2,51]),t(S,[2,52]),{63:[1,68]},t(a,[2,5]),{5:D,29:69,30:I,33:B,35:M,37:P,39:L},{5:O,39:N,55:76,56:R,58:F},{32:81,71:m,72:b},{32:82,71:m,72:b},t(j,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:D,29:87,30:I,33:B,35:M,37:P,39:L},t(j,[2,25]),t(j,[2,39]),{31:[1,88]},{31:[1,89]},{5:O,39:N,55:90,56:R,58:F},t(j,[2,43]),t(j,[2,44]),t(j,[2,45]),{32:91,71:m,72:b},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},t(j,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},t(j,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:D,29:116,30:I,33:B,35:M,37:P,39:L},{5:D,29:117,30:I,33:B,35:M,37:P,39:L},{5:D,29:118,30:I,33:B,35:M,37:P,39:L},{5:D,29:119,30:I,33:B,35:M,37:P,39:L},{5:O,39:N,55:120,56:R,58:F},{5:O,39:N,55:121,56:R,58:F},t(j,[2,20]),t(j,[2,21]),t(j,[2,22]),t(j,[2,23]),t(j,[2,40]),t(j,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},z={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return e.yytext=e.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};function V(){this.yy={}}return $.lexer=z,V.prototype=$,$.Parser=V,new V}();qR.parser=qR;const UR=qR,GR=t=>null!==t.match(/^\s*requirement(Diagram)?/);let WR=[],KR={},YR={},XR={},ZR={};const QR={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().req,addRequirement:(t,e)=>(void 0===YR[t]&&(YR[t]={name:t,type:e,id:KR.id,text:KR.text,risk:KR.risk,verifyMethod:KR.verifyMethod}),KR={},YR[t]),getRequirements:()=>YR,setNewReqId:t=>{void 0!==KR&&(KR.id=t)},setNewReqText:t=>{void 0!==KR&&(KR.text=t)},setNewReqRisk:t=>{void 0!==KR&&(KR.risk=t)},setNewReqVerifyMethod:t=>{void 0!==KR&&(KR.verifyMethod=t)},setAccTitle:tk,getAccTitle:ek,setAccDescription:nk,getAccDescription:ik,addElement:t=>(void 0===ZR[t]&&(ZR[t]={name:t,type:XR.type,docRef:XR.docRef},h.info("Added new requirement: ",t)),XR={},ZR[t]),getElements:()=>ZR,setNewElementType:t=>{void 0!==XR&&(XR.type=t)},setNewElementDocRef:t=>{void 0!==XR&&(XR.docRef=t)},addRelationship:(t,e,n)=>{WR.push({type:t,src:e,dst:n})},getRelationships:()=>WR,clear:()=>{WR=[],KR={},YR={},XR={},ZR={},Jw()}},JR={CONTAINS:"contains",ARROW:"arrow"},tF={ReqMarkers:JR,insertLineEndings:(t,e)=>{let n=t.append("defs").append("marker").attr("id",JR.CONTAINS+"_line_ending").attr("refX",0).attr("refY",e.line_height/2).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",e.line_height/2).attr("cy",e.line_height/2).attr("r",e.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",e.line_height).attr("y1",e.line_height/2).attr("y2",e.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",e.line_height).attr("x1",e.line_height/2).attr("x2",e.line_height/2).attr("stroke-width",1),t.append("defs").append("marker").attr("id",JR.ARROW+"_line_ending").attr("refX",e.line_height).attr("refY",.5*e.line_height).attr("markerWidth",e.line_height).attr("markerHeight",e.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n L${e.line_height},${e.line_height/2}\n M${e.line_height},${e.line_height/2}\n L0,${e.line_height}`).attr("stroke-width",1)}};let eF={},nF=0;const iF=(t,e)=>t.insert("rect","#"+e).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",eF.rect_min_width+"px").attr("height",eF.rect_min_height+"px"),rF=(t,e,n)=>{let i=eF.rect_min_width/2,r=t.append("text").attr("class","req reqLabel reqTitle").attr("id",e).attr("x",i).attr("y",eF.rect_padding).attr("dominant-baseline","hanging"),o=0;n.forEach((t=>{0==o?r.append("tspan").attr("text-anchor","middle").attr("x",eF.rect_min_width/2).attr("dy",0).text(t):r.append("tspan").attr("text-anchor","middle").attr("x",eF.rect_min_width/2).attr("dy",.75*eF.line_height).text(t),o++}));let a=1.5*eF.rect_padding+o*eF.line_height*.75;return t.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",eF.rect_min_width).attr("y1",a).attr("y2",a),{titleNode:r,y:a}},oF=(t,e,n,i)=>{let r=t.append("text").attr("class","req reqLabel").attr("id",e).attr("x",eF.rect_padding).attr("y",i).attr("dominant-baseline","hanging"),o=0;const a=30;let s=[];return n.forEach((t=>{let e=t.length;for(;e>a&&o<3;){let n=t.substring(0,a);e=(t=t.substring(a,t.length)).length,s[s.length]=n,o++}if(3==o){let t=s[s.length-1];s[s.length-1]=t.substring(0,t.length-4)+"..."}else s[s.length]=t;o=0})),s.forEach((t=>{r.append("tspan").attr("x",eF.rect_padding).attr("dy",eF.line_height).text(t)})),r},aF=(t,e,n,i)=>{const r=e.node().getTotalLength(),o=e.node().getPointAtLength(.5*r),a="rel"+nF;nF++;const s=t.append("text").attr("class","req relationshipLabel").attr("id",a).attr("x",o.x).attr("y",o.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(i).node().getBBox();t.insert("rect","#"+a).attr("class","req reqLabelBox").attr("x",o.x-s.width/2).attr("y",o.y-s.height/2).attr("width",s.width).attr("height",s.height).attr("fill","white").attr("fill-opacity","85%")},sF=function(t,e,n,i,r){const o=n.edge(dF(e.src),dF(e.dst)),a=$l().x((function(t){return t.x})).y((function(t){return t.y})),s=t.insert("path","#"+i).attr("class","er relationshipLine").attr("d",a(o.points)).attr("fill","none");e.type==r.db.Relationships.CONTAINS?s.attr("marker-start","url("+Jh.getUrl(eF.arrowMarkerAbsolute)+"#"+e.type+"_line_ending)"):(s.attr("stroke-dasharray","10,7"),s.attr("marker-end","url("+Jh.getUrl(eF.arrowMarkerAbsolute)+"#"+tF.ReqMarkers.ARROW+"_line_ending)")),aF(t,s,eF,`<<${e.type}>>`)},cF=(t,e,n)=>{Object.keys(t).forEach((i=>{let r=t[i];i=dF(i),h.info("Added new requirement: ",i);const o=n.append("g").attr("id",i),a=iF(o,"req-"+i);let s=rF(o,i+"_title",[`<<${r.type}>>`,`${r.name}`]);oF(o,i+"_body",[`Id: ${r.id}`,`Text: ${r.text}`,`Risk: ${r.risk}`,`Verification: ${r.verifyMethod}`],s.y);const c=a.node().getBBox();e.setNode(i,{width:c.width,height:c.height,shape:"rect",id:i})}))},lF=(t,e,n)=>{Object.keys(t).forEach((i=>{let r=t[i];const o=dF(i),a=n.append("g").attr("id",o),s="element-"+o,c=iF(a,s);let l=rF(a,s+"_title",["<<Element>>",`${i}`]);oF(a,s+"_body",[`Type: ${r.type||"Not Specified"}`,`Doc Ref: ${r.docRef||"None"}`],l.y);const u=c.node().getBBox();e.setNode(o,{width:u.width,height:u.height,shape:"rect",id:o})}))},uF=(t,e)=>(t.forEach((function(t){let n=dF(t.src),i=dF(t.dst);e.setEdge(n,i,{relationship:t})})),t),hF=function(t,e){e.nodes().forEach((function(n){void 0!==n&&void 0!==e.node(n)&&(t.select("#"+n),t.select("#"+n).attr("transform","translate("+(e.node(n).x-e.node(n).width/2)+","+(e.node(n).y-e.node(n).height/2)+" )"))}))},dF=t=>t.replace(/\s/g,"").replace(/\./g,"_"),fF={draw:(t,e,n,i)=>{eF=_w().requirement,i.db.clear(),i.parser.parse(t);const r=eF.securityLevel;let o;"sandbox"===r&&(o=un("#i"+e));const a=un("sandbox"===r?o.nodes()[0].contentDocument.body:"body").select(`[id='${e}']`);tF.insertLineEndings(a,eF);const s=new fD({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:eF.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));let c=i.db.getRequirements(),l=i.db.getElements(),u=i.db.getRelationships();cF(c,s,a),lF(l,s,a),uF(u,s),kB(s),hF(a,s),u.forEach((function(t){sF(a,t,s,e,i)}));const h=eF.rect_padding,d=a.node().getBBox(),f=d.width+2*h,g=d.height+2*h;Mw(a,g,f,eF.useMaxWidth),a.attr("viewBox",`${d.x-h} ${d.y-h} ${f} ${g}`)}};var gF=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,3],i=[1,5],r=[1,7],o=[2,5],a=[1,15],s=[1,17],c=[1,19],l=[1,21],u=[1,22],h=[1,23],d=[1,29],f=[1,30],g=[1,31],p=[1,32],m=[1,33],b=[1,34],w=[1,35],k=[1,36],v=[1,37],y=[1,38],_=[1,39],C=[1,40],A=[1,42],x=[1,43],E=[1,45],T=[1,46],S=[1,47],D=[1,48],I=[1,49],B=[1,50],M=[1,53],P=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],L=[4,5,21,54,56],O=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],N=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,53,54,56,57,62,63,64,65,73,83],R=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,52,54,56,57,62,63,64,65,73,83],F=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,54,56,57,62,63,64,65,73,83],j=[71,72,73],$=[1,125],z=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],V={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,critical:48,option_sections:49,break:50,option:51,and:52,else:53,participant:54,AS:55,participant_actor:56,note:57,placement:58,text2:59,over:60,actor_pair:61,links:62,link:63,properties:64,details:65,spaceList:66,",":67,left_of:68,right_of:69,signaltype:70,"+":71,"-":72,ACTOR:73,SOLID_OPEN_ARROW:74,DOTTED_OPEN_ARROW:75,SOLID_ARROW:76,DOTTED_ARROW:77,SOLID_CROSS:78,DOTTED_CROSS:79,SOLID_POINT:80,DOTTED_POINT:81,TXT:82,open_directive:83,type_directive:84,arg_directive:85,close_directive:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"critical",50:"break",51:"option",52:"and",53:"else",54:"participant",55:"AS",56:"participant_actor",57:"note",60:"over",62:"links",63:"link",64:"properties",65:"details",67:",",68:"left_of",69:"right_of",71:"+",72:"-",73:"ACTOR",74:"SOLID_OPEN_ARROW",75:"DOTTED_OPEN_ARROW",76:"SOLID_ARROW",77:"DOTTED_ARROW",78:"SOLID_CROSS",79:"DOTTED_CROSS",80:"SOLID_POINT",81:"DOTTED_POINT",82:"TXT",83:"open_directive",84:"type_directive",85:"arg_directive",86:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[49,1],[49,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[66,2],[66,1],[61,3],[61,1],[58,1],[58,1],[22,5],[22,5],[22,4],[27,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[59,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 4:return i.apply(o[s]),o[s];case 5:case 10:case 9:case 14:this.$=[];break;case 6:case 11:o[s-1].push(o[s]),this.$=o[s-1];break;case 7:case 8:case 12:case 13:case 63:this.$=o[s];break;case 18:o[s-1].unshift({type:"boxStart",boxData:i.parseBoxData(o[s-2])}),o[s-1].push({type:"boxEnd",boxText:o[s-2]}),this.$=o[s-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[s-2]),sequenceIndexStep:Number(o[s-1]),sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(o[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:i.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:i.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:o[s-1]};break;case 25:this.$={type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:o[s-1]};break;case 31:i.setDiagramTitle(o[s].substring(6)),this.$=o[s].substring(6);break;case 32:i.setDiagramTitle(o[s].substring(7)),this.$=o[s].substring(7);break;case 33:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 34:case 35:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 36:o[s-1].unshift({type:"loopStart",loopText:i.parseMessage(o[s-2]),signalType:i.LINETYPE.LOOP_START}),o[s-1].push({type:"loopEnd",loopText:o[s-2],signalType:i.LINETYPE.LOOP_END}),this.$=o[s-1];break;case 37:o[s-1].unshift({type:"rectStart",color:i.parseMessage(o[s-2]),signalType:i.LINETYPE.RECT_START}),o[s-1].push({type:"rectEnd",color:i.parseMessage(o[s-2]),signalType:i.LINETYPE.RECT_END}),this.$=o[s-1];break;case 38:o[s-1].unshift({type:"optStart",optText:i.parseMessage(o[s-2]),signalType:i.LINETYPE.OPT_START}),o[s-1].push({type:"optEnd",optText:i.parseMessage(o[s-2]),signalType:i.LINETYPE.OPT_END}),this.$=o[s-1];break;case 39:o[s-1].unshift({type:"altStart",altText:i.parseMessage(o[s-2]),signalType:i.LINETYPE.ALT_START}),o[s-1].push({type:"altEnd",signalType:i.LINETYPE.ALT_END}),this.$=o[s-1];break;case 40:o[s-1].unshift({type:"parStart",parText:i.parseMessage(o[s-2]),signalType:i.LINETYPE.PAR_START}),o[s-1].push({type:"parEnd",signalType:i.LINETYPE.PAR_END}),this.$=o[s-1];break;case 41:o[s-1].unshift({type:"criticalStart",criticalText:i.parseMessage(o[s-2]),signalType:i.LINETYPE.CRITICAL_START}),o[s-1].push({type:"criticalEnd",signalType:i.LINETYPE.CRITICAL_END}),this.$=o[s-1];break;case 42:o[s-1].unshift({type:"breakStart",breakText:i.parseMessage(o[s-2]),signalType:i.LINETYPE.BREAK_START}),o[s-1].push({type:"breakEnd",optText:i.parseMessage(o[s-2]),signalType:i.LINETYPE.BREAK_END}),this.$=o[s-1];break;case 45:this.$=o[s-3].concat([{type:"option",optionText:i.parseMessage(o[s-1]),signalType:i.LINETYPE.CRITICAL_OPTION},o[s]]);break;case 47:this.$=o[s-3].concat([{type:"and",parText:i.parseMessage(o[s-1]),signalType:i.LINETYPE.PAR_AND},o[s]]);break;case 49:this.$=o[s-3].concat([{type:"else",altText:i.parseMessage(o[s-1]),signalType:i.LINETYPE.ALT_ELSE},o[s]]);break;case 50:o[s-3].type="addParticipant",o[s-3].description=i.parseMessage(o[s-1]),this.$=o[s-3];break;case 51:o[s-1].type="addParticipant",this.$=o[s-1];break;case 52:o[s-3].type="addActor",o[s-3].description=i.parseMessage(o[s-1]),this.$=o[s-3];break;case 53:o[s-1].type="addActor",this.$=o[s-1];break;case 54:this.$=[o[s-1],{type:"addNote",placement:o[s-2],actor:o[s-1].actor,text:o[s]}];break;case 55:o[s-2]=[].concat(o[s-1],o[s-1]).slice(0,2),o[s-2][0]=o[s-2][0].actor,o[s-2][1]=o[s-2][1].actor,this.$=[o[s-1],{type:"addNote",placement:i.PLACEMENT.OVER,actor:o[s-2].slice(0,2),text:o[s]}];break;case 56:this.$=[o[s-1],{type:"addLinks",actor:o[s-1].actor,text:o[s]}];break;case 57:this.$=[o[s-1],{type:"addALink",actor:o[s-1].actor,text:o[s]}];break;case 58:this.$=[o[s-1],{type:"addProperties",actor:o[s-1].actor,text:o[s]}];break;case 59:this.$=[o[s-1],{type:"addDetails",actor:o[s-1].actor,text:o[s]}];break;case 62:this.$=[o[s-2],o[s]];break;case 64:this.$=i.PLACEMENT.LEFTOF;break;case 65:this.$=i.PLACEMENT.RIGHTOF;break;case 66:this.$=[o[s-4],o[s-1],{type:"addMessage",from:o[s-4].actor,to:o[s-1].actor,signalType:o[s-3],msg:o[s]},{type:"activeStart",signalType:i.LINETYPE.ACTIVE_START,actor:o[s-1]}];break;case 67:this.$=[o[s-4],o[s-1],{type:"addMessage",from:o[s-4].actor,to:o[s-1].actor,signalType:o[s-3],msg:o[s]},{type:"activeEnd",signalType:i.LINETYPE.ACTIVE_END,actor:o[s-4]}];break;case 68:this.$=[o[s-3],o[s-1],{type:"addMessage",from:o[s-3].actor,to:o[s-1].actor,signalType:o[s-2],msg:o[s]}];break;case 69:this.$={type:"addParticipant",actor:o[s]};break;case 70:this.$=i.LINETYPE.SOLID_OPEN;break;case 71:this.$=i.LINETYPE.DOTTED_OPEN;break;case 72:this.$=i.LINETYPE.SOLID;break;case 73:this.$=i.LINETYPE.DOTTED;break;case 74:this.$=i.LINETYPE.SOLID_CROSS;break;case 75:this.$=i.LINETYPE.DOTTED_CROSS;break;case 76:this.$=i.LINETYPE.SOLID_POINT;break;case 77:this.$=i.LINETYPE.DOTTED_POINT;break;case 78:this.$=i.parseMessage(o[s].trim().substring(1));break;case 79:i.parseDirective("%%{","open_directive");break;case 80:i.parseDirective(o[s],"type_directive");break;case 81:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 82:i.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:e,5:n,6:4,7:i,14:6,83:r},{1:[3]},{3:8,4:e,5:n,6:4,7:i,14:6,83:r},{3:9,4:e,5:n,6:4,7:i,14:6,83:r},{3:10,4:e,5:n,6:4,7:i,14:6,83:r},t([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],o,{8:11}),{15:12,84:[1,13]},{84:[2,79]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:a,5:s,6:41,9:14,10:16,13:18,14:6,19:c,22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},{16:51,17:[1,52],86:M},t([17,86],[2,80]),t(P,[2,6]),{6:41,10:54,13:18,14:6,19:c,22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},t(P,[2,8]),t(P,[2,9]),t(P,[2,17]),{20:[1,55]},{5:[1,56]},{5:[1,59],24:[1,57],25:[1,58]},{27:60,73:B},{27:61,73:B},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},t(P,[2,31]),t(P,[2,32]),{37:[1,67]},{39:[1,68]},t(P,[2,35]),{20:[1,69]},{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},t(P,[2,43]),{27:76,73:B},{27:77,73:B},{70:78,74:[1,79],75:[1,80],76:[1,81],77:[1,82],78:[1,83],79:[1,84],80:[1,85],81:[1,86]},{58:87,60:[1,88],68:[1,89],69:[1,90]},{27:91,73:B},{27:92,73:B},{27:93,73:B},{27:94,73:B},t([5,55,67,74,75,76,77,78,79,80,81,82],[2,69]),{5:[1,95]},{18:96,85:[1,97]},{5:[2,82]},t(P,[2,7]),t(L,[2,10],{11:98}),t(P,[2,19]),{5:[1,100],24:[1,99]},{5:[1,101]},t(P,[2,23]),{5:[1,102]},{5:[1,103]},t(P,[2,26]),t(P,[2,27]),t(P,[2,28]),t(P,[2,29]),t(P,[2,30]),t(P,[2,33]),t(P,[2,34]),t(O,o,{8:104}),t(O,o,{8:105}),t(O,o,{8:106}),t(N,o,{45:107,8:108}),t(R,o,{47:109,8:110}),t(F,o,{49:111,8:112}),t(O,o,{8:113}),{5:[1,115],55:[1,114]},{5:[1,117],55:[1,116]},{27:120,71:[1,118],72:[1,119],73:B},t(j,[2,70]),t(j,[2,71]),t(j,[2,72]),t(j,[2,73]),t(j,[2,74]),t(j,[2,75]),t(j,[2,76]),t(j,[2,77]),{27:121,73:B},{27:123,61:122,73:B},{73:[2,64]},{73:[2,65]},{59:124,82:$},{59:126,82:$},{59:127,82:$},{59:128,82:$},t(z,[2,15]),{16:129,86:M},{86:[2,81]},{4:[1,132],5:[1,134],12:131,13:133,21:[1,130],54:A,56:x},{5:[1,135]},t(P,[2,21]),t(P,[2,22]),t(P,[2,24]),t(P,[2,25]),{4:a,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,136],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},{4:a,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,137],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},{4:a,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,138],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},{21:[1,139]},{4:a,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,48],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,53:[1,140],54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},{21:[1,141]},{4:a,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,46],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,52:[1,142],54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},{21:[1,143]},{4:a,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,44],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,51:[1,144],54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},{4:a,5:s,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,145],22:20,23:l,26:u,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:d,35:f,36:g,38:p,40:m,41:b,42:w,43:k,44:v,46:y,48:_,50:C,54:A,56:x,57:E,62:T,63:S,64:D,65:I,73:B,83:r},{20:[1,146]},t(P,[2,51]),{20:[1,147]},t(P,[2,53]),{27:148,73:B},{27:149,73:B},{59:150,82:$},{59:151,82:$},{59:152,82:$},{67:[1,153],82:[2,63]},{5:[2,56]},{5:[2,78]},{5:[2,57]},{5:[2,58]},{5:[2,59]},{5:[1,154]},t(P,[2,18]),t(L,[2,11]),{13:155,54:A,56:x},t(L,[2,13]),t(L,[2,14]),t(P,[2,20]),t(P,[2,36]),t(P,[2,37]),t(P,[2,38]),t(P,[2,39]),{20:[1,156]},t(P,[2,40]),{20:[1,157]},t(P,[2,41]),{20:[1,158]},t(P,[2,42]),{5:[1,159]},{5:[1,160]},{59:161,82:$},{59:162,82:$},{5:[2,68]},{5:[2,54]},{5:[2,55]},{27:163,73:B},t(z,[2,16]),t(L,[2,12]),t(N,o,{8:108,45:164}),t(R,o,{8:110,47:165}),t(F,o,{8:112,49:166}),t(P,[2,50]),t(P,[2,52]),{5:[2,66]},{5:[2,67]},{82:[2,62]},{21:[2,49]},{21:[2,47]},{21:[2,45]}],defaultActions:{7:[2,79],8:[2,1],9:[2,2],10:[2,3],53:[2,82],89:[2,64],90:[2,65],97:[2,81],124:[2,56],125:[2,78],126:[2,57],127:[2,58],128:[2,59],150:[2,68],151:[2,54],152:[2,55],161:[2,66],162:[2,67],163:[2,62],164:[2,49],165:[2,47],166:[2,45]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},H={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:case 53:case 66:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return e.yytext=e.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 54:return e.yytext=e.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 67:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}};function q(){this.yy={}}return V.lexer=H,q.prototype=V,V.Parser=q,new q}();gF.parser=gF;const pF=gF,mF=t=>null!==t.match(/^\s*sequenceDiagram/);let bF,wF,kF,vF={},yF=[],_F=[],CF=!1;const AF=function(t){yF.push({name:t.text,wrap:void 0===t.wrap&&IF()||!!t.wrap,fill:t.color,actorKeys:[]}),kF=yF.slice(-1)[0]},xF=function(t,e,n,i){let r=kF;const o=vF[t];if(o){if(kF&&o.box&&kF!==o.box)throw new Error("A same participant should only be defined in one Box: "+o.name+" can't be in '"+o.box.name+"' and in '"+kF.name+"' at the same time.");if(r=o.box?o.box:kF,o.box=r,o&&e===o.name&&null==n)return}null!=n&&null!=n.text||(n={text:e,wrap:null,type:i}),null!=i&&null!=n.text||(n={text:e,wrap:null,type:i}),vF[t]={box:r,name:e,description:n.text,wrap:void 0===n.wrap&&IF()||!!n.wrap,prevActor:bF,links:{},properties:{},actorCnt:null,rectData:null,type:i||"participant"},bF&&vF[bF]&&(vF[bF].nextActor=t),kF&&kF.actorKeys.push(t),bF=t},EF=t=>{let e,n=0;for(e=0;e<_F.length;e++)_F[e].type===BF.ACTIVE_START&&_F[e].from.actor===t&&n++,_F[e].type===BF.ACTIVE_END&&_F[e].from.actor===t&&n--;return n},TF=function(t,e,n,i){_F.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&IF()||!!n.wrap,answer:i})},SF=function(t,e,n={text:void 0,wrap:void 0},i){if(i===BF.ACTIVE_END&&EF(t.actor)<1){let e=new Error("Trying to inactivate an inactive participant ("+t.actor+")");throw e.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},e}return _F.push({from:t,to:e,message:n.text,wrap:void 0===n.wrap&&IF()||!!n.wrap,type:i}),!0},DF=function(t){return vF[t]},IF=()=>void 0!==wF?wF:_w().sequence.wrap,BF={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},MF=function(t,e,n){n.text,void 0===n.wrap&&IF()||n.wrap;const i=[].concat(t,t);_F.push({from:i[0],to:i[1],message:n.text,wrap:void 0===n.wrap&&IF()||!!n.wrap,type:BF.NOTE,placement:e})},PF=function(t,e){const n=DF(t);try{let t=Gh(e.text,_w());t=t.replace(/&amp;/g,"&"),t=t.replace(/&equals;/g,"="),OF(n,JSON.parse(t))}catch(t){h.error("error while parsing actor link text",t)}},LF=function(t,e){const n=DF(t);try{const t={};let a=Gh(e.text,_w());var i=a.indexOf("@");a=a.replace(/&amp;/g,"&"),a=a.replace(/&equals;/g,"=");var r=a.slice(0,i-1).trim(),o=a.slice(i+1).trim();t[r]=o,OF(n,t)}catch(t){h.error("error while parsing actor link text",t)}};function OF(t,e){if(null==t.links)t.links=e;else for(let n in e)t.links[n]=e[n]}const NF=function(t,e){const n=DF(t);try{let t=Gh(e.text,_w());RF(n,JSON.parse(t))}catch(t){h.error("error while parsing actor properties text",t)}};function RF(t,e){if(null==t.properties)t.properties=e;else for(let n in e)t.properties[n]=e[n]}function FF(){kF=void 0}const jF=function(t,e){const n=DF(t),i=document.getElementById(e.text);try{const t=i.innerHTML,e=JSON.parse(t);e.properties&&RF(n,e.properties),e.links&&OF(n,e.links)}catch(t){h.error("error while parsing actor details text",t)}},$F=function(t){if(Array.isArray(t))t.forEach((function(t){$F(t)}));else switch(t.type){case"sequenceIndex":_F.push({from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":xF(t.actor,t.actor,t.description,"participant");break;case"addActor":xF(t.actor,t.actor,t.description,"actor");break;case"activeStart":case"activeEnd":SF(t.actor,void 0,void 0,t.signalType);break;case"addNote":MF(t.actor,t.placement,t.text);break;case"addLinks":PF(t.actor,t.text);break;case"addALink":LF(t.actor,t.text);break;case"addProperties":NF(t.actor,t.text);break;case"addDetails":jF(t.actor,t.text);break;case"addMessage":SF(t.from,t.to,t.msg,t.signalType);break;case"boxStart":AF(t.boxData);break;case"boxEnd":FF();break;case"loopStart":SF(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":SF(void 0,void 0,void 0,t.signalType);break;case"rectStart":SF(void 0,void 0,t.color,t.signalType);break;case"optStart":SF(void 0,void 0,t.optText,t.signalType);break;case"altStart":case"else":SF(void 0,void 0,t.altText,t.signalType);break;case"setAccTitle":tk(t.text);break;case"parStart":case"and":SF(void 0,void 0,t.parText,t.signalType);break;case"criticalStart":SF(void 0,void 0,t.criticalText,t.signalType);break;case"option":SF(void 0,void 0,t.optionText,t.signalType);break;case"breakStart":SF(void 0,void 0,t.breakText,t.signalType)}},zF={addActor:xF,addMessage:TF,addSignal:SF,addLinks:PF,addDetails:jF,addProperties:NF,autoWrap:IF,setWrap:function(t){wF=t},enableSequenceNumbers:function(){CF=!0},disableSequenceNumbers:function(){CF=!1},showSequenceNumbers:()=>CF,getMessages:function(){return _F},getActors:function(){return vF},getActor:DF,getActorKeys:function(){return Object.keys(vF)},getActorProperty:function(t,e){if(void 0!==t&&void 0!==t.properties)return t.properties[e]},getAccTitle:ek,getBoxes:function(){return yF},getDiagramTitle:ok,setDiagramTitle:rk,parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().sequence,clear:function(){vF={},yF=[],_F=[],CF=!1,Jw()},parseMessage:function(t){const e=t.trim(),n={text:e.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==e.match(/^:?wrap:/)||null===e.match(/^:?nowrap:/)&&void 0};return h.debug("parseMessage:",n),n},parseBoxData:function(t){const e=t.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let n=null!=e&&e[1]?e[1].trim():"transparent",i=null!=e&&e[2]?e[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",n)||(n="transparent",i=t.trim());else{const e=(new Option).style;e.color=n,e.color!==n&&(n="transparent",i=t.trim())}return{color:n,text:void 0!==i?Gh(i.replace(/^:?(?:no)?wrap:/,""),_w()):void 0,wrap:void 0!==i?null!==i.match(/^:?wrap:/)||null===i.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:BF,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:MF,setAccTitle:tk,apply:$F,setAccDescription:nk,getAccDescription:ik,hasAtLeastOneBox:function(){return yF.length>0},hasAtLeastOneBoxWithTitle:function(){return yF.some((t=>t.name))}};let VF=[];const HF=t=>{VF.push(t)},qF=()=>{VF.forEach((t=>{t()})),VF=[]},UF=function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},GF=(t,e)=>{HF((()=>{const n=document.querySelectorAll(t);0!==n.length&&(n[0].addEventListener("mouseover",(function(){QF("actor"+e+"_popup")})),n[0].addEventListener("mouseout",(function(){JF("actor"+e+"_popup")})))}))},WF=function(t,e,n,i,r){if(void 0===e.links||null===e.links||0===Object.keys(e.links).length)return{height:0,width:0};const o=e.links,a=e.actorCnt,s=e.rectData;var c="none";r&&(c="block !important");const l=t.append("g");l.attr("id","actor"+a+"_popup"),l.attr("class","actorPopupMenu"),l.attr("display",c),GF("#actor"+a+"_popup",a);var u="";void 0!==s.class&&(u=" "+s.class);let h=s.width>n?s.width:n;const d=l.append("rect");if(d.attr("class","actorPopupMenuPanel"+u),d.attr("x",s.x),d.attr("y",s.height),d.attr("fill",s.fill),d.attr("stroke",s.stroke),d.attr("width",h),d.attr("height",s.height),d.attr("rx",s.rx),d.attr("ry",s.ry),null!=o){var f=20;for(let t in o){var g=l.append("a"),m=p(o[t]);g.attr("xlink:href",m),g.attr("target","_blank"),_j(i)(t,g,s.x+10,s.height+f,h,20,{class:"actor"},i),f+=30}}return d.attr("height",f),{height:s.height+f,width:h}},KF=function(t,e,n,i){const r=t.append("image");r.attr("x",e),r.attr("y",n);var o=p(i);r.attr("xlink:href",o)},YF=function(t,e,n,i){const r=t.append("use");r.attr("x",e),r.attr("y",n);var o=p(i);r.attr("xlink:href","#"+o)},XF=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'block'; }"},ZF=function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = 'none'; }"},QF=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="block")},JF=function(t){var e=document.getElementById(t);null!=e&&(e.style.display="none")},tj=function(t,e){let n=0,i=0;const r=e.text.split(Jh.lineBreakRegex),[o,a]=wb(e.fontSize);let s=[],c=0,l=()=>e.y;if(void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0)switch(e.valign){case"top":case"start":l=()=>Math.round(e.y+e.textMargin);break;case"middle":case"center":l=()=>Math.round(e.y+(n+i+e.textMargin)/2);break;case"bottom":case"end":l=()=>Math.round(e.y+(n+i+2*e.textMargin)-e.textMargin)}if(void 0!==e.anchor&&void 0!==e.textMargin&&void 0!==e.width)switch(e.anchor){case"left":case"start":e.x=Math.round(e.x+e.textMargin),e.anchor="start",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"middle":case"center":e.x=Math.round(e.x+e.width/2),e.anchor="middle",e.dominantBaseline="middle",e.alignmentBaseline="middle";break;case"right":case"end":e.x=Math.round(e.x+e.width-e.textMargin),e.anchor="end",e.dominantBaseline="middle",e.alignmentBaseline="middle"}for(let[u,h]of r.entries()){void 0!==e.textMargin&&0===e.textMargin&&void 0!==o&&(c=u*o);const r=t.append("text");if(r.attr("x",e.x),r.attr("y",l()),void 0!==e.anchor&&r.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline),void 0!==e.fontFamily&&r.style("font-family",e.fontFamily),void 0!==a&&r.style("font-size",a),void 0!==e.fontWeight&&r.style("font-weight",e.fontWeight),void 0!==e.fill&&r.attr("fill",e.fill),void 0!==e.class&&r.attr("class",e.class),void 0!==e.dy?r.attr("dy",e.dy):0!==c&&r.attr("dy",c),e.tspan){const t=r.append("tspan");t.attr("x",e.x),void 0!==e.fill&&t.attr("fill",e.fill),t.text(h)}else r.text(h);void 0!==e.valign&&void 0!==e.textMargin&&e.textMargin>0&&(i+=(r._groups||r)[0][0].getBBox().height,n=i),s.push(r)}return s},ej=function(t,e){function n(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}const i=t.append("polygon");return i.attr("points",n(e.x,e.y,e.width,e.height,7)),i.attr("class","labelBox"),e.y=e.y+e.height/2,tj(t,e),i};let nj=-1;const ij=(t,e)=>{t.selectAll&&t.selectAll(".actor-line").attr("class","200").attr("y2",e-55)},rj=function(t,e,n,i){const r=e.x+e.width/2,o=e.y+5,a=t.append("g");var s=a;i||(nj++,s.append("line").attr("id","actor"+nj).attr("x1",r).attr("y1",o).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),s=a.append("g"),e.actorCnt=nj,null!=e.links&&(s.attr("id","root-"+nj),GF("#root-"+nj,nj)));const c=vj();var l="actor";null!=e.properties&&e.properties.class?l=e.properties.class:c.fill="#eaeaea",c.x=e.x,c.y=e.y,c.width=e.width,c.height=e.height,c.class=l,c.rx=3,c.ry=3;const u=UF(s,c);if(e.rectData=c,null!=e.properties&&e.properties.icon){const t=e.properties.icon.trim();"@"===t.charAt(0)?YF(s,c.x+c.width-20,c.y+10,t.substr(1)):KF(s,c.x+c.width-20,c.y+10,t)}yj(n)(e.description,s,c.x,c.y,c.width,c.height,{class:"actor"},n);let h=e.height;if(u.node){const t=u.node().getBBox();e.height=t.height,h=t.height}return h},oj=function(t,e,n,i){const r=e.x+e.width/2,o=e.y+80;i||(nj++,t.append("line").attr("id","actor"+nj).attr("x1",r).attr("y1",o).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));const a=t.append("g");a.attr("class","actor-man");const s=vj();s.x=e.x,s.y=e.y,s.fill="#eaeaea",s.width=e.width,s.height=e.height,s.class="actor",s.rx=3,s.ry=3,a.append("line").attr("id","actor-man-torso"+nj).attr("x1",r).attr("y1",e.y+25).attr("x2",r).attr("y2",e.y+45),a.append("line").attr("id","actor-man-arms"+nj).attr("x1",r-18).attr("y1",e.y+33).attr("x2",r+18).attr("y2",e.y+33),a.append("line").attr("x1",r-18).attr("y1",e.y+60).attr("x2",r).attr("y2",e.y+45),a.append("line").attr("x1",r).attr("y1",e.y+45).attr("x2",r+16).attr("y2",e.y+60);const c=a.append("circle");c.attr("cx",e.x+e.width/2),c.attr("cy",e.y+10),c.attr("r",15),c.attr("width",e.width),c.attr("height",e.height);const l=a.node().getBBox();return e.height=l.height,yj(n)(e.description,a,s.x,s.y+35,s.width,s.height,{class:"actor"},n),e.height},aj=function(t,e,n,i){switch(e.type){case"actor":return oj(t,e,n,i);case"participant":return rj(t,e,n,i)}},sj=function(t,e,n){const i=t.append("g");hj(i,e),e.name&&yj(n)(e.name,i,e.x,e.y+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},n),i.lower()},cj=function(t){return t.append("g")},lj=function(t,e,n,i,r){const o=vj(),a=e.anchored;o.x=e.startx,o.y=e.starty,o.class="activation"+r%3,o.width=e.stopx-e.startx,o.height=n-e.starty,UF(a,o)},uj=function(t,e,n,i){const{boxMargin:r,boxTextMargin:o,labelBoxHeight:a,labelBoxWidth:s,messageFontFamily:c,messageFontSize:l,messageFontWeight:u}=i,h=t.append("g"),d=function(t,e,n,i){return h.append("line").attr("x1",t).attr("y1",e).attr("x2",n).attr("y2",i).attr("class","loopLine")};d(e.startx,e.starty,e.stopx,e.starty),d(e.stopx,e.starty,e.stopx,e.stopy),d(e.startx,e.stopy,e.stopx,e.stopy),d(e.startx,e.starty,e.startx,e.stopy),void 0!==e.sections&&e.sections.forEach((function(t){d(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}));let f=kj();f.text=n,f.x=e.startx,f.y=e.starty,f.fontFamily=c,f.fontSize=l,f.fontWeight=u,f.anchor="middle",f.valign="middle",f.tspan=!1,f.width=s||50,f.height=a||20,f.textMargin=o,f.class="labelText",ej(h,f),f=kj(),f.text=e.title,f.x=e.startx+s/2+(e.stopx-e.startx)/2,f.y=e.starty+r+o,f.anchor="middle",f.valign="middle",f.textMargin=o,f.class="loopText",f.fontFamily=c,f.fontSize=l,f.fontWeight=u,f.wrap=!0;let g=tj(h,f);return void 0!==e.sectionTitles&&e.sectionTitles.forEach((function(t,n){if(t.message){f.text=t.message,f.x=e.startx+(e.stopx-e.startx)/2,f.y=e.sections[n].y+r+o,f.class="loopText",f.anchor="middle",f.valign="middle",f.tspan=!1,f.fontFamily=c,f.fontSize=l,f.fontWeight=u,f.wrap=e.wrap,g=tj(h,f);let i=Math.round(g.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[n].height+=i-(r+o)}})),e.height=Math.round(e.stopy-e.starty),h},hj=function(t,e){UF(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,stroke:e.stroke,class:"rect"}).lower()},dj=function(t){t.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},fj=function(t){t.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},gj=function(t){t.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},pj=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},mj=function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},bj=function(t){t.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},wj=function(t){t.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},kj=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},vj=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},yj=function(){function t(t,e,n,r,o,a,s){i(e.append("text").attr("x",n+o/2).attr("y",r+a/2+5).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,o,a,s,c){const{actorFontSize:l,actorFontFamily:u,actorFontWeight:h}=c,[d,f]=wb(l),g=t.split(Jh.lineBreakRegex);for(let t=0;t<g.length;t++){const c=t*d-d*(g.length-1)/2,l=e.append("text").attr("x",n+o/2).attr("y",r).style("text-anchor","middle").style("font-size",f).style("font-weight",h).style("font-family",u);l.append("tspan").attr("x",n+o/2).attr("dy",c).text(g[t]),l.attr("y",r+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(l,s)}}function n(t,n,r,o,a,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",r).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,r,o,a,s,c,l),i(h,c)}function i(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),_j=function(){function t(t,e,n,r,o,a,s){i(e.append("text").attr("x",n).attr("y",r).style("text-anchor","start").text(t),s)}function e(t,e,n,r,o,a,s,c){const{actorFontSize:l,actorFontFamily:u,actorFontWeight:h}=c,d=t.split(Jh.lineBreakRegex);for(let t=0;t<d.length;t++){const o=t*l-l*(d.length-1)/2,c=e.append("text").attr("x",n).attr("y",r).style("text-anchor","start").style("font-size",l).style("font-weight",h).style("font-family",u);c.append("tspan").attr("x",n).attr("dy",o).text(d[t]),c.attr("y",r+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(c,s)}}function n(t,n,r,o,a,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",r).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,r,o,a,s,c,l),i(h,c)}function i(t,e){for(const n in e)e.hasOwnProperty(n)&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),Cj={drawRect:UF,drawText:tj,drawLabel:ej,drawActor:aj,drawBox:sj,drawPopup:WF,drawImage:KF,drawEmbeddedImage:YF,anchorElement:cj,drawActivation:lj,drawLoop:uj,drawBackgroundRect:hj,insertArrowHead:pj,insertArrowFilledHead:mj,insertSequenceNumber:bj,insertArrowCrossHead:wj,insertDatabaseIcon:dj,insertComputerIcon:fj,insertClockIcon:gj,getTextObj:kj,getNoteRect:vj,popupMenu:XF,popdownMenu:ZF,fixLifeLineHeights:ij,sanitizeUrl:p};let Aj={};const xj={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((t=>t.height||0)))+(0===this.loops.length?0:this.loops.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.messages.length?0:this.messages.map((t=>t.height||0)).reduce(((t,e)=>t+e)))+(0===this.notes.length?0:this.notes.map((t=>t.height||0)).reduce(((t,e)=>t+e)))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(t){this.boxes.push(t)},addActor:function(t){this.actors.push(t)},addLoop:function(t){this.loops.push(t)},addMessage:function(t){this.messages.push(t)},addNote:function(t){this.notes.push(t)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,Lj(_w())},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,i){const r=this;let o=0;function a(a){return function(s){o++;const c=r.sequenceItems.length-o+1;r.updateVal(s,"starty",e-c*Aj.boxMargin,Math.min),r.updateVal(s,"stopy",i+c*Aj.boxMargin,Math.max),r.updateVal(xj.data,"startx",t-c*Aj.boxMargin,Math.min),r.updateVal(xj.data,"stopx",n+c*Aj.boxMargin,Math.max),"activation"!==a&&(r.updateVal(s,"startx",t-c*Aj.boxMargin,Math.min),r.updateVal(s,"stopx",n+c*Aj.boxMargin,Math.max),r.updateVal(xj.data,"starty",e-c*Aj.boxMargin,Math.min),r.updateVal(xj.data,"stopy",i+c*Aj.boxMargin,Math.max))}}this.sequenceItems.forEach(a()),this.activations.forEach(a("activation"))},insert:function(t,e,n,i){const r=Math.min(t,n),o=Math.max(t,n),a=Math.min(e,i),s=Math.max(e,i);this.updateVal(xj.data,"startx",r,Math.min),this.updateVal(xj.data,"starty",a,Math.min),this.updateVal(xj.data,"stopx",o,Math.max),this.updateVal(xj.data,"stopy",s,Math.max),this.updateBounds(r,a,o,s)},newActivation:function(t,e,n){const i=n[t.from.actor],r=Oj(t.from.actor).length||0,o=i.x+i.width/2+(r-1)*Aj.activationWidth/2;this.activations.push({startx:o,starty:this.verticalPos+2,stopx:o+Aj.activationWidth,stopy:void 0,actor:t.from.actor,anchored:Cj.anchorElement(e)})},endActivation:function(t){const e=this.activations.map((function(t){return t.actor})).lastIndexOf(t.from.actor);return this.activations.splice(e,1)[0]},createLoop:function(t={message:void 0,wrap:!1,width:void 0},e){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t.message,wrap:t.wrap,width:t.width,height:0,fill:e}},newLoop:function(t={message:void 0,wrap:!1,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[],e.sectionTitles=e.sectionTitles||[],e.sections.push({y:xj.getVerticalPos(),height:0}),e.sectionTitles.push(t),this.sequenceItems.push(e)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},Ej=function(t,e){xj.bumpVerticalPos(Aj.boxMargin),e.height=Aj.boxMargin,e.starty=xj.getVerticalPos();const n=Cj.getNoteRect();n.x=e.startx,n.y=e.starty,n.width=e.width||Aj.width,n.class="note";const i=t.append("g"),r=Cj.drawRect(i,n),o=Cj.getTextObj();o.x=e.startx,o.y=e.starty,o.width=n.width,o.dy="1em",o.text=e.message,o.class="noteText",o.fontFamily=Aj.noteFontFamily,o.fontSize=Aj.noteFontSize,o.fontWeight=Aj.noteFontWeight,o.anchor=Aj.noteAlign,o.textMargin=Aj.noteMargin,o.valign="center";const a=tj(i,o),s=Math.round(a.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));r.attr("height",s+2*Aj.noteMargin),e.height+=s+2*Aj.noteMargin,xj.bumpVerticalPos(s+2*Aj.noteMargin),e.stopy=e.starty+s+2*Aj.noteMargin,e.stopx=e.startx+n.width,xj.insert(e.startx,e.starty,e.stopx,e.stopy),xj.models.addNote(e)},Tj=t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight}),Sj=t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight}),Dj=t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight});function Ij(t,e){xj.bumpVerticalPos(10);const{startx:n,stopx:i,message:r}=e,o=Jh.splitBreaks(r).length,a=kb.calculateTextDimensions(r,Tj(Aj)),s=a.height/o;let c;e.height+=s,xj.bumpVerticalPos(s);let l=a.height-10;const u=a.width;if(n===i){c=xj.getVerticalPos()+l,Aj.rightAngles||(l+=Aj.boxMargin,c=xj.getVerticalPos()+l),l+=30;const t=Math.max(u/2,Aj.width/2);xj.insert(n-t,xj.getVerticalPos()-10+l,i+t,xj.getVerticalPos()+30+l)}else l+=Aj.boxMargin,c=xj.getVerticalPos()+l,xj.insert(n,c-10,i,c);return xj.bumpVerticalPos(l),e.height+=l,e.stopy=e.starty+e.height,xj.insert(e.fromBounds,e.starty,e.toBounds,e.stopy),c}const Bj=function(t,e,n,i){const{startx:r,stopx:o,starty:a,message:s,type:c,sequenceIndex:l,sequenceVisible:u}=e,h=kb.calculateTextDimensions(s,Tj(Aj)),d=Cj.getTextObj();d.x=r,d.y=a+10,d.width=o-r,d.class="messageText",d.dy="1em",d.text=s,d.fontFamily=Aj.messageFontFamily,d.fontSize=Aj.messageFontSize,d.fontWeight=Aj.messageFontWeight,d.anchor=Aj.messageAlign,d.valign="center",d.textMargin=Aj.wrapPadding,d.tspan=!1,tj(t,d);const f=h.width;let g;r===o?g=Aj.rightAngles?t.append("path").attr("d",`M ${r},${n} H ${r+Math.max(Aj.width/2,f/2)} V ${n+25} H ${r}`):t.append("path").attr("d","M "+r+","+n+" C "+(r+60)+","+(n-10)+" "+(r+60)+","+(n+30)+" "+r+","+(n+20)):(g=t.append("line"),g.attr("x1",r),g.attr("y1",n),g.attr("x2",o),g.attr("y2",n)),c===i.db.LINETYPE.DOTTED||c===i.db.LINETYPE.DOTTED_CROSS||c===i.db.LINETYPE.DOTTED_POINT||c===i.db.LINETYPE.DOTTED_OPEN?(g.style("stroke-dasharray","3, 3"),g.attr("class","messageLine1")):g.attr("class","messageLine0");let p="";Aj.arrowMarkerAbsolute&&(p=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,p=p.replace(/\(/g,"\\("),p=p.replace(/\)/g,"\\)")),g.attr("stroke-width",2),g.attr("stroke","none"),g.style("fill","none"),c!==i.db.LINETYPE.SOLID&&c!==i.db.LINETYPE.DOTTED||g.attr("marker-end","url("+p+"#arrowhead)"),c!==i.db.LINETYPE.SOLID_POINT&&c!==i.db.LINETYPE.DOTTED_POINT||g.attr("marker-end","url("+p+"#filled-head)"),c!==i.db.LINETYPE.SOLID_CROSS&&c!==i.db.LINETYPE.DOTTED_CROSS||g.attr("marker-end","url("+p+"#crosshead)"),(u||Aj.showSequenceNumbers)&&(g.attr("marker-start","url("+p+"#sequencenumber)"),t.append("text").attr("x",r).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(l))},Mj=function(t,e,n,i,r,o,a){if(!0===r.hideUnusedParticipants){const t=new Set;o.forEach((e=>{t.add(e.from),t.add(e.to)})),n=n.filter((e=>t.has(e)))}let s,c=0,l=0,u=0;for(const r of n){const n=e[r],o=n.box;s&&s!=o&&(a||xj.models.addBox(s),l+=Aj.boxMargin+s.margin),o&&o!=s&&(a||(o.x=c+l,o.y=i),l+=o.margin),n.width=n.width||Aj.width,n.height=Math.max(n.height||Aj.height,Aj.height),n.margin=n.margin||Aj.actorMargin,n.x=c+l,n.y=xj.getVerticalPos();const h=Cj.drawActor(t,n,Aj,a);u=Math.max(u,h),xj.insert(n.x,i,n.x+n.width,n.height),c+=n.width+l,n.box&&(n.box.width=c+o.margin-n.box.x),l=n.margin,s=n.box,xj.models.addActor(n)}s&&!a&&xj.models.addBox(s),xj.bumpVerticalPos(u)},Pj=function(t,e,n,i){let r=0,o=0;for(const a of n){const n=e[a],s=$j(n),c=Cj.drawPopup(t,n,s,Aj,Aj.forceMenus,i);c.height>r&&(r=c.height),c.width+n.x>o&&(o=c.width+n.x)}return{maxHeight:r,maxWidth:o}},Lj=function(t){Tp(Aj,t),t.fontFamily&&(Aj.actorFontFamily=Aj.noteFontFamily=Aj.messageFontFamily=t.fontFamily),t.fontSize&&(Aj.actorFontSize=Aj.noteFontSize=Aj.messageFontSize=t.fontSize),t.fontWeight&&(Aj.actorFontWeight=Aj.noteFontWeight=Aj.messageFontWeight=t.fontWeight)},Oj=function(t){return xj.activations.filter((function(e){return e.actor===t}))},Nj=function(t,e){const n=e[t],i=Oj(t);return[i.reduce((function(t,e){return Math.min(t,e.startx)}),n.x+n.width/2),i.reduce((function(t,e){return Math.max(t,e.stopx)}),n.x+n.width/2)]};function Rj(t,e,n,i,r){xj.bumpVerticalPos(n);let o=i;if(e.id&&e.message&&t[e.id]){const n=t[e.id].width,r=Tj(Aj);e.message=kb.wrapLabel(`[${e.message}]`,n-2*Aj.wrapPadding,r),e.width=n,e.wrap=!0;const a=kb.calculateTextDimensions(e.message,r),s=Math.max(a.height,Aj.labelBoxHeight);o=i+s,h.debug(`${s} - ${e.message}`)}r(e),xj.bumpVerticalPos(o)}const Fj=function(t,e,n,i){const{securityLevel:r,sequence:o}=_w();let a;Aj=o,i.db.clear(),i.parser.parse(t),"sandbox"===r&&(a=un("#i"+e));const s=un("sandbox"===r?a.nodes()[0].contentDocument.body:"body"),c="sandbox"===r?a.nodes()[0].contentDocument:document;xj.init(),h.debug(i.db);const l="sandbox"===r?s.select(`[id="${e}"]`):un(`[id="${e}"]`),u=i.db.getActors(),d=i.db.getBoxes(),f=i.db.getActorKeys(),g=i.db.getMessages(),p=i.db.getDiagramTitle(),m=i.db.hasAtLeastOneBox(),b=i.db.hasAtLeastOneBoxWithTitle(),w=jj(u,g,i);Aj.height=zj(u,w,d),Cj.insertComputerIcon(l),Cj.insertDatabaseIcon(l),Cj.insertClockIcon(l),m&&(xj.bumpVerticalPos(Aj.boxMargin),b&&xj.bumpVerticalPos(d[0].textMaxHeight)),Mj(l,u,f,0,Aj,g,!1);const k=qj(g,u,w,i);function v(t,e){const n=xj.endActivation(t);n.starty+18>e&&(n.starty=e-6,e+=12),Cj.drawActivation(l,n,e,Aj,Oj(t.from.actor).length),xj.insert(n.startx,e-10,n.stopx,e)}Cj.insertArrowHead(l),Cj.insertArrowCrossHead(l),Cj.insertArrowFilledHead(l),Cj.insertSequenceNumber(l);let y=1,_=1;const C=[];g.forEach((function(t){let e,n,r;switch(t.type){case i.db.LINETYPE.NOTE:n=t.noteModel,Ej(l,n);break;case i.db.LINETYPE.ACTIVE_START:xj.newActivation(t,l,u);break;case i.db.LINETYPE.ACTIVE_END:v(t,xj.getVerticalPos());break;case i.db.LINETYPE.LOOP_START:Rj(k,t,Aj.boxMargin,Aj.boxMargin+Aj.boxTextMargin,(t=>xj.newLoop(t)));break;case i.db.LINETYPE.LOOP_END:e=xj.endLoop(),Cj.drawLoop(l,e,"loop",Aj),xj.bumpVerticalPos(e.stopy-xj.getVerticalPos()),xj.models.addLoop(e);break;case i.db.LINETYPE.RECT_START:Rj(k,t,Aj.boxMargin,Aj.boxMargin,(t=>xj.newLoop(void 0,t.message)));break;case i.db.LINETYPE.RECT_END:e=xj.endLoop(),Cj.drawBackgroundRect(l,e),xj.models.addLoop(e),xj.bumpVerticalPos(e.stopy-xj.getVerticalPos());break;case i.db.LINETYPE.OPT_START:Rj(k,t,Aj.boxMargin,Aj.boxMargin+Aj.boxTextMargin,(t=>xj.newLoop(t)));break;case i.db.LINETYPE.OPT_END:e=xj.endLoop(),Cj.drawLoop(l,e,"opt",Aj),xj.bumpVerticalPos(e.stopy-xj.getVerticalPos()),xj.models.addLoop(e);break;case i.db.LINETYPE.ALT_START:Rj(k,t,Aj.boxMargin,Aj.boxMargin+Aj.boxTextMargin,(t=>xj.newLoop(t)));break;case i.db.LINETYPE.ALT_ELSE:Rj(k,t,Aj.boxMargin+Aj.boxTextMargin,Aj.boxMargin,(t=>xj.addSectionToLoop(t)));break;case i.db.LINETYPE.ALT_END:e=xj.endLoop(),Cj.drawLoop(l,e,"alt",Aj),xj.bumpVerticalPos(e.stopy-xj.getVerticalPos()),xj.models.addLoop(e);break;case i.db.LINETYPE.PAR_START:Rj(k,t,Aj.boxMargin,Aj.boxMargin+Aj.boxTextMargin,(t=>xj.newLoop(t)));break;case i.db.LINETYPE.PAR_AND:Rj(k,t,Aj.boxMargin+Aj.boxTextMargin,Aj.boxMargin,(t=>xj.addSectionToLoop(t)));break;case i.db.LINETYPE.PAR_END:e=xj.endLoop(),Cj.drawLoop(l,e,"par",Aj),xj.bumpVerticalPos(e.stopy-xj.getVerticalPos()),xj.models.addLoop(e);break;case i.db.LINETYPE.AUTONUMBER:y=t.message.start||y,_=t.message.step||_,t.message.visible?i.db.enableSequenceNumbers():i.db.disableSequenceNumbers();break;case i.db.LINETYPE.CRITICAL_START:Rj(k,t,Aj.boxMargin,Aj.boxMargin+Aj.boxTextMargin,(t=>xj.newLoop(t)));break;case i.db.LINETYPE.CRITICAL_OPTION:Rj(k,t,Aj.boxMargin+Aj.boxTextMargin,Aj.boxMargin,(t=>xj.addSectionToLoop(t)));break;case i.db.LINETYPE.CRITICAL_END:e=xj.endLoop(),Cj.drawLoop(l,e,"critical",Aj),xj.bumpVerticalPos(e.stopy-xj.getVerticalPos()),xj.models.addLoop(e);break;case i.db.LINETYPE.BREAK_START:Rj(k,t,Aj.boxMargin,Aj.boxMargin+Aj.boxTextMargin,(t=>xj.newLoop(t)));break;case i.db.LINETYPE.BREAK_END:e=xj.endLoop(),Cj.drawLoop(l,e,"break",Aj),xj.bumpVerticalPos(e.stopy-xj.getVerticalPos()),xj.models.addLoop(e);break;default:try{r=t.msgModel,r.starty=xj.getVerticalPos(),r.sequenceIndex=y,r.sequenceVisible=i.db.showSequenceNumbers();const e=Ij(l,r);C.push({messageModel:r,lineStartY:e}),xj.models.addMessage(r)}catch(t){h.error("error while drawing message",t)}}[i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.SOLID,i.db.LINETYPE.DOTTED,i.db.LINETYPE.SOLID_CROSS,i.db.LINETYPE.DOTTED_CROSS,i.db.LINETYPE.SOLID_POINT,i.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(y+=_)})),C.forEach((t=>Bj(l,t.messageModel,t.lineStartY,i))),Aj.mirrorActors&&(xj.bumpVerticalPos(2*Aj.boxMargin),Mj(l,u,f,xj.getVerticalPos(),Aj,g,!0),xj.bumpVerticalPos(Aj.boxMargin),ij(l,xj.getVerticalPos())),xj.models.boxes.forEach((function(t){t.height=xj.getVerticalPos()-t.y,xj.insert(t.x,t.y,t.x+t.width,t.height),t.startx=t.x,t.starty=t.y,t.stopx=t.startx+t.width,t.stopy=t.starty+t.height,t.stroke="rgb(0,0,0, 0.5)",Cj.drawBox(l,t,Aj)})),m&&xj.bumpVerticalPos(Aj.boxMargin);const A=Pj(l,u,f,c),{bounds:x}=xj.getBounds();h.debug("For line height fix Querying: #"+e+" .actor-line"),hn("#"+e+" .actor-line").attr("y2",x.stopy);let E=x.stopy-x.starty;E<A.maxHeight&&(E=A.maxHeight);let T=E+2*Aj.diagramMarginY;Aj.mirrorActors&&(T=T-Aj.boxMargin+Aj.bottomMarginAdj);let S=x.stopx-x.startx;S<A.maxWidth&&(S=A.maxWidth);const D=S+2*Aj.diagramMarginX;p&&l.append("text").text(p).attr("x",(x.stopx-x.startx)/2-2*Aj.diagramMarginX).attr("y",-25),Mw(l,T,D,Aj.useMaxWidth);const I=p?40:0;l.attr("viewBox",x.startx-Aj.diagramMarginX+" -"+(Aj.diagramMarginY+I)+" "+D+" "+(T+I)),h.debug("models:",xj.models)};function jj(t,e,n){const i={};return e.forEach((function(e){if(t[e.to]&&t[e.from]){const r=t[e.to];if(e.placement===n.db.PLACEMENT.LEFTOF&&!r.prevActor)return;if(e.placement===n.db.PLACEMENT.RIGHTOF&&!r.nextActor)return;const o=void 0!==e.placement,a=!o,s=o?Sj(Aj):Tj(Aj),c=e.wrap?kb.wrapLabel(e.message,Aj.width-2*Aj.wrapPadding,s):e.message,l=kb.calculateTextDimensions(c,s).width+2*Aj.wrapPadding;a&&e.from===r.nextActor?i[e.to]=Math.max(i[e.to]||0,l):a&&e.from===r.prevActor?i[e.from]=Math.max(i[e.from]||0,l):a&&e.from===e.to?(i[e.from]=Math.max(i[e.from]||0,l/2),i[e.to]=Math.max(i[e.to]||0,l/2)):e.placement===n.db.PLACEMENT.RIGHTOF?i[e.from]=Math.max(i[e.from]||0,l):e.placement===n.db.PLACEMENT.LEFTOF?i[r.prevActor]=Math.max(i[r.prevActor]||0,l):e.placement===n.db.PLACEMENT.OVER&&(r.prevActor&&(i[r.prevActor]=Math.max(i[r.prevActor]||0,l/2)),r.nextActor&&(i[e.from]=Math.max(i[e.from]||0,l/2)))}})),h.debug("maxMessageWidthPerActor:",i),i}const $j=function(t){let e=0;const n=Dj(Aj);for(const i in t.links){const t=kb.calculateTextDimensions(i,n).width+2*Aj.wrapPadding+2*Aj.boxMargin;e<t&&(e=t)}return e};function zj(t,e,n){let i=0;Object.keys(t).forEach((e=>{const n=t[e];n.wrap&&(n.description=kb.wrapLabel(n.description,Aj.width-2*Aj.wrapPadding,Dj(Aj)));const r=kb.calculateTextDimensions(n.description,Dj(Aj));n.width=n.wrap?Aj.width:Math.max(Aj.width,r.width+2*Aj.wrapPadding),n.height=n.wrap?Math.max(r.height,Aj.height):Aj.height,i=Math.max(i,n.height)}));for(const n in e){const i=t[n];if(!i)continue;const r=t[i.nextActor];if(!r){const t=e[n]+Aj.actorMargin-i.width/2;i.margin=Math.max(t,Aj.actorMargin);continue}const o=e[n]+Aj.actorMargin-i.width/2-r.width/2;i.margin=Math.max(o,Aj.actorMargin)}let r=0;return n.forEach((e=>{const n=Tj(Aj);let i=e.actorKeys.reduce(((e,n)=>e+(t[n].width+(t[n].margin||0))),0);i-=2*Aj.boxTextMargin,e.wrap&&(e.name=kb.wrapLabel(e.name,i-2*Aj.wrapPadding,n));const o=kb.calculateTextDimensions(e.name,n);r=Math.max(o.height,r);const a=Math.max(i,o.width+2*Aj.wrapPadding);if(e.margin=Aj.boxTextMargin,i<a){const t=(a-i)/2;e.margin+=t}})),n.forEach((t=>t.textMaxHeight=r)),Math.max(i,Aj.height)}const Vj=function(t,e,n){const i=e[t.from].x,r=e[t.to].x,o=t.wrap&&t.message;let a=kb.calculateTextDimensions(o?kb.wrapLabel(t.message,Aj.width,Sj(Aj)):t.message,Sj(Aj));const s={width:o?Aj.width:Math.max(Aj.width,a.width+2*Aj.noteMargin),height:0,startx:e[t.from].x,stopx:0,starty:0,stopy:0,message:t.message};return t.placement===n.db.PLACEMENT.RIGHTOF?(s.width=o?Math.max(Aj.width,a.width):Math.max(e[t.from].width/2+e[t.to].width/2,a.width+2*Aj.noteMargin),s.startx=i+(e[t.from].width+Aj.actorMargin)/2):t.placement===n.db.PLACEMENT.LEFTOF?(s.width=o?Math.max(Aj.width,a.width+2*Aj.noteMargin):Math.max(e[t.from].width/2+e[t.to].width/2,a.width+2*Aj.noteMargin),s.startx=i-s.width+(e[t.from].width-Aj.actorMargin)/2):t.to===t.from?(a=kb.calculateTextDimensions(o?kb.wrapLabel(t.message,Math.max(Aj.width,e[t.from].width),Sj(Aj)):t.message,Sj(Aj)),s.width=o?Math.max(Aj.width,e[t.from].width):Math.max(e[t.from].width,Aj.width,a.width+2*Aj.noteMargin),s.startx=i+(e[t.from].width-s.width)/2):(s.width=Math.abs(i+e[t.from].width/2-(r+e[t.to].width/2))+Aj.actorMargin,s.startx=i<r?i+e[t.from].width/2-Aj.actorMargin/2:r+e[t.to].width/2-Aj.actorMargin/2),o&&(s.message=kb.wrapLabel(t.message,s.width-2*Aj.wrapPadding,Sj(Aj))),h.debug(`NM:[${s.startx},${s.stopx},${s.starty},${s.stopy}:${s.width},${s.height}=${t.message}]`),s},Hj=function(t,e,n){let i=!1;if([n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT].includes(t.type)&&(i=!0),!i)return{};const r=Nj(t.from,e),o=Nj(t.to,e),a=r[0]<=o[0]?1:0,s=r[0]<o[0]?0:1,c=[...r,...o],l=Math.abs(o[s]-r[a]);t.wrap&&t.message&&(t.message=kb.wrapLabel(t.message,Math.max(l+2*Aj.wrapPadding,Aj.width),Tj(Aj)));const u=kb.calculateTextDimensions(t.message,Tj(Aj));return{width:Math.max(t.wrap?0:u.width+2*Aj.wrapPadding,l+2*Aj.wrapPadding,Aj.width),height:0,startx:r[a],stopx:o[s],starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,c),toBounds:Math.max.apply(null,c)}},qj=function(t,e,n,i){const r={},o=[];let a,s,c;return t.forEach((function(t){switch(t.id=kb.random({length:10}),t.type){case i.db.LINETYPE.LOOP_START:case i.db.LINETYPE.ALT_START:case i.db.LINETYPE.OPT_START:case i.db.LINETYPE.PAR_START:case i.db.LINETYPE.CRITICAL_START:case i.db.LINETYPE.BREAK_START:o.push({id:t.id,msg:t.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case i.db.LINETYPE.ALT_ELSE:case i.db.LINETYPE.PAR_AND:case i.db.LINETYPE.CRITICAL_OPTION:t.message&&(a=o.pop(),r[a.id]=a,r[t.id]=a,o.push(a));break;case i.db.LINETYPE.LOOP_END:case i.db.LINETYPE.ALT_END:case i.db.LINETYPE.OPT_END:case i.db.LINETYPE.PAR_END:case i.db.LINETYPE.CRITICAL_END:case i.db.LINETYPE.BREAK_END:a=o.pop(),r[a.id]=a;break;case i.db.LINETYPE.ACTIVE_START:{const n=e[t.from?t.from.actor:t.to.actor],i=Oj(t.from?t.from.actor:t.to.actor).length,r=n.x+n.width/2+(i-1)*Aj.activationWidth/2,o={startx:r,stopx:r+Aj.activationWidth,actor:t.from.actor,enabled:!0};xj.activations.push(o)}break;case i.db.LINETYPE.ACTIVE_END:{const e=xj.activations.map((t=>t.actor)).lastIndexOf(t.from.actor);delete xj.activations.splice(e,1)[0]}}void 0!==t.placement?(s=Vj(t,e,i),t.noteModel=s,o.forEach((t=>{a=t,a.from=Math.min(a.from,s.startx),a.to=Math.max(a.to,s.startx+s.width),a.width=Math.max(a.width,Math.abs(a.from-a.to))-Aj.labelBoxWidth}))):(c=Hj(t,e,i),t.msgModel=c,c.startx&&c.stopx&&o.length>0&&o.forEach((n=>{if(a=n,c.startx===c.stopx){const n=e[t.from],i=e[t.to];a.from=Math.min(n.x-c.width/2,n.x-n.width/2,a.from),a.to=Math.max(i.x+c.width/2,i.x+n.width/2,a.to),a.width=Math.max(a.width,Math.abs(a.to-a.from))-Aj.labelBoxWidth}else a.from=Math.min(c.startx,a.from),a.to=Math.max(c.stopx,a.to),a.width=Math.max(a.width,c.width)-Aj.labelBoxWidth})))})),xj.activations=[],h.debug("Loop type widths:",r),r},Uj={bounds:xj,drawActors:Mj,drawActorsPopup:Pj,setConf:Lj,draw:Fj};var Gj=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,3],i=[1,5],r=[1,7],o=[2,5],a=[1,15],s=[1,17],c=[1,21],l=[1,22],u=[1,23],h=[1,24],d=[1,37],f=[1,25],g=[1,26],p=[1,27],m=[1,28],b=[1,29],w=[1,32],k=[1,33],v=[1,34],y=[1,35],_=[1,36],C=[1,39],A=[1,40],x=[1,41],E=[1,42],T=[1,38],S=[1,45],D=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],I=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],B=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],M=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],P={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 4:return i.setRootDoc(o[s]),o[s];case 5:this.$=[];break;case 6:"nl"!=o[s]&&(o[s-1].push(o[s]),this.$=o[s-1]);break;case 7:case 8:case 12:this.$=o[s];break;case 9:this.$="nl";break;case 13:const t=o[s-1];t.description=i.trimColon(o[s]),this.$=t;break;case 14:this.$={stmt:"relation",state1:o[s-2],state2:o[s]};break;case 15:const e=i.trimColon(o[s]);this.$={stmt:"relation",state1:o[s-3],state2:o[s-1],description:e};break;case 19:this.$={stmt:"state",id:o[s-3],type:"default",description:"",doc:o[s-1]};break;case 20:var c=o[s],l=o[s-2].trim();if(o[s].match(":")){var u=o[s].split(":");c=u[0],l=[l,u[1]]}this.$={stmt:"state",id:c,type:"default",description:l};break;case 21:this.$={stmt:"state",id:o[s-3],type:"default",description:o[s-5],doc:o[s-1]};break;case 22:this.$={stmt:"state",id:o[s],type:"fork"};break;case 23:this.$={stmt:"state",id:o[s],type:"join"};break;case 24:this.$={stmt:"state",id:o[s],type:"choice"};break;case 25:this.$={stmt:"state",id:i.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:o[s-1].trim(),note:{position:o[s-2].trim(),text:o[s].trim()}};break;case 30:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 31:case 32:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:o[s-1].trim(),classes:o[s].trim()};break;case 35:this.$={stmt:"applyClass",id:o[s-1].trim(),styleClass:o[s].trim()};break;case 38:i.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:i.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:i.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:i.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:o[s].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:o[s-2].trim(),classes:[o[s].trim()],type:"default",description:""};break;case 50:i.parseDirective("%%{","open_directive");break;case 51:i.parseDirective(o[s],"type_directive");break;case 52:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 53:i.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:e,5:n,6:4,7:i,45:6,60:r},{1:[3]},{3:8,4:e,5:n,6:4,7:i,45:6,60:r},{3:9,4:e,5:n,6:4,7:i,45:6,60:r},{3:10,4:e,5:n,6:4,7:i,45:6,60:r},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],o,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:a,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:u,22:h,24:d,25:f,26:g,27:p,28:m,29:b,32:31,33:w,35:k,37:v,38:y,42:_,45:6,50:C,51:A,52:x,53:E,56:T,60:r},{47:43,48:[1,44],63:S},t([48,63],[2,51]),t(D,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:c,17:l,19:u,22:h,24:d,25:f,26:g,27:p,28:m,29:b,32:31,33:w,35:k,37:v,38:y,42:_,45:6,50:C,51:A,52:x,53:E,56:T,60:r},t(D,[2,8]),t(D,[2,9]),t(D,[2,10]),t(D,[2,11]),t(D,[2,12],{14:[1,47],15:[1,48]}),t(D,[2,16]),{18:[1,49]},t(D,[2,18],{20:[1,50]}),{23:[1,51]},t(D,[2,22]),t(D,[2,23]),t(D,[2,24]),t(D,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},t(D,[2,28]),t(D,[2,29]),{34:[1,56]},{36:[1,57]},t(D,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},t(I,[2,44],{57:[1,61]}),t(I,[2,45],{57:[1,62]}),t(D,[2,38]),t(D,[2,39]),t(D,[2,40]),t(D,[2,41]),t(B,[2,36]),{49:63,62:[1,64]},t(B,[2,53]),t(D,[2,7]),t(D,[2,13]),{13:65,24:d,56:T},t(D,[2,17]),t(M,o,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},t(D,[2,30]),t(D,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:S},{63:[2,52]},t(D,[2,14],{14:[1,76]}),{4:a,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:u,21:[1,77],22:h,24:d,25:f,26:g,27:p,28:m,29:b,32:31,33:w,35:k,37:v,38:y,42:_,45:6,50:C,51:A,52:x,53:E,56:T,60:r},t(D,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},t(D,[2,33]),t(D,[2,34]),t(D,[2,35]),t(I,[2,46]),t(I,[2,47]),t(B,[2,37]),t(D,[2,15]),t(D,[2,19]),t(M,o,{8:81}),t(D,[2,26]),t(D,[2,27]),{4:a,5:s,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:l,19:u,21:[1,82],22:h,24:d,25:f,26:g,27:p,28:m,29:b,32:31,33:w,35:k,37:v,38:y,42:_,45:6,50:C,51:A,52:x,53:E,56:T,60:r},t(D,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},L={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return 41;case 1:case 44:return 50;case 2:case 45:return 51;case 3:case 46:return 52;case 4:case 47:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:case 11:case 13:case 14:case 15:case 16:case 56:case 58:case 64:break;case 12:case 79:return 5;case 17:case 34:return this.pushState("SCALE"),17;case 18:case 35:return 18;case 19:case 25:case 36:case 51:case 54:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 37:this.pushState("STATE");break;case 38:case 41:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),25;case 39:case 42:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),26;case 40:case 43:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),27;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:case 66:return this.popState(),"ID";case 52:return"STATE_DESCR";case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 57:return this.popState(),21;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:return"NOTE_TEXT";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),e.yytext=e.yytext.substr(2).trim(),31;case 69:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),31;case 70:case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return e.yytext=e.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}};function O(){this.yy={}}return P.lexer=L,O.prototype=P,P.Parser=O,new O}();Gj.parser=Gj;const Wj=Gj,Kj=(t,e)=>{var n;return"dagre-wrapper"!==(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer)&&null!==t.match(/^\s*stateDiagram/)},Yj=(t,e)=>{var n;return null!==t.match(/^\s*stateDiagram-v2/)||!(!t.match(/^\s*stateDiagram/)||"dagre-wrapper"!==(null==(n=null==e?void 0:e.state)?void 0:n.defaultRenderer))},Xj="LR",Zj="TB",Qj="state",Jj="relation",t$="classDef",e$="applyClass",n$="default",i$="divider",r$="[*]",o$="start",a$=r$,s$="end",c$="color",l$="fill",u$="bgFill",h$=",";function d$(){return{}}let f$=Xj,g$=[],p$=d$();const m$=()=>({relations:[],states:{},documents:{}});let b$={root:m$()},w$=b$.root,k$=0,v$=0;const y$=t=>JSON.parse(JSON.stringify(t)),_$=(t,e,n)=>{if(e.stmt===Jj)_$(t,e.state1,!0),_$(t,e.state2,!1);else if(e.stmt===Qj&&("[*]"===e.id?(e.id=n?t.id+"_start":t.id+"_end",e.start=n):e.id=e.id.trim()),e.doc){const t=[];let n,i=[];for(n=0;n<e.doc.length;n++)if(e.doc[n].type===i$){const r=y$(e.doc[n]);r.doc=y$(i),t.push(r),i=[]}else i.push(e.doc[n]);if(t.length>0&&i.length>0){const n={stmt:Qj,id:ib(),type:"divider",doc:y$(i)};t.push(y$(n)),e.doc=t}e.doc.forEach((t=>_$(e,t,!0)))}},C$=t=>{let e;e=t.doc?t.doc:t,h.info(e),x$(!0),h.info("Extract",e),e.forEach((t=>{switch(t.stmt){case Qj:A$(t.id.trim(),t.type,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);break;case Jj:M$(t.state1,t.state2,t.description);break;case t$:L$(t.id.trim(),t.classes);break;case e$:O$(t.id.trim(),t.styleClass)}}))},A$=function(t,e=n$,n=null,i=null,r=null,o=null,a=null,s=null){const c=null==t?void 0:t.trim();void 0===w$.states[c]?(h.info("Adding state ",c,i),w$.states[c]={id:c,descriptions:[],type:e,doc:n,note:r,classes:[],styles:[],textStyles:[]}):(w$.states[c].doc||(w$.states[c].doc=n),w$.states[c].type||(w$.states[c].type=e)),i&&(h.info("Setting state description",c,i),"string"==typeof i&&P$(c,i.trim()),"object"==typeof i&&i.forEach((t=>P$(c,t.trim())))),r&&(w$.states[c].note=r,w$.states[c].note.text=Jh.sanitizeText(w$.states[c].note.text,_w())),o&&(h.info("Setting state classes",c,o),("string"==typeof o?[o]:o).forEach((t=>O$(c,t.trim())))),a&&(h.info("Setting state styles",c,a),("string"==typeof a?[a]:a).forEach((t=>N$(c,t.trim())))),s&&(h.info("Setting state styles",c,a),("string"==typeof s?[s]:s).forEach((t=>R$(c,t.trim()))))},x$=function(t){b$={root:m$()},w$=b$.root,k$=0,p$=d$(),t||Jw()},E$=function(t){return w$.states[t]};function T$(t=""){let e=t;return t===r$&&(k$++,e=`${o$}${k$}`),e}function S$(t="",e=n$){return t===r$?o$:e}function D$(t=""){let e=t;return t===a$&&(k$++,e=`${s$}${k$}`),e}function I$(t="",e=n$){return t===a$?s$:e}function B$(t,e,n){let i=T$(t.id.trim()),r=S$(t.id.trim(),t.type),o=T$(e.id.trim()),a=S$(e.id.trim(),e.type);A$(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),A$(o,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),w$.relations.push({id1:i,id2:o,relationTitle:Jh.sanitizeText(n,_w())})}const M$=function(t,e,n){if("object"==typeof t)B$(t,e,n);else{const i=T$(t.trim()),r=S$(t),o=D$(e.trim()),a=I$(e);A$(i,r),A$(o,a),w$.relations.push({id1:i,id2:o,title:Jh.sanitizeText(n,_w())})}},P$=function(t,e){const n=w$.states[t],i=e.startsWith(":")?e.replace(":","").trim():e;n.descriptions.push(Jh.sanitizeText(i,_w()))},L$=function(t,e=""){void 0===p$[t]&&(p$[t]={id:t,styles:[],textStyles:[]});const n=p$[t];null!=e&&e.split(h$).forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(t.match(c$)){const t=e.replace(l$,u$).replace(c$,l$);n.textStyles.push(t)}n.styles.push(e)}))},O$=function(t,e){t.split(",").forEach((function(t){let n=E$(t);if(void 0===n){const e=t.trim();A$(e),n=E$(e)}n.classes.push(e)}))},N$=function(t,e){const n=E$(t);void 0!==n&&n.textStyles.push(e)},R$=function(t,e){const n=E$(t);void 0!==n&&n.textStyles.push(e)},F$={parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().state,addState:A$,clear:x$,getState:E$,getStates:function(){return w$.states},getRelations:function(){return w$.relations},getClasses:function(){return p$},getDirection:()=>f$,addRelation:M$,getDividerId:()=>(v$++,"divider-id-"+v$),setDirection:t=>{f$=t},cleanupLabel:function(t){return":"===t.substring(0,1)?t.substr(2).trim():t.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){h.info("Documents = ",b$)},getRootDoc:()=>g$,setRootDoc:t=>{h.info("Setting root doc",t),g$=t},getRootDocV2:()=>(_$({id:"root"},{id:"root",doc:g$},!0),{id:"root",doc:g$}),extract:C$,trimColon:t=>t&&":"===t[0]?t.substr(1).trim():t.trim(),getAccTitle:ek,setAccTitle:tk,getAccDescription:ik,setAccDescription:nk,addStyleClass:L$,setCssClass:O$,addDescription:P$,setDiagramTitle:rk,getDiagramTitle:ok},j$={},$$=()=>Object.keys(j$),z$=()=>$$().length,V$={get:t=>j$[t],set:(t,e)=>{j$[t]=e},keys:$$,size:z$},H$=t=>t.append("circle").attr("class","start-state").attr("r",_w().state.sizeUnit).attr("cx",_w().state.padding+_w().state.sizeUnit).attr("cy",_w().state.padding+_w().state.sizeUnit),q$=t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",_w().state.textHeight).attr("class","divider").attr("x2",2*_w().state.textHeight).attr("y1",0).attr("y2",0),U$=(t,e)=>{const n=t.append("text").attr("x",2*_w().state.padding).attr("y",_w().state.textHeight+2*_w().state.padding).attr("font-size",_w().state.fontSize).attr("class","state-title").text(e.id),i=n.node().getBBox();return t.insert("rect",":first-child").attr("x",_w().state.padding).attr("y",_w().state.padding).attr("width",i.width+2*_w().state.padding).attr("height",i.height+2*_w().state.padding).attr("rx",_w().state.radius),n},G$=(t,e)=>{const n=function(t,e,n){const i=t.append("tspan").attr("x",2*_w().state.padding).text(e);n||i.attr("dy",_w().state.textHeight)},i=t.append("text").attr("x",2*_w().state.padding).attr("y",_w().state.textHeight+1.3*_w().state.padding).attr("font-size",_w().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),r=i.height,o=t.append("text").attr("x",_w().state.padding).attr("y",r+.4*_w().state.padding+_w().state.dividerMargin+_w().state.textHeight).attr("class","state-description");let a=!0,s=!0;e.descriptions.forEach((function(t){a||(n(o,t,s),s=!1),a=!1}));const c=t.append("line").attr("x1",_w().state.padding).attr("y1",_w().state.padding+r+_w().state.dividerMargin/2).attr("y2",_w().state.padding+r+_w().state.dividerMargin/2).attr("class","descr-divider"),l=o.node().getBBox(),u=Math.max(l.width,i.width);return c.attr("x2",u+3*_w().state.padding),t.insert("rect",":first-child").attr("x",_w().state.padding).attr("y",_w().state.padding).attr("width",u+2*_w().state.padding).attr("height",l.height+r+2*_w().state.padding).attr("rx",_w().state.radius),t},W$=(t,e,n)=>{const i=_w().state.padding,r=2*_w().state.padding,o=t.node().getBBox(),a=o.width,s=o.x,c=t.append("text").attr("x",0).attr("y",_w().state.titleShift).attr("font-size",_w().state.fontSize).attr("class","state-title").text(e.id),l=c.node().getBBox().width+r;let u,h=Math.max(l,a);h===a&&(h+=r);const d=t.node().getBBox();e.doc,u=s-i,l>a&&(u=(a-h)/2+i),Math.abs(s-d.x)<i&&l>a&&(u=s-(l-a)/2);const f=1-_w().state.textHeight;return t.insert("rect",":first-child").attr("x",u).attr("y",f).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",d.height+_w().state.textHeight+_w().state.titleShift+1).attr("rx","0"),c.attr("x",u+i),l<=a&&c.attr("x",s+(h-r)/2-l/2+i),t.insert("rect",":first-child").attr("x",u).attr("y",_w().state.titleShift-_w().state.textHeight-_w().state.padding).attr("width",h).attr("height",3*_w().state.textHeight).attr("rx",_w().state.radius),t.insert("rect",":first-child").attr("x",u).attr("y",_w().state.titleShift-_w().state.textHeight-_w().state.padding).attr("width",h).attr("height",d.height+3+2*_w().state.textHeight).attr("rx",_w().state.radius),t},K$=t=>(t.append("circle").attr("class","end-state-outer").attr("r",_w().state.sizeUnit+_w().state.miniPadding).attr("cx",_w().state.padding+_w().state.sizeUnit+_w().state.miniPadding).attr("cy",_w().state.padding+_w().state.sizeUnit+_w().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",_w().state.sizeUnit).attr("cx",_w().state.padding+_w().state.sizeUnit+2).attr("cy",_w().state.padding+_w().state.sizeUnit+2)),Y$=(t,e)=>{let n=_w().state.forkWidth,i=_w().state.forkHeight;if(e.parentId){let t=n;n=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",i).attr("x",_w().state.padding).attr("y",_w().state.padding)},X$=(t,e,n,i)=>{let r=0;const o=i.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let a=t.replace(/\r\n/g,"<br/>");a=a.replace(/\n/g,"<br/>");const s=a.split(Jh.lineBreakRegex);let c=1.25*_w().state.noteMargin;for(const t of s){const i=t.trim();if(i.length>0){const t=o.append("tspan");t.text(i),0===c&&(c+=t.node().getBBox().height),r+=c,t.attr("x",e+_w().state.noteMargin),t.attr("y",n+r+1.25*_w().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:r}},Z$=(t,e)=>{e.attr("class","state-note");const n=e.append("rect").attr("x",0).attr("y",_w().state.padding),i=e.append("g"),{textWidth:r,textHeight:o}=X$(t,0,0,i);return n.attr("height",o+2*_w().state.noteMargin),n.attr("width",r+2*_w().state.noteMargin),n},Q$=function(t,e){const n=e.id,i={id:n,label:e.id,width:0,height:0},r=t.append("g").attr("id",n).attr("class","stateGroup");"start"===e.type&&H$(r),"end"===e.type&&K$(r),"fork"!==e.type&&"join"!==e.type||Y$(r,e),"note"===e.type&&Z$(e.note.text,r),"divider"===e.type&&q$(r),"default"===e.type&&0===e.descriptions.length&&U$(r,e),"default"===e.type&&e.descriptions.length>0&&G$(r,e);const o=r.node().getBBox();return i.width=o.width+2*_w().state.padding,i.height=o.height+2*_w().state.padding,V$.set(n,i),i};let J$=0;const tz=function(t,e,n){const i=function(t){switch(t){case F$.relationType.AGGREGATION:return"aggregation";case F$.relationType.EXTENSION:return"extension";case F$.relationType.COMPOSITION:return"composition";case F$.relationType.DEPENDENCY:return"dependency"}};e.points=e.points.filter((t=>!Number.isNaN(t.y)));const r=e.points,o=$l().x((function(t){return t.x})).y((function(t){return t.y})).curve(Xl),a=t.append("path").attr("d",o(r)).attr("id","edge"+J$).attr("class","transition");let s="";if(_w().state.arrowMarkerAbsolute&&(s=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,s=s.replace(/\(/g,"\\("),s=s.replace(/\)/g,"\\)")),a.attr("marker-end","url("+s+"#"+i(F$.relationType.DEPENDENCY)+"End)"),void 0!==n.title){const i=t.append("g").attr("class","stateLabel"),{x:r,y:o}=kb.calcLabelPosition(e.points),a=Jh.getRows(n.title);let s=0;const c=[];let l=0,u=0;for(let t=0;t<=a.length;t++){const e=i.append("text").attr("text-anchor","middle").text(a[t]).attr("x",r).attr("y",o+s),n=e.node().getBBox();if(l=Math.max(l,n.width),u=Math.min(u,n.x),h.info(n.x,r,o+s),0===s){const t=e.node().getBBox();s=t.height,h.info("Title height",s,o)}c.push(e)}let d=s*a.length;if(a.length>1){const t=(a.length-1)*s*.5;c.forEach(((e,n)=>e.attr("y",o+n*s-t))),d=s*a.length}const f=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",r-l/2-_w().state.padding/2).attr("y",o-d/2-_w().state.padding/2-3.5).attr("width",l+_w().state.padding).attr("height",d+_w().state.padding),h.info(f)}J$++};let ez;const nz={},iz=function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},rz=function(t,e,n,i){ez=_w().state;const r=_w().securityLevel;let o;"sandbox"===r&&(o=un("#i"+e));const a=un("sandbox"===r?o.nodes()[0].contentDocument.body:"body"),s="sandbox"===r?o.nodes()[0].contentDocument:document;h.debug("Rendering diagram "+t);const c=a.select(`[id='${e}']`);iz(c),new fD({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));const l=i.db.getRootDoc();az(l,c,void 0,!1,a,s,i);const u=ez.padding,d=c.node().getBBox(),f=d.width+2*u,g=d.height+2*u;Mw(c,g,1.75*f,ez.useMaxWidth),c.attr("viewBox",`${d.x-ez.padding} ${d.y-ez.padding} `+f+" "+g)},oz=t=>t?t.length*ez.fontSizeFactor:1,az=(t,e,n,i,r,o,a)=>{const s=new fD({compound:!0,multigraph:!0});let c,l=!0;for(c=0;c<t.length;c++)if("relation"===t[c].stmt){l=!1;break}n?s.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:l?1:ez.edgeLengthFactor,nodeSep:l?1:50,isMultiGraph:!0}):s.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:l?1:ez.edgeLengthFactor,nodeSep:l?1:50,ranker:"tight-tree",isMultiGraph:!0}),s.setDefaultEdgeLabel((function(){return{}})),a.db.extract(t);const u=a.db.getStates(),d=a.db.getRelations(),f=Object.keys(u);for(const t of f){const c=u[t];let l;if(n&&(c.parentId=n),c.doc){let t=e.append("g").attr("id",c.id).attr("class","stateGroup");l=az(c.doc,t,c.id,!i,r,o,a);{t=W$(t,c,i);let e=t.node().getBBox();l.width=e.width,l.height=e.height+ez.padding/2,nz[c.id]={y:ez.compositTitleSize}}}else l=Q$(e,c);if(c.note){const t={descriptions:[],id:c.id+"-note",note:c.note,type:"note"},n=Q$(e,t);"left of"===c.note.position?(s.setNode(l.id+"-note",n),s.setNode(l.id,l)):(s.setNode(l.id,l),s.setNode(l.id+"-note",n)),s.setParent(l.id,l.id+"-group"),s.setParent(l.id+"-note",l.id+"-group")}else s.setNode(l.id,l)}h.debug("Count=",s.nodeCount(),s);let g=0;d.forEach((function(t){g++,h.debug("Setting edge",t),s.setEdge(t.id1,t.id2,{relation:t,width:oz(t.title),height:ez.labelHeight*Jh.getRows(t.title).length,labelpos:"c"},"id"+g)})),kB(s),h.debug("Graph after layout",s.nodes());const p=e.node();s.nodes().forEach((function(t){void 0!==t&&void 0!==s.node(t)?(h.warn("Node "+t+": "+JSON.stringify(s.node(t))),r.select("#"+p.id+" #"+t).attr("transform","translate("+(s.node(t).x-s.node(t).width/2)+","+(s.node(t).y+(nz[t]?nz[t].y:0)-s.node(t).height/2)+" )"),r.select("#"+p.id+" #"+t).attr("data-x-shift",s.node(t).x-s.node(t).width/2),o.querySelectorAll("#"+p.id+" #"+t+" .divider").forEach((t=>{const e=t.parentElement;let n=0,i=0;e&&(e.parentElement&&(n=e.parentElement.getBBox().width),i=parseInt(e.getAttribute("data-x-shift"),10),Number.isNaN(i)&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",n-i-8)}))):h.debug("No Node "+t+": "+JSON.stringify(s.node(t)))}));let m=p.getBBox();s.edges().forEach((function(t){void 0!==t&&void 0!==s.edge(t)&&(h.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(s.edge(t))),tz(e,s.edge(t),s.edge(t).relation))})),m=p.getBBox();const b={id:n||"root",label:n||"root",width:0,height:0};return b.width=m.width+2*ez.padding,b.height=m.height+2*ez.padding,h.debug("Doc rendered",b,s),b},sz={setConf:function(){},draw:rz},cz="rect",lz="rectWithTitle",uz="start",hz="end",dz="divider",fz="roundedWithTitle",gz="note",pz="noteGroup",mz="statediagram",bz=`${mz}-state`,wz="transition",kz=`${wz} note-edge`,vz=`${mz}-note`,yz=`${mz}-cluster`,_z=`${mz}-cluster-alt`,Cz="parent",Az="note",xz="state",Ez="----",Tz=`${Ez}${Az}`,Sz=`${Ez}${Cz}`,Dz="fill:none",Iz="fill: #333",Bz="c",Mz="text",Pz="normal";let Lz={},Oz=0;function Nz(t){return null==t?"":t.classes?t.classes.join(" "):""}function Rz(t="",e=0,n="",i=Ez){const r=null!==n&&n.length>0?`${i}${n}`:"";return`${xz}-${t}${r}-${e}`}const Fz=(t,e,n,i,r,o)=>{const a=n.id,s=Nz(i[a]);if("root"!==a){let e=cz;!0===n.start&&(e=uz),!1===n.start&&(e=hz),n.type!==n$&&(e=n.type),Lz[a]||(Lz[a]={id:a,shape:e,description:Jh.sanitizeText(a,_w()),classes:`${s} ${bz}`});const i=Lz[a];n.description&&(Array.isArray(i.description)?(i.shape=lz,i.description.push(n.description)):i.description.length>0?(i.shape=lz,i.description===a?i.description=[n.description]:i.description=[i.description,n.description]):(i.shape=cz,i.description=n.description),i.description=Jh.sanitizeTextOrArray(i.description,_w())),1===i.description.length&&i.shape===lz&&(i.shape=cz),!i.type&&n.doc&&(h.info("Setting cluster for ",a,$z(n)),i.type="group",i.dir=$z(n),i.shape=n.type===i$?dz:fz,i.classes=i.classes+" "+yz+" "+(o?_z:""));const r={labelStyle:"",shape:i.shape,labelText:i.description,classes:i.classes,style:"",id:a,dir:i.dir,domId:Rz(a,Oz),type:i.type,padding:15};if(n.note){const e={labelStyle:"",shape:gz,labelText:n.note.text,classes:vz,style:"",id:a+Tz+"-"+Oz,domId:Rz(a,Oz,Az),type:i.type,padding:15},o={labelStyle:"",shape:pz,labelText:n.note.text,classes:i.classes,style:"",id:a+Sz,domId:Rz(a,Oz,Cz),type:"group",padding:0};Oz++;const s=a+Sz;t.setNode(s,o),t.setNode(e.id,e),t.setNode(a,r),t.setParent(a,s),t.setParent(e.id,s);let c=a,l=e.id;"left of"===n.note.position&&(c=e.id,l=a),t.setEdge(c,l,{arrowhead:"none",arrowType:"",style:Dz,labelStyle:"",classes:kz,arrowheadStyle:Iz,labelpos:Bz,labelType:Mz,thickness:Pz})}else t.setNode(a,r)}e&&"root"!==e.id&&(h.trace("Setting node ",a," to be child of its parent ",e.id),t.setParent(a,e.id)),n.doc&&(h.trace("Adding nodes children "),jz(t,n,n.doc,i,r,!o))},jz=(t,e,n,i,r,o)=>{h.trace("items",n),n.forEach((n=>{switch(n.stmt){case Qj:case n$:Fz(t,e,n,i,r,o);break;case Jj:{Fz(t,e,n.state1,i,r,o),Fz(t,e,n.state2,i,r,o);const a={id:"edge"+Oz,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:Dz,labelStyle:"",label:Jh.sanitizeText(n.description,_w()),arrowheadStyle:Iz,labelpos:Bz,labelType:Mz,thickness:Pz,classes:wz};t.setEdge(n.state1.id,n.state2.id,a,Oz),Oz++}}}))},$z=(t,e=Zj)=>{let n=e;if(t.doc)for(let e=0;e<t.doc.length;e++){const i=t.doc[e];"dir"===i.stmt&&(n=i.value)}return n},zz={setConf:function(t){const e=Object.keys(t);for(const n of e)t[n]},getClasses:function(t,e){h.trace("Extracting classes"),e.db.clear();try{return e.parser.parse(t),e.db.extract(e.db.getRootDocV2()),e.db.getClasses()}catch(t){return t}},draw:function(t,e,n,i){h.info("Drawing state diagram (v2)",e),Lz={};let r=i.db.getDirection();void 0===r&&(r=Xj);const{securityLevel:o,state:a}=_w(),s=a.nodeSpacing||50,c=a.rankSpacing||50;h.info(i.db.getRootDocV2()),i.db.extract(i.db.getRootDocV2()),h.info(i.db.getRootDocV2());const l=i.db.getStates(),u=new fD({multigraph:!0,compound:!0}).setGraph({rankdir:$z(i.db.getRootDocV2()),nodesep:s,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));let d;Fz(u,void 0,i.db.getRootDocV2(),l,i.db,!0),"sandbox"===o&&(d=un("#i"+e));const f=un("sandbox"===o?d.nodes()[0].contentDocument.body:"body"),g=f.select(`[id="${e}"]`),p=f.select("#"+e+" g");lP(p,u,["barb"],mz,e);const m=8;kb.insertTitle(g,"statediagramTitleText",a.titleTopMargin,i.db.getDiagramTitle());const b=g.node().getBBox(),w=b.width+2*m,k=b.height+2*m;g.attr("class",mz);const v=g.node().getBBox();Mw(g,k,w,a.useMaxWidth);const y=`${v.x-m} ${v.y-m} ${w} ${k}`;h.debug(`viewBox ${y}`),g.attr("viewBox",y);const _=document.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const t of _){const e=t.getBBox(),n=document.createElementNS("http://www.w3.org/2000/svg",cz);n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",e.width),n.setAttribute("height",e.height),t.insertBefore(n,t.firstChild)}}};var Vz=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,5],i=[6,9,11,17,18,20,22,23,24,26],r=[1,15],o=[1,16],a=[1,17],s=[1,18],c=[1,19],l=[1,20],u=[1,24],h=[4,6,9,11,17,18,20,22,23,24,26],d={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 1:return o[s-1];case 3:case 7:case 8:this.$=[];break;case 4:o[s-1].push(o[s]),this.$=o[s-1];break;case 5:case 6:this.$=o[s];break;case 11:i.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 12:this.$=o[s].trim(),i.setAccTitle(this.$);break;case 13:case 14:this.$=o[s].trim(),i.setAccDescription(this.$);break;case 15:i.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 16:i.addTask(o[s-1],o[s]),this.$="task";break;case 18:i.parseDirective("%%{","open_directive");break;case 19:i.parseDirective(o[s],"type_directive");break;case 20:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 21:i.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:e,7:3,12:4,26:n},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:n},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:r,18:o,20:a,22:s,23:c,24:l,26:n},{1:[2,2]},{14:22,15:[1,23],29:u},t([15,29],[2,19]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:21,10:25,12:4,17:r,18:o,20:a,22:s,23:c,24:l,26:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),{19:[1,26]},{21:[1,27]},t(i,[2,14]),t(i,[2,15]),{25:[1,28]},t(i,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(i,[2,5]),t(i,[2,12]),t(i,[2,13]),t(i,[2,16]),t(h,[2,9]),{14:32,29:u},{29:[2,20]},{11:[1,33]},t(h,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},f={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function g(){this.yy={}}return d.lexer=f,g.prototype=d,d.Parser=g,new g}();Vz.parser=Vz;const Hz=Vz,qz=t=>null!==t.match(/^\s*journey/);let Uz="";const Gz=[],Wz=[],Kz=[],Yz=function(){let t=Zz();const e=100;let n=0;for(;!t&&n<e;)t=Zz(),n++;return Wz.push(...Kz),Wz},Xz=function(){const t=[];return Wz.forEach((e=>{e.people&&t.push(...e.people)})),[...new Set(t)].sort()},Zz=function(){const t=function(t){return Kz[t].processed};let e=!0;for(const[n,i]of Kz.entries())t(n),e=e&&i.processed;return e},Qz={parseDirective:function(t,e,n){mH.parseDirective(this,t,e,n)},getConfig:()=>_w().journey,clear:function(){Gz.length=0,Wz.length=0,Uz="",Kz.length=0,Jw()},setDiagramTitle:rk,getDiagramTitle:ok,setAccTitle:tk,getAccTitle:ek,setAccDescription:nk,getAccDescription:ik,addSection:function(t){Uz=t,Gz.push(t)},getSections:function(){return Gz},getTasks:Yz,addTask:function(t,e){const n=e.substr(1).split(":");let i=0,r=[];1===n.length?(i=Number(n[0]),r=[]):(i=Number(n[0]),r=n[1].split(","));const o=r.map((t=>t.trim())),a={section:Uz,type:Uz,people:o,task:t,score:i};Kz.push(a)},addTaskOrg:function(t){const e={section:Uz,type:Uz,description:t,task:t,classes:[]};Wz.push(e)},getActors:function(){return Xz()}},Jz=function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},tV=function(t,e){const n=15,i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");function o(t){const i=Ll().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(n/2).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function a(t){const i=Ll().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(n/2).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function s(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r.append("circle").attr("cx",e.cx-n/3).attr("cy",e.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+n/3).attr("cy",e.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.score>3?o(r):e.score<3?a(r):s(r),i},eV=function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},nV=function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},iV=function(t,e){function n(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}const i=t.append("polygon");i.attr("points",n(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,nV(t,e)},rV=function(t,e,n){const i=t.append("g"),r=lV();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,Jz(i,r),uV(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)};let oV=-1;const aV=function(t,e,n){const i=e.x+n.width/2,r=t.append("g");oV++;const o=450;r.append("line").attr("id","task"+oV).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),tV(r,{cx:i,cy:300+30*(5-e.score),score:e.score});const a=lV();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,Jz(r,a);let s=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color,i={cx:s,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};eV(r,i),s+=10})),uV(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)},sV=function(t,e){Jz(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},cV=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},lV=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},uV=function(){function t(t,e,n,r,o,a,s,c){i(e.append("text").attr("x",n+o/2).attr("y",r+a/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,o,a,s,c,l){const{taskFontSize:u,taskFontFamily:h}=c,d=t.split(/<br\s*\/?>/gi);for(let t=0;t<d.length;t++){const c=t*u-u*(d.length-1)/2,f=e.append("text").attr("x",n+o/2).attr("y",r).attr("fill",l).style("text-anchor","middle").style("font-size",u).style("font-family",h);f.append("tspan").attr("x",n+o/2).attr("dy",c).text(d[t]),f.attr("y",r+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(f,s)}}function n(t,n,r,o,a,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",r).attr("y",o).attr("width",a).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,r,o,a,s,c,l),i(h,c)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}(),hV={drawRect:Jz,drawCircle:eV,drawSection:rV,drawText:nV,drawLabel:iV,drawTask:aV,drawBackgroundRect:sV,getTextObj:cV,getNoteRect:lV,initGraphics:function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")}},dV=function(t){Object.keys(t).forEach((function(e){pV[e]=t[e]}))},fV={};function gV(t){const e=_w().journey;let n=60;Object.keys(fV).forEach((i=>{const r=fV[i].color,o={cx:20,cy:n,r:7,fill:r,stroke:"#000",pos:fV[i].position};hV.drawCircle(t,o);const a={x:40,y:n+7,fill:"#666",text:i,textMargin:5|e.boxTextMargin};hV.drawText(t,a),n+=20}))}const pV=_w().journey,mV=pV.leftMargin,bV=function(t,e,n,i){const r=_w().journey;i.db.clear(),i.parser.parse(t+"\n");const o=_w().securityLevel;let a;"sandbox"===o&&(a=un("#i"+e));const s=un("sandbox"===o?a.nodes()[0].contentDocument.body:"body");wV.init();const c=s.select("#"+e);hV.initGraphics(c);const l=i.db.getTasks(),u=i.db.getDiagramTitle(),h=i.db.getActors();for(const t in fV)delete fV[t];let d=0;h.forEach((t=>{fV[t]={color:r.actorColours[d%r.actorColours.length],position:d},d++})),gV(c),wV.insert(0,0,mV,50*Object.keys(fV).length),yV(c,l,0);const f=wV.getBounds();u&&c.append("text").text(u).attr("x",mV).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const g=f.stopy-f.starty+2*r.diagramMarginY,p=mV+f.stopx+2*r.diagramMarginX;Mw(c,g,p,r.useMaxWidth),c.append("line").attr("x1",mV).attr("y1",4*r.height).attr("x2",p-mV-4).attr("y2",4*r.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const m=u?70:0;c.attr("viewBox",`${f.startx} -25 ${p} ${g+m}`),c.attr("preserveAspectRatio","xMinYMin meet"),c.attr("height",g+m+25)},wV={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,n,i){void 0===t[e]?t[e]=n:t[e]=i(n,t[e])},updateBounds:function(t,e,n,i){const r=_w().journey,o=this;let a=0;function s(s){return function(c){a++;const l=o.sequenceItems.length-a+1;o.updateVal(c,"starty",e-l*r.boxMargin,Math.min),o.updateVal(c,"stopy",i+l*r.boxMargin,Math.max),o.updateVal(wV.data,"startx",t-l*r.boxMargin,Math.min),o.updateVal(wV.data,"stopx",n+l*r.boxMargin,Math.max),"activation"!==s&&(o.updateVal(c,"startx",t-l*r.boxMargin,Math.min),o.updateVal(c,"stopx",n+l*r.boxMargin,Math.max),o.updateVal(wV.data,"starty",e-l*r.boxMargin,Math.min),o.updateVal(wV.data,"stopy",i+l*r.boxMargin,Math.max))}}this.sequenceItems.forEach(s())},insert:function(t,e,n,i){const r=Math.min(t,n),o=Math.max(t,n),a=Math.min(e,i),s=Math.max(e,i);this.updateVal(wV.data,"startx",r,Math.min),this.updateVal(wV.data,"starty",a,Math.min),this.updateVal(wV.data,"stopx",o,Math.max),this.updateVal(wV.data,"stopy",s,Math.max),this.updateBounds(r,a,o,s)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},kV=pV.sectionFills,vV=pV.sectionColours,yV=function(t,e,n){const i=_w().journey;let r="";const o=n+(2*i.height+i.diagramMarginY);let a=0,s="#CCC",c="black",l=0;for(const[n,u]of e.entries()){if(r!==u.section){s=kV[a%kV.length],l=a%kV.length,c=vV[a%vV.length];const e={x:n*i.taskMargin+n*i.width+mV,y:50,text:u.section,fill:s,num:l,colour:c};hV.drawSection(t,e,i),r=u.section,a++}const e=u.people.reduce(((t,e)=>(fV[e]&&(t[e]=fV[e]),t)),{});u.x=n*i.taskMargin+n*i.width+mV,u.y=o,u.width=i.diagramMarginX,u.height=i.diagramMarginY,u.colour=c,u.fill=s,u.num=l,u.actors=e,hV.drawTask(t,u,i),wV.insert(u.x,u.y,u.x+u.width+i.taskMargin,450)}},_V={setConf:dV,draw:bV};let CV={};const AV={setConf:function(t){CV={...CV,...t}},draw:(t,e,n)=>{try{h.debug("Renering svg for syntax error\n");const t=un("#"+e),i=t.append("g");i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+n),t.attr("height",100),t.attr("width",500),t.attr("viewBox","768 0 912 512")}catch(t){h.error("Error while rendering info diagram"),h.error(bb(t))}}},xV="flowchart-elk",EV={id:xV,detector:(t,e)=>{var n;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&"elk"===(null==(n=null==e?void 0:e.flowchart)?void 0:n.defaultRenderer))},loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>tq));return{id:xV,diagram:t}}},TV="timeline",SV={id:TV,detector:t=>null!==t.match(/^\s*timeline/),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>Vq));return{id:TV,diagram:t}}},DV="mindmap",IV={id:DV,detector:t=>null!==t.match(/^\s*mindmap/),loader:async()=>{const{diagram:t}=await Promise.resolve().then((()=>zU));return{id:DV,diagram:t}}};let BV=!1;const MV=()=>{BV||(BV=!0,Cp(EV,SV,IV),kk("error",{db:{clear:()=>{}},styles:Nw,renderer:AV,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},(t=>"error"===t.toLowerCase().trim())),kk("---",{db:{clear:()=>{}},styles:Nw,renderer:AV,parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with unindented `---` blocks")}},init:()=>null},(t=>t.toLowerCase().trimStart().startsWith("---"))),kk("c4",{parser:hv,db:Lv,renderer:my,styles:Uw,init:t=>{my.setConf(t.c4)}},dv),kk("class",{parser:wy,db:t_,renderer:rM,styles:Lw,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,t_.clear()}},ky),kk("classDiagram",{parser:wy,db:t_,renderer:mP,styles:Lw,init:t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,t_.clear()}},vy),kk("er",{parser:wP,db:AP,renderer:JP,styles:Ow},kP),kk("gantt",{parser:MN,db:CR,renderer:ER,styles:Fw},PN),kk("info",{parser:SR,db:BR,renderer:MR,styles:jw},PR),kk("pie",{parser:OR,db:jR,renderer:HR,styles:$w},NR),kk("requirement",{parser:UR,db:QR,renderer:fF,styles:zw},GR),kk("sequence",{parser:pF,db:zF,renderer:Uj,styles:Vw,init:t=>{if(t.sequence||(t.sequence={}),t.sequence.arrowMarkerAbsolute=t.arrowMarkerAbsolute,"sequenceDiagram"in t)throw new Error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.");zF.setWrap(t.wrap),Uj.setConf(t.sequence)}},mF),kk("state",{parser:Wj,db:F$,renderer:sz,styles:Hw,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,F$.clear()}},Kj),kk("stateDiagram",{parser:Wj,db:F$,renderer:zz,styles:Hw,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,F$.clear()}},Yj),kk("journey",{parser:Hz,db:Qz,renderer:_V,styles:qw,init:t=>{_V.setConf(t.journey),Qz.clear()}},qz),kk("flowchart",{parser:eL,db:oO,renderer:IN,styles:Rw,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,xN.setConf(t.flowchart),oO.clear(),oO.setGen("gen-1")}},nL),kk("flowchart-v2",{parser:eL,db:oO,renderer:IN,styles:Rw,init:t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,yw({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}}),IN.setConf(t.flowchart),oO.clear(),oO.setGen("gen-2")}},iL),kk("gitGraph",{parser:_k,db:Gk,renderer:cv,styles:lv},Ck))};class PV{constructor(t,e){var n,i;this.txt=t,this.type="graph",this.detectTypeFailed=!1;const r=_w();this.txt=t;try{this.type=_p(t,r)}catch(t){this.handleError(t,e),this.type="error",this.detectTypeFailed=!0}const o=vk(this.type);h.debug("Type "+this.type),this.db=o.db,null==(i=(n=this.db).clear)||i.call(n),this.renderer=o.renderer,this.parser=o.parser;const a=this.parser.parse.bind(this.parser);this.parser.parse=t=>a(wp(t,this.db)),this.parser.parser.yy=this.db,o.init&&(o.init(r),h.info("Initialized diagram "+this.type,r)),this.txt+="\n",this.parse(this.txt,e)}parse(t,e){var n,i;if(this.detectTypeFailed)return!1;try{return t+="\n",null==(i=(n=this.db).clear)||i.call(n),this.parser.parse(t),!0}catch(t){this.handleError(t,e)}return!1}handleError(t,e){if(void 0===e)throw t;mb(t)?e(t.str,t.hash):e(t)}getParser(){return this.parser}getType(){return this.type}}const LV=(t,e)=>{const n=_p(t,_w());try{vk(n)}catch(i){const r=xp(n);if(!r)throw new Error(`Diagram ${n} not found.`);return r().then((({diagram:i})=>(kk(n,i,void 0),new PV(t,e))))}return new PV(t,e)},OV=PV,NV="graphics-document document";function RV(t,e){t.attr("role",NV),IS(e)||t.attr("aria-roledescription",e)}function FV(t,e,n,i){if(void 0!==t.insert&&(e||n)){if(n){const e="chart-desc-"+i;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(n)}if(e){const n="chart-title-"+i;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const jV=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],$V="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",zV="sandbox",VV="loose",HV="http://www.w3.org/2000/svg",qV="http://www.w3.org/1999/xlink",UV="http://www.w3.org/1999/xhtml",GV="100%",WV="100%",KV="border:0;margin:0;",YV="margin:0",XV="allow-top-navigation-by-user-activation allow-popups",ZV='The "iframe" tag is not supported by your browser.',QV=["foreignobject"],JV=["dominant-baseline"];function tH(t,e){return MV(),new OV(t,e).parse(t,e)}async function eH(t,e){return MV(),(await LV(t,e)).parse(t,e)}const nH=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)})),e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl°°"+e+"¶ß":"fl°"+e+"¶ß"})),e},iH=function(t){let e=t;return e=e.replace(/fl°°/g,"&#"),e=e.replace(/fl°/g,"&"),e=e.replace(/¶ß/g,";"),e},rH=(t,e,n=[])=>`\n.${t} ${e} { ${n.join(" !important; ")} !important; }`,oH=(t,e,n={})=>{var i;let r="";if(void 0!==t.themeCSS&&(r+=`\n${t.themeCSS}`),void 0!==t.fontFamily&&(r+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(r+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!IS(n)&&jV.includes(e)){const e=t.htmlLabels||(null==(i=t.flowchart)?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const t in n){const i=n[t];IS(i.styles)||e.forEach((t=>{r+=rH(i.id,t,i.styles)})),IS(i.textStyles)||(r+=rH(i.id,"tspan",i.textStyles))}}return r},aH=(t,e,n,i)=>{const r=oH(t,e,n);return cw(iw(`${i}{${Kw(e,r,t.themeVariables)}}`),lw)},sH=(t="",e,n)=>{let i=t;return n||e||(i=i.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),i=iH(i),i=i.replace(/<br>/g,"<br/>"),i},cH=(t="",e)=>{const n=e?e.viewBox.baseVal.height+"px":WV,i=btoa('<body style="'+YV+'">'+t+"</body>");return`<iframe style="width:${GV};height:${n};${KV}" src="data:text/html;base64,${i}" sandbox="${XV}">\n ${ZV}\n</iframe>`},lH=(t,e,n,i,r)=>{const o=t.append("div");o.attr("id",n),i&&o.attr("style",i);const a=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",HV);return r&&a.attr("xmlns:xlink",r),a.append("g"),t};function uH(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const hH=(t,e,n,i)=>{var r,o,a;null==(r=t.getElementById(e))||r.remove(),null==(o=t.getElementById(n))||o.remove(),null==(a=t.getElementById(i))||a.remove()},dH=function(t,e,n,i){var r,o,a,s;MV(),xw();const c=kb.detectInit(e);c&&(gb(c),Aw(c));const l=_w();h.debug(l),e.length>((null==l?void 0:l.maxTextSize)??5e4)&&(e=$V),e=e.replace(/\r\n?/g,"\n");const u="#"+t,d="i"+t,f="#"+d,g="d"+t,p="#"+g;let m=un("body");const b=l.securityLevel===zV,w=l.securityLevel===VV,k=l.fontFamily;if(void 0!==i){if(i&&(i.innerHTML=""),b){const t=uH(un(i),d);m=un(t.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=un(i);lH(m,t,g,`font-family: ${k}`,qV)}else{if(hH(document,t,g,d),b){const t=uH(un("body"),d);m=un(t.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=un("body");lH(m,t,g)}let v,y;e=nH(e);try{if(v=LV(e),"then"in v)throw new Error("Diagram is a promise. Use renderAsync.")}catch(t){v=new OV("error"),y=t}const _=m.select(p).node(),C=v.type,A=_.firstChild,x=A.firstChild,E=jV.includes(C)?v.renderer.getClasses(e,v):{},T=aH(l,C,E,u),S=document.createElement("style");S.innerHTML=T,A.insertBefore(S,x);try{v.renderer.draw(e,t,uw,v)}catch(n){throw AV.draw(e,t,uw),n}pH(C,m.select(`${p} svg`),null==(o=(r=v.db).getAccTitle)?void 0:o.call(r),null==(s=(a=v.db).getAccDescription)?void 0:s.call(a)),m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",UV);let D=m.select(p).node().innerHTML;if(h.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),D=sH(D,b,Zh(l.arrowMarkerAbsolute)),b){const t=m.select(p+" svg").node();D=cH(D,t)}else w||(D=Vh.sanitize(D,{ADD_TAGS:QV,ADD_ATTR:JV}));if(void 0!==n)switch(C){case"flowchart":case"flowchart-v2":n(D,oO.bindFunctions);break;case"gantt":n(D,CR.bindFunctions);break;case"class":case"classDiagram":n(D,t_.bindFunctions);break;default:n(D)}else h.debug("CB = undefined!");qF();const I=un(b?f:p).node();if(I&&"remove"in I&&I.remove(),y)throw y;return D},fH=async function(t,e,n,i){var r,o,a,s;MV(),xw();const c=kb.detectInit(e);c&&(gb(c),Aw(c));const l=_w();h.debug(l),e.length>((null==l?void 0:l.maxTextSize)??5e4)&&(e=$V),e=e.replace(/\r\n?/g,"\n");const u="#"+t,d="i"+t,f="#"+d,g="d"+t,p="#"+g;let m=un("body");const b=l.securityLevel===zV,w=l.securityLevel===VV,k=l.fontFamily;if(void 0!==i){if(i&&(i.innerHTML=""),b){const t=uH(un(i),d);m=un(t.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=un(i);lH(m,t,g,`font-family: ${k}`,qV)}else{if(hH(document,t,g,d),b){const t=uH(un("body"),d);m=un(t.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=un("body");lH(m,t,g)}let v,y;e=nH(e);try{v=await LV(e)}catch(t){v=new OV("error"),y=t}const _=m.select(p).node(),C=v.type,A=_.firstChild,x=A.firstChild,E=jV.includes(C)?v.renderer.getClasses(e,v):{},T=aH(l,C,E,u),S=document.createElement("style");S.innerHTML=T,A.insertBefore(S,x);try{await v.renderer.draw(e,t,uw,v)}catch(n){throw AV.draw(e,t,uw),n}pH(C,m.select(`${p} svg`),null==(o=(r=v.db).getAccTitle)?void 0:o.call(r),null==(s=(a=v.db).getAccDescription)?void 0:s.call(a)),m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",UV);let D=m.select(p).node().innerHTML;if(h.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),D=sH(D,b,Zh(l.arrowMarkerAbsolute)),b){const t=m.select(p+" svg").node();D=cH(D,t)}else w||(D=Vh.sanitize(D,{ADD_TAGS:QV,ADD_ATTR:JV}));if(void 0!==n)switch(C){case"flowchart":case"flowchart-v2":n(D,oO.bindFunctions);break;case"gantt":n(D,CR.bindFunctions);break;case"class":case"classDiagram":n(D,t_.bindFunctions);break;default:n(D)}else h.debug("CB = undefined!");qF();const I=un(b?f:p).node();if(I&&"remove"in I&&I.remove(),y)throw y;return D};function gH(t={}){var e;(null==t?void 0:t.fontFamily)&&!(null==(e=t.themeVariables)?void 0:e.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),ww(t),(null==t?void 0:t.theme)&&t.theme in $d?t.themeVariables=$d[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=$d.default.getThemeVariables(t.themeVariables));const n="object"==typeof t?bw(t):vw();d(n.logLevel),MV()}function pH(t,e,n,i){RV(e,t),FV(e,n,i,e.attr("id"))}const mH=Object.freeze({render:dH,renderAsync:fH,parse:tH,parseAsync:eH,parseDirective:lk,initialize:gH,getConfig:_w,setConfig:yw,getSiteConfig:vw,updateSiteConfig:kw,reset:()=>{xw()},globalReset:()=>{xw(hw)},defaultConfig:hw});d(_w().logLevel),xw(_w());const bH=async function(t,e,n){try{await yH(t,e,n)}catch(t){h.warn("Syntax Error rendering"),mb(t)&&h.warn(t.str),MH.parseError&&MH.parseError(t)}},wH=(t,e,n)=>{h.warn(t),mb(t)?(n&&n(t.str,t.hash),e.push({...t,message:t.str,error:t})):(n&&n(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},kH=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{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;this.id=e+1,t.id=e;var n=this;return new Promise((function(i,r){n.resolvers[e]=function(t,e){t?(n.convertGwtStyleError(t),r(t)):i(e)},n.worker.postMessage(t)}))}},{key:"receive",value:function(t,e){var n=e.data,i=t.resolvers[n.id];i&&(delete t.resolvers[n.id],n.error?i(n.error):i(null,n.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(t){if(t){var e=t.__java$exception;e&&(e.cause&&e.cause.backingJsObject&&(t.cause=e.cause.backingJsObject,this.convertGwtStyleError(t.cause)),delete t.__java$exception)}}}]),t}()},{}],2:[function(t,e,n){(function(t){(function(){var i;function r(){}function o(){}function a(){}function s(){}function c(){}function l(){}function u(){}function h(){}function d(){}function f(){}function g(){}function p(){}function m(){}function b(){}function w(){}function k(){}function v(){}function y(){}function _(){}function C(){}function A(){}function x(){}function E(){}function T(){}function S(){}function D(){}function I(){}function B(){}function M(){}function P(){}function L(){}function O(){}function N(){}function R(){}function F(){}function j(){}function $(){}function z(){}function V(){}function H(){}function q(){}function U(){}function G(){}function W(){}function K(){}function Y(){}function X(){}function Z(){}function Q(){}function J(){}function tt(){}function et(){}function nt(){}function it(){}function rt(){}function ot(){}function at(){}function st(){}function ct(){}function lt(){}function ut(){}function ht(){}function dt(){}function ft(){}function gt(){}function pt(){}function mt(){}function bt(){}function wt(){}function kt(){}function vt(){}function yt(){}function _t(){}function Ct(){}function At(){}function xt(){}function Et(){}function Tt(){}function St(){}function Dt(){}function It(){}function Bt(){}function Mt(){}function Pt(){}function Lt(){}function Ot(){}function Nt(){}function Rt(){}function Ft(){}function jt(){}function $t(){}function zt(){}function Vt(){}function Ht(){}function qt(){}function Ut(){}function Gt(){}function Wt(){}function Kt(){}function Yt(){}function Xt(){}function Zt(){}function Qt(){}function Jt(){}function te(){}function ee(){}function ne(){}function ie(){}function re(){}function oe(){}function ae(){}function se(){}function ce(){}function le(){}function ue(){}function he(){}function de(){}function fe(){}function ge(){}function pe(){}function me(){}function be(){}function we(){}function ke(){}function ve(){}function ye(){}function _e(){}function Ce(){}function Ae(){}function xe(){}function Ee(){}function Te(){}function Se(){}function De(){}function Ie(){}function Be(){}function Me(){}function Pe(){}function Le(){}function Oe(){}function Ne(){}function Re(){}function Fe(){}function je(){}function $e(){}function ze(){}function Ve(){}function He(){}function qe(){}function Ue(){}function Ge(){}function We(){}function Ke(){}function Ye(){}function Xe(){}function Ze(){}function Qe(){}function Je(){}function tn(){}function en(){}function nn(){}function rn(){}function on(){}function an(){}function sn(){}function cn(){}function ln(){}function un(){}function hn(){}function dn(){}function fn(){}function gn(){}function pn(){}function mn(){}function bn(){}function wn(){}function kn(){}function vn(){}function yn(){}function _n(){}function Cn(){}function An(){}function xn(){}function En(){}function Tn(){}function Sn(){}function Dn(){}function In(){}function Bn(){}function Mn(){}function Pn(){}function Ln(){}function On(){}function Nn(){}function Rn(){}function Fn(){}function jn(){}function $n(){}function zn(){}function Vn(){}function Hn(){}function qn(){}function Un(){}function Gn(){}function Wn(){}function Kn(){}function Yn(){}function Xn(){}function Zn(){}function Qn(){}function Jn(){}function ti(){}function ei(){}function ni(){}function ii(){}function ri(){}function oi(){}function ai(){}function si(){}function ci(){}function li(){}function ui(){}function hi(){}function di(){}function fi(){}function gi(){}function pi(){}function mi(){}function bi(){}function wi(){}function ki(){}function vi(){}function yi(){}function _i(){}function Ci(){}function Ai(){}function xi(){}function Ei(){}function Ti(){}function Si(){}function Di(){}function Ii(){}function Bi(){}function Mi(){}function Pi(){}function Li(){}function Oi(){}function Ni(){}function Ri(){}function Fi(){}function ji(){}function $i(){}function zi(){}function Vi(){}function Hi(){}function qi(){}function Ui(){}function Gi(){}function Wi(){}function Ki(){}function Yi(){}function Xi(){}function Zi(){}function Qi(){}function Ji(){}function tr(){}function er(){}function nr(){}function ir(){}function rr(){}function or(){}function ar(){}function sr(){}function cr(){}function lr(){}function ur(){}function hr(){}function dr(){}function fr(){}function gr(){}function pr(){}function mr(){}function br(){}function wr(){}function kr(){}function vr(){}function yr(){}function _r(){}function Cr(){}function Ar(){}function xr(){}function Er(){}function Tr(){}function Sr(){}function Dr(){}function Ir(){}function Br(){}function Mr(){}function Pr(){}function Lr(){}function Or(){}function Nr(){}function Rr(){}function Fr(){}function jr(){}function $r(){}function zr(){}function Vr(){}function Hr(){}function qr(){}function Ur(){}function Gr(){}function Wr(){}function Kr(){}function Yr(){}function Xr(){}function Zr(){}function Qr(){}function Jr(){}function to(){}function eo(){}function no(){}function io(){}function ro(){}function oo(){}function ao(){}function so(){}function co(){}function lo(){}function uo(){}function ho(){}function fo(){}function go(){}function po(){}function mo(){}function bo(){}function wo(){}function ko(){}function vo(){}function yo(){}function _o(){}function Co(){}function Ao(){}function xo(){}function Eo(){}function To(){}function So(){}function Do(){}function Io(){}function Bo(){}function Mo(){}function Po(){}function Lo(){}function Oo(){}function No(){}function Ro(){}function Fo(){}function jo(){}function $o(){}function zo(){}function Vo(){}function Ho(){}function qo(){}function Uo(){}function Go(){}function Wo(){}function Ko(){}function Yo(){}function Xo(){}function Zo(){}function Qo(){}function Jo(){}function ta(){}function ea(){}function na(){}function ia(){}function ra(){}function oa(){}function aa(){}function sa(){}function ca(){}function la(){}function ua(){}function ha(){}function da(){}function fa(){}function ga(){}function pa(){}function ma(){}function ba(){}function wa(){}function ka(){}function va(){}function ya(){}function _a(){}function Ca(){}function Aa(){}function xa(){}function Ea(){}function Ta(){}function Sa(){}function Da(){}function Ia(){}function Ba(){}function Ma(){}function Pa(){}function La(){}function Oa(){}function Na(){}function Ra(){}function Fa(){}function ja(){}function $a(){}function za(){}function Va(){}function Ha(){}function qa(){}function Ua(){}function Ga(){}function Wa(){}function Ka(){}function Ya(){}function Xa(){}function Za(){}function Qa(){}function Ja(){}function ts(){}function es(){}function ns(){}function is(){}function rs(){}function os(){}function as(){}function ss(){}function cs(){}function ls(){}function us(){}function hs(){}function ds(){}function fs(){}function gs(){}function ps(){}function ms(){}function bs(){}function ws(){}function ks(){}function vs(){}function ys(){}function _s(){}function Cs(){}function As(){}function xs(){}function Es(){}function Ts(){}function Ss(){}function Ds(){}function Is(){}function Bs(){}function Ms(){}function Ps(){}function Ls(){}function Os(){}function Ns(){}function Rs(){}function Fs(){}function js(){}function $s(){}function zs(){}function Vs(){}function Hs(){}function qs(){}function Us(){}function Gs(){}function Ws(){}function Ks(){}function Ys(){}function Xs(){}function Zs(){}function Qs(){}function Js(){}function tc(){}function ec(){}function nc(){}function ic(){}function rc(){}function oc(){}function ac(){}function sc(){}function cc(){}function lc(){}function uc(){}function hc(){}function dc(){}function fc(){}function gc(){}function pc(){}function mc(){}function bc(){}function wc(){}function kc(){}function vc(){}function yc(){}function _c(){}function Cc(){}function Ac(){}function xc(){}function Ec(){}function Tc(){}function Sc(){}function Dc(){}function Ic(){}function Bc(){}function Mc(){}function Pc(){}function Lc(){}function Oc(){}function Nc(){}function Rc(){}function Fc(){}function jc(){}function $c(){}function zc(){}function Vc(){}function Hc(){}function qc(){}function Uc(){}function Gc(){}function Wc(){}function Kc(){}function Yc(){}function Xc(){}function Zc(){}function Qc(){}function Jc(){}function tl(){}function el(){}function nl(){}function il(){}function rl(){}function ol(){}function al(){}function sl(){}function cl(){}function ll(){}function ul(){}function hl(){}function dl(){}function fl(){}function gl(){}function pl(){}function ml(){}function bl(){}function wl(){}function kl(){}function vl(){}function yl(){}function _l(){}function Cl(){}function Al(){}function xl(){}function El(){}function Tl(){}function Sl(){}function Dl(){}function Il(){}function Bl(){}function Ml(){}function Pl(){}function Ll(){}function Ol(){}function Nl(){}function Rl(){}function Fl(){}function jl(){}function $l(){}function zl(){}function Vl(){}function Hl(){}function ql(){}function Ul(){}function Gl(){}function Wl(){}function Kl(){}function Yl(){}function Xl(){}function Zl(){}function Ql(){}function Jl(){}function tu(){}function eu(){}function nu(){}function iu(){}function ru(){}function ou(){}function au(){}function su(){}function cu(){}function lu(){}function uu(){}function hu(){}function du(){}function fu(){}function gu(){}function pu(){}function mu(){}function bu(){}function wu(){}function ku(){}function vu(){}function yu(){}function _u(){}function Cu(){}function Au(){}function xu(){}function Eu(){}function Tu(){}function Su(){}function Du(){}function Iu(){}function Bu(){}function Mu(){}function Pu(){}function Lu(){}function Ou(){}function Nu(){}function Ru(){}function Fu(){}function ju(){ev()}function $u(){Hlt()}function zu(){_bt()}function Vu(){Fyt()}function Hu(){yEt()}function qu(){uRt()}function Uu(){Rvt()}function Gu(){iyt()}function Wu(){yx()}function Ku(){bx()}function Yu(){zj()}function Xu(){_x()}function Zu(){Srt()}function Qu(){Ax()}function Ju(){T6()}function th(){Eit()}function eh(){K7()}function nh(){RJ()}function ih(){qlt()}function rh(){Fxt()}function oh(){Tit()}function ah(){q2()}function sh(){uKt()}function ch(){Hvt()}function lh(){FJ()}function uh(){zWt()}function hh(){OJ()}function dh(){Sit()}function fh(){Xst()}function gh(){VJ()}function ph(){E8()}function mh(){xx()}function bh(){RBt()}function wh(){Uvt()}function kh(){jot()}function vh(){Axt()}function yh(){dRt()}function _h(){$wt()}function Ch(){TBt()}function Ah(){Nat()}function xh(){$J()}function Eh(){cjt()}function Th(){BBt()}function Sh(){WMt()}function Dh(){P8()}function Ih(){xxt()}function Bh(){cKt()}function Mh(){Glt()}function Ph(){bpt()}function Lh(){Vzt()}function Oh(){oj()}function Nh(){fot()}function Rh(){u$t()}function Fh(t){kK(t)}function jh(t){this.a=t}function $h(t){this.a=t}function zh(t){this.a=t}function Vh(t){this.a=t}function Hh(t){this.a=t}function qh(t){this.a=t}function Uh(t){this.a=t}function Gh(t){this.a=t}function Wh(t){this.a=t}function Kh(t){this.a=t}function Yh(t){this.a=t}function Xh(t){this.a=t}function Zh(t){this.a=t}function Qh(t){this.a=t}function Jh(t){this.a=t}function td(t){this.a=t}function ed(t){this.a=t}function nd(t){this.a=t}function id(t){this.a=t}function rd(t){this.a=t}function od(t){this.a=t}function ad(t){this.b=t}function sd(t){this.c=t}function cd(t){this.a=t}function ld(t){this.a=t}function ud(t){this.a=t}function hd(t){this.a=t}function dd(t){this.a=t}function fd(t){this.a=t}function gd(t){this.a=t}function pd(t){this.a=t}function md(t){this.a=t}function bd(t){this.a=t}function wd(t){this.a=t}function kd(t){this.a=t}function vd(t){this.a=t}function yd(t){this.a=t}function _d(t){this.a=t}function Cd(t){this.a=t}function Ad(t){this.a=t}function xd(){this.a=[]}function Ed(t,e){t.a=e}function Td(t,e){t.a=e}function Sd(t,e){t.b=e}function Dd(t,e){t.b=e}function Id(t,e){t.b=e}function Bd(t,e){t.j=e}function Md(t,e){t.g=e}function Pd(t,e){t.i=e}function Ld(t,e){t.c=e}function Od(t,e){t.d=e}function Nd(t,e){t.d=e}function Rd(t,e){t.c=e}function Fd(t,e){t.k=e}function jd(t,e){t.c=e}function $d(t,e){t.c=e}function zd(t,e){t.a=e}function Vd(t,e){t.a=e}function Hd(t,e){t.f=e}function qd(t,e){t.a=e}function Ud(t,e){t.b=e}function Gd(t,e){t.d=e}function Wd(t,e){t.i=e}function Kd(t,e){t.o=e}function Yd(t,e){t.r=e}function Xd(t,e){t.a=e}function Zd(t,e){t.b=e}function Qd(t,e){t.e=e}function Jd(t,e){t.f=e}function tf(t,e){t.g=e}function ef(t,e){t.e=e}function nf(t,e){t.f=e}function rf(t,e){t.f=e}function of(t,e){t.n=e}function af(t,e){t.a=e}function sf(t,e){t.a=e}function cf(t,e){t.c=e}function lf(t,e){t.c=e}function uf(t,e){t.d=e}function hf(t,e){t.e=e}function df(t,e){t.g=e}function ff(t,e){t.a=e}function gf(t,e){t.c=e}function pf(t,e){t.d=e}function mf(t,e){t.e=e}function bf(t,e){t.f=e}function wf(t,e){t.j=e}function kf(t,e){t.a=e}function vf(t,e){t.b=e}function yf(t,e){t.a=e}function _f(t){t.b=t.a}function Cf(t){t.c=t.d.d}function Af(t){this.d=t}function xf(t){this.a=t}function Ef(t){this.a=t}function Tf(t){this.a=t}function Sf(t){this.a=t}function Df(t){this.a=t}function If(t){this.a=t}function Bf(t){this.a=t}function Mf(t){this.a=t}function Pf(t){this.a=t}function Lf(t){this.a=t}function Of(t){this.a=t}function Nf(t){this.a=t}function Rf(t){this.a=t}function Ff(t){this.a=t}function jf(t){this.b=t}function $f(t){this.b=t}function zf(t){this.b=t}function Vf(t){this.a=t}function Hf(t){this.a=t}function qf(t){this.a=t}function Uf(t){this.c=t}function Gf(t){this.c=t}function Wf(t){this.c=t}function Kf(t){this.a=t}function Yf(t){this.a=t}function Xf(t){this.a=t}function Zf(t){this.a=t}function Qf(t){this.a=t}function Jf(t){this.a=t}function tg(t){this.a=t}function eg(t){this.a=t}function ng(t){this.a=t}function ig(t){this.a=t}function rg(t){this.a=t}function og(t){this.a=t}function ag(t){this.a=t}function sg(t){this.a=t}function cg(t){this.a=t}function lg(t){this.a=t}function ug(t){this.a=t}function hg(t){this.a=t}function dg(t){this.a=t}function fg(t){this.a=t}function gg(t){this.a=t}function pg(t){this.a=t}function mg(t){this.a=t}function bg(t){this.a=t}function wg(t){this.a=t}function kg(t){this.a=t}function vg(t){this.a=t}function yg(t){this.a=t}function _g(t){this.a=t}function Cg(t){this.a=t}function Ag(t){this.a=t}function xg(t){this.a=t}function Eg(t){this.a=t}function Tg(t){this.a=t}function Sg(t){this.a=t}function Dg(t){this.a=t}function Ig(t){this.a=t}function Bg(t){this.a=t}function Mg(t){this.a=t}function Pg(t){this.a=t}function Lg(t){this.a=t}function Og(t){this.a=t}function Ng(t){this.a=t}function Rg(t){this.a=t}function Fg(t){this.a=t}function jg(t){this.e=t}function $g(t){this.a=t}function zg(t){this.a=t}function Vg(t){this.a=t}function Hg(t){this.a=t}function qg(t){this.a=t}function Ug(t){this.a=t}function Gg(t){this.a=t}function Wg(t){this.a=t}function Kg(t){this.a=t}function Yg(t){this.a=t}function Xg(t){this.a=t}function Zg(t){this.a=t}function Qg(t){this.a=t}function Jg(t){this.a=t}function tp(t){this.a=t}function ep(t){this.a=t}function np(t){this.a=t}function ip(t){this.a=t}function rp(t){this.a=t}function op(t){this.a=t}function ap(t){this.a=t}function sp(t){this.a=t}function cp(t){this.a=t}function lp(t){this.a=t}function up(t){this.a=t}function hp(t){this.a=t}function dp(t){this.a=t}function fp(t){this.a=t}function gp(t){this.a=t}function pp(t){this.a=t}function mp(t){this.a=t}function bp(t){this.a=t}function wp(t){this.a=t}function kp(t){this.a=t}function vp(t){this.a=t}function yp(t){this.a=t}function _p(t){this.a=t}function Cp(t){this.a=t}function Ap(t){this.a=t}function xp(t){this.a=t}function Ep(t){this.a=t}function Tp(t){this.a=t}function Sp(t){this.a=t}function Dp(t){this.a=t}function Ip(t){this.a=t}function Bp(t){this.a=t}function Mp(t){this.a=t}function Pp(t){this.a=t}function Lp(t){this.a=t}function Op(t){this.a=t}function Np(t){this.a=t}function Rp(t){this.a=t}function Fp(t){this.a=t}function jp(t){this.c=t}function $p(t){this.b=t}function zp(t){this.a=t}function Vp(t){this.a=t}function Hp(t){this.a=t}function qp(t){this.a=t}function Up(t){this.a=t}function Gp(t){this.a=t}function Wp(t){this.a=t}function Kp(t){this.a=t}function Yp(t){this.a=t}function Xp(t){this.a=t}function Zp(t){this.a=t}function Qp(t){this.a=t}function Jp(t){this.a=t}function tm(t){this.a=t}function em(t){this.a=t}function nm(t){this.a=t}function im(t){this.a=t}function rm(t){this.a=t}function om(t){this.a=t}function am(t){this.a=t}function sm(t){this.a=t}function cm(t){this.a=t}function lm(t){this.a=t}function um(t){this.a=t}function hm(t){this.a=t}function dm(t){this.a=t}function fm(t){this.a=t}function gm(t){this.a=t}function pm(t){this.a=t}function mm(t){this.a=t}function bm(t){this.a=t}function wm(t){this.a=t}function km(t){this.a=t}function vm(t){this.a=t}function ym(t){this.a=t}function _m(t){this.a=t}function Cm(t){this.a=t}function Am(t){this.a=t}function xm(t){this.a=t}function Em(t){this.a=t}function Tm(t){this.a=t}function Sm(t){this.a=t}function Dm(t){this.a=t}function Im(t){this.a=t}function Bm(t){this.a=t}function Mm(t){this.a=t}function Pm(t){this.a=t}function Lm(t){this.a=t}function Om(t){this.a=t}function Nm(t){this.a=t}function Rm(t){this.a=t}function Fm(t){this.a=t}function jm(t){this.a=t}function $m(t){this.a=t}function zm(t){this.a=t}function Vm(t){this.a=t}function Hm(t){this.a=t}function qm(t){this.a=t}function Um(t){this.a=t}function Gm(t){this.a=t}function Wm(t){this.a=t}function Km(t){this.a=t}function Ym(t){this.a=t}function Xm(t){this.a=t}function Zm(t){this.a=t}function Qm(t){this.a=t}function Jm(t){this.a=t}function tb(t){this.a=t}function eb(t){this.a=t}function nb(t){this.a=t}function ib(t){this.a=t}function rb(t){this.a=t}function ob(t){this.b=t}function ab(t){this.f=t}function sb(t){this.a=t}function cb(t){this.a=t}function lb(t){this.a=t}function ub(t){this.a=t}function hb(t){this.a=t}function db(t){this.a=t}function fb(t){this.a=t}function gb(t){this.a=t}function pb(t){this.a=t}function mb(t){this.a=t}function bb(t){this.a=t}function wb(t){this.b=t}function kb(t){this.c=t}function vb(t){this.e=t}function yb(t){this.a=t}function _b(t){this.a=t}function Cb(t){this.a=t}function Ab(t){this.a=t}function xb(t){this.a=t}function Eb(t){this.d=t}function Tb(t){this.a=t}function Sb(t){this.a=t}function Db(t){this.e=t}function Ib(){this.a=0}function Bb(){LB(this)}function Mb(){PB(this)}function Pb(){IG(this)}function Lb(){dY(this)}function Ob(){}function Nb(){this.c=IMe}function Rb(t,e){e.Wb(t)}function Fb(t,e){t.b+=e}function jb(t){t.b=new ay}function $b(t){return t.e}function zb(t){return t.a}function Vb(t){return t.a}function Hb(t){return t.a}function qb(t){return t.a}function Ub(t){return t.a}function Gb(){return null}function Wb(){return null}function Kb(){rC(),gWt()}function Yb(t){t.b.tf(t.e)}function Xb(t,e){t.b=e-t.b}function Zb(t,e){t.a=e-t.a}function Qb(t,e){e.ad(t.a)}function Jb(t,e){VSt(e,t)}function tw(t,e,n){t.Od(n,e)}function ew(t,e){t.e=e,e.b=t}function nw(t){sj(),this.a=t}function iw(t){sj(),this.a=t}function rw(t){sj(),this.a=t}function ow(t){GW(),this.a=t}function aw(t){xZ(),eee.be(t)}function sw(){gL.call(this)}function cw(){gL.call(this)}function lw(){sw.call(this)}function uw(){sw.call(this)}function hw(){sw.call(this)}function dw(){sw.call(this)}function fw(){sw.call(this)}function gw(){sw.call(this)}function pw(){sw.call(this)}function mw(){sw.call(this)}function bw(){sw.call(this)}function ww(){sw.call(this)}function kw(){sw.call(this)}function vw(){this.a=this}function yw(){this.Bb|=256}function _w(){this.b=new xI}function Cw(){Cw=I,new Pb}function Aw(){lw.call(this)}function xw(t,e){t.length=e}function Ew(t,e){Gz(t.a,e)}function Tw(t,e){UEt(t.c,e)}function Sw(t,e){_G(t.b,e)}function Dw(t,e){Swt(t.a,e)}function Iw(t,e){Ddt(t.a,e)}function Bw(t,e){dat(t.e,e)}function Mw(t){IIt(t.c,t.b)}function Pw(t,e){t.kc().Nb(e)}function Lw(t){this.a=pft(t)}function Ow(){this.a=new Pb}function Nw(){this.a=new Pb}function Rw(){this.a=new Mb}function Fw(){this.a=new Mb}function jw(){this.a=new Mb}function $w(){this.a=new vt}function zw(){this.a=new k6}function Vw(){this.a=new de}function Hw(){this.a=new GA}function qw(){this.a=new L0}function Uw(){this.a=new iJ}function Gw(){this.a=new DR}function Ww(){this.a=new Mb}function Kw(){this.a=new Mb}function Yw(){this.a=new Mb}function Xw(){this.a=new Mb}function Zw(){this.d=new Mb}function Qw(){this.a=new Ow}function Jw(){this.a=new Pb}function tk(){this.b=new Pb}function ek(){this.b=new Mb}function nk(){this.e=new Mb}function ik(){this.d=new Mb}function rk(){this.a=new rh}function ok(){Mb.call(this)}function ak(){Rw.call(this)}function sk(){MR.call(this)}function ck(){Kw.call(this)}function lk(){uk.call(this)}function uk(){Ob.call(this)}function hk(){Ob.call(this)}function dk(){hk.call(this)}function fk(){fZ.call(this)}function gk(){fZ.call(this)}function pk(){Gk.call(this)}function mk(){Gk.call(this)}function bk(){Gk.call(this)}function wk(){Wk.call(this)}function kk(){YA.call(this)}function vk(){ic.call(this)}function yk(){ic.call(this)}function _k(){Qk.call(this)}function Ck(){Qk.call(this)}function Ak(){Pb.call(this)}function xk(){Pb.call(this)}function Ek(){Pb.call(this)}function Tk(){Ow.call(this)}function Sk(){yit.call(this)}function Dk(){yw.call(this)}function Ik(){SP.call(this)}function Bk(){SP.call(this)}function Mk(){Pb.call(this)}function Pk(){Pb.call(this)}function Lk(){Pb.call(this)}function Ok(){vc.call(this)}function Nk(){vc.call(this)}function Rk(){Ok.call(this)}function Fk(){Nu.call(this)}function jk(t){get.call(this,t)}function $k(t){get.call(this,t)}function zk(t){Wh.call(this,t)}function Vk(t){CA.call(this,t)}function Hk(t){Vk.call(this,t)}function qk(t){CA.call(this,t)}function Uk(){this.a=new YA}function Gk(){this.a=new Ow}function Wk(){this.a=new Pb}function Kk(){this.a=new Mb}function Yk(){this.j=new Mb}function Xk(){this.a=new Ka}function Zk(){this.a=new BC}function Qk(){this.a=new kc}function Jk(){Jk=I,Fte=new Py}function tv(){tv=I,Rte=new My}function ev(){ev=I,Dte=new o}function nv(){nv=I,qte=new iL}function iv(t){Vk.call(this,t)}function rv(t){Vk.call(this,t)}function ov(t){f5.call(this,t)}function av(t){f5.call(this,t)}function sv(t){WF.call(this,t)}function cv(t){kEt.call(this,t)}function lv(t){EA.call(this,t)}function uv(t){SA.call(this,t)}function hv(t){SA.call(this,t)}function dv(t){SA.call(this,t)}function fv(t){lU.call(this,t)}function gv(t){fv.call(this,t)}function pv(){Ad.call(this,{})}function mv(t){EP(),this.a=t}function bv(t){t.b=null,t.c=0}function wv(t,e){t.e=e,TOt(t,e)}function kv(t,e){t.a=e,oSt(t)}function vv(t,e,n){t.a[e.g]=n}function yv(t,e,n){f_t(n,t,e)}function _v(t,e){ZR(e.i,t.n)}function Cv(t,e){clt(t).td(e)}function Av(t,e){return t*t/e}function xv(t,e){return t.g-e.g}function Ev(t){return new Cd(t)}function Tv(t){return new VW(t)}function Sv(t){fv.call(this,t)}function Dv(t){fv.call(this,t)}function Iv(t){fv.call(this,t)}function Bv(t){lU.call(this,t)}function Mv(t){Fot(),this.a=t}function Pv(t){rj(),this.a=t}function Lv(t){Fq(),this.f=t}function Ov(t){Fq(),this.f=t}function Nv(t){fv.call(this,t)}function Rv(t){fv.call(this,t)}function Fv(t){fv.call(this,t)}function jv(t){fv.call(this,t)}function $v(t){fv.call(this,t)}function zv(t){return kK(t),t}function Vv(t){return kK(t),t}function Hv(t){return kK(t),t}function qv(t){return kK(t),t}function Uv(t){return kK(t),t}function Gv(t){return t.b==t.c}function Wv(t){return!!t&&t.b}function Kv(t){return!!t&&t.k}function Yv(t){return!!t&&t.j}function Xv(t){kK(t),this.a=t}function Zv(t){return Qct(t),t}function Qv(t){mG(t,t.length)}function Jv(t){fv.call(this,t)}function ty(t){fv.call(this,t)}function ey(t){fv.call(this,t)}function ny(t){fv.call(this,t)}function iy(t){fv.call(this,t)}function ry(t){fv.call(this,t)}function oy(t){ZL.call(this,t,0)}function ay(){a1.call(this,12,3)}function sy(){sy=I,tee=new _}function cy(){cy=I,Xte=new r}function ly(){ly=I,iee=new m}function uy(){uy=I,lee=new w}function hy(){throw $b(new pw)}function dy(){throw $b(new pw)}function fy(){throw $b(new pw)}function gy(){throw $b(new pw)}function py(){throw $b(new pw)}function my(){throw $b(new pw)}function by(){this.a=AN(wW(jKt))}function wy(t){sj(),this.a=wW(t)}function ky(t,e){t.Td(e),e.Sd(t)}function vy(t,e){t.a.ec().Mc(e)}function yy(t,e,n){t.c.lf(e,n)}function _y(t){Dv.call(this,t)}function Cy(t){Rv.call(this,t)}function Ay(){Df.call(this,"")}function xy(){Df.call(this,"")}function Ey(){Df.call(this,"")}function Ty(){Df.call(this,"")}function Sy(t){Dv.call(this,t)}function Dy(t){$f.call(this,t)}function Iy(t){hL.call(this,t)}function By(t){Dy.call(this,t)}function My(){Qh.call(this,null)}function Py(){Qh.call(this,null)}function Ly(){Ly=I,xZ()}function Oy(){Oy=I,kne=wCt()}function Ny(t){return t.a?t.b:0}function Ry(t){return t.a?t.b:0}function Fy(t,e){return t.a-e.a}function jy(t,e){return t.a-e.a}function $y(t,e){return t.a-e.a}function zy(t,e){return b9(t,e)}function Vy(t,e){return gJ(t,e)}function Hy(t,e){return e in t.a}function qy(t,e){return t.f=e,t}function Uy(t,e){return t.b=e,t}function Gy(t,e){return t.c=e,t}function Wy(t,e){return t.g=e,t}function Ky(t,e){return t.a=e,t}function Yy(t,e){return t.f=e,t}function Xy(t,e){return t.k=e,t}function Zy(t,e){return t.a=e,t}function Qy(t,e){return t.e=e,t}function Jy(t,e){return t.e=e,t}function t_(t,e){return t.f=e,t}function e_(t,e){t.b=!0,t.d=e}function n_(t,e){t.b=new dB(e)}function i_(t,e,n){e.td(t.a[n])}function r_(t,e,n){e.we(t.a[n])}function o_(t,e){return t.b-e.b}function a_(t,e){return t.g-e.g}function s_(t,e){return t.s-e.s}function c_(t,e){return t?0:e-1}function l_(t,e){return t?0:e-1}function u_(t,e){return t?e-1:0}function h_(t,e){return e.Yf(t)}function d_(t,e){return t.b=e,t}function f_(t,e){return t.a=e,t}function g_(t,e){return t.c=e,t}function p_(t,e){return t.d=e,t}function m_(t,e){return t.e=e,t}function b_(t,e){return t.f=e,t}function w_(t,e){return t.a=e,t}function k_(t,e){return t.b=e,t}function v_(t,e){return t.c=e,t}function y_(t,e){return t.c=e,t}function __(t,e){return t.b=e,t}function C_(t,e){return t.d=e,t}function A_(t,e){return t.e=e,t}function x_(t,e){return t.f=e,t}function E_(t,e){return t.g=e,t}function T_(t,e){return t.a=e,t}function S_(t,e){return t.i=e,t}function D_(t,e){return t.j=e,t}function I_(t,e){return t.k=e,t}function B_(t,e){return t.j=e,t}function M_(t,e){Fxt(),EJ(e,t)}function P_(t,e,n){Vq(t.a,e,n)}function L_(t){jY.call(this,t)}function O_(t){jY.call(this,t)}function N_(t){QF.call(this,t)}function R_(t){Vft.call(this,t)}function F_(t){pet.call(this,t)}function j_(t){pX.call(this,t)}function $_(t){pX.call(this,t)}function z_(){SM.call(this,"")}function V_(){this.a=0,this.b=0}function H_(){this.b=0,this.a=0}function q_(t,e){t.b=0,Pnt(t,e)}function U_(t,e){t.c=e,t.b=!0}function G_(t,e){return t.c._b(e)}function W_(t){return t.e&&t.e()}function K_(t){return t?t.d:null}function Y_(t,e){return pht(t.b,e)}function X_(t){return t?t.g:null}function Z_(t){return t?t.i:null}function Q_(t){return yN(t),t.o}function J_(){J_=I,fIe=Gyt()}function tC(){tC=I,gIe=sAt()}function eC(){eC=I,ZBe=Kyt()}function nC(){nC=I,dPe=Wyt()}function iC(){iC=I,fPe=nSt()}function rC(){rC=I,lBe=rit()}function oC(){throw $b(new pw)}function aC(){throw $b(new pw)}function sC(){throw $b(new pw)}function cC(){throw $b(new pw)}function lC(){throw $b(new pw)}function uC(){throw $b(new pw)}function hC(t){this.a=new UA(t)}function dC(t){hGt(),OWt(this,t)}function fC(t){this.a=new GU(t)}function gC(t,e){for(;t.ye(e););}function pC(t,e){for(;t.sd(e););}function mC(t,e){return t.a+=e,t}function bC(t,e){return t.a+=e,t}function wC(t,e){return t.a+=e,t}function kC(t,e){return t.a+=e,t}function vC(t){return yK(t),t.a}function yC(t){return t.b!=t.d.c}function _C(t){return t.l|t.m<<22}function CC(t,e){return t.d[e.p]}function AC(t,e){return xOt(t,e)}function xC(t,e,n){t.splice(e,n)}function EC(t){t.c?PNt(t):LNt(t)}function TC(t){this.a=0,this.b=t}function SC(){this.a=new TLt(e_e)}function DC(){this.b=new TLt(zve)}function IC(){this.b=new TLt(GCe)}function BC(){this.b=new TLt(GCe)}function MC(){throw $b(new pw)}function PC(){throw $b(new pw)}function LC(){throw $b(new pw)}function OC(){throw $b(new pw)}function NC(){throw $b(new pw)}function RC(){throw $b(new pw)}function FC(){throw $b(new pw)}function jC(){throw $b(new pw)}function $C(){throw $b(new pw)}function zC(){throw $b(new pw)}function VC(){throw $b(new ww)}function HC(){throw $b(new ww)}function qC(t){this.a=new UC(t)}function UC(t){Hit(this,t,DCt())}function GC(t){return!t||pK(t)}function WC(t){return-1!=UPe[t]}function KC(){0!=ree&&(ree=0),aee=-1}function YC(){null==EKt&&(EKt=[])}function XC(t,e){tBt(KX(t.a),e)}function ZC(t,e){tBt(KX(t.a),e)}function QC(t,e){$P.call(this,t,e)}function JC(t,e){QC.call(this,t,e)}function tA(t,e){this.b=t,this.c=e}function eA(t,e){this.b=t,this.a=e}function nA(t,e){this.a=t,this.b=e}function iA(t,e){this.a=t,this.b=e}function rA(t,e){this.a=t,this.b=e}function oA(t,e){this.a=t,this.b=e}function aA(t,e){this.a=t,this.b=e}function sA(t,e){this.a=t,this.b=e}function cA(t,e){this.a=t,this.b=e}function lA(t,e){this.a=t,this.b=e}function uA(t,e){this.b=t,this.a=e}function hA(t,e){this.b=t,this.a=e}function dA(t,e){this.b=t,this.a=e}function fA(t,e){this.b=t,this.a=e}function gA(t,e){this.f=t,this.g=e}function pA(t,e){this.e=t,this.d=e}function mA(t,e){this.g=t,this.i=e}function bA(t,e){this.a=t,this.b=e}function wA(t,e){this.a=t,this.f=e}function kA(t,e){this.b=t,this.c=e}function vA(t,e){this.a=t,this.b=e}function yA(t,e){this.a=t,this.b=e}function _A(t,e){this.a=t,this.b=e}function CA(t){rL(t.dc()),this.c=t}function AA(t){this.b=jz(wW(t),83)}function xA(t){this.a=jz(wW(t),83)}function EA(t){this.a=jz(wW(t),15)}function TA(t){this.a=jz(wW(t),15)}function SA(t){this.b=jz(wW(t),47)}function DA(){this.q=new i.Date}function IA(){IA=I,$ee=new B}function BA(){BA=I,hne=new T}function MA(t){return t.f.c+t.g.c}function PA(t,e){return t.b.Hc(e)}function LA(t,e){return t.b.Ic(e)}function OA(t,e){return t.b.Qc(e)}function NA(t,e){return t.b.Hc(e)}function RA(t,e){return t.c.uc(e)}function FA(t,e){return t.a._b(e)}function jA(t,e){return Pht(t.c,e)}function $A(t,e){return cG(t.b,e)}function zA(t,e){return t>e&&e<DYt}function VA(t,e){return t.Gc(e),t}function HA(t,e){return jrt(t,e),t}function qA(t){return UW(),t?cee:see}function UA(t){Jst.call(this,t,0)}function GA(){GU.call(this,null)}function WA(){j7.call(this,null)}function KA(t){this.c=t,Dtt(this)}function YA(){xM(this),wX(this)}function XA(t,e){yK(t),t.a.Nb(e)}function ZA(t,e){return t.Gc(e),t}function QA(t,e){return t.a.f=e,t}function JA(t,e){return t.a.d=e,t}function tx(t,e){return t.a.g=e,t}function ex(t,e){return t.a.j=e,t}function nx(t,e){return t.a.a=e,t}function ix(t,e){return t.a.d=e,t}function rx(t,e){return t.a.e=e,t}function ox(t,e){return t.a.g=e,t}function ax(t,e){return t.a.f=e,t}function sx(t){return t.b=!1,t}function cx(){cx=I,xne=new EI}function lx(){lx=I,Ene=new TI}function ux(){ux=I,$ne=new G}function hx(){hx=I,mse=new Re}function dx(){dx=I,noe=new TO}function fx(){fx=I,Jne=new lt}function gx(){gx=I,kse=new Fe}function px(){px=I,sie=new gt}function mx(){mx=I,Vae=new ke}function bx(){bx=I,Fse=new V_}function wx(){wx=I,Hae=new Ee}function kx(){kx=I,Wae=new Lq}function vx(){vx=I,cse=new Ae}function yx(){yx=I,jse=new fn}function _x(){_x=I,Qce=new Zn}function Cx(){Cx=I,dle=new Pr}function Ax(){Ax=I,Kle=new ro}function xx(){xx=I,Gye=new j2}function Ex(){Ex=I,UCe=new Bx}function Tx(){Tx=I,KCe=new mN}function Sx(){Sx=I,VAe=new UK}function Dx(){Dx=I,Gbe=new Ys}function Ix(){xit(),this.c=new ay}function Bx(){gA.call(this,z1t,0)}function Mx(t,e){Zmt(t.c.b,e.c,e)}function Px(t,e){Zmt(t.c.c,e.b,e)}function Lx(t,e,n){bJ(t.d,e.f,n)}function Ox(t,e,n,i){Zbt(t,i,e,n)}function Nx(t,e,n,i){aLt(i,t,e,n)}function Rx(t,e,n,i){sGt(i,t,e,n)}function Fx(t,e){return t.a=e.g,t}function jx(t,e){return eyt(t.a,e)}function $x(t){return t.b?t.b:t.a}function zx(t){return(t.c+t.a)/2}function Vx(){Vx=I,uIe=new nc}function Hx(){Hx=I,EIe=new hc}function qx(){qx=I,LBe=new xk}function Ux(){Ux=I,HBe=new Ek}function Gx(){Gx=I,VBe=new Mk}function Wx(){Wx=I,XBe=new Lk}function Kx(){Kx=I,BMe=new HM}function Yx(){Yx=I,MMe=new qM}function Xx(){Xx=I,ePe=new Ll}function Zx(){Zx=I,iPe=new Ol}function Qx(){Qx=I,mBe=new Pb}function Jx(){Jx=I,GMe=new Mb}function tE(){tE=I,_Le=new Fu}function eE(t){i.clearTimeout(t)}function nE(t){this.a=jz(wW(t),224)}function iE(t){return jz(t,42).cd()}function rE(t){return t.b<t.d.gc()}function oE(t,e){return Eq(t.a,e)}function aE(t,e){return Kut(t,e)>0}function sE(t,e){return Kut(t,e)<0}function cE(t,e){return t.a.get(e)}function lE(t,e){return e.split(t)}function uE(t,e){return cG(t.e,e)}function hE(t){return kK(t),!1}function dE(t){d1.call(this,t,21)}function fE(t,e){RQ.call(this,t,e)}function gE(t,e){gA.call(this,t,e)}function pE(t,e){gA.call(this,t,e)}function mE(t){WW(),WF.call(this,t)}function bE(t,e){vq(t,t.length,e)}function wE(t,e){KG(t,t.length,e)}function kE(t,e,n){e.ud(t.a.Ge(n))}function vE(t,e,n){e.we(t.a.Fe(n))}function yE(t,e,n){e.td(t.a.Kb(n))}function _E(t,e,n){t.Mb(n)&&e.td(n)}function CE(t,e,n){t.splice(e,0,n)}function AE(t,e){return AL(t.e,e)}function xE(t,e){this.d=t,this.e=e}function EE(t,e){this.b=t,this.a=e}function TE(t,e){this.b=t,this.a=e}function SE(t,e){this.b=t,this.a=e}function DE(t,e){this.a=t,this.b=e}function IE(t,e){this.a=t,this.b=e}function BE(t,e){this.a=t,this.b=e}function ME(t,e){this.a=t,this.b=e}function PE(t,e){this.a=t,this.b=e}function LE(t,e){this.b=t,this.a=e}function OE(t,e){this.b=t,this.a=e}function NE(t,e){gA.call(this,t,e)}function RE(t,e){gA.call(this,t,e)}function FE(t,e){gA.call(this,t,e)}function jE(t,e){gA.call(this,t,e)}function $E(t,e){gA.call(this,t,e)}function zE(t,e){gA.call(this,t,e)}function VE(t,e){gA.call(this,t,e)}function HE(t,e){gA.call(this,t,e)}function qE(t,e){gA.call(this,t,e)}function UE(t,e){gA.call(this,t,e)}function GE(t,e){gA.call(this,t,e)}function WE(t,e){gA.call(this,t,e)}function KE(t,e){gA.call(this,t,e)}function YE(t,e){gA.call(this,t,e)}function XE(t,e){gA.call(this,t,e)}function ZE(t,e){gA.call(this,t,e)}function QE(t,e){gA.call(this,t,e)}function JE(t,e){gA.call(this,t,e)}function tT(t,e){this.a=t,this.b=e}function eT(t,e){this.a=t,this.b=e}function nT(t,e){this.a=t,this.b=e}function iT(t,e){this.a=t,this.b=e}function rT(t,e){this.a=t,this.b=e}function oT(t,e){this.a=t,this.b=e}function aT(t,e){this.a=t,this.b=e}function sT(t,e){this.a=t,this.b=e}function cT(t,e){this.a=t,this.b=e}function lT(t,e){this.b=t,this.a=e}function uT(t,e){this.b=t,this.a=e}function hT(t,e){this.b=t,this.a=e}function dT(t,e){this.b=t,this.a=e}function fT(t,e){this.c=t,this.d=e}function gT(t,e){this.e=t,this.d=e}function pT(t,e){this.a=t,this.b=e}function mT(t,e){this.b=e,this.c=t}function bT(t,e){gA.call(this,t,e)}function wT(t,e){gA.call(this,t,e)}function kT(t,e){gA.call(this,t,e)}function vT(t,e){gA.call(this,t,e)}function yT(t,e){gA.call(this,t,e)}function _T(t,e){gA.call(this,t,e)}function CT(t,e){gA.call(this,t,e)}function AT(t,e){gA.call(this,t,e)}function xT(t,e){gA.call(this,t,e)}function ET(t,e){gA.call(this,t,e)}function TT(t,e){gA.call(this,t,e)}function ST(t,e){gA.call(this,t,e)}function DT(t,e){gA.call(this,t,e)}function IT(t,e){gA.call(this,t,e)}function BT(t,e){gA.call(this,t,e)}function MT(t,e){gA.call(this,t,e)}function PT(t,e){gA.call(this,t,e)}function LT(t,e){gA.call(this,t,e)}function OT(t,e){gA.call(this,t,e)}function NT(t,e){gA.call(this,t,e)}function RT(t,e){gA.call(this,t,e)}function FT(t,e){gA.call(this,t,e)}function jT(t,e){gA.call(this,t,e)}function $T(t,e){gA.call(this,t,e)}function zT(t,e){gA.call(this,t,e)}function VT(t,e){gA.call(this,t,e)}function HT(t,e){gA.call(this,t,e)}function qT(t,e){gA.call(this,t,e)}function UT(t,e){gA.call(this,t,e)}function GT(t,e){gA.call(this,t,e)}function WT(t,e){gA.call(this,t,e)}function KT(t,e){gA.call(this,t,e)}function YT(t,e){gA.call(this,t,e)}function XT(t,e){gA.call(this,t,e)}function ZT(t,e){this.b=t,this.a=e}function QT(t,e){this.a=t,this.b=e}function JT(t,e){this.a=t,this.b=e}function tS(t,e){this.a=t,this.b=e}function eS(t,e){this.a=t,this.b=e}function nS(t,e){gA.call(this,t,e)}function iS(t,e){gA.call(this,t,e)}function rS(t,e){this.b=t,this.d=e}function oS(t,e){gA.call(this,t,e)}function aS(t,e){gA.call(this,t,e)}function sS(t,e){this.a=t,this.b=e}function cS(t,e){this.a=t,this.b=e}function lS(t,e){gA.call(this,t,e)}function uS(t,e){gA.call(this,t,e)}function hS(t,e){gA.call(this,t,e)}function dS(t,e){gA.call(this,t,e)}function fS(t,e){gA.call(this,t,e)}function gS(t,e){gA.call(this,t,e)}function pS(t,e){gA.call(this,t,e)}function mS(t,e){gA.call(this,t,e)}function bS(t,e){gA.call(this,t,e)}function wS(t,e){gA.call(this,t,e)}function kS(t,e){gA.call(this,t,e)}function vS(t,e){gA.call(this,t,e)}function yS(t,e){gA.call(this,t,e)}function _S(t,e){gA.call(this,t,e)}function CS(t,e){gA.call(this,t,e)}function AS(t,e){gA.call(this,t,e)}function xS(t,e){return AL(t.c,e)}function ES(t,e){return AL(e.b,t)}function TS(t,e){return-t.b.Je(e)}function SS(t,e){return AL(t.g,e)}function DS(t,e){gA.call(this,t,e)}function IS(t,e){gA.call(this,t,e)}function BS(t,e){this.a=t,this.b=e}function MS(t,e){this.a=t,this.b=e}function PS(t,e){this.a=t,this.b=e}function LS(t,e){gA.call(this,t,e)}function OS(t,e){gA.call(this,t,e)}function NS(t,e){gA.call(this,t,e)}function RS(t,e){gA.call(this,t,e)}function FS(t,e){gA.call(this,t,e)}function jS(t,e){gA.call(this,t,e)}function $S(t,e){gA.call(this,t,e)}function zS(t,e){gA.call(this,t,e)}function VS(t,e){gA.call(this,t,e)}function HS(t,e){gA.call(this,t,e)}function qS(t,e){gA.call(this,t,e)}function US(t,e){gA.call(this,t,e)}function GS(t,e){gA.call(this,t,e)}function WS(t,e){gA.call(this,t,e)}function KS(t,e){gA.call(this,t,e)}function YS(t,e){gA.call(this,t,e)}function XS(t,e){this.a=t,this.b=e}function ZS(t,e){this.a=t,this.b=e}function QS(t,e){this.a=t,this.b=e}function JS(t,e){this.a=t,this.b=e}function tD(t,e){this.a=t,this.b=e}function eD(t,e){this.a=t,this.b=e}function nD(t,e){this.a=t,this.b=e}function iD(t,e){gA.call(this,t,e)}function rD(t,e){this.a=t,this.b=e}function oD(t,e){this.a=t,this.b=e}function aD(t,e){this.a=t,this.b=e}function sD(t,e){this.a=t,this.b=e}function cD(t,e){this.a=t,this.b=e}function lD(t,e){this.a=t,this.b=e}function uD(t,e){this.b=t,this.a=e}function hD(t,e){this.b=t,this.a=e}function dD(t,e){this.b=t,this.a=e}function fD(t,e){this.b=t,this.a=e}function gD(t,e){this.a=t,this.b=e}function pD(t,e){this.a=t,this.b=e}function mD(t,e){ZPt(t.a,jz(e,56))}function bD(t,e){m9(t.a,jz(e,11))}function wD(t,e){return cV(),e!=t}function kD(){return Oy(),new kne}function vD(){zJ(),this.b=new Ow}function yD(){gOt(),this.a=new Ow}function _D(){NJ(),Nq.call(this)}function CD(t,e){gA.call(this,t,e)}function AD(t,e){this.a=t,this.b=e}function xD(t,e){this.a=t,this.b=e}function ED(t,e){this.a=t,this.b=e}function TD(t,e){this.a=t,this.b=e}function SD(t,e){this.a=t,this.b=e}function DD(t,e){this.a=t,this.b=e}function ID(t,e){this.d=t,this.b=e}function BD(t,e){this.d=t,this.e=e}function MD(t,e){this.f=t,this.c=e}function PD(t,e){this.b=t,this.c=e}function LD(t,e){this.i=t,this.g=e}function OD(t,e){this.e=t,this.a=e}function ND(t,e){this.a=t,this.b=e}function RD(t,e){t.i=null,ort(t,e)}function FD(t,e){t&&WK(oBe,t,e)}function jD(t,e){return ipt(t.a,e)}function $D(t){return opt(t.c,t.b)}function zD(t){return t?t.dd():null}function VD(t){return null==t?null:t}function HD(t){return typeof t===BKt}function qD(t){return typeof t===MKt}function UD(t){return typeof t===PKt}function GD(t,e){return t.Hd().Xb(e)}function WD(t,e){return Yot(t.Kc(),e)}function KD(t,e){return 0==Kut(t,e)}function YD(t,e){return Kut(t,e)>=0}function XD(t,e){return 0!=Kut(t,e)}function ZD(t){return""+(kK(t),t)}function QD(t,e){return t.substr(e)}function JD(t){return qft(t),t.d.gc()}function tI(t){return qIt(t,t.c),t}function eI(t){return XV(null==t),t}function nI(t,e){return t.a+=""+e,t}function iI(t,e){return t.a+=""+e,t}function rI(t,e){return t.a+=""+e,t}function oI(t,e){return t.a+=""+e,t}function aI(t,e){return t.a+=""+e,t}function sI(t,e){return t.a+=""+e,t}function cI(t,e){n4(t,e,t.a,t.a.a)}function lI(t,e){n4(t,e,t.c.b,t.c)}function uI(t,e,n){R_t(e,NTt(t,n))}function hI(t,e,n){R_t(e,NTt(t,n))}function dI(t,e){_tt(new DP(t),e)}function fI(t,e){t.q.setTime(v2(e))}function gI(t,e){HU.call(this,t,e)}function pI(t,e){HU.call(this,t,e)}function mI(t,e){HU.call(this,t,e)}function bI(t){IG(this),Cot(this,t)}function wI(t){return u1(t,0),null}function kI(t){return t.a=0,t.b=0,t}function vI(t,e){return t.a=e.g+1,t}function yI(t,e){return 2==t.j[e.p]}function _I(t){return sW(jz(t,79))}function CI(){CI=I,Dre=hut(tbt())}function AI(){AI=I,Zce=hut(_Lt())}function xI(){this.b=new UA(tet(12))}function EI(){this.b=0,this.a=!1}function TI(){this.b=0,this.a=!1}function SI(t){this.a=t,ju.call(this)}function DI(t){this.a=t,ju.call(this)}function II(t,e){eR.call(this,t,e)}function BI(t,e){JR.call(this,t,e)}function MI(t,e){LD.call(this,t,e)}function PI(t,e){Iat.call(this,t,e)}function LI(t,e){KL.call(this,t,e)}function OI(t,e){Qx(),WK(mBe,t,e)}function NI(t,e){return lO(t.a,0,e)}function RI(t,e){return t.a.a.a.cc(e)}function FI(t,e){return VD(t)===VD(e)}function jI(t,e){return Edt(t.a,e.a)}function $I(t,e){return yM(t.a,e.a)}function zI(t,e){return FG(t.a,e.a)}function VI(t,e){return t.indexOf(e)}function HI(t,e){return t==e?0:t?1:-1}function qI(t){return t<10?"0"+t:""+t}function UI(t){return wW(t),new SI(t)}function GI(t){return CM(t.l,t.m,t.h)}function WI(t){return EQ((kK(t),t))}function KI(t){return EQ((kK(t),t))}function YI(t,e){return yM(t.g,e.g)}function XI(t){return typeof t===MKt}function ZI(t){return t==Zae||t==tse}function QI(t){return t==Zae||t==Qae}function JI(t){return y9(t.b.b,t,0)}function tB(t){this.a=kD(),this.b=t}function eB(t){this.a=kD(),this.b=t}function nB(t,e){return Gz(t.a,e),e}function iB(t,e){return Gz(t.c,e),t}function rB(t,e){return Zot(t.a,e),t}function oB(t,e){return Vj(),e.a+=t}function aB(t,e){return Vj(),e.a+=t}function sB(t,e){return Vj(),e.c+=t}function cB(t,e){H8(t,0,t.length,e)}function lB(){tg.call(this,new m5)}function uB(){oq.call(this,0,0,0,0)}function hB(){qY.call(this,0,0,0,0)}function dB(t){this.a=t.a,this.b=t.b}function fB(t){return t==RTe||t==FTe}function gB(t){return t==$Te||t==NTe}function pB(t){return t==lwe||t==cwe}function mB(t){return t!=KSe&&t!=YSe}function bB(t){return t.Lg()&&t.Mg()}function wB(t){return bY(jz(t,118))}function kB(t){return Zot(new j2,t)}function vB(t,e){return new Iat(e,t)}function yB(t,e){return new Iat(e,t)}function _B(t,e,n){ynt(t,e),_nt(t,n)}function CB(t,e,n){xnt(t,e),Ant(t,n)}function AB(t,e,n){Ent(t,e),Tnt(t,n)}function xB(t,e,n){Cnt(t,e),Dnt(t,n)}function EB(t,e,n){Snt(t,e),Int(t,n)}function TB(t,e){Olt(t,e),Lnt(t,t.D)}function SB(t){MD.call(this,t,!0)}function DB(t,e,n){MN.call(this,t,e,n)}function IB(t){DNt(),cat.call(this,t)}function BB(){gE.call(this,"Head",1)}function MB(){gE.call(this,"Tail",3)}function PB(t){t.c=P7(Ite,zKt,1,0,5,1)}function LB(t){t.a=P7(Ite,zKt,1,8,5,1)}function OB(t){Det(t.xf(),new Ag(t))}function NB(t){return null!=t?Jct(t):0}function RB(t,e){return Tet(e,GQ(t))}function FB(t,e){return Tet(e,GQ(t))}function jB(t,e){return t[t.length]=e}function $B(t,e){return t[t.length]=e}function zB(t){return Fz(t.b.Kc(),t.a)}function VB(t,e){return Uit(xW(t.d),e)}function HB(t,e){return Uit(xW(t.g),e)}function qB(t,e){return Uit(xW(t.j),e)}function UB(t,e){eR.call(this,t.b,e)}function GB(t){oq.call(this,t,t,t,t)}function WB(t){return t.b&&Kzt(t),t.a}function KB(t){return t.b&&Kzt(t),t.c}function YB(t,e){Kne||(t.b=e)}function XB(t,e,n){return IW(t,e,n),n}function ZB(t,e,n){IW(t.c[e.g],e.g,n)}function QB(t,e,n){jz(t.c,69).Xh(e,n)}function JB(t,e,n){AB(n,n.i+t,n.j+e)}function tM(t,e){l8(r5(t.a),t1(e))}function eM(t,e){l8($9(t.a),e1(e))}function nM(t){fKt(),Db.call(this,t)}function iM(t){return null==t?0:Jct(t)}function rM(){rM=I,sve=new zft(aSe)}function oM(){oM=I,new aM,new Mb}function aM(){new Pb,new Pb,new Pb}function sM(){sM=I,Cw(),nee=new Pb}function cM(){cM=I,i.Math.log(2)}function lM(){lM=I,Hx(),LMe=EIe}function uM(){throw $b(new Jv(Cte))}function hM(){throw $b(new Jv(Cte))}function dM(){throw $b(new Jv(Ate))}function fM(){throw $b(new Jv(Ate))}function gM(t){this.a=t,Kz.call(this,t)}function pM(t){this.a=t,AA.call(this,t)}function mM(t){this.a=t,AA.call(this,t)}function bM(t,e){wq(t.c,t.c.length,e)}function wM(t){return t.a<t.c.c.length}function kM(t){return t.a<t.c.a.length}function vM(t,e){return t.a?t.b:e.De()}function yM(t,e){return t<e?-1:t>e?1:0}function _M(t,e){return Kut(t,e)>0?t:e}function CM(t,e,n){return{l:t,m:e,h:n}}function AM(t,e){null!=t.a&&bD(e,t.a)}function xM(t){t.a=new M,t.c=new M}function EM(t){this.b=t,this.a=new Mb}function TM(t){this.b=new ee,this.a=t}function SM(t){BR.call(this),this.a=t}function DM(){gE.call(this,"Range",2)}function IM(){t_t(),this.a=new TLt(qae)}function BM(t,e){wW(e),yY(t).Jc(new f)}function MM(t,e){return jJ(),e.n.b+=t}function PM(t,e,n){return WK(t.g,n,e)}function LM(t,e,n){return WK(t.k,n,e)}function OM(t,e){return WK(t.a,e.a,e)}function NM(t,e,n){return Spt(e,n,t.c)}function RM(t){return new PS(t.c,t.d)}function FM(t){return new PS(t.c,t.d)}function jM(t){return new PS(t.a,t.b)}function $M(t,e){return tUt(t.a,e,null)}function zM(t){AJ(t,null),CJ(t,null)}function VM(t){GJ(t,null),WJ(t,null)}function HM(){KL.call(this,null,null)}function qM(){YL.call(this,null,null)}function UM(t){this.a=t,Pb.call(this)}function GM(t){this.b=(AX(),new Uf(t))}function WM(t){t.j=P7(jee,cYt,310,0,0,1)}function KM(t,e,n){t.c.Vc(e,jz(n,133))}function YM(t,e,n){t.c.ji(e,jz(n,133))}function XM(t,e){cHt(t),t.Gc(jz(e,15))}function ZM(t,e){return $Ht(t.c,t.b,e)}function QM(t,e){return new pL(t.Kc(),e)}function JM(t,e){return-1!=jst(t.Kc(),e)}function tP(t,e){return null!=t.a.Bc(e)}function eP(t){return t.Ob()?t.Pb():null}function nP(t){return $pt(t,0,t.length)}function iP(t,e){return null!=t&&Ybt(t,e)}function rP(t,e){t.q.setHours(e),hzt(t,e)}function oP(t,e){t.c&&(OV(e),kQ(e))}function aP(t,e,n){jz(t.Kb(n),164).Nb(e)}function sP(t,e,n){return zqt(t,e,n),n}function cP(t,e,n){t.a=1502^e,t.b=n^oZt}function lP(t,e,n){return t.a[e.g][n.g]}function uP(t,e){return t.a[e.c.p][e.p]}function hP(t,e){return t.e[e.c.p][e.p]}function dP(t,e){return t.c[e.c.p][e.p]}function fP(t,e){return t.j[e.p]=mPt(e)}function gP(t,e){return l6(t.f,e.tg())}function pP(t,e){return l6(t.b,e.tg())}function mP(t,e){return t.a<UF(e)?-1:1}function bP(t,e,n){return n?0!=e:e!=t-1}function wP(t,e,n){return t.a=e,t.b=n,t}function kP(t,e){return t.a*=e,t.b*=e,t}function vP(t,e,n){return IW(t.g,e,n),n}function yP(t,e,n,i){IW(t.a[e.g],n.g,i)}function _P(t,e){RO(e,t.a.a.a,t.a.a.b)}function CP(t){t.a=jz(kat(t.b.a,4),126)}function AP(t){t.a=jz(kat(t.b.a,4),126)}function xP(t){SZ(t,n7t),zPt(t,SGt(t))}function EP(){EP=I,Ane=new mv(null)}function TP(){(TP=I)(),Ine=new U}function SP(){this.Bb|=256,this.Bb|=512}function DP(t){this.i=t,this.f=this.i.j}function IP(t,e,n){wV.call(this,t,e,n)}function BP(t,e,n){IP.call(this,t,e,n)}function MP(t,e,n){IP.call(this,t,e,n)}function PP(t,e,n){BP.call(this,t,e,n)}function LP(t,e,n){wV.call(this,t,e,n)}function OP(t,e,n){wV.call(this,t,e,n)}function NP(t,e,n){CV.call(this,t,e,n)}function RP(t,e,n){CV.call(this,t,e,n)}function FP(t,e,n){NP.call(this,t,e,n)}function jP(t,e,n){LP.call(this,t,e,n)}function $P(t,e){this.a=t,AA.call(this,e)}function zP(t,e){this.a=t,oy.call(this,e)}function VP(t,e){this.a=t,oy.call(this,e)}function HP(t,e){this.a=t,oy.call(this,e)}function qP(t){this.a=t,sd.call(this,t.d)}function UP(t){this.c=t,this.a=this.c.a}function GP(t,e){this.a=e,oy.call(this,t)}function WP(t,e){this.a=e,f5.call(this,t)}function KP(t,e){this.a=t,f5.call(this,e)}function YP(t,e){return dU(hU(t.c)).Xb(e)}function XP(t,e){return eft(t,new Ey,e).a}function ZP(t,e){return wW(e),new QP(t,e)}function QP(t,e){this.a=e,SA.call(this,t)}function JP(t){this.b=t,this.a=this.b.a.e}function tL(t){t.b.Qb(),--t.d.f.d,Iq(t.d)}function eL(t){Qh.call(this,jz(wW(t),35))}function nL(t){Qh.call(this,jz(wW(t),35))}function iL(){gA.call(this,"INSTANCE",0)}function rL(t){if(!t)throw $b(new dw)}function oL(t){if(!t)throw $b(new fw)}function aL(t){if(!t)throw $b(new ww)}function sL(){sL=I,Xx(),nPe=new Rh}function cL(){cL=I,mee=!1,bee=!0}function lL(t){Df.call(this,(kK(t),t))}function uL(t){Df.call(this,(kK(t),t))}function hL(t){$f.call(this,t),this.a=t}function dL(t){zf.call(this,t),this.a=t}function fL(t){Dy.call(this,t),this.a=t}function gL(){WM(this),vX(this),this._d()}function pL(t,e){this.a=e,SA.call(this,t)}function mL(t,e){return new RTt(t.a,t.b,e)}function bL(t,e){return t.lastIndexOf(e)}function wL(t,e,n){return t.indexOf(e,n)}function kL(t){return null==t?qKt:$ft(t)}function vL(t){return null==t?null:t.name}function yL(t){return null!=t.a?t.a:null}function _L(t){return yC(t.a)?o1(t):null}function CL(t,e){return null!=IQ(t.a,e)}function AL(t,e){return!!e&&t.b[e.g]==e}function xL(t){return t.$H||(t.$H=++iie)}function EL(t){return t.l+t.m*SXt+t.h*DXt}function TL(t,e){return Gz(e.a,t.a),t.a}function SL(t,e){return Gz(e.b,t.a),t.a}function DL(t,e){return Gz(e.a,t.a),t.a}function IL(t){return xO(null!=t.a),t.a}function BL(t){tg.call(this,new z7(t))}function ML(t,e){xmt.call(this,t,e,null)}function PL(t){this.a=t,jf.call(this,t)}function LL(){LL=I,Bre=new eR(gQt,0)}function OL(t,e){return++t.b,Gz(t.a,e)}function NL(t,e){return++t.b,w9(t.a,e)}function RL(t,e){return Edt(t.n.a,e.n.a)}function FL(t,e){return Edt(t.c.d,e.c.d)}function jL(t,e){return Edt(t.c.c,e.c.c)}function $L(t,e){return jz(c6(t.b,e),15)}function zL(t,e){return t.n.b=(kK(e),e)}function VL(t,e){return t.n.b=(kK(e),e)}function HL(t){return wM(t.a)||wM(t.b)}function qL(t,e,n){return p3(t,e,n,t.b)}function UL(t,e,n){return p3(t,e,n,t.c)}function GL(t,e,n){jz(L9(t,e),21).Fc(n)}function WL(t,e,n){Ddt(t.a,n),Swt(t.a,e)}function KL(t,e){Kx(),this.a=t,this.b=e}function YL(t,e){Yx(),this.b=t,this.c=e}function XL(t,e){Fq(),this.f=e,this.d=t}function ZL(t,e){d6(e,t),this.d=t,this.c=e}function QL(t){var e;e=t.a,t.a=t.b,t.b=e}function JL(t){return Vj(),!!t&&!t.dc()}function tO(t){return new c5(3,t)}function eO(t,e){return new hF(t,t.gc(),e)}function nO(t){return nv(),Ett((LJ(),Gte),t)}function iO(t){this.d=t,DP.call(this,t)}function rO(t){this.c=t,DP.call(this,t)}function oO(t){this.c=t,iO.call(this,t)}function aO(){Cx(),this.b=new wp(this)}function sO(t){return hit(t,IYt),new X6(t)}function cO(t){return xZ(),parseInt(t)||-1}function lO(t,e,n){return t.substr(e,n-e)}function uO(t,e,n){return wL(t,XAt(e),n)}function hO(t){return WG(t.c,t.c.length)}function dO(t){return null!=t.f?t.f:""+t.g}function fO(t){return null!=t.f?t.f:""+t.g}function gO(t){return xO(0!=t.b),t.a.a.c}function pO(t){return xO(0!=t.b),t.c.b.c}function mO(t){iP(t,150)&&jz(t,150).Gh()}function bO(t){return t.b=jz(bX(t.a),42)}function wO(t){cx(),this.b=t,this.a=!0}function kO(t){lx(),this.b=t,this.a=!0}function vO(t){t.d=new EO(t),t.e=new Pb}function yO(t){if(!t)throw $b(new mw)}function _O(t){if(!t)throw $b(new dw)}function CO(t){if(!t)throw $b(new fw)}function AO(t){if(!t)throw $b(new uw)}function xO(t){if(!t)throw $b(new ww)}function EO(t){Qz.call(this,t,null,null)}function TO(){gA.call(this,"POLYOMINO",0)}function SO(t,e,n,i){sU.call(this,t,e,n,i)}function DO(t,e){return Fxt(),ZDt(t,e.e,e)}function IO(t,e,n){return Dx(),n.qg(t,e)}function BO(t,e){return!!t.q&&cG(t.q,e)}function MO(t,e){return t>0?e*e/t:e*e*100}function PO(t,e){return t>0?e/(t*t):100*e}function LO(t,e,n){return Gz(e,sgt(t,n))}function OO(t,e,n){P8(),t.Xe(e)&&n.td(t)}function NO(t,e,n){t.Zc(e).Rb(n)}function RO(t,e,n){return t.a+=e,t.b+=n,t}function FO(t,e,n){return t.a*=e,t.b*=n,t}function jO(t,e,n){return t.a-=e,t.b-=n,t}function $O(t,e){return t.a=e.a,t.b=e.b,t}function zO(t){return t.a=-t.a,t.b=-t.b,t}function VO(t){this.c=t,this.a=1,this.b=1}function HO(t){this.c=t,Ent(t,0),Tnt(t,0)}function qO(t){YA.call(this),Jnt(this,t)}function UO(t){NWt(),jb(this),this.mf(t)}function GO(t,e){Kx(),KL.call(this,t,e)}function WO(t,e){Yx(),YL.call(this,t,e)}function KO(t,e){Yx(),YL.call(this,t,e)}function YO(t,e){Yx(),WO.call(this,t,e)}function XO(t,e,n){w8.call(this,t,e,n,2)}function ZO(t,e){lM(),iq.call(this,t,e)}function QO(t,e){lM(),ZO.call(this,t,e)}function JO(t,e){lM(),ZO.call(this,t,e)}function tN(t,e){lM(),JO.call(this,t,e)}function eN(t,e){lM(),iq.call(this,t,e)}function nN(t,e){lM(),eN.call(this,t,e)}function iN(t,e){lM(),iq.call(this,t,e)}function rN(t,e){return t.c.Fc(jz(e,133))}function oN(t,e,n){return PVt(F9(t,e),n)}function aN(t,e,n){return e.Qk(t.e,t.c,n)}function sN(t,e,n){return e.Rk(t.e,t.c,n)}function cN(t,e){return tht(t.e,jz(e,49))}function lN(t,e,n){cdt($9(t.a),e,e1(n))}function uN(t,e,n){cdt(r5(t.a),e,t1(n))}function hN(t,e){e.$modCount=t.$modCount}function dN(){dN=I,Wye=new ob("root")}function fN(){fN=I,gBe=new _k,new Ck}function gN(){this.a=new pQ,this.b=new pQ}function pN(){yit.call(this),this.Bb|=$Xt}function mN(){gA.call(this,"GROW_TREE",0)}function bN(t){return null==t?null:fGt(t)}function wN(t){return null==t?null:MEt(t)}function kN(t){return null==t?null:$ft(t)}function vN(t){return null==t?null:$ft(t)}function yN(t){null==t.o&&pMt(t)}function _N(t){return XV(null==t||HD(t)),t}function CN(t){return XV(null==t||qD(t)),t}function AN(t){return XV(null==t||UD(t)),t}function xN(t){this.q=new i.Date(v2(t))}function EN(t,e){this.c=t,pA.call(this,t,e)}function TN(t,e){this.a=t,EN.call(this,t,e)}function SN(t,e){this.d=t,Cf(this),this.b=e}function DN(t,e){j7.call(this,t),this.a=e}function IN(t,e){j7.call(this,t),this.a=e}function BN(t){Vgt.call(this,0,0),this.f=t}function MN(t,e,n){G6.call(this,t,e,n,null)}function PN(t,e,n){G6.call(this,t,e,n,null)}function LN(t,e,n){return t.ue(e,n)<=0?n:e}function ON(t,e,n){return t.ue(e,n)<=0?e:n}function NN(t,e){return jz(utt(t.b,e),149)}function RN(t,e){return jz(utt(t.c,e),229)}function FN(t){return jz(PH(t.a,t.b),287)}function jN(t){return new PS(t.c,t.d+t.a)}function $N(t){return jJ(),pB(jz(t,197))}function zN(){zN=I,Ire=Jdt((wpt(),RDe))}function VN(t,e){e.a?jOt(t,e):CL(t.a,e.b)}function HN(t,e){Kne||Gz(t.a,e)}function qN(t,e){return bx(),fat(e.d.i,t)}function UN(t,e){return Srt(),new rFt(e,t)}function GN(t,e){return SZ(e,aQt),t.f=e,t}function WN(t,e,n){return n=Cjt(t,e,3,n)}function KN(t,e,n){return n=Cjt(t,e,6,n)}function YN(t,e,n){return n=Cjt(t,e,9,n)}function XN(t,e,n){++t.j,t.Ki(),B7(t,e,n)}function ZN(t,e,n){++t.j,t.Hi(e,t.oi(e,n))}function QN(t,e,n){t.Zc(e).Rb(n)}function JN(t,e,n){return Qzt(t.c,t.b,e,n)}function tR(t,e){return(e&OKt)%t.d.length}function eR(t,e){ob.call(this,t),this.a=e}function nR(t,e){kb.call(this,t),this.a=e}function iR(t,e){kb.call(this,t),this.a=e}function rR(t,e){this.c=t,pet.call(this,e)}function oR(t,e){this.a=t,wb.call(this,e)}function aR(t,e){this.a=t,wb.call(this,e)}function sR(t){this.a=(hit(t,IYt),new X6(t))}function cR(t){this.a=(hit(t,IYt),new X6(t))}function lR(t){return!t.a&&(t.a=new g),t.a}function uR(t){return t>8?0:t+1}function hR(t,e){return cL(),t==e?0:t?1:-1}function dR(t,e,n){return bq(t,jz(e,22),n)}function fR(t,e,n){return t.apply(e,n)}function gR(t,e,n){return t.a+=$pt(e,0,n),t}function pR(t,e){var n;return n=t.e,t.e=e,n}function mR(t,e){t[nZt].call(t,e)}function bR(t,e){t[nZt].call(t,e)}function wR(t,e){t.a.Vc(t.b,e),++t.b,t.c=-1}function kR(t){IG(t.e),t.d.b=t.d,t.d.a=t.d}function vR(t){t.b?vR(t.b):t.f.c.zc(t.e,t.d)}function yR(t,e,n){fx(),Ed(t,e.Ce(t.a,n))}function _R(t,e){return K_(Apt(t.a,e,!0))}function CR(t,e){return K_(xpt(t.a,e,!0))}function AR(t,e){return zy(new Array(e),t)}function xR(t){return String.fromCharCode(t)}function ER(t){return null==t?null:t.message}function TR(){this.a=new Mb,this.b=new Mb}function SR(){this.a=new de,this.b=new _w}function DR(){this.b=new V_,this.c=new Mb}function IR(){this.d=new V_,this.e=new V_}function BR(){this.n=new V_,this.o=new V_}function MR(){this.n=new hk,this.i=new hB}function PR(){this.a=new Qu,this.b=new so}function LR(){this.a=new Mb,this.d=new Mb}function OR(){this.b=new Ow,this.a=new Ow}function NR(){this.b=new Pb,this.a=new Pb}function RR(){this.b=new DC,this.a=new ma}function FR(){MR.call(this),this.a=new V_}function jR(t){Dat.call(this,t,(Z8(),Mne))}function $R(t,e,n,i){oq.call(this,t,e,n,i)}function zR(t,e,n){null!=n&&Mit(e,Ikt(t,n))}function VR(t,e,n){null!=n&&Pit(e,Ikt(t,n))}function HR(t,e,n){return n=Cjt(t,e,11,n)}function qR(t,e){return t.a+=e.a,t.b+=e.b,t}function UR(t,e){return t.a-=e.a,t.b-=e.b,t}function GR(t,e){return t.n.a=(kK(e),e+10)}function WR(t,e){return t.n.a=(kK(e),e+10)}function KR(t,e){return e==t||x_t(TPt(e),t)}function YR(t,e){return null==WK(t.a,e,"")}function XR(t,e){return bx(),!fat(e.d.i,t)}function ZR(t,e){fB(t.f)?rMt(t,e):SAt(t,e)}function QR(t,e){return e.Hh(t.a)}function JR(t,e){Dv.call(this,e8t+t+s7t+e)}function tF(t,e,n,i){tG.call(this,t,e,n,i)}function eF(t,e,n,i){tG.call(this,t,e,n,i)}function nF(t,e,n,i){eF.call(this,t,e,n,i)}function iF(t,e,n,i){eG.call(this,t,e,n,i)}function rF(t,e,n,i){eG.call(this,t,e,n,i)}function oF(t,e,n,i){eG.call(this,t,e,n,i)}function aF(t,e,n,i){rF.call(this,t,e,n,i)}function sF(t,e,n,i){rF.call(this,t,e,n,i)}function cF(t,e,n,i){oF.call(this,t,e,n,i)}function lF(t,e,n,i){sF.call(this,t,e,n,i)}function uF(t,e,n,i){ZU.call(this,t,e,n,i)}function hF(t,e,n){this.a=t,ZL.call(this,e,n)}function dF(t,e,n){this.c=e,this.b=n,this.a=t}function fF(t,e,n){return t.d=jz(e.Kb(n),164)}function gF(t,e){return t.Aj().Nh().Kh(t,e)}function pF(t,e){return t.Aj().Nh().Ih(t,e)}function mF(t,e){return kK(t),VD(t)===VD(e)}function bF(t,e){return kK(t),VD(t)===VD(e)}function wF(t,e){return K_(Apt(t.a,e,!1))}function kF(t,e){return K_(xpt(t.a,e,!1))}function vF(t,e){return t.b.sd(new IE(t,e))}function yF(t,e){return t.b.sd(new BE(t,e))}function _F(t,e){return t.b.sd(new ME(t,e))}function CF(t,e,n){return t.lastIndexOf(e,n)}function AF(t,e,n){return Edt(t[e.b],t[n.b])}function xF(t,e){return lct(e,(zWt(),Ope),t)}function EF(t,e){return yM(e.a.d.p,t.a.d.p)}function TF(t,e){return yM(t.a.d.p,e.a.d.p)}function SF(t,e){return Edt(t.c-t.s,e.c-e.s)}function DF(t){return t.c?y9(t.c.a,t,0):-1}function IF(t){return t<100?null:new F_(t)}function BF(t){return t==qSe||t==GSe||t==USe}function MF(t,e){return iP(e,15)&&YNt(t.c,e)}function PF(t,e){Kne||e&&(t.d=e)}function LF(t,e){return!!hlt(t,e)}function OF(t,e){this.c=t,VG.call(this,t,e)}function NF(t){this.c=t,mI.call(this,dYt,0)}function RF(t,e){Xz.call(this,t,t.length,e)}function FF(t,e,n){return jz(t.c,69).lk(e,n)}function jF(t,e,n){return jz(t.c,69).mk(e,n)}function $F(t,e,n){return aN(t,jz(e,332),n)}function zF(t,e,n){return sN(t,jz(e,332),n)}function VF(t,e,n){return SCt(t,jz(e,332),n)}function HF(t,e,n){return YAt(t,jz(e,332),n)}function qF(t,e){return null==e?null:hht(t.b,e)}function UF(t){return qD(t)?(kK(t),t):t.ke()}function GF(t){return!isNaN(t)&&!isFinite(t)}function WF(t){sj(),this.a=(AX(),new Dy(t))}function KF(t){cV(),this.d=t,this.a=new Bb}function YF(t,e,n){this.a=t,this.b=e,this.c=n}function XF(t,e,n){this.a=t,this.b=e,this.c=n}function ZF(t,e,n){this.d=t,this.b=n,this.a=e}function QF(t){xM(this),wX(this),jrt(this,t)}function JF(t){PB(this),Jz(this.c,0,t.Pc())}function tj(t){lK(t.a),H7(t.c,t.b),t.b=null}function ej(t){this.a=t,IA(),uat(Date.now())}function nj(){nj=I,eie=new r,nie=new r}function ij(){ij=I,_ne=new P,Cne=new L}function rj(){rj=I,hBe=P7(Ite,zKt,1,0,5,1)}function oj(){oj=I,_Me=P7(Ite,zKt,1,0,5,1)}function aj(){aj=I,CMe=P7(Ite,zKt,1,0,5,1)}function sj(){sj=I,new nw((AX(),AX(),cne))}function cj(t){return Z8(),Ett((Q8(),Rne),t)}function lj(t){return Vlt(),Ett((t7(),Zne),t)}function uj(t){return lbt(),Ett((T5(),pie),t)}function hj(t){return Ott(),Ett((S5(),kie),t)}function dj(t){return tRt(),Ett((Lat(),Fie),t)}function fj(t){return Oet(),Ett((Z6(),Gie),t)}function gj(t){return X8(),Ett((Q6(),Jie),t)}function pj(t){return V9(),Ett((J6(),ore),t)}function mj(t){return gKt(),Ett((CI(),Dre),t)}function bj(t){return Oat(),Ett((t9(),Rre),t)}function wj(t){return zbt(),Ett((e9(),Hre),t)}function kj(t){return Vbt(),Ett((n9(),eoe),t)}function vj(t){return dx(),Ett((K2(),roe),t)}function yj(t){return Ntt(),Ett((D5(),Roe),t)}function _j(t){return z9(),Ett((e7(),Bae),t)}function Cj(t){return kxt(),Ett((Utt(),zae),t)}function Aj(t){return Ist(),Ett((J8(),nse),t)}function xj(t){return $ht(),Ett((n7(),gse),t)}function Ej(t,e){if(!t)throw $b(new Rv(e))}function Tj(t){return aEt(),Ett((lnt(),Dse),t)}function Sj(t){oq.call(this,t.d,t.c,t.a,t.b)}function Dj(t){oq.call(this,t.d,t.c,t.a,t.b)}function Ij(t,e,n){this.b=t,this.c=e,this.a=n}function Bj(t,e,n){this.b=t,this.a=e,this.c=n}function Mj(t,e,n){this.a=t,this.b=e,this.c=n}function Pj(t,e,n){this.a=t,this.b=e,this.c=n}function Lj(t,e,n){this.a=t,this.b=e,this.c=n}function Oj(t,e,n){this.a=t,this.b=e,this.c=n}function Nj(t,e,n){this.b=t,this.a=e,this.c=n}function Rj(t,e,n){this.e=e,this.b=t,this.d=n}function Fj(t,e,n){return fx(),t.a.Od(e,n),e}function jj(t){var e;return(e=new yt).e=t,e}function $j(t){var e;return(e=new Zw).b=t,e}function zj(){zj=I,qse=new Ln,Use=new On}function Vj(){Vj=I,fle=new wr,gle=new kr}function Hj(t){return Sst(),Ett((r9(),ale),t)}function qj(t){return Dst(),Ett((a9(),yle),t)}function Uj(t){return vNt(),Ett((Hot(),Wle),t)}function Gj(t){return BTt(),Ett((dnt(),nue),t)}function Wj(t){return W7(),Ett((O5(),aue),t)}function Kj(t){return Dit(),Ett((i7(),hue),t)}function Yj(t){return MCt(),Ett(($tt(),Sle),t)}function Xj(t){return Trt(),Ett((a7(),Rle),t)}function Zj(t){return ait(),Ett((r7(),mue),t)}function Qj(t){return Kwt(),Ett((Ftt(),Cue),t)}function Jj(t){return Rtt(),Ett((B5(),Tue),t)}function t$(t){return Zst(),Ett((o7(),Mue),t)}function e$(t){return pEt(),Ett((mnt(),$ue),t)}function n$(t){return g9(),Ett((M5(),que),t)}function i$(t){return $_t(),Ett((gnt(),Que),t)}function r$(t){return Zxt(),Ett((fnt(),ahe),t)}function o$(t){return dNt(),Ett((Kst(),whe),t)}function a$(t){return Rat(),Ett((c7(),Che),t)}function s$(t){return H9(),Ett((s7(),She),t)}function c$(t){return H2(),Ett((N5(),Mhe),t)}function l$(t){return Cft(),Ett((ztt(),Hde),t)}function u$(t){return CAt(),Ett((pnt(),nwe),t)}function h$(t){return Aut(),Ett((l7(),swe),t)}function d$(t){return dwt(),Ett((s9(),fwe),t)}function f$(t){return oit(),Ett((d7(),qwe),t)}function g$(t){return cLt(),Ett((Vot(),Iwe),t)}function p$(t){return wct(),Ett((h7(),Owe),t)}function m$(t){return q9(),Ett((L5(),jwe),t)}function b$(t){return zot(),Ett((u7(),Ywe),t)}function w$(t){return Pwt(),Ett((jtt(),vwe),t)}function k$(t){return D6(),Ett((P5(),Jwe),t)}function v$(t){return Ult(),Ett((g7(),rke),t)}function y$(t){return got(),Ett((p7(),lke),t)}function _$(t){return Bst(),Ett((f7(),gke),t)}function C$(t){return sit(),Ett((m7(),Mke),t)}function A$(t){return K5(),Ett((F5(),Vke),t)}function x$(t){return gQ(),Ett((j5(),eve),t)}function E$(t){return aJ(),Ett(($5(),ove),t)}function T$(t){return S6(),Ett((R5(),xve),t)}function S$(t){return fQ(),Ett((z5(),Lve),t)}function D$(t){return qvt(),Ett((i9(),$ve),t)}function I$(t){return OTt(),Ett((bnt(),Xve),t)}function B$(t){return sJ(),Ett((q5(),Fye),t)}function M$(t){return Ert(),Ett((H5(),Zye),t)}function P$(t){return j0(),Ett((V5(),Vye),t)}function L$(t){return Tft(),Ett((b7(),n_e),t)}function O$(t){return L8(),Ett((U5(),a_e),t)}function N$(t){return zlt(),Ett((w7(),h_e),t)}function R$(t){return Dkt(),Ett((o9(),H_e),t)}function F$(t){return $ot(),Ett((v7(),K_e),t)}function j$(t){return xft(),Ett((k7(),tCe),t)}function $$(t){return XPt(),Ett((qtt(),jCe),t)}function z$(t){return Eft(),Ett((y7(),qCe),t)}function V$(t){return Ex(),Ett((G2(),WCe),t)}function H$(t){return Tx(),Ett((U2(),XCe),t)}function q$(t){return I6(),Ett((W5(),tAe),t)}function U$(t){return BEt(),Ett((Vtt(),sAe),t)}function G$(t){return Sx(),Ett((W2(),qAe),t)}function W$(t){return Mst(),Ett((G5(),KAe),t)}function K$(t){return ibt(),Ett((Htt(),hxe),t)}function Y$(t){return ETt(),Ett((qot(),yxe),t)}function X$(t){return fwt(),Ett((hnt(),Pxe),t)}function Z$(t){return fCt(),Ett((unt(),Jxe),t)}function Q$(t){return hKt(),Ett((AI(),Zce),t)}function J$(t){return xrt(),Ett((I5(),Hse),t)}function tz(t){return jht(),Ett((Gtt(),VTe),t)}function ez(t){return Net(),Ett((C7(),WTe),t)}function nz(t){return Aft(),Ett((u9(),JTe),t)}function iz(t){return JAt(),Ett((knt(),sSe),t)}function rz(t){return aht(),Ett((_7(),kSe),t)}function oz(t){return Gvt(),Ett((l9(),xSe),t)}function az(t){return JBt(),Ett((Pat(),NSe),t)}function sz(t){return rbt(),Ett((Wtt(),HSe),t)}function cz(t){return YCt(),Ett((zet(),ZSe),t)}function lz(t){return hDt(),Ett((wnt(),oDe),t)}function uz(t){return wpt(),Ett((d9(),jDe),t)}function hz(t){return JFt(),Ett((Yst(),XDe),t)}function dz(t){return vGt(),Ett((Ktt(),SDe),t)}function fz(t){return jgt(),Ett((h9(),nIe),t)}function gz(t){return $lt(),Ett((c9(),lIe),t)}function pz(t){return lBt(),Ett((Uot(),nBe),t)}function mz(t,e){return kK(t),t+(kK(e),e)}function bz(t,e){return IA(),l8(KX(t.a),e)}function wz(t,e){return IA(),l8(KX(t.a),e)}function kz(t,e){this.c=t,this.a=e,this.b=e-t}function vz(t,e,n){this.a=t,this.b=e,this.c=n}function yz(t,e,n){this.a=t,this.b=e,this.c=n}function _z(t,e,n){this.a=t,this.b=e,this.c=n}function Cz(t,e,n){this.a=t,this.b=e,this.c=n}function Az(t,e,n){this.a=t,this.b=e,this.c=n}function xz(t,e,n){this.e=t,this.a=e,this.c=n}function Ez(t,e,n){lM(),bQ.call(this,t,e,n)}function Tz(t,e,n){lM(),nK.call(this,t,e,n)}function Sz(t,e,n){lM(),nK.call(this,t,e,n)}function Dz(t,e,n){lM(),nK.call(this,t,e,n)}function Iz(t,e,n){lM(),Tz.call(this,t,e,n)}function Bz(t,e,n){lM(),Tz.call(this,t,e,n)}function Mz(t,e,n){lM(),Bz.call(this,t,e,n)}function Pz(t,e,n){lM(),Sz.call(this,t,e,n)}function Lz(t,e,n){lM(),Dz.call(this,t,e,n)}function Oz(t,e){return wW(t),wW(e),new cA(t,e)}function Nz(t,e){return wW(t),wW(e),new RV(t,e)}function Rz(t,e){return wW(t),wW(e),new FV(t,e)}function Fz(t,e){return wW(t),wW(e),new uA(t,e)}function jz(t,e){return XV(null==t||Ybt(t,e)),t}function $z(t){var e;return ltt(e=new Mb,t),e}function zz(t){var e;return ltt(e=new Ow,t),e}function Vz(t){var e;return Vrt(e=new Hw,t),e}function Hz(t){var e;return Vrt(e=new YA,t),e}function qz(t){return!t.e&&(t.e=new Mb),t.e}function Uz(t){return!t.c&&(t.c=new zc),t.c}function Gz(t,e){return t.c[t.c.length]=e,!0}function Wz(t,e){this.c=t,this.b=e,this.a=!1}function Kz(t){this.d=t,Cf(this),this.b=nU(t.d)}function Yz(){this.a=";,;",this.b="",this.c=""}function Xz(t,e,n){qU.call(this,e,n),this.a=t}function Zz(t,e,n){this.b=t,gI.call(this,e,n)}function Qz(t,e,n){this.c=t,xE.call(this,e,n)}function Jz(t,e,n){FSt(n,0,t,e,n.length,!1)}function tV(t,e,n,i,r){t.b=e,t.c=n,t.d=i,t.a=r}function eV(t,e){e&&(t.b=e,t.a=(yK(e),e.a))}function nV(t,e,n,i,r){t.d=e,t.c=n,t.a=i,t.b=r}function iV(t){var e,n;e=t.b,n=t.c,t.b=n,t.c=e}function rV(t){var e,n;n=t.d,e=t.a,t.d=e,t.a=n}function oV(t){return aat(PG(XI(t)?Eat(t):t))}function aV(t,e){return yM(aH(t.d),aH(e.d))}function sV(t,e){return e==(vGt(),EDe)?t.c:t.d}function cV(){cV=I,vGt(),Oke=EDe,Nke=aDe}function lV(){this.b=Vv(CN(wbt((uRt(),rae))))}function uV(t){return fx(),P7(Ite,zKt,1,t,5,1)}function hV(t){return new PS(t.c+t.b,t.d+t.a)}function dV(t,e){return Ax(),yM(t.d.p,e.d.p)}function fV(t){return xO(0!=t.b),Iet(t,t.a.a)}function gV(t){return xO(0!=t.b),Iet(t,t.c.b)}function pV(t,e){if(!t)throw $b(new Iv(e))}function mV(t,e){if(!t)throw $b(new Rv(e))}function bV(t,e,n){fT.call(this,t,e),this.b=n}function wV(t,e,n){BD.call(this,t,e),this.c=n}function kV(t,e,n){det.call(this,e,n),this.d=t}function vV(t){aj(),vc.call(this),this.th(t)}function yV(t,e,n){this.a=t,MI.call(this,e,n)}function _V(t,e,n){this.a=t,MI.call(this,e,n)}function CV(t,e,n){BD.call(this,t,e),this.c=n}function AV(){O4(),aK.call(this,(Gx(),VBe))}function xV(t){return null!=t&&!Gft(t,IBe,BBe)}function EV(t,e){return(Wht(t)<<4|Wht(e))&YYt}function TV(t,e){return QK(),qwt(t,e),new VK(t,e)}function SV(t,e){var n;t.n&&(n=e,Gz(t.f,n))}function DV(t,e,n){net(t,e,new VW(n))}function IV(t,e){var n;return n=t.c,Rit(t,e),n}function BV(t,e){return t.g=e<0?-1:e,t}function MV(t,e){return qet(t),t.a*=e,t.b*=e,t}function PV(t,e,n,i,r){t.c=e,t.d=n,t.b=i,t.a=r}function LV(t,e){return n4(t,e,t.c.b,t.c),!0}function OV(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function NV(t){this.b=t,this.a=uU(this.b.a).Ed()}function RV(t,e){this.b=t,this.a=e,ju.call(this)}function FV(t,e){this.a=t,this.b=e,ju.call(this)}function jV(t,e){qU.call(this,e,1040),this.a=t}function $V(t){return 0==t||isNaN(t)?t:t<0?-1:1}function zV(t){return CX(),Ext(t)==XQ(Dxt(t))}function VV(t){return CX(),Dxt(t)==XQ(Ext(t))}function HV(t,e){return X_t(t,new fT(e.a,e.b))}function qV(t){return!h4(t)&&t.c.i.c==t.d.i.c}function UV(t){var e;return e=t.n,t.a.b+e.d+e.a}function GV(t){var e;return e=t.n,t.e.b+e.d+e.a}function WV(t){var e;return e=t.n,t.e.a+e.b+e.c}function KV(t){return fKt(),new aq(0,t)}function YV(t){return t.a?t.a:tX(t)}function XV(t){if(!t)throw $b(new Nv(null))}function ZV(){ZV=I,AX(),rPe=new Vf(E9t)}function QV(){QV=I,new cwt((Jk(),Fte),(tv(),Rte))}function JV(){JV=I,See=P7(Iee,cYt,19,256,0,1)}function tH(t,e,n,i){ogt.call(this,t,e,n,i,0,0)}function eH(t,e,n){return WK(t.b,jz(n.b,17),e)}function nH(t,e,n){return WK(t.b,jz(n.b,17),e)}function iH(t,e){return Gz(t,new PS(e.a,e.b))}function rH(t,e){return t.c<e.c?-1:t.c==e.c?0:1}function oH(t){return t.e.c.length+t.g.c.length}function aH(t){return t.e.c.length-t.g.c.length}function sH(t){return t.b.c.length-t.e.c.length}function cH(t){return jJ(),(vGt(),hDe).Hc(t.j)}function lH(t){aj(),vV.call(this,t),this.a=-1}function uH(t,e){PD.call(this,t,e),this.a=this}function hH(t,e){var n;return(n=bW(t,e)).i=2,n}function dH(t,e){return++t.j,t.Ti(e)}function fH(t,e,n){return t.a=-1,GL(t,e.g,n),t}function gH(t,e,n){RUt(t.a,t.b,t.c,jz(e,202),n)}function pH(t,e){$it(t,null==e?null:(kK(e),e))}function mH(t,e){Nit(t,null==e?null:(kK(e),e))}function bH(t,e){Nit(t,null==e?null:(kK(e),e))}function wH(t,e,n){return new dF(fK(t).Ie(),n,e)}function kH(t,e,n,i,r,o){return K_t(t,e,n,i,r,0,o)}function vH(){vH=I,yee=P7(Cee,cYt,217,256,0,1)}function yH(){yH=I,Bee=P7(Nee,cYt,162,256,0,1)}function _H(){_H=I,Ree=P7(Fee,cYt,184,256,0,1)}function CH(){CH=I,Aee=P7(xee,cYt,172,128,0,1)}function AH(){tV(this,!1,!1,!1,!1)}function xH(t){GW(),this.a=(AX(),new Vf(wW(t)))}function EH(t){for(wW(t);t.Ob();)t.Pb(),t.Qb()}function TH(t){t.a.cd(),jz(t.a.dd(),14).gc(),dy()}function SH(t){this.c=t,this.b=this.c.d.vc().Kc()}function DH(t){this.c=t,this.a=new KA(this.c.a)}function IH(t){this.a=new UA(t.gc()),jrt(this,t)}function BH(t){tg.call(this,new m5),jrt(this,t)}function MH(t,e){return t.a+=$pt(e,0,e.length),t}function PH(t,e){return u1(e,t.c.length),t.c[e]}function LH(t,e){return u1(e,t.a.length),t.a[e]}function OH(t,e){fx(),j7.call(this,t),this.a=e}function NH(t,e){return ymt(ift(ymt(t.a).a,e.a))}function RH(t,e){return kK(t),Pot(t,(kK(e),e))}function FH(t,e){return kK(e),Pot(e,(kK(t),t))}function jH(t,e){return IW(e,0,$H(e[0],ymt(1)))}function $H(t,e){return NH(jz(t,162),jz(e,162))}function zH(t){return t.c-jz(PH(t.a,t.b),287).b}function VH(t){return t.q?t.q:(AX(),AX(),lne)}function HH(t){return t.e.Hd().gc()*t.c.Hd().gc()}function qH(t,e,n){return yM(e.d[t.g],n.d[t.g])}function UH(t,e,n){return yM(t.d[e.p],t.d[n.p])}function GH(t,e,n){return yM(t.d[e.p],t.d[n.p])}function WH(t,e,n){return yM(t.d[e.p],t.d[n.p])}function KH(t,e,n){return yM(t.d[e.p],t.d[n.p])}function YH(t,e,n){return i.Math.min(n/t,1/e)}function XH(t,e){return t?0:i.Math.max(0,e-1)}function ZH(t,e){var n;for(n=0;n<e;++n)t[n]=-1}function QH(t){var e;return(e=aCt(t))?QH(e):t}function JH(t,e){return null==t.a&&fRt(t),t.a[e]}function tq(t){return t.c?t.c.f:t.e.b}function eq(t){return t.c?t.c.g:t.e.a}function nq(t){pet.call(this,t.gc()),pW(this,t)}function iq(t,e){lM(),vb.call(this,e),this.a=t}function rq(t,e,n){this.a=t,IP.call(this,e,n,2)}function oq(t,e,n,i){nV(this,t,e,n,i)}function aq(t,e){fKt(),Db.call(this,t),this.a=e}function sq(t){this.b=new YA,this.a=t,this.c=-1}function cq(){this.d=new PS(0,0),this.e=new Ow}function lq(t){ZL.call(this,0,0),this.a=t,this.b=0}function uq(t){this.a=t,this.c=new Pb,ict(this)}function hq(t){if(t.e.c!=t.b)throw $b(new mw)}function dq(t){if(t.c.e!=t.a)throw $b(new mw)}function fq(t){return XI(t)?0|t:_C(t)}function gq(t,e){return fKt(),new qG(t,e)}function pq(t,e){return null==t?null==e:bF(t,e)}function mq(t,e){return null==t?null==e:wmt(t,e)}function bq(t,e,n){return srt(t.a,e),yG(t,e.g,n)}function wq(t,e,n){nut(0,e,t.length),H8(t,0,e,n)}function kq(t,e,n){BJ(e,t.c.length),CE(t.c,e,n)}function vq(t,e,n){var i;for(i=0;i<e;++i)t[i]=n}function yq(t,e){var n;return Bct(n=Jdt(t),e),n}function _q(t,e){return!t&&(t=[]),t[t.length]=e,t}function Cq(t,e){return!(void 0===t.a.get(e))}function Aq(t,e){return Git(new tt,new og(t),e)}function xq(t){return null==t?Ane:new mv(kK(t))}function Eq(t,e){return iP(e,22)&&AL(t,jz(e,22))}function Tq(t,e){return iP(e,22)&&Bet(t,jz(e,22))}function Sq(t){return zMt(t,26)*iZt+zMt(t,27)*rZt}function Dq(t){return Array.isArray(t)&&t.im===D}function Iq(t){t.b?Iq(t.b):t.d.dc()&&t.f.c.Bc(t.e)}function Bq(t,e){qR(t.c,e),t.b.c+=e.a,t.b.d+=e.b}function Mq(t,e){Bq(t,UR(new PS(e.a,e.b),t.c))}function Pq(t,e){this.b=new YA,this.a=t,this.c=e}function Lq(){this.b=new De,this.c=new uZ(this)}function Oq(){this.d=new wt,this.e=new lZ(this)}function Nq(){NJ(),this.f=new YA,this.e=new YA}function Rq(){jJ(),this.k=new Pb,this.d=new Ow}function Fq(){Fq=I,hIe=new UB((cKt(),rTe),0)}function jq(){jq=I,Vte=new lq(P7(Ite,zKt,1,0,5,1))}function $q(t,e,n){KBt(n,t,1),Gz(e,new iT(n,t))}function zq(t,e,n){jyt(n,t,1),Gz(e,new hT(n,t))}function Vq(t,e,n){return _G(t,new PE(e.a,n.a))}function Hq(t,e,n){return-yM(t.f[e.p],t.f[n.p])}function qq(t,e,n){var i;t&&((i=t.i).c=e,i.b=n)}function Uq(t,e,n){var i;t&&((i=t.i).d=e,i.a=n)}function Gq(t,e,n){return t.a=-1,GL(t,e.g+1,n),t}function Wq(t,e,n){return n=Cjt(t,jz(e,49),7,n)}function Kq(t,e,n){return n=Cjt(t,jz(e,49),3,n)}function Yq(t,e,n){this.a=t,BP.call(this,e,n,22)}function Xq(t,e,n){this.a=t,BP.call(this,e,n,14)}function Zq(t,e,n,i){lM(),M0.call(this,t,e,n,i)}function Qq(t,e,n,i){lM(),M0.call(this,t,e,n,i)}function Jq(t,e){e.Bb&l6t&&!t.a.o&&(t.a.o=e)}function tU(t){return null!=t&&LG(t)&&!(t.im===D)}function eU(t){return!Array.isArray(t)&&t.im===D}function nU(t){return iP(t,15)?jz(t,15).Yc():t.Kc()}function iU(t){return t.Qc(P7(Ite,zKt,1,t.gc(),5,1))}function rU(t,e){return hmt(F9(t,e))?e.Qh():null}function oU(t){t?jkt(t,(IA(),$ee)):IA()}function aU(t){this.a=(jq(),Vte),this.d=jz(wW(t),47)}function sU(t,e,n,i){this.a=t,G6.call(this,t,e,n,i)}function cU(t){tE(),this.a=0,this.b=t-1,this.c=1}function lU(t){WM(this),this.g=t,vX(this),this._d()}function uU(t){return t.c?t.c:t.c=t.Id()}function hU(t){return t.d?t.d:t.d=t.Jd()}function dU(t){return t.c||(t.c=t.Dd())}function fU(t){return t.f||(t.f=t.Dc())}function gU(t){return t.i||(t.i=t.bc())}function pU(t){return fKt(),new mQ(10,t,0)}function mU(t){return XI(t)?""+t:HNt(t)}function bU(t){if(t.e.j!=t.d)throw $b(new mw)}function wU(t,e){return aat(hEt(XI(t)?Eat(t):t,e))}function kU(t,e){return aat(yBt(XI(t)?Eat(t):t,e))}function vU(t,e){return aat(ZEt(XI(t)?Eat(t):t,e))}function yU(t,e){return hR((kK(t),t),(kK(e),e))}function _U(t,e){return Edt((kK(t),t),(kK(e),e))}function CU(t,e){return wW(e),t.a.Ad(e)&&!t.b.Ad(e)}function AU(t,e){return CM(t.l&e.l,t.m&e.m,t.h&e.h)}function xU(t,e){return CM(t.l|e.l,t.m|e.m,t.h|e.h)}function EU(t,e){return CM(t.l^e.l,t.m^e.m,t.h^e.h)}function TU(t,e){return Bht(t,(kK(e),new ng(e)))}function SU(t,e){return Bht(t,(kK(e),new ig(e)))}function DU(t){return pot(),0!=jz(t,11).e.c.length}function IU(t){return pot(),0!=jz(t,11).g.c.length}function BU(t,e){return Srt(),Edt(e.a.o.a,t.a.o.a)}function MU(t,e,n){return CGt(t,jz(e,11),jz(n,11))}function PU(t){return t.e?L6(t.e):null}function LU(t){t.d||(t.d=t.b.Kc(),t.c=t.b.gc())}function OU(t,e,n){t.a.Mb(n)&&(t.b=!0,e.td(n))}function NU(t,e){if(t<0||t>=e)throw $b(new Aw)}function RU(t,e,n){return IW(e,0,$H(e[0],n[0])),e}function FU(t,e,n){e.Ye(n,Vv(CN(OW(t.b,n)))*t.a)}function jU(t,e,n){return yNt(),Oot(t,e)&&Oot(t,n)}function $U(t){return hDt(),!t.Hc(tDe)&&!t.Hc(nDe)}function zU(t){return new PS(t.c+t.b/2,t.d+t.a/2)}function VU(t,e){return e.kh()?tht(t.b,jz(e,49)):e}function HU(t,e){this.e=t,this.d=64&e?e|lYt:e}function qU(t,e){this.c=0,this.d=t,this.b=64|e|lYt}function UU(t){this.b=new X6(11),this.a=(xX(),t)}function GU(t){this.b=null,this.a=(xX(),t||dne)}function WU(t){this.a=iwt(t.a),this.b=new JF(t.b)}function KU(t){this.b=t,iO.call(this,t),CP(this)}function YU(t){this.b=t,oO.call(this,t),AP(this)}function XU(t,e,n){this.a=t,tF.call(this,e,n,5,6)}function ZU(t,e,n,i){this.b=t,IP.call(this,e,n,i)}function QU(t,e,n,i,r){k8.call(this,t,e,n,i,r,-1)}function JU(t,e,n,i,r){v8.call(this,t,e,n,i,r,-1)}function tG(t,e,n,i){IP.call(this,t,e,n),this.b=i}function eG(t,e,n,i){wV.call(this,t,e,n),this.b=i}function nG(t){MD.call(this,t,!1),this.a=!1}function iG(t,e){this.b=t,sd.call(this,t.b),this.a=e}function rG(t,e){GW(),vA.call(this,t,cht(new Xv(e)))}function oG(t,e){return fKt(),new iK(t,e,0)}function aG(t,e){return fKt(),new iK(6,t,e)}function sG(t,e){return bF(t.substr(0,e.length),e)}function cG(t,e){return UD(e)?tZ(t,e):!!DZ(t.f,e)}function lG(t,e){for(kK(e);t.Ob();)e.td(t.Pb())}function uG(t,e,n){DNt(),this.e=t,this.d=e,this.a=n}function hG(t,e,n,i){var r;(r=t.i).i=e,r.a=n,r.b=i}function dG(t){var e;for(e=t;e.f;)e=e.f;return e}function fG(t){var e;return xO(null!=(e=_ct(t))),e}function gG(t){var e;return xO(null!=(e=wdt(t))),e}function pG(t,e){var n;return d6(e,n=t.a.gc()),n-e}function mG(t,e){var n;for(n=0;n<e;++n)t[n]=!1}function bG(t,e,n,i){var r;for(r=e;r<n;++r)t[r]=i}function wG(t,e,n,i){nut(e,n,t.length),bG(t,e,n,i)}function kG(t,e,n){NU(n,t.a.c.length),i4(t.a,n,e)}function vG(t,e,n){this.c=t,this.a=e,AX(),this.b=n}function yG(t,e,n){var i;return i=t.b[e],t.b[e]=n,i}function _G(t,e){return null==t.a.zc(e,t)}function CG(t){if(!t)throw $b(new ww);return t.d}function AG(t,e){if(null==t)throw $b(new $v(e))}function xG(t,e){return!!e&&jrt(t,e)}function EG(t,e,n){return eut(t,e.g,n),srt(t.c,e),t}function TG(t){return AUt(t,(jht(),RTe)),t.d=!0,t}function SG(t){return!t.j&&wf(t,jFt(t.g,t.b)),t.j}function DG(t){CO(-1!=t.b),s6(t.c,t.a=t.b),t.b=-1}function IG(t){t.f=new tB(t),t.g=new eB(t),aZ(t)}function BG(t){return new OH(null,zG(t,t.length))}function MG(t){return new aU(new GP(t.a.length,t.a))}function PG(t){return CM(~t.l&xXt,~t.m&xXt,~t.h&EXt)}function LG(t){return typeof t===IKt||typeof t===LKt}function OG(t){return t==NXt?L9t:t==RXt?"-INF":""+t}function NG(t){return t==NXt?L9t:t==RXt?"-INF":""+t}function RG(t,e){return t>0?i.Math.log(t/e):-100}function FG(t,e){return Kut(t,e)<0?-1:Kut(t,e)>0?1:0}function jG(t,e,n){return xVt(t,jz(e,46),jz(n,167))}function $G(t,e){return jz(dU(uU(t.a)).Xb(e),42).cd()}function zG(t,e){return met(e,t.length),new jV(t,e)}function VG(t,e){this.d=t,DP.call(this,t),this.e=e}function HG(t){this.d=(kK(t),t),this.a=0,this.c=dYt}function qG(t,e){Db.call(this,1),this.a=t,this.b=e}function UG(t,e){return t.c?UG(t.c,e):Gz(t.b,e),t}function GG(t,e,n){var i;return i=ftt(t,e),n5(t,e,n),i}function WG(t,e){return b9(t.slice(0,e),t)}function KG(t,e,n){var i;for(i=0;i<e;++i)IW(t,i,n)}function YG(t,e,n,i,r){for(;e<n;)i[r++]=lY(t,e++)}function XG(t,e){return Edt(t.c.c+t.c.b,e.c.c+e.c.b)}function ZG(t,e){return null==Act(t.a,e,(cL(),mee))}function QG(t,e){n4(t.d,e,t.b.b,t.b),++t.a,t.c=null}function JG(t,e){XM(t,iP(e,153)?e:jz(e,1937).gl())}function tW(t,e){XA(IY(t.Oc(),new Zr),new Tp(e))}function eW(t,e,n,i,r){PCt(t,jz(c6(e.k,n),15),n,i,r)}function nW(t){t.s=NaN,t.c=NaN,QIt(t,t.e),QIt(t,t.j)}function iW(t){t.a=null,t.e=null,IG(t.b),t.d=0,++t.c}function rW(t){return i.Math.abs(t.d.e-t.e.e)-t.a}function oW(t,e,n){return jz(t.c._c(e,jz(n,133)),42)}function aW(){return nv(),Est(Vy(Wte,1),BYt,538,0,[qte])}function sW(t){return CX(),XQ(Ext(t))==XQ(Dxt(t))}function cW(t){IR.call(this),this.a=t,Gz(t.a,this)}function lW(t,e){this.d=xdt(t),this.c=e,this.a=.5*e}function uW(){m5.call(this),this.a=!0,this.b=!0}function hW(t){return(null==t.i&&V$t(t),t.i).length}function dW(t){return iP(t,99)&&!!(jz(t,18).Bb&l6t)}function fW(t,e){++t.j,cAt(t,t.i,e),qDt(t,jz(e,332))}function gW(t,e){return e=t.nk(null,e),BAt(t,null,e)}function pW(t,e){return t.hi()&&(e=QQ(t,e)),t.Wh(e)}function mW(t,e,n){var i;return Ynt(n,i=bW(t,e)),i}function bW(t,e){var n;return(n=new mct).j=t,n.d=e,n}function wW(t){if(null==t)throw $b(new gw);return t}function kW(t){return t.j||(t.j=new hd(t))}function vW(t){return t.f||(t.f=new qP(t))}function yW(t){return t.k||(t.k=new Kh(t))}function _W(t){return t.k||(t.k=new Kh(t))}function CW(t){return t.g||(t.g=new Wh(t))}function AW(t){return t.i||(t.i=new Zh(t))}function xW(t){return t.d||(t.d=new td(t))}function EW(t){return wW(t),iP(t,475)?jz(t,475):$ft(t)}function TW(t){return iP(t,607)?t:new hQ(t)}function SW(t,e){return d2(e,t.c.b.c.gc()),new sA(t,e)}function DW(t,e,n){return fKt(),new _0(t,e,n)}function IW(t,e,n){return AO(null==n||Yjt(t,n)),t[e]=n}function BW(t,e){var n;return d2(e,n=t.a.gc()),n-1-e}function MW(t,e){return t.a+=String.fromCharCode(e),t}function PW(t,e){return t.a+=String.fromCharCode(e),t}function LW(t,e){for(kK(e);t.c<t.d;)t.ze(e,t.c++)}function OW(t,e){return UD(e)?AQ(t,e):zD(DZ(t.f,e))}function NW(t,e){return CX(),t==Ext(e)?Dxt(e):Ext(e)}function RW(t,e){QW(t,new VW(null!=e.f?e.f:""+e.g))}function FW(t,e){QW(t,new VW(null!=e.f?e.f:""+e.g))}function jW(t){this.b=new Mb,this.a=new Mb,this.c=t}function $W(t){this.c=new V_,this.a=new Mb,this.b=t}function zW(t){IR.call(this),this.a=new V_,this.c=t}function VW(t){if(null==t)throw $b(new gw);this.a=t}function HW(t){Cw(),this.b=new Mb,this.a=t,bqt(this,t)}function qW(t){this.c=t,this.a=new YA,this.b=new YA}function UW(){UW=I,see=new _d(!1),cee=new _d(!0)}function GW(){GW=I,sj(),jte=new AZ((AX(),AX(),cne))}function WW(){WW=I,sj(),Kte=new mE((AX(),AX(),une))}function KW(){KW=I,QBe=HDt(),pKt(),tMe&&Nyt()}function YW(t,e){return Srt(),jz(aY(t,e.d),15).Fc(e)}function XW(t,e,n,i){return 0==n||(n-i)/n<t.e||e>=t.g}function ZW(t,e,n){return PRt(t,krt(t,e,n))}function QW(t,e){var n;ftt(t,n=t.a.length),n5(t,n,e)}function JW(t,e){console[t].call(console,e)}function tK(t,e){var n;++t.j,n=t.Vi(),t.Ii(t.oi(n,e))}function eK(t,e,n){jz(e.b,65),Det(e.a,new yz(t,n,e))}function nK(t,e,n){vb.call(this,e),this.a=t,this.b=n}function iK(t,e,n){Db.call(this,t),this.a=e,this.b=n}function rK(t,e,n){this.a=t,kb.call(this,e),this.b=n}function oK(t,e,n){this.a=t,$2.call(this,8,e,null,n)}function aK(t){this.a=(kK(F8t),F8t),this.b=t,new Mk}function sK(t){this.c=t,this.b=this.c.a,this.a=this.c.e}function cK(t){this.c=t,this.b=t.a.d.a,hN(t.a.e,this)}function lK(t){CO(-1!=t.c),t.d.$c(t.c),t.b=t.c,t.c=-1}function uK(t){return i.Math.sqrt(t.a*t.a+t.b*t.b)}function hK(t,e){return NU(e,t.a.c.length),PH(t.a,e)}function dK(t,e){return VD(t)===VD(e)||null!=t&&Pht(t,e)}function fK(t){return 0>=t?new WA:Wit(t-1)}function gK(t){return!!CLe&&tZ(CLe,t)}function pK(t){return t?t.dc():!t.Kc().Ob()}function mK(t){return!t.a&&t.c?t.c.b:t.a}function bK(t){return!t.a&&(t.a=new IP(IIe,t,4)),t.a}function wK(t){return!t.d&&(t.d=new IP(GBe,t,1)),t.d}function kK(t){if(null==t)throw $b(new gw);return t}function vK(t){t.c?t.c.He():(t.d=!0,YLt(t))}function yK(t){t.c?yK(t.c):(Ydt(t),t.d=!0)}function _K(t){_Y(t.a),t.b=P7(Ite,zKt,1,t.b.length,5,1)}function CK(t,e){return yM(e.j.c.length,t.j.c.length)}function AK(t,e){t.c<0||t.b.b<t.c?lI(t.b,e):t.a._e(e)}function xK(t,e){var n;(n=t.Yg(e))>=0?t.Bh(n):rDt(t,e)}function EK(t){return t.c.i.c==t.d.i.c}function TK(t){if(4!=t.p)throw $b(new fw);return t.e}function SK(t){if(3!=t.p)throw $b(new fw);return t.e}function DK(t){if(6!=t.p)throw $b(new fw);return t.f}function IK(t){if(6!=t.p)throw $b(new fw);return t.k}function BK(t){if(3!=t.p)throw $b(new fw);return t.j}function MK(t){if(4!=t.p)throw $b(new fw);return t.j}function PK(t){return!t.b&&(t.b=new _b(new Pk)),t.b}function LK(t){return-2==t.c&&gf(t,axt(t.g,t.b)),t.c}function OK(t,e){var n;return(n=bW("",t)).n=e,n.i=1,n}function NK(t,e){Bq(jz(e.b,65),t),Det(e.a,new Dg(t))}function RK(t,e){l8((!t.a&&(t.a=new aR(t,t)),t.a),e)}function FK(t,e){this.b=t,VG.call(this,t,e),CP(this)}function jK(t,e){this.b=t,OF.call(this,t,e),AP(this)}function $K(t,e,n,i){mA.call(this,t,e),this.d=n,this.a=i}function zK(t,e,n,i){mA.call(this,t,n),this.a=e,this.f=i}function VK(t,e){GM.call(this,Kit(wW(t),wW(e))),this.a=e}function HK(){gxt.call(this,x9t,(nC(),dPe)),WHt(this)}function qK(){gxt.call(this,K8t,(eC(),ZBe)),DVt(this)}function UK(){gA.call(this,"DELAUNAY_TRIANGULATION",0)}function GK(t){return String.fromCharCode.apply(null,t)}function WK(t,e,n){return UD(e)?bJ(t,e,n):ySt(t.f,e,n)}function KK(t){return AX(),t?t.ve():(xX(),xX(),gne)}function YK(t,e,n){return Pst(),n.pg(t,jz(e.cd(),146))}function XK(t,e){return QV(),new cwt(new nL(t),new eL(e))}function ZK(t){return hit(t,PYt),Jtt(ift(ift(5,t),t/10|0))}function QK(){QK=I,$te=new cv(Est(Vy(zte,1),vYt,42,0,[]))}function JK(t){return!t.d&&(t.d=new $f(t.c.Cc())),t.d}function tY(t){return!t.a&&(t.a=new By(t.c.vc())),t.a}function eY(t){return!t.b&&(t.b=new Dy(t.c.ec())),t.b}function nY(t,e){for(;e-- >0;)t=t<<1|(t<0?1:0);return t}function iY(t,e){return VD(t)===VD(e)||null!=t&&Pht(t,e)}function rY(t,e){return cL(),jz(e.b,19).a<t}function oY(t,e){return cL(),jz(e.a,19).a<t}function aY(t,e){return Eq(t.a,e)?t.b[jz(e,22).g]:null}function sY(t,e,n,i){t.a=lO(t.a,0,e)+""+i+QD(t.a,n)}function cY(t,e){t.u.Hc((hDt(),tDe))&&EDt(t,e),H6(t,e)}function lY(t,e){return h1(e,t.length),t.charCodeAt(e)}function uY(){fv.call(this,"There is no more element.")}function hY(t){this.d=t,this.a=this.d.b,this.b=this.d.c}function dY(t){t.b=!1,t.c=!1,t.d=!1,t.a=!1}function fY(t,e,n,i){return Not(t,e,n,!1),Qht(t,i),t}function gY(t){return t.j.c=P7(Ite,zKt,1,0,5,1),t.a=-1,t}function pY(t){return!t.c&&(t.c=new cF(OIe,t,5,8)),t.c}function mY(t){return!t.b&&(t.b=new cF(OIe,t,4,7)),t.b}function bY(t){return!t.n&&(t.n=new tG(VIe,t,1,7)),t.n}function wY(t){return!t.c&&(t.c=new tG(qIe,t,9,9)),t.c}function kY(t){return t.e==T9t&&mf(t,Cmt(t.g,t.b)),t.e}function vY(t){return t.f==T9t&&bf(t,myt(t.g,t.b)),t.f}function yY(t){var e;return!(e=t.b)&&(t.b=e=new Yh(t)),e}function _Y(t){var e;for(e=t.Kc();e.Ob();)e.Pb(),e.Qb()}function CY(t){if(qft(t.d),t.d.d!=t.c)throw $b(new mw)}function AY(t,e){this.b=t,this.c=e,this.a=new KA(this.b)}function xY(t,e,n){this.a=GYt,this.d=t,this.b=e,this.c=n}function EY(t,e){this.d=(kK(t),t),this.a=16449,this.c=e}function TY(t,e){Zdt(t,Vv(Nnt(e,"x")),Vv(Nnt(e,"y")))}function SY(t,e){Zdt(t,Vv(Nnt(e,"x")),Vv(Nnt(e,"y")))}function DY(t,e){return Ydt(t),new OH(t,new K8(e,t.a))}function IY(t,e){return Ydt(t),new OH(t,new C6(e,t.a))}function BY(t,e){return Ydt(t),new DN(t,new y6(e,t.a))}function MY(t,e){return Ydt(t),new IN(t,new _6(e,t.a))}function PY(t,e){return new pZ(jz(wW(t),62),jz(wW(e),62))}function LY(t,e){return vx(),Edt((kK(t),t),(kK(e),e))}function OY(){return dx(),Est(Vy(xoe,1),BYt,481,0,[noe])}function NY(){return Ex(),Est(Vy(YCe,1),BYt,482,0,[UCe])}function RY(){return Tx(),Est(Vy(JCe,1),BYt,551,0,[KCe])}function FY(){return Sx(),Est(Vy(WAe,1),BYt,530,0,[VAe])}function jY(t){this.a=new Mb,this.e=P7(SLe,cYt,48,t,0,2)}function $Y(t,e,n,i){this.a=t,this.e=e,this.d=n,this.c=i}function zY(t,e,n,i){this.a=t,this.c=e,this.b=n,this.d=i}function VY(t,e,n,i){this.c=t,this.b=e,this.a=n,this.d=i}function HY(t,e,n,i){this.c=t,this.b=e,this.d=n,this.a=i}function qY(t,e,n,i){this.c=t,this.d=e,this.b=n,this.a=i}function UY(t,e,n,i){this.a=t,this.d=e,this.c=n,this.b=i}function GY(t,e,n,i){gA.call(this,t,e),this.a=n,this.b=i}function WY(t,e,n,i){this.a=t,this.c=e,this.d=n,this.b=i}function KY(t,e,n){_Vt(t.a,n),Jat(n),IBt(t.b,n),iHt(e,n)}function YY(t,e,n){var i;return i=BGt(t),e.Kh(n,i)}function XY(t,e){var n,i;return(n=t/e)>(i=EQ(n))&&++i,i}function ZY(t){var e;return rnt(e=new Nb,t),e}function QY(t){var e;return Oxt(e=new Nb,t),e}function JY(t,e){return Rot(e,OW(t.f,e)),null}function tX(t){return Xit(t)||null}function eX(t){return!t.b&&(t.b=new tG(NIe,t,12,3)),t.b}function nX(t){return null!=t&&PA(kBe,t.toLowerCase())}function iX(t,e){return Edt(eq(t)*tq(t),eq(e)*tq(e))}function rX(t,e){return Edt(eq(t)*tq(t),eq(e)*tq(e))}function oX(t,e){return Edt(t.d.c+t.d.b/2,e.d.c+e.d.b/2)}function aX(t,e){return Edt(t.g.c+t.g.b/2,e.g.c+e.g.b/2)}function sX(t,e,n){n.a?Tnt(t,e.b-t.f/2):Ent(t,e.a-t.g/2)}function cX(t,e,n,i){this.a=t,this.b=e,this.c=n,this.d=i}function lX(t,e,n,i){this.a=t,this.b=e,this.c=n,this.d=i}function uX(t,e,n,i){this.e=t,this.a=e,this.c=n,this.d=i}function hX(t,e,n,i){this.a=t,this.c=e,this.d=n,this.b=i}function dX(t,e,n,i){lM(),t6.call(this,e,n,i),this.a=t}function fX(t,e,n,i){lM(),t6.call(this,e,n,i),this.a=t}function gX(t,e){this.a=t,SN.call(this,t,jz(t.d,15).Zc(e))}function pX(t){this.f=t,this.c=this.f.e,t.f>0&&a_t(this)}function mX(t,e,n,i){this.b=t,this.c=i,mI.call(this,e,n)}function bX(t){return xO(t.b<t.d.gc()),t.d.Xb(t.c=t.b++)}function wX(t){t.a.a=t.c,t.c.b=t.a,t.a.b=t.c.a=null,t.b=0}function kX(t,e){return t.b=e.b,t.c=e.c,t.d=e.d,t.a=e.a,t}function vX(t){return t.n&&(t.e!==jYt&&t._d(),t.j=null),t}function yX(t){return XV(null==t||LG(t)&&!(t.im===D)),t}function _X(t){this.b=new Mb,pst(this.b,this.b),this.a=t}function CX(){CX=I,Aoe=new Mb,Coe=new Pb,_oe=new Mb}function AX(){AX=I,cne=new E,lne=new S,une=new x}function xX(){xX=I,dne=new R,fne=new R,gne=new F}function EX(){EX=I,cie=new pt,uie=new Oq,lie=new mt}function TX(){256==rie&&(eie=nie,nie=new r,rie=0),++rie}function SX(t){return t.f||(t.f=new pA(t,t.c))}function DX(t){return YDt(t)&&zv(_N(QBt(t,(zWt(),fme))))}function IX(t,e){return ZDt(t,jz(wxt(e,(zWt(),Gme)),19),e)}function BX(t,e){return Cht(t.j,e.s,e.c)+Cht(e.e,t.s,t.c)}function MX(t,e){t.e&&!t.e.a&&(Fb(t.e,e),MX(t.e,e))}function PX(t,e){t.d&&!t.d.a&&(Fb(t.d,e),PX(t.d,e))}function LX(t,e){return-Edt(eq(t)*tq(t),eq(e)*tq(e))}function OX(t){return jz(t.cd(),146).tg()+":"+$ft(t.dd())}function NX(t){var e;Vj(),(e=jz(t.g,10)).n.a=t.d.c+e.d.b}function RX(t,e,n){return Cx(),Lft(jz(OW(t.e,e),522),n)}function FX(t,e){return tlt(t),tlt(e),xv(jz(t,22),jz(e,22))}function jX(t,e,n){t.i=0,t.e=0,e!=n&&Gct(t,e,n)}function $X(t,e,n){t.i=0,t.e=0,e!=n&&Wct(t,e,n)}function zX(t,e,n){net(t,e,new Cd(UF(n)))}function VX(t,e,n,i,r,o){v8.call(this,t,e,n,i,r,o?-2:-1)}function HX(t,e,n,i){BD.call(this,e,n),this.b=t,this.a=i}function qX(t,e){new YA,this.a=new kk,this.b=t,this.c=e}function UX(t,e){return jz(wxt(t,(lKt(),ide)),15).Fc(e),e}function GX(t,e){if(null==t)throw $b(new $v(e));return t}function WX(t){return!t.q&&(t.q=new tG(WBe,t,11,10)),t.q}function KX(t){return!t.s&&(t.s=new tG(RBe,t,21,17)),t.s}function YX(t){return!t.a&&(t.a=new tG(HIe,t,10,11)),t.a}function XX(t){return iP(t,14)?new IH(jz(t,14)):zz(t.Kc())}function ZX(t){return new zP(t,t.e.Hd().gc()*t.c.Hd().gc())}function QX(t){return new VP(t,t.e.Hd().gc()*t.c.Hd().gc())}function JX(t){return t&&t.hashCode?t.hashCode():xL(t)}function tZ(t,e){return null==e?!!DZ(t.f,null):Cq(t.g,e)}function eZ(t){return wW(t),ekt(new aU(ZP(t.a.Kc(),new u)))}function nZ(t){return AX(),iP(t,54)?new Iy(t):new hL(t)}function iZ(t,e,n){return!!t.f&&t.f.Ne(e,n)}function rZ(t,e){return t.a=lO(t.a,0,e)+""+QD(t.a,e+1),t}function oZ(t,e){var n;return(n=tP(t.a,e))&&(e.d=null),n}function aZ(t){var e,n;e=0|(n=t).$modCount,n.$modCount=e+1}function sZ(t){this.b=t,this.c=t,t.e=null,t.c=null,this.a=1}function cZ(t){this.b=t,this.a=new fC(jz(wW(new te),62))}function lZ(t){this.c=t,this.b=new fC(jz(wW(new bt),62))}function uZ(t){this.c=t,this.b=new fC(jz(wW(new Se),62))}function hZ(){this.a=new Kw,this.b=new ck,this.d=new Oe}function dZ(){this.a=new kk,this.b=(hit(3,IYt),new X6(3))}function fZ(){this.b=new Ow,this.d=new YA,this.e=new ak}function gZ(t){this.c=t.c,this.d=t.d,this.b=t.b,this.a=t.a}function pZ(t,e){Hk.call(this,new GU(t)),this.a=t,this.b=e}function mZ(){nEt(this,new Lh),this.wb=(KW(),QBe),eC()}function bZ(t){DAt(t,"No crossing minimization",1),zEt(t)}function wZ(t){Ly(),i.setTimeout((function(){throw t}),0)}function kZ(t){return t.u||(x4(t),t.u=new oR(t,t)),t.u}function vZ(t){return jz(kat(t,16),26)||t.zh()}function yZ(t,e){return iP(e,146)&&bF(t.b,jz(e,146).tg())}function _Z(t,e){return t.a?e.Wg().Kc():jz(e.Wg(),69).Zh()}function CZ(t){return t.k==(aEt(),Ese)&&BO(t,(lKt(),Hhe))}function AZ(t){this.a=(AX(),iP(t,54)?new Iy(t):new hL(t))}function xZ(){var t,e;xZ=I,e=!Opt(),t=new p,eee=e?new C:t}function EZ(t,e){var n;return n=Q_(t.gm),null==e?n:n+": "+e}function TZ(t,e){var n;return v5(n=t.b.Qc(e),t.b.gc()),n}function SZ(t,e){if(null==t)throw $b(new $v(e));return t}function DZ(t,e){return lut(t,e,pJ(t,null==e?0:t.b.se(e)))}function IZ(t,e,n){return n>=0&&bF(t.substr(n,e.length),e)}function BZ(t,e,n,i,r,o,a){return new h5(t.e,e,n,i,r,o,a)}function MZ(t,e,n,i,r,o){this.a=t,vit.call(this,e,n,i,r,o)}function PZ(t,e,n,i,r,o){this.a=t,vit.call(this,e,n,i,r,o)}function LZ(t,e){this.g=t,this.d=Est(Vy(Sse,1),o1t,10,0,[e])}function OZ(t,e){this.e=t,this.a=Ite,this.b=IRt(e),this.c=e}function NZ(t,e){MR.call(this),Let(this),this.a=t,this.c=e}function RZ(t,e,n,i){IW(t.c[e.g],n.g,i),IW(t.c[n.g],e.g,i)}function FZ(t,e,n,i){IW(t.c[e.g],e.g,n),IW(t.b[e.g],e.g,i)}function jZ(){return D6(),Est(Vy(ike,1),BYt,376,0,[Zwe,Xwe])}function $Z(){return g9(),Est(Vy(Zue,1),BYt,479,0,[Vue,zue])}function zZ(){return Rtt(),Est(Vy(Bue,1),BYt,419,0,[Aue,xue])}function VZ(){return W7(),Est(Vy(uue,1),BYt,422,0,[iue,rue])}function HZ(){return H2(),Est(Vy(Vde,1),BYt,420,0,[Dhe,Ihe])}function qZ(){return q9(),Est(Vy(Hwe,1),BYt,421,0,[Nwe,Rwe])}function UZ(){return K5(),Est(Vy(Wke,1),BYt,523,0,[$ke,jke])}function GZ(){return S6(),Est(Vy(Pve,1),BYt,520,0,[Cve,_ve])}function WZ(){return gQ(),Est(Vy(rve,1),BYt,516,0,[Jke,Qke])}function KZ(){return aJ(),Est(Vy(Ave,1),BYt,515,0,[nve,ive])}function YZ(){return fQ(),Est(Vy(jve,1),BYt,455,0,[Bve,Mve])}function XZ(){return j0(),Est(Vy(Xye,1),BYt,425,0,[$ye,jye])}function ZZ(){return sJ(),Est(Vy(zye,1),BYt,480,0,[Oye,Nye])}function QZ(){return Ert(),Est(Vy(e_e,1),BYt,495,0,[Kye,Yye])}function JZ(){return L8(),Est(Vy(u_e,1),BYt,426,0,[i_e,r_e])}function tQ(){return Mst(),Est(Vy(YAe,1),BYt,429,0,[GAe,UAe])}function eQ(){return I6(),Est(Vy(aAe,1),BYt,430,0,[QCe,ZCe])}function nQ(){return lbt(),Est(Vy(wie,1),BYt,428,0,[fie,die])}function iQ(){return Ott(),Est(Vy(Nie,1),BYt,427,0,[mie,bie])}function rQ(){return Ntt(),Est(Vy(Iae,1),BYt,424,0,[Loe,Ooe])}function oQ(){return xrt(),Est(Vy(Gse,1),BYt,511,0,[zse,$se])}function aQ(t,e,n,i){return n>=0?t.jh(e,n,i):t.Sg(null,n,i)}function sQ(t){return 0==t.b.b?t.a.$e():fV(t.b)}function cQ(t){if(5!=t.p)throw $b(new fw);return fq(t.f)}function lQ(t){if(5!=t.p)throw $b(new fw);return fq(t.k)}function uQ(t){return VD(t.a)===VD((fot(),EMe))&&NHt(t),t.a}function hQ(t){this.a=jz(wW(t),271),this.b=(AX(),new fL(t))}function dQ(t,e){Xd(this,new PS(t.a,t.b)),Zd(this,Hz(e))}function fQ(){fQ=I,Bve=new aS(rQt,0),Mve=new aS(oQt,1)}function gQ(){gQ=I,Jke=new iS(oQt,0),Qke=new iS(rQt,1)}function pQ(){rv.call(this,new UA(tet(12))),rL(!0),this.a=2}function mQ(t,e,n){fKt(),Db.call(this,t),this.b=e,this.a=n}function bQ(t,e,n){lM(),vb.call(this,e),this.a=t,this.b=n}function wQ(t){MR.call(this),Let(this),this.a=t,this.c=!0}function kQ(t){var e;e=t.c.d.b,t.b=e,t.a=t.c.d,e.a=t.c.d.b=t}function vQ(t){mit(t.a),OB(t.a),tgt(new xg(t.a))}function yQ(t,e){sRt(t,!0),Det(t.e.wf(),new Ij(t,!0,e))}function _Q(t,e){return i5(e),Xnt(t,P7(SLe,lXt,25,e,15,1),e)}function CQ(t,e){return CX(),t==XQ(Ext(e))||t==XQ(Dxt(e))}function AQ(t,e){return null==e?zD(DZ(t.f,null)):cE(t.g,e)}function xQ(t){return 0==t.b?null:(xO(0!=t.b),Iet(t,t.a.a))}function EQ(t){return 0|Math.max(Math.min(t,OKt),-2147483648)}function TQ(t,e){var n=Qte[t.charCodeAt(0)];return null==n?t:n}function SQ(t,e){return GX(t,"set1"),GX(e,"set2"),new yA(t,e)}function DQ(t,e){return qR(zO(Jet(t.f,e)),t.f.d)}function IQ(t,e){var n;return Xqt(t,e,n=new H),n.d}function BQ(t,e,n,i){var r;r=new FR,e.a[n.g]=r,bq(t.b,i,r)}function MQ(t,e,n){var i;(i=t.Yg(e))>=0?t.sh(i,n):CPt(t,e,n)}function PQ(t,e,n){cJ(),t&&WK(aBe,t,e),t&&WK(oBe,t,n)}function LQ(t,e,n){this.i=new Mb,this.b=t,this.g=e,this.a=n}function OQ(t,e,n){this.c=new Mb,this.e=t,this.f=e,this.b=n}function NQ(t,e,n){this.a=new Mb,this.e=t,this.f=e,this.c=n}function RQ(t,e){WM(this),this.f=e,this.g=t,vX(this),this._d()}function FQ(t,e){var n;n=t.q.getHours(),t.q.setDate(e),hzt(t,n)}function jQ(t,e){var n;for(wW(e),n=t.a;n;n=n.c)e.Od(n.g,n.i)}function $Q(t){var e;return Bct(e=new hC(tet(t.length)),t),e}function zQ(t){function e(){}return e.prototype=t||{},new e}function VQ(t,e){return!!fst(t,e)&&(eit(t),!0)}function HQ(t,e){if(null==e)throw $b(new gw);return amt(t,e)}function qQ(t){if(t.qe())return null;var e=t.n;return xKt[e]}function UQ(t){return t.Db>>16!=3?null:jz(t.Cb,33)}function GQ(t){return t.Db>>16!=9?null:jz(t.Cb,33)}function WQ(t){return t.Db>>16!=6?null:jz(t.Cb,79)}function KQ(t){return t.Db>>16!=7?null:jz(t.Cb,235)}function YQ(t){return t.Db>>16!=7?null:jz(t.Cb,160)}function XQ(t){return t.Db>>16!=11?null:jz(t.Cb,33)}function ZQ(t,e){var n;return(n=t.Yg(e))>=0?t.lh(n):VDt(t,e)}function QQ(t,e){var n;return sxt(n=new BH(e),t),new JF(n)}function JQ(t){var e;return e=t.d,e=t.si(t.f),l8(t,e),e.Ob()}function tJ(t,e){return t.b+=e.b,t.c+=e.c,t.d+=e.d,t.a+=e.a,t}function eJ(t,e){return i.Math.abs(t)<i.Math.abs(e)?t:e}function nJ(t){return!t.a&&(t.a=new tG(HIe,t,10,11)),t.a.i>0}function iJ(){this.a=new lB,this.e=new Ow,this.g=0,this.i=0}function rJ(t){this.a=t,this.b=P7(Rke,cYt,1944,t.e.length,0,2)}function oJ(t,e,n){var i;i=Pct(t,e,n),t.b=new wrt(i.c.length)}function aJ(){aJ=I,nve=new nS(mQt,0),ive=new nS("UP",1)}function sJ(){sJ=I,Oye=new hS(U3t,0),Nye=new hS("FAN",1)}function cJ(){cJ=I,aBe=new Pb,oBe=new Pb,FD(wne,new pc)}function lJ(t){if(0!=t.p)throw $b(new fw);return XD(t.f,0)}function uJ(t){if(0!=t.p)throw $b(new fw);return XD(t.k,0)}function hJ(t){return t.Db>>16!=3?null:jz(t.Cb,147)}function dJ(t){return t.Db>>16!=6?null:jz(t.Cb,235)}function fJ(t){return t.Db>>16!=17?null:jz(t.Cb,26)}function gJ(t,e){var n=t.a=t.a||[];return n[e]||(n[e]=t.le(e))}function pJ(t,e){var n;return null==(n=t.a.get(e))?new Array:n}function mJ(t,e){var n;n=t.q.getHours(),t.q.setMonth(e),hzt(t,n)}function bJ(t,e,n){return null==e?ySt(t.f,null,n):aft(t.g,e,n)}function wJ(t,e,n,i,r,o){return new M9(t.e,e,t.aj(),n,i,r,o)}function kJ(t,e,n){return t.a=lO(t.a,0,e)+""+n+QD(t.a,e),t}function vJ(t,e,n){return Gz(t.a,(QK(),qwt(e,n),new mA(e,n))),t}function yJ(t){return aL(t.c),t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function _J(t){return aL(t.e),t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function CJ(t,e){t.d&&w9(t.d.e,t),t.d=e,t.d&&Gz(t.d.e,t)}function AJ(t,e){t.c&&w9(t.c.g,t),t.c=e,t.c&&Gz(t.c.g,t)}function xJ(t,e){t.c&&w9(t.c.a,t),t.c=e,t.c&&Gz(t.c.a,t)}function EJ(t,e){t.i&&w9(t.i.j,t),t.i=e,t.i&&Gz(t.i.j,t)}function TJ(t,e,n){this.a=e,this.c=t,this.b=(wW(n),new JF(n))}function SJ(t,e,n){this.a=e,this.c=t,this.b=(wW(n),new JF(n))}function DJ(t,e){this.a=t,this.c=jM(this.a),this.b=new gZ(e)}function IJ(t){return Ydt(t),DY(t,new mg(new Ow))}function BJ(t,e){if(t<0||t>e)throw $b(new Dv(yZt+t+_Zt+e))}function MJ(t,e){return Tq(t.a,e)?yG(t,jz(e,22).g,null):null}function PJ(t){return xut(),cL(),0!=jz(t.a,81).d.e}function LJ(){LJ=I,Gte=hut((nv(),Est(Vy(Wte,1),BYt,538,0,[qte])))}function OJ(){OJ=I,pke=Gq(new j2,(kxt(),jae),(hKt(),zce))}function NJ(){NJ=I,mke=Gq(new j2,(kxt(),jae),(hKt(),zce))}function RJ(){RJ=I,wke=Gq(new j2,(kxt(),jae),(hKt(),zce))}function FJ(){FJ=I,Hke=fH(new j2,(kxt(),jae),(hKt(),fce))}function jJ(){jJ=I,Kke=fH(new j2,(kxt(),jae),(hKt(),fce))}function $J(){$J=I,Zke=fH(new j2,(kxt(),jae),(hKt(),fce))}function zJ(){zJ=I,ave=fH(new j2,(kxt(),jae),(hKt(),fce))}function VJ(){VJ=I,Hye=Gq(new j2,(qvt(),Fve),(OTt(),Hve))}function HJ(t,e,n,i){this.c=t,this.d=i,GJ(this,e),WJ(this,n)}function qJ(t){this.c=new YA,this.b=t.b,this.d=t.c,this.a=t.a}function UJ(t){this.a=i.Math.cos(t),this.b=i.Math.sin(t)}function GJ(t,e){t.a&&w9(t.a.k,t),t.a=e,t.a&&Gz(t.a.k,t)}function WJ(t,e){t.b&&w9(t.b.f,t),t.b=e,t.b&&Gz(t.b.f,t)}function KJ(t,e){eK(t,t.b,t.c),jz(t.b.b,65),e&&jz(e.b,65).b}function YJ(t,e){qdt(t,e),iP(t.Cb,88)&&ISt(x4(jz(t.Cb,88)),2)}function XJ(t,e){iP(t.Cb,88)&&ISt(x4(jz(t.Cb,88)),4),Prt(t,e)}function ZJ(t,e){iP(t.Cb,179)&&(jz(t.Cb,179).tb=null),Prt(t,e)}function QJ(t,e){return Zx(),ctt(e)?new uH(e,t):new PD(e,t)}function JJ(t,e){null!=e.c&&QW(t,new VW(e.c))}function t1(t){var e;return eC(),rnt(e=new Nb,t),e}function e1(t){var e;return eC(),rnt(e=new Nb,t),e}function n1(t,e){var n;return n=new $W(t),e.c[e.c.length]=n,n}function i1(t,e){var n;return(n=jz(hht(SX(t.a),e),14))?n.gc():0}function r1(t){return Ydt(t),xX(),xX(),ket(t,fne)}function o1(t){for(var e;;)if(e=t.Pb(),!t.Ob())return e}function a1(t,e){qk.call(this,new UA(tet(t))),hit(e,sYt),this.a=e}function s1(t,e,n){zht(e,n,t.gc()),this.c=t,this.a=e,this.b=n-e}function c1(t,e,n){var i;zht(e,n,t.c.length),i=n-e,xC(t.c,e,i)}function l1(t,e){cP(t,fq(t0(kU(e,24),cZt)),fq(t0(e,cZt)))}function u1(t,e){if(t<0||t>=e)throw $b(new Dv(yZt+t+_Zt+e))}function h1(t,e){if(t<0||t>=e)throw $b(new Sy(yZt+t+_Zt+e))}function d1(t,e){this.b=(kK(t),t),this.a=e&FXt?e:64|e|lYt}function f1(t){LB(this),xw(this.a,vct(i.Math.max(8,t))<<1)}function g1(t){return Ict(Est(Vy(xxe,1),cYt,8,0,[t.i.n,t.n,t.a]))}function p1(){return Vlt(),Est(Vy(Qne,1),BYt,132,0,[Hne,qne,Une])}function m1(){return Oet(),Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])}function b1(){return X8(),Est(Vy(tre,1),BYt,461,0,[Yie,Kie,Xie])}function w1(){return V9(),Est(Vy(Sre,1),BYt,462,0,[ire,nre,ere])}function k1(){return $ht(),Est(Vy(bse,1),BYt,423,0,[dse,hse,use])}function v1(){return z9(),Est(Vy($ae,1),BYt,379,0,[Sae,Tae,Dae])}function y1(){return Aut(),Est(Vy(dwe,1),BYt,378,0,[iwe,rwe,owe])}function _1(){return Dit(),Est(Vy(pue,1),BYt,314,0,[cue,sue,lue])}function C1(){return ait(),Est(Vy(_ue,1),BYt,337,0,[due,gue,fue])}function A1(){return Zst(),Est(Vy(jue,1),BYt,450,0,[Due,Sue,Iue])}function x1(){return Trt(),Est(Vy(Gle,1),BYt,361,0,[Ole,Lle,Ple])}function E1(){return H9(),Est(Vy(Bhe,1),BYt,303,0,[xhe,Ehe,Ahe])}function T1(){return Rat(),Est(Vy(The,1),BYt,292,0,[vhe,yhe,khe])}function S1(){return oit(),Est(Vy(Kwe,1),BYt,452,0,[Vwe,$we,zwe])}function D1(){return wct(),Est(Vy(Fwe,1),BYt,339,0,[Mwe,Bwe,Pwe])}function I1(){return zot(),Est(Vy(Qwe,1),BYt,375,0,[Uwe,Gwe,Wwe])}function B1(){return Bst(),Est(Vy(Ake,1),BYt,377,0,[hke,dke,uke])}function M1(){return Ult(),Est(Vy(cke,1),BYt,336,0,[tke,eke,nke])}function P1(){return got(),Est(Vy(fke,1),BYt,338,0,[ske,oke,ake])}function L1(){return sit(),Est(Vy(Pke,1),BYt,454,0,[Ske,Dke,Ike])}function O1(){return Tft(),Est(Vy(o_e,1),BYt,442,0,[t_e,Qye,Jye])}function N1(){return zlt(),Est(Vy(V_e,1),BYt,380,0,[s_e,c_e,l_e])}function R1(){return xft(),Est(Vy(MCe,1),BYt,381,0,[Z_e,Q_e,X_e])}function F1(){return $ot(),Est(Vy(Y_e,1),BYt,293,0,[U_e,G_e,q_e])}function j1(){return Eft(),Est(Vy(GCe,1),BYt,437,0,[$Ce,zCe,VCe])}function $1(){return aht(),Est(Vy(ASe,1),BYt,334,0,[mSe,pSe,bSe])}function z1(){return Net(),Est(Vy(QTe,1),BYt,272,0,[HTe,qTe,UTe])}function V1(t,e){return vMt(t,e,iP(e,99)&&!!(jz(e,18).Bb&$Xt))}function H1(t,e,n){var i;return(i=rVt(t,e,!1)).b<=e&&i.a<=n}function q1(t,e,n){var i;(i=new aa).b=e,i.a=n,++e.b,Gz(t.d,i)}function U1(t,e){var n;return _O(!!(n=(kK(t),t).g)),kK(e),n(e)}function G1(t,e){var n,i;return i=pG(t,e),n=t.a.Zc(i),new kA(t,n)}function W1(t){return t.Db>>16!=6?null:jz(rBt(t),235)}function K1(t){if(2!=t.p)throw $b(new fw);return fq(t.f)&YYt}function Y1(t){if(2!=t.p)throw $b(new fw);return fq(t.k)&YYt}function X1(t){return t.a==(O4(),JMe)&&ff(t,ePt(t.g,t.b)),t.a}function Z1(t){return t.d==(O4(),JMe)&&pf(t,PFt(t.g,t.b)),t.d}function Q1(t){return xO(t.a<t.c.c.length),t.b=t.a++,t.c.c[t.b]}function J1(t,e){t.b=t.b|e.b,t.c=t.c|e.c,t.d=t.d|e.d,t.a=t.a|e.a}function t0(t,e){return aat(AU(XI(t)?Eat(t):t,XI(e)?Eat(e):e))}function e0(t,e){return aat(xU(XI(t)?Eat(t):t,XI(e)?Eat(e):e))}function n0(t,e){return aat(EU(XI(t)?Eat(t):t,XI(e)?Eat(e):e))}function i0(t){return ift(wU(uat(zMt(t,32)),32),uat(zMt(t,32)))}function r0(t){return wW(t),iP(t,14)?new JF(jz(t,14)):$z(t.Kc())}function o0(t,e){return Ltt(),t.c==e.c?Edt(e.d,t.d):Edt(t.c,e.c)}function a0(t,e){return Ltt(),t.c==e.c?Edt(t.d,e.d):Edt(t.c,e.c)}function s0(t,e){return Ltt(),t.c==e.c?Edt(t.d,e.d):Edt(e.c,t.c)}function c0(t,e){return Ltt(),t.c==e.c?Edt(e.d,t.d):Edt(e.c,t.c)}function l0(t,e){var n;n=Vv(CN(t.a.We((cKt(),STe)))),KGt(t,e,n)}function u0(t,e){var n;n=jz(OW(t.g,e),57),Det(e.d,new aT(t,n))}function h0(t,e){var n,i;return(n=svt(t))<(i=svt(e))?-1:n>i?1:0}function d0(t,e){var n;return n=A9(e),jz(OW(t.c,n),19).a}function f0(t,e){var n;for(n=t+"";n.length<e;)n="0"+n;return n}function g0(t){return null==t.c||0==t.c.length?"n_"+t.g:"n_"+t.c}function p0(t){return null==t.c||0==t.c.length?"n_"+t.b:"n_"+t.c}function m0(t,e){return t&&t.equals?t.equals(e):VD(t)===VD(e)}function b0(t,e){return 0==e?!!t.o&&0!=t.o.f:bbt(t,e)}function w0(t,e,n){var i;t.n&&e&&n&&(i=new tc,Gz(t.e,i))}function k0(t,e,n){var i;i=t.d[e.p],t.d[e.p]=t.d[n.p],t.d[n.p]=i}function v0(t,e,n){this.d=t,this.j=e,this.e=n,this.o=-1,this.p=3}function y0(t,e,n){this.d=t,this.k=e,this.f=n,this.o=-1,this.p=5}function _0(t,e,n){Db.call(this,25),this.b=t,this.a=e,this.c=n}function C0(t){fKt(),Db.call(this,t),this.c=!1,this.a=!1}function A0(t,e,n,i,r,o){znt.call(this,t,e,n,i,r),o&&(this.o=-2)}function x0(t,e,n,i,r,o){Vnt.call(this,t,e,n,i,r),o&&(this.o=-2)}function E0(t,e,n,i,r,o){X4.call(this,t,e,n,i,r),o&&(this.o=-2)}function T0(t,e,n,i,r,o){Unt.call(this,t,e,n,i,r),o&&(this.o=-2)}function S0(t,e,n,i,r,o){Z4.call(this,t,e,n,i,r),o&&(this.o=-2)}function D0(t,e,n,i,r,o){Hnt.call(this,t,e,n,i,r),o&&(this.o=-2)}function I0(t,e,n,i,r,o){qnt.call(this,t,e,n,i,r),o&&(this.o=-2)}function B0(t,e,n,i,r,o){Q4.call(this,t,e,n,i,r),o&&(this.o=-2)}function M0(t,e,n,i){vb.call(this,n),this.b=t,this.c=e,this.d=i}function P0(t,e){this.a=new Mb,this.d=new Mb,this.f=t,this.c=e}function L0(){this.c=new IM,this.a=new hZ,this.b=new tk,hx()}function O0(){Pst(),this.b=new Pb,this.a=new Pb,this.c=new Mb}function N0(t,e){this.g=t,this.d=(O4(),JMe),this.a=JMe,this.b=e}function R0(t,e){this.f=t,this.a=(O4(),QMe),this.c=QMe,this.b=e}function F0(t,e){!t.c&&(t.c=new _ot(t,0)),AVt(t.c,(UHt(),IPe),e)}function j0(){j0=I,$ye=new dS("DFS",0),jye=new dS("BFS",1)}function $0(t,e,n){var i;return!!(i=jz(t.Zb().xc(e),14))&&i.Hc(n)}function z0(t,e,n){var i;return!!(i=jz(t.Zb().xc(e),14))&&i.Mc(n)}function V0(t,e,n,i){return t.a+=""+lO(null==e?qKt:$ft(e),n,i),t}function H0(t,e,n,i,r,o){return Not(t,e,n,o),Zht(t,i),tdt(t,r),t}function q0(t){return xO(t.b.b!=t.d.a),t.c=t.b=t.b.b,--t.a,t.c.c}function U0(t){for(;t.d>0&&0==t.a[--t.d];);0==t.a[t.d++]&&(t.e=0)}function G0(t){return t.a?0==t.e.length?t.a.a:t.a.a+""+t.e:t.c}function W0(t){return!(!t.a||0==$9(t.a.a).i||t.b&&Rwt(t.b))}function K0(t){return!(!t.u||0==r5(t.u.a).i||t.n&&Nwt(t.n))}function Y0(t){return wH(t.e.Hd().gc()*t.c.Hd().gc(),16,new Vh(t))}function X0(t,e){return FG(uat(t.q.getTime()),uat(e.q.getTime()))}function Z0(t){return jz(Ymt(t,P7(wse,r1t,17,t.c.length,0,1)),474)}function Q0(t){return jz(Ymt(t,P7(Sse,o1t,10,t.c.length,0,1)),193)}function J0(t){return jJ(),!(h4(t)||!h4(t)&&t.c.i.c==t.d.i.c)}function t2(t,e,n){wW(t),Lvt(new TJ(new JF(t),e,n))}function e2(t,e,n){wW(t),Ovt(new SJ(new JF(t),e,n))}function n2(t,e){var n;return n=1-e,t.a[n]=frt(t.a[n],n),frt(t,e)}function i2(t,e){var n;t.e=new Xk,bM(n=fNt(e),t.c),SNt(t,n,0)}function r2(t,e,n,i){var r;(r=new ks).a=e,r.b=n,r.c=i,LV(t.a,r)}function o2(t,e,n,i){var r;(r=new ks).a=e,r.b=n,r.c=i,LV(t.b,r)}function a2(t){var e,n;return n=tjt(e=new uW,t),kUt(e),n}function s2(){var t,e;return t=new Nb,Gz(GMe,e=t),e}function c2(t){return t.j.c=P7(Ite,zKt,1,0,5,1),_Y(t.c),gY(t.a),t}function l2(t){return Cx(),iP(t.g,10)?jz(t.g,10):null}function u2(t){return!yY(t).dc()&&(BM(t,new k),!0)}function h2(t){if(!("stack"in t))try{throw t}catch(t){}return t}function d2(t,e){if(t<0||t>=e)throw $b(new Dv(MSt(t,e)));return t}function f2(t,e,n){if(t<0||e<t||e>n)throw $b(new Dv(sTt(t,e,n)))}function g2(t,e){if(_G(t.a,e),e.d)throw $b(new fv(SZt));e.d=t}function p2(t,e){if(e.$modCount!=t.$modCount)throw $b(new mw)}function m2(t,e){return!!iP(e,42)&&Akt(t.a,jz(e,42))}function b2(t,e){return!!iP(e,42)&&Akt(t.a,jz(e,42))}function w2(t,e){return!!iP(e,42)&&Akt(t.a,jz(e,42))}function k2(t,e){return t.a<=t.b&&(e.ud(t.a++),!0)}function v2(t){var e;return XI(t)?-0==(e=t)?0:e:ptt(t)}function y2(t){var e;return yK(t),e=new $,gC(t.a,new gg(e)),e}function _2(t){var e;return yK(t),e=new j,gC(t.a,new fg(e)),e}function C2(t,e){this.a=t,Af.call(this,t),BJ(e,t.gc()),this.b=e}function A2(t){this.e=t,this.b=this.e.a.entries(),this.a=new Array}function x2(t){return wH(t.e.Hd().gc()*t.c.Hd().gc(),273,new zh(t))}function E2(t){return new X6((hit(t,PYt),Jtt(ift(ift(5,t),t/10|0))))}function T2(t){return jz(Ymt(t,P7(Vse,a1t,11,t.c.length,0,1)),1943)}function S2(t,e,n){return n.f.c.length>0?jG(t.a,e,n):jG(t.b,e,n)}function D2(t,e,n){t.d&&w9(t.d.e,t),t.d=e,t.d&&kq(t.d.e,n,t)}function I2(t,e){bWt(e,t),rV(t.d),rV(jz(wxt(t,(zWt(),Dme)),207))}function B2(t,e){mWt(e,t),iV(t.d),iV(jz(wxt(t,(zWt(),Dme)),207))}function M2(t,e){var n,i;return i=null,(n=HQ(t,e))&&(i=n.fe()),i}function P2(t,e){var n,i;return i=null,(n=ftt(t,e))&&(i=n.ie()),i}function L2(t,e){var n,i;return i=null,(n=HQ(t,e))&&(i=n.ie()),i}function O2(t,e){var n,i;return i=null,(n=HQ(t,e))&&(i=kTt(n)),i}function N2(t,e,n){var i;return i=Ypt(n),fFt(t.g,i,e),fFt(t.i,e,n),e}function R2(t,e,n){var i;i=Mpt();try{return fR(t,e,n)}finally{w3(i)}}function F2(t){var e;e=t.Wg(),this.a=iP(e,69)?jz(e,69).Zh():e.Kc()}function j2(){Yk.call(this),this.j.c=P7(Ite,zKt,1,0,5,1),this.a=-1}function $2(t,e,n,i){this.d=t,this.n=e,this.g=n,this.o=i,this.p=-1}function z2(t,e,n,i){this.e=i,this.d=null,this.c=t,this.a=e,this.b=n}function V2(t,e,n){this.d=new Fp(this),this.e=t,this.i=e,this.f=n}function H2(){H2=I,Dhe=new LT(eQt,0),Ihe=new LT("TOP_LEFT",1)}function q2(){q2=I,_ke=XK(ndt(1),ndt(4)),yke=XK(ndt(1),ndt(2))}function U2(){U2=I,XCe=hut((Tx(),Est(Vy(JCe,1),BYt,551,0,[KCe])))}function G2(){G2=I,WCe=hut((Ex(),Est(Vy(YCe,1),BYt,482,0,[UCe])))}function W2(){W2=I,qAe=hut((Sx(),Est(Vy(WAe,1),BYt,530,0,[VAe])))}function K2(){K2=I,roe=hut((dx(),Est(Vy(xoe,1),BYt,481,0,[noe])))}function Y2(){return Oat(),Est(Vy(Vre,1),BYt,406,0,[Ore,Mre,Pre,Lre])}function X2(){return Z8(),Est(Vy(Fne,1),BYt,297,0,[Mne,Pne,Lne,One])}function Z2(){return Vbt(),Est(Vy(ioe,1),BYt,394,0,[Zre,Xre,Qre,Jre])}function Q2(){return zbt(),Est(Vy(qre,1),BYt,323,0,[jre,Fre,$re,zre])}function J2(){return Ist(),Est(Vy(fse,1),BYt,405,0,[Zae,tse,Qae,Jae])}function t3(){return Sst(),Est(Vy(ple,1),BYt,360,0,[rle,nle,ile,ele])}function e3(t,e,n,i){return iP(n,54)?new SO(t,e,n,i):new sU(t,e,n,i)}function n3(){return Dst(),Est(Vy(Tle,1),BYt,411,0,[mle,ble,wle,kle])}function i3(t){return t.j==(vGt(),ADe)&&AL(UIt(t),aDe)}function r3(t,e){var n;AJ(n=e.a,e.c.d),CJ(n,e.d.d),Qet(n.a,t.n)}function o3(t,e){return jz(IL(TU(jz(c6(t.k,e),15).Oc(),Kle)),113)}function a3(t,e){return jz(IL(SU(jz(c6(t.k,e),15).Oc(),Kle)),113)}function s3(t){return new d1(tot(jz(t.a.dd(),14).gc(),t.a.cd()),16)}function c3(t){return iP(t,14)?jz(t,14).dc():!t.Kc().Ob()}function l3(t){return Cx(),iP(t.g,145)?jz(t.g,145):null}function u3(t){if(t.e.g!=t.b)throw $b(new mw);return!!t.c&&t.d>0}function h3(t){return xO(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function d3(t,e){kK(e),IW(t.a,t.c,e),t.c=t.c+1&t.a.length-1,fvt(t)}function f3(t,e){kK(e),t.b=t.b-1&t.a.length-1,IW(t.a,t.b,e),fvt(t)}function g3(t,e){var n;for(n=t.j.c.length;n<e;n++)Gz(t.j,t.rg())}function p3(t,e,n,i){var r;return r=i[e.g][n.g],Vv(CN(wxt(t.a,r)))}function m3(t,e,n,i,r){this.i=t,this.a=e,this.e=n,this.j=i,this.f=r}function b3(t,e,n,i,r){this.a=t,this.e=e,this.f=n,this.b=i,this.g=r}function w3(t){t&&Ttt((sy(),tee)),--ree,t&&-1!=aee&&(eE(aee),aee=-1)}function k3(){return dwt(),Est(Vy(kwe,1),BYt,197,0,[uwe,hwe,lwe,cwe])}function v3(){return qvt(),Est(Vy(zve,1),BYt,393,0,[Ove,Nve,Rve,Fve])}function y3(){return Dkt(),Est(Vy(W_e,1),BYt,340,0,[z_e,j_e,$_e,F_e])}function _3(){return wpt(),Est(Vy(YDe,1),BYt,374,0,[NDe,RDe,ODe,LDe])}function C3(){return Gvt(),Est(Vy(OSe,1),BYt,285,0,[CSe,vSe,ySe,_Se])}function A3(){return Aft(),Est(Vy(aSe,1),BYt,218,0,[ZTe,YTe,KTe,XTe])}function x3(){return jgt(),Est(Vy(iIe,1),BYt,311,0,[tIe,ZDe,JDe,QDe])}function E3(){return $lt(),Est(Vy(dIe,1),BYt,396,0,[oIe,aIe,rIe,sIe])}function T3(t){return cJ(),cG(aBe,t)?jz(OW(aBe,t),331).ug():null}function S3(t,e,n){return e<0?VDt(t,n):jz(n,66).Nj().Sj(t,t.yh(),e)}function D3(t,e,n){var i;return i=Ypt(n),fFt(t.d,i,e),WK(t.e,e,n),e}function I3(t,e,n){var i;return i=Ypt(n),fFt(t.j,i,e),WK(t.k,e,n),e}function B3(t){var e;return J_(),e=new rc,t&&zPt(e,t),e}function M3(t){var e;return e=t.ri(t.i),t.i>0&&oVt(t.g,0,e,0,t.i),e}function P3(t,e){var n;return Qx(),!(n=jz(OW(mBe,t),55))||n.wj(e)}function L3(t){if(1!=t.p)throw $b(new fw);return fq(t.f)<<24>>24}function O3(t){if(1!=t.p)throw $b(new fw);return fq(t.k)<<24>>24}function N3(t){if(7!=t.p)throw $b(new fw);return fq(t.k)<<16>>16}function R3(t){if(7!=t.p)throw $b(new fw);return fq(t.f)<<16>>16}function F3(t){var e;for(e=0;t.Ob();)t.Pb(),e=ift(e,1);return Jtt(e)}function j3(t,e){var n;return n=new Ty,t.xd(n),n.a+="..",e.yd(n),n.a}function $3(t,e,n){var i;i=jz(OW(t.g,n),57),Gz(t.a.c,new nD(e,i))}function z3(t,e,n){return _U(CN(zD(DZ(t.f,e))),CN(zD(DZ(t.f,n))))}function V3(t,e,n){return U$t(t,e,n,iP(e,99)&&!!(jz(e,18).Bb&$Xt))}function H3(t,e,n){return mzt(t,e,n,iP(e,99)&&!!(jz(e,18).Bb&$Xt))}function q3(t,e,n){return LMt(t,e,n,iP(e,99)&&!!(jz(e,18).Bb&$Xt))}function U3(t,e){return t==(aEt(),Ese)&&e==Ese?4:t==Ese||e==Ese?8:32}function G3(t,e){return VD(e)===VD(t)?"(this Map)":null==e?qKt:$ft(e)}function W3(t,e){return jz(null==e?zD(DZ(t.f,null)):cE(t.g,e),281)}function K3(t,e,n){var i;return i=Ypt(n),WK(t.b,i,e),WK(t.c,e,n),e}function Y3(t,e){var n;for(n=e;n;)RO(t,n.i,n.j),n=XQ(n);return t}function X3(t,e){var n;return n=nZ($z(new E9(t,e))),EH(new E9(t,e)),n}function Z3(t,e){var n;return Zx(),CEt(n=jz(t,66).Mj(),e),n.Ok(e)}function Q3(t,e,n,i,r){Gz(e,wSt(r,GMt(r,n,i))),Uxt(t,r,e)}function J3(t,e,n){t.i=0,t.e=0,e!=n&&(Wct(t,e,n),Gct(t,e,n))}function t5(t,e){var n;n=t.q.getHours(),t.q.setFullYear(e+cXt),hzt(t,n)}function e5(t,e,n){if(n){var i=n.ee();t.a[e]=i(n)}else delete t.a[e]}function n5(t,e,n){if(n){var i=n.ee();n=i(n)}else n=void 0;t.a[e]=n}function i5(t){if(t<0)throw $b(new jv("Negative array size: "+t))}function r5(t){return t.n||(x4(t),t.n=new Yq(t,GBe,t),kZ(t)),t.n}function o5(t){return xO(t.a<t.c.a.length),t.b=t.a,Dtt(t),t.c.b[t.b]}function a5(t){t.b!=t.c&&(t.a=P7(Ite,zKt,1,8,5,1),t.b=0,t.c=0)}function s5(t){this.b=new Pb,this.c=new Pb,this.d=new Pb,this.a=t}function c5(t,e){fKt(),Db.call(this,t),this.a=e,this.c=-1,this.b=-1}function l5(t,e,n,i){v0.call(this,1,n,i),this.c=t,this.b=e}function u5(t,e,n,i){y0.call(this,1,n,i),this.c=t,this.b=e}function h5(t,e,n,i,r,o,a){vit.call(this,e,i,r,o,a),this.c=t,this.a=n}function d5(t,e,n){this.e=t,this.a=Ite,this.b=IRt(e),this.c=e,this.d=n}function f5(t){this.e=t,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function g5(t){this.c=t,this.a=jz(Syt(t),148),this.b=this.a.Aj().Nh()}function p5(t){this.d=t,this.b=this.d.a.entries(),this.a=this.b.next()}function m5(){Pb.call(this),vO(this),this.d.b=this.d,this.d.a=this.d}function b5(t,e){IR.call(this),this.a=t,this.b=e,Gz(this.a.b,this)}function w5(t,e){return eI(null!=e?AQ(t,e):zD(DZ(t.f,e)))}function k5(t,e){return eI(null!=e?AQ(t,e):zD(DZ(t.f,e)))}function v5(t,e){var n;for(n=0;n<e;++n)IW(t,n,new qf(jz(t[n],42)))}function y5(t,e){var n;for(n=t.d-1;n>=0&&t.a[n]===e[n];n--);return n<0}function _5(t,e){var n;return qlt(),0!=(n=t.j.g-e.j.g)?n:0}function C5(t,e){return kK(e),null!=t.a?xq(e.Kb(t.a)):Ane}function A5(t){var e;return t?new BH(t):(Vrt(e=new lB,t),e)}function x5(t,e){return e.b.Kb(_9(t,e.c.Ee(),new wg(e)))}function E5(t){kAt(),cP(this,fq(t0(kU(t,24),cZt)),fq(t0(t,cZt)))}function T5(){T5=I,pie=hut((lbt(),Est(Vy(wie,1),BYt,428,0,[fie,die])))}function S5(){S5=I,kie=hut((Ott(),Est(Vy(Nie,1),BYt,427,0,[mie,bie])))}function D5(){D5=I,Roe=hut((Ntt(),Est(Vy(Iae,1),BYt,424,0,[Loe,Ooe])))}function I5(){I5=I,Hse=hut((xrt(),Est(Vy(Gse,1),BYt,511,0,[zse,$se])))}function B5(){B5=I,Tue=hut((Rtt(),Est(Vy(Bue,1),BYt,419,0,[Aue,xue])))}function M5(){M5=I,que=hut((g9(),Est(Vy(Zue,1),BYt,479,0,[Vue,zue])))}function P5(){P5=I,Jwe=hut((D6(),Est(Vy(ike,1),BYt,376,0,[Zwe,Xwe])))}function L5(){L5=I,jwe=hut((q9(),Est(Vy(Hwe,1),BYt,421,0,[Nwe,Rwe])))}function O5(){O5=I,aue=hut((W7(),Est(Vy(uue,1),BYt,422,0,[iue,rue])))}function N5(){N5=I,Mhe=hut((H2(),Est(Vy(Vde,1),BYt,420,0,[Dhe,Ihe])))}function R5(){R5=I,xve=hut((S6(),Est(Vy(Pve,1),BYt,520,0,[Cve,_ve])))}function F5(){F5=I,Vke=hut((K5(),Est(Vy(Wke,1),BYt,523,0,[$ke,jke])))}function j5(){j5=I,eve=hut((gQ(),Est(Vy(rve,1),BYt,516,0,[Jke,Qke])))}function $5(){$5=I,ove=hut((aJ(),Est(Vy(Ave,1),BYt,515,0,[nve,ive])))}function z5(){z5=I,Lve=hut((fQ(),Est(Vy(jve,1),BYt,455,0,[Bve,Mve])))}function V5(){V5=I,Vye=hut((j0(),Est(Vy(Xye,1),BYt,425,0,[$ye,jye])))}function H5(){H5=I,Zye=hut((Ert(),Est(Vy(e_e,1),BYt,495,0,[Kye,Yye])))}function q5(){q5=I,Fye=hut((sJ(),Est(Vy(zye,1),BYt,480,0,[Oye,Nye])))}function U5(){U5=I,a_e=hut((L8(),Est(Vy(u_e,1),BYt,426,0,[i_e,r_e])))}function G5(){G5=I,KAe=hut((Mst(),Est(Vy(YAe,1),BYt,429,0,[GAe,UAe])))}function W5(){W5=I,tAe=hut((I6(),Est(Vy(aAe,1),BYt,430,0,[QCe,ZCe])))}function K5(){K5=I,$ke=new XT("UPPER",0),jke=new XT("LOWER",1)}function Y5(t,e){var n;zX(n=new pv,"x",e.a),zX(n,"y",e.b),QW(t,n)}function X5(t,e){var n;zX(n=new pv,"x",e.a),zX(n,"y",e.b),QW(t,n)}function Z5(t,e){var n,i;i=!1;do{i|=n=dct(t,e)}while(n);return i}function Q5(t,e){var n,i;for(n=e,i=0;n>0;)i+=t.a[n],n-=n&-n;return i}function J5(t,e){var n;for(n=e;n;)RO(t,-n.i,-n.j),n=XQ(n);return t}function t4(t,e){var n,i;for(kK(e),i=t.Kc();i.Ob();)n=i.Pb(),e.td(n)}function e4(t,e){var n;return new mA(n=e.cd(),t.e.pc(n,jz(e.dd(),14)))}function n4(t,e,n,i){var r;(r=new M).c=e,r.b=n,r.a=i,i.b=n.a=r,++t.b}function i4(t,e,n){var i;return u1(e,t.c.length),i=t.c[e],t.c[e]=n,i}function r4(t,e,n){return jz(null==e?ySt(t.f,null,n):aft(t.g,e,n),281)}function o4(t){return t.c&&t.d?p0(t.c)+"->"+p0(t.d):"e_"+xL(t)}function a4(t,e){return(Ydt(t),vC(new OH(t,new K8(e,t.a)))).sd(Jne)}function s4(){return kxt(),Est(Vy(qae,1),BYt,356,0,[Oae,Nae,Rae,Fae,jae])}function c4(){return vGt(),Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])}function l4(t){return Ly(),function(){return R2(t,this,arguments)}}function u4(){return Date.now?Date.now():(new Date).getTime()}function h4(t){return!(!t.c||!t.d||!t.c.i||t.c.i!=t.d.i)}function d4(t){if(!t.c.Sb())throw $b(new ww);return t.a=!0,t.c.Ub()}function f4(t){t.i=0,wE(t.b,null),wE(t.c,null),t.a=null,t.e=null,++t.g}function g4(t){fE.call(this,null==t?qKt:$ft(t),iP(t,78)?jz(t,78):null)}function p4(t){eKt(),jb(this),this.a=new YA,glt(this,t),LV(this.a,t)}function m4(){PB(this),this.b=new PS(NXt,NXt),this.a=new PS(RXt,RXt)}function b4(t,e){this.c=0,this.b=e,pI.call(this,t,17493),this.a=this.c}function w4(t){k4(),Kne||(this.c=t,this.e=!0,this.a=new Mb)}function k4(){k4=I,Kne=!0,Gne=!1,Wne=!1,Xne=!1,Yne=!1}function v4(t,e){return!!iP(e,149)&&bF(t.c,jz(e,149).c)}function y4(t,e){var n;return n=0,t&&(n+=t.f.a/2),e&&(n+=e.f.a/2),n}function _4(t,e){return jz(utt(t.d,e),23)||jz(utt(t.e,e),23)}function C4(t){this.b=t,DP.call(this,t),this.a=jz(kat(this.b.a,4),126)}function A4(t){this.b=t,rO.call(this,t),this.a=jz(kat(this.b.a,4),126)}function x4(t){return t.t||(t.t=new fb(t),cdt(new Pv(t),0,t.t)),t.t}function E4(){return jht(),Est(Vy(GTe,1),BYt,103,0,[jTe,FTe,RTe,NTe,$Te])}function T4(){return rbt(),Est(Vy(XSe,1),BYt,249,0,[jSe,zSe,RSe,FSe,$Se])}function S4(){return ibt(),Est(Vy(vxe,1),BYt,175,0,[cxe,sxe,oxe,lxe,axe])}function D4(){return BEt(),Est(Vy(HAe,1),BYt,316,0,[eAe,nAe,oAe,iAe,rAe])}function I4(){return Pwt(),Est(Vy(Dwe,1),BYt,315,0,[wwe,pwe,mwe,gwe,bwe])}function B4(){return Kwt(),Est(Vy(Eue,1),BYt,335,0,[wue,bue,vue,yue,kue])}function M4(){return XPt(),Est(Vy(HCe,1),BYt,355,0,[LCe,PCe,NCe,OCe,RCe])}function P4(){return MCt(),Est(Vy(Nle,1),BYt,363,0,[Cle,xle,Ele,Ale,_le])}function L4(){return Cft(),Est(Vy(ewe,1),BYt,163,0,[zde,Rde,Fde,jde,$de])}function O4(){var t,e;O4=I,eC(),e=new yw,QMe=e,t=new Sk,JMe=t}function N4(t){var e;return t.c||iP(e=t.r,88)&&(t.c=jz(e,26)),t.c}function R4(t){return t.e=3,t.d=t.Yb(),2!=t.e&&(t.e=0,!0)}function F4(t){return CM(t&xXt,t>>22&xXt,t<0?EXt:0)}function j4(t){var e,n,i;for(n=0,i=(e=t).length;n<i;++n)vK(e[n])}function $4(t,e){var n,i;(n=jz(dht(t.c,e),14))&&(i=n.gc(),n.$b(),t.d-=i)}function z4(t,e){var n;return!!(n=hlt(t,e.cd()))&&iY(n.e,e.dd())}function V4(t,e){return 0==e||0==t.e?t:e>0?_pt(t,e):SOt(t,-e)}function H4(t,e){return 0==e||0==t.e?t:e>0?SOt(t,e):_pt(t,-e)}function q4(t){if(gBt(t))return t.c=t.a,t.a.Pb();throw $b(new ww)}function U4(t){var e,n;return e=t.c.i,n=t.d.i,e.k==(aEt(),Cse)&&n.k==Cse}function G4(t){var e;return Vat(e=new dZ,t),lct(e,(zWt(),mme),null),e}function W4(t,e,n){var i;return(i=t.Yg(e))>=0?t._g(i,n,!0):rIt(t,e,n)}function K4(t,e,n,i){var r;for(r=0;r<Zie;r++)Uq(t.a[e.g][r],n,i[e.g])}function Y4(t,e,n,i){var r;for(r=0;r<Qie;r++)qq(t.a[r][e.g],n,i[e.g])}function X4(t,e,n,i,r){v0.call(this,e,i,r),this.c=t,this.a=n}function Z4(t,e,n,i,r){y0.call(this,e,i,r),this.c=t,this.a=n}function Q4(t,e,n,i,r){e6.call(this,e,i,r),this.c=t,this.a=n}function J4(t,e,n,i,r){e6.call(this,e,i,r),this.c=t,this.b=n}function t6(t,e,n){vb.call(this,n),this.b=t,this.c=e,this.d=($gt(),VMe)}function e6(t,e,n){this.d=t,this.k=e?1:0,this.f=n?1:0,this.o=-1,this.p=0}function n6(t,e,n){var i;Cot(i=new UM(t.a),t.a.a),ySt(i.f,e,n),t.a.a=i}function i6(t,e){t.qi(t.i+1),vP(t,t.i,t.oi(t.i,e)),t.bi(t.i++,e),t.ci()}function r6(t){var e,n;++t.j,e=t.g,n=t.i,t.g=null,t.i=0,t.di(n,e),t.ci()}function o6(t){var e;return wW(t),Bct(e=new X6(ZK(t.length)),t),e}function a6(t){var e;return wW(t),ZTt(e=t?new JF(t):$z(t.Kc())),cht(e)}function s6(t,e){var n;return u1(e,t.c.length),n=t.c[e],xC(t.c,e,1),n}function c6(t,e){var n;return!(n=jz(t.c.xc(e),14))&&(n=t.ic(e)),t.pc(e,n)}function l6(t,e){var n,i;return kK(t),n=t,kK(e),n==(i=e)?0:n<i?-1:1}function u6(t){var e;return e=t.e+t.f,isNaN(e)&&GF(t.d)?t.d:e}function h6(t,e){return t.a?aI(t.a,t.b):t.a=new uL(t.d),rI(t.a,e),t}function d6(t,e){if(t<0||t>e)throw $b(new Dv(gSt(t,e,"index")));return t}function f6(t,e,n,i){var r;return bAt(r=P7(SLe,lXt,25,e,15,1),t,e,n,i),r}function g6(t,e){var n;n=t.q.getHours()+(e/60|0),t.q.setMinutes(e),hzt(t,n)}function p6(t,e){return i.Math.min(G7(e.a,t.d.d.c),G7(e.b,t.d.d.c))}function m6(t,e){return UD(e)?null==e?pBt(t.f,null):Hat(t.g,e):pBt(t.f,e)}function b6(t){this.c=t,this.a=new Gf(this.c.a),this.b=new Gf(this.c.b)}function w6(){this.e=new Mb,this.c=new Mb,this.d=new Mb,this.b=new Mb}function k6(){this.g=new jw,this.b=new jw,this.a=new Mb,this.k=new Mb}function v6(t,e,n){this.a=t,this.c=e,this.d=n,Gz(e.e,this),Gz(n.b,this)}function y6(t,e){gI.call(this,e.rd(),-6&e.qd()),kK(t),this.a=t,this.b=e}function _6(t,e){pI.call(this,e.rd(),-6&e.qd()),kK(t),this.a=t,this.b=e}function C6(t,e){mI.call(this,e.rd(),-6&e.qd()),kK(t),this.a=t,this.b=e}function A6(t,e,n){this.a=t,this.b=e,this.c=n,Gz(t.t,this),Gz(e.i,this)}function x6(){this.b=new YA,this.a=new YA,this.b=new YA,this.a=new YA}function E6(){E6=I,_xe=new ob("org.eclipse.elk.labels.labelManager")}function T6(){T6=I,tle=new eR("separateLayerConnections",(Sst(),rle))}function S6(){S6=I,Cve=new oS("REGULAR",0),_ve=new oS("CRITICAL",1)}function D6(){D6=I,Zwe=new UT("STACKED",0),Xwe=new UT("SEQUENCED",1)}function I6(){I6=I,QCe=new _S("FIXED",0),ZCe=new _S("CENTER_NODE",1)}function B6(t,e){var n;return n=Lqt(t,e),t.b=new wrt(n.c.length),kHt(t,n)}function M6(t,e,n){return++t.e,--t.f,jz(t.d[e].$c(n),133).dd()}function P6(t){var e;return t.a||iP(e=t.r,148)&&(t.a=jz(e,148)),t.a}function L6(t){return t.a?t.e?L6(t.e):null:t}function O6(t,e){return t.p<e.p?1:t.p>e.p?-1:0}function N6(t,e){return kK(e),t.c<t.d&&(t.ze(e,t.c++),!0)}function R6(t,e){return!!cG(t.a,e)&&(m6(t.a,e),!0)}function F6(t){var e;return e=t.cd(),Oz(jz(t.dd(),14).Nc(),new Gh(e))}function j6(t){var e;return e=jz(WG(t.b,t.b.length),9),new YF(t.a,e,t.c)}function $6(t){return Ydt(t),new DN(t,new Zz(t,t.a.e,4|t.a.d))}function z6(t){var e;for(yK(t),e=0;t.a.sd(new ut);)e=ift(e,1);return e}function V6(t,e,n){var i,r;for(i=0,r=0;r<e.length;r++)i+=t.$f(e[r],i,n)}function H6(t,e){var n;t.C&&((n=jz(aY(t.b,e),124).n).d=t.C.d,n.a=t.C.a)}function q6(t,e,n){return d2(e,t.e.Hd().gc()),d2(n,t.c.Hd().gc()),t.a[e][n]}function U6(t,e){DNt(),this.e=t,this.d=1,this.a=Est(Vy(SLe,1),lXt,25,15,[e])}function G6(t,e,n,i){this.f=t,this.e=e,this.d=n,this.b=i,this.c=i?i.d:null}function W6(t){var e,n,i,r;r=t.d,e=t.a,n=t.b,i=t.c,t.d=n,t.a=i,t.b=r,t.c=e}function K6(t,e,n,i){w$t(t,e,n,mzt(t,e,i,iP(e,99)&&!!(jz(e,18).Bb&$Xt)))}function Y6(t,e){DAt(e,"Label management",1),eI(wxt(t,(E6(),_xe))),zEt(e)}function X6(t){PB(this),mV(t>=0,"Initial capacity must not be negative")}function Z6(){Z6=I,Gie=hut((Oet(),Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])))}function Q6(){Q6=I,Jie=hut((X8(),Est(Vy(tre,1),BYt,461,0,[Yie,Kie,Xie])))}function J6(){J6=I,ore=hut((V9(),Est(Vy(Sre,1),BYt,462,0,[ire,nre,ere])))}function t7(){t7=I,Zne=hut((Vlt(),Est(Vy(Qne,1),BYt,132,0,[Hne,qne,Une])))}function e7(){e7=I,Bae=hut((z9(),Est(Vy($ae,1),BYt,379,0,[Sae,Tae,Dae])))}function n7(){n7=I,gse=hut(($ht(),Est(Vy(bse,1),BYt,423,0,[dse,hse,use])))}function i7(){i7=I,hue=hut((Dit(),Est(Vy(pue,1),BYt,314,0,[cue,sue,lue])))}function r7(){r7=I,mue=hut((ait(),Est(Vy(_ue,1),BYt,337,0,[due,gue,fue])))}function o7(){o7=I,Mue=hut((Zst(),Est(Vy(jue,1),BYt,450,0,[Due,Sue,Iue])))}function a7(){a7=I,Rle=hut((Trt(),Est(Vy(Gle,1),BYt,361,0,[Ole,Lle,Ple])))}function s7(){s7=I,She=hut((H9(),Est(Vy(Bhe,1),BYt,303,0,[xhe,Ehe,Ahe])))}function c7(){c7=I,Che=hut((Rat(),Est(Vy(The,1),BYt,292,0,[vhe,yhe,khe])))}function l7(){l7=I,swe=hut((Aut(),Est(Vy(dwe,1),BYt,378,0,[iwe,rwe,owe])))}function u7(){u7=I,Ywe=hut((zot(),Est(Vy(Qwe,1),BYt,375,0,[Uwe,Gwe,Wwe])))}function h7(){h7=I,Owe=hut((wct(),Est(Vy(Fwe,1),BYt,339,0,[Mwe,Bwe,Pwe])))}function d7(){d7=I,qwe=hut((oit(),Est(Vy(Kwe,1),BYt,452,0,[Vwe,$we,zwe])))}function f7(){f7=I,gke=hut((Bst(),Est(Vy(Ake,1),BYt,377,0,[hke,dke,uke])))}function g7(){g7=I,rke=hut((Ult(),Est(Vy(cke,1),BYt,336,0,[tke,eke,nke])))}function p7(){p7=I,lke=hut((got(),Est(Vy(fke,1),BYt,338,0,[ske,oke,ake])))}function m7(){m7=I,Mke=hut((sit(),Est(Vy(Pke,1),BYt,454,0,[Ske,Dke,Ike])))}function b7(){b7=I,n_e=hut((Tft(),Est(Vy(o_e,1),BYt,442,0,[t_e,Qye,Jye])))}function w7(){w7=I,h_e=hut((zlt(),Est(Vy(V_e,1),BYt,380,0,[s_e,c_e,l_e])))}function k7(){k7=I,tCe=hut((xft(),Est(Vy(MCe,1),BYt,381,0,[Z_e,Q_e,X_e])))}function v7(){v7=I,K_e=hut(($ot(),Est(Vy(Y_e,1),BYt,293,0,[U_e,G_e,q_e])))}function y7(){y7=I,qCe=hut((Eft(),Est(Vy(GCe,1),BYt,437,0,[$Ce,zCe,VCe])))}function _7(){_7=I,kSe=hut((aht(),Est(Vy(ASe,1),BYt,334,0,[mSe,pSe,bSe])))}function C7(){C7=I,WTe=hut((Net(),Est(Vy(QTe,1),BYt,272,0,[HTe,qTe,UTe])))}function A7(){return YCt(),Est(Vy(rDe,1),BYt,98,0,[YSe,KSe,WSe,qSe,GSe,USe])}function x7(t,e){return!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),ipt(t.o,e)}function E7(t){return!t.g&&(t.g=new lc),!t.g.d&&(t.g.d=new ub(t)),t.g.d}function T7(t){return!t.g&&(t.g=new lc),!t.g.a&&(t.g.a=new hb(t)),t.g.a}function S7(t){return!t.g&&(t.g=new lc),!t.g.b&&(t.g.b=new lb(t)),t.g.b}function D7(t){return!t.g&&(t.g=new lc),!t.g.c&&(t.g.c=new db(t)),t.g.c}function I7(t,e,n){var i,r;for(r=new Iat(e,t),i=0;i<n;++i)rwt(r);return r}function B7(t,e,n){var i,r;if(null!=n)for(i=0;i<e;++i)r=n[i],t.fi(i,r)}function M7(t,e,n,i){var r;return I$t(r=P7(SLe,lXt,25,e+1,15,1),t,e,n,i),r}function P7(t,e,n,i,r,o){var a;return a=$kt(r,i),10!=r&&Est(Vy(t,o),e,n,r,a),a}function L7(t,e,n,i){return n&&(i=n.gh(e,Igt(n.Tg(),t.c.Lj()),null,i)),i}function O7(t,e,n,i){return n&&(i=n.ih(e,Igt(n.Tg(),t.c.Lj()),null,i)),i}function N7(t,e,n){jz(t.b,65),jz(t.b,65),jz(t.b,65),Det(t.a,new Mj(n,e,t))}function R7(t,e,n){if(t<0||e>n||e<t)throw $b(new Sy(wZt+t+vZt+e+lZt+n))}function F7(t){if(!t)throw $b(new Fv("Unable to add element to queue"))}function j7(t){t?(this.c=t,this.b=null):(this.c=null,this.b=new Mb)}function $7(t,e){xE.call(this,t,e),this.a=P7(Nne,vYt,436,2,0,1),this.b=!0}function z7(t){Jst.call(this,t,0),vO(this),this.d.b=this.d,this.d.a=this.d}function V7(t){var e;return 0==(e=t.b).b?null:jz(Obt(e,0),188).b}function H7(t,e){var n;return(n=new H).c=!0,n.d=e.dd(),Xqt(t,e.cd(),n)}function q7(t,e){var n;n=t.q.getHours()+(e/3600|0),t.q.setSeconds(e),hzt(t,n)}function U7(t,e,n){var i;(i=t.b[n.c.p][n.p]).b+=e.b,i.c+=e.c,i.a+=e.a,++i.a}function G7(t,e){var n,r;return n=t.a-e.a,r=t.b-e.b,i.Math.sqrt(n*n+r*r)}function W7(){W7=I,iue=new yT("QUADRATIC",0),rue=new yT("SCANLINE",1)}function K7(){K7=I,bke=Gq(fH(new j2,(kxt(),Oae),(hKt(),kce)),jae,zce)}function Y7(){return fCt(),Est(Vy(zTe,1),BYt,291,0,[Zxe,Xxe,Yxe,Wxe,Gxe,Kxe])}function X7(){return fwt(),Est(Vy(Qxe,1),BYt,248,0,[Exe,Dxe,Ixe,Bxe,Txe,Sxe])}function Z7(){return BTt(),Est(Vy(oue,1),BYt,227,0,[Zle,Jle,Xle,Qle,tue,Yle])}function Q7(){return Zxt(),Est(Vy(bhe,1),BYt,275,0,[ihe,the,rhe,nhe,ehe,Jue])}function J7(){return $_t(),Est(Vy(ohe,1),BYt,274,0,[Kue,Wue,Xue,Gue,Yue,Uue])}function t8(){return CAt(),Est(Vy(awe,1),BYt,313,0,[Jbe,Zbe,Ybe,Xbe,twe,Qbe])}function e8(){return pEt(),Est(Vy(Hue,1),BYt,276,0,[Lue,Pue,Nue,Oue,Fue,Rue])}function n8(){return OTt(),Est(Vy(Rye,1),BYt,327,0,[Kve,qve,Gve,Uve,Wve,Hve])}function i8(){return hDt(),Est(Vy(TDe,1),BYt,273,0,[nDe,tDe,eDe,JSe,QSe,iDe])}function r8(){return JAt(),Est(Vy(wSe,1),BYt,312,0,[rSe,nSe,oSe,tSe,iSe,eSe])}function o8(){return aEt(),Est(Vy(Ise,1),BYt,267,0,[Ese,xse,Cse,Tse,Ase,_se])}function a8(t){CO(!!t.c),p2(t.e,t),t.c.Qb(),t.c=null,t.b=gst(t),hN(t.e,t)}function s8(t){return p2(t.c.a.e,t),xO(t.b!=t.c.a.d),t.a=t.b,t.b=t.b.a,t.a}function c8(t){var e;return t.a||-1==t.b||(e=t.c.Tg(),t.a=eet(e,t.b)),t.a}function l8(t,e){return!(t.hi()&&t.Hc(e)||(t.Yh(e),0))}function u8(t,e){return SZ(e,"Horizontal alignment cannot be null"),t.b=e,t}function h8(t,e,n){var i;return fKt(),i=QGt(t,e),n&&i&&gK(t)&&(i=null),i}function d8(t,e,n){var i;for(i=t.Kc();i.Ob();)QRt(jz(i.Pb(),37),e,n)}function f8(t,e){var n;for(n=e.Kc();n.Ob();)BFt(t,jz(n.Pb(),37),0,0)}function g8(t,e,n){var r;t.d[e.g]=n,(r=t.g.c)[e.g]=i.Math.max(r[e.g],n+1)}function p8(t,e){var n,i,r;return r=t.r,i=t.d,(n=rVt(t,e,!0)).b!=r||n.a!=i}function m8(t,e){return uE(t.e,e)||Zmt(t.e,e,new nbt(e)),jz(utt(t.e,e),113)}function b8(t,e,n,i){return kK(t),kK(e),kK(n),kK(i),new vG(t,e,new q)}function w8(t,e,n,i){this.rj(),this.a=e,this.b=t,this.c=new ZU(this,e,n,i)}function k8(t,e,n,i,r,o){$2.call(this,e,i,r,o),this.c=t,this.b=n}function v8(t,e,n,i,r,o){$2.call(this,e,i,r,o),this.c=t,this.a=n}function y8(t,e,n){var i,r;r=null,(i=HQ(t,n))&&(r=kTt(i)),Gmt(e,n,r)}function _8(t,e,n){var i,r;r=null,(i=HQ(t,n))&&(r=kTt(i)),Gmt(e,n,r)}function C8(t,e,n){var i;return(i=BMt(t.b,e))?PVt(F9(t,i),n):null}function A8(t,e){var n;return(n=t.Yg(e))>=0?t._g(n,!0,!0):rIt(t,e,!0)}function x8(t,e){return Edt(Vv(CN(wxt(t,(lKt(),_de)))),Vv(CN(wxt(e,_de))))}function E8(){E8=I,qye=smt(smt(Fx(new j2,(qvt(),Nve)),(OTt(),Kve)),qve)}function T8(t,e,n){var i;return i=Pct(t,e,n),t.b=new wrt(i.c.length),cNt(t,i)}function S8(t){if(t.b<=0)throw $b(new ww);return--t.b,t.a-=t.c.c,ndt(t.a)}function D8(t){var e;if(!t.a)throw $b(new uY);return e=t.a,t.a=XQ(t.a),e}function I8(t){for(;!t.a;)if(!_F(t.c,new pg(t)))return!1;return!0}function B8(t){return wW(t),iP(t,198)?jz(t,198):new od(t)}function M8(t){P8(),jz(t.We((cKt(),lTe)),174).Fc((hDt(),eDe)),t.Ye(cTe,null)}function P8(){P8=I,JAe=new gs,exe=new ps,txe=blt((cKt(),cTe),JAe,zEe,exe)}function L8(){L8=I,i_e=new pS("LEAF_NUMBER",0),r_e=new pS("NODE_SIZE",1)}function O8(t,e,n){t.a=e,t.c=n,t.b.a.$b(),wX(t.d),t.e.a.c=P7(Ite,zKt,1,0,5,1)}function N8(t){t.a=P7(SLe,lXt,25,t.b+1,15,1),t.c=P7(SLe,lXt,25,t.b,15,1),t.d=0}function R8(t,e){t.a.ue(e.d,t.b)>0&&(Gz(t.c,new bV(e.c,e.d,t.d)),t.b=e.d)}function F8(t,e){if(null==t.g||e>=t.i)throw $b(new BI(e,t.i));return t.g[e]}function j8(t,e,n){if(Llt(t,n),null!=n&&!t.wj(n))throw $b(new uw);return n}function $8(t){var e;if(t.Ek())for(e=t.i-1;e>=0;--e)Wet(t,e);return M3(t)}function z8(t){var e,n;if(!t.b)return null;for(n=t.b;e=n.a[0];)n=e;return n}function V8(t,e){var n;return i5(e),(n=b9(t.slice(0,e),t)).length=e,n}function H8(t,e,n,i){xX(),i=i||dne,pSt(t.slice(e,n),t,e,n,-e,i)}function q8(t,e,n,i,r){return e<0?rIt(t,n,i):jz(n,66).Nj().Pj(t,t.yh(),e,i,r)}function U8(t){return iP(t,172)?""+jz(t,172).a:null==t?null:$ft(t)}function G8(t){return iP(t,172)?""+jz(t,172).a:null==t?null:$ft(t)}function W8(t,e){if(e.a)throw $b(new fv(SZt));_G(t.a,e),e.a=t,!t.j&&(t.j=e)}function K8(t,e){mI.call(this,e.rd(),-16449&e.qd()),kK(t),this.a=t,this.c=e}function Y8(t,e){var n,i;return i=e/t.c.Hd().gc()|0,n=e%t.c.Hd().gc(),q6(t,i,n)}function X8(){X8=I,Yie=new VE(rQt,0),Kie=new VE(eQt,1),Xie=new VE(oQt,2)}function Z8(){Z8=I,Mne=new gE("All",0),Pne=new BB,Lne=new DM,One=new MB}function Q8(){Q8=I,Rne=hut((Z8(),Est(Vy(Fne,1),BYt,297,0,[Mne,Pne,Lne,One])))}function J8(){J8=I,nse=hut((Ist(),Est(Vy(fse,1),BYt,405,0,[Zae,tse,Qae,Jae])))}function t9(){t9=I,Rre=hut((Oat(),Est(Vy(Vre,1),BYt,406,0,[Ore,Mre,Pre,Lre])))}function e9(){e9=I,Hre=hut((zbt(),Est(Vy(qre,1),BYt,323,0,[jre,Fre,$re,zre])))}function n9(){n9=I,eoe=hut((Vbt(),Est(Vy(ioe,1),BYt,394,0,[Zre,Xre,Qre,Jre])))}function i9(){i9=I,$ve=hut((qvt(),Est(Vy(zve,1),BYt,393,0,[Ove,Nve,Rve,Fve])))}function r9(){r9=I,ale=hut((Sst(),Est(Vy(ple,1),BYt,360,0,[rle,nle,ile,ele])))}function o9(){o9=I,H_e=hut((Dkt(),Est(Vy(W_e,1),BYt,340,0,[z_e,j_e,$_e,F_e])))}function a9(){a9=I,yle=hut((Dst(),Est(Vy(Tle,1),BYt,411,0,[mle,ble,wle,kle])))}function s9(){s9=I,fwe=hut((dwt(),Est(Vy(kwe,1),BYt,197,0,[uwe,hwe,lwe,cwe])))}function c9(){c9=I,lIe=hut(($lt(),Est(Vy(dIe,1),BYt,396,0,[oIe,aIe,rIe,sIe])))}function l9(){l9=I,xSe=hut((Gvt(),Est(Vy(OSe,1),BYt,285,0,[CSe,vSe,ySe,_Se])))}function u9(){u9=I,JTe=hut((Aft(),Est(Vy(aSe,1),BYt,218,0,[ZTe,YTe,KTe,XTe])))}function h9(){h9=I,nIe=hut((jgt(),Est(Vy(iIe,1),BYt,311,0,[tIe,ZDe,JDe,QDe])))}function d9(){d9=I,jDe=hut((wpt(),Est(Vy(YDe,1),BYt,374,0,[NDe,RDe,ODe,LDe])))}function f9(){f9=I,Vzt(),jPe=NXt,FPe=RXt,zPe=new Mf(NXt),$Pe=new Mf(RXt)}function g9(){g9=I,Vue=new ST(YJt,0),zue=new ST("IMPROVE_STRAIGHTNESS",1)}function p9(t,e){return cV(),Gz(t,new nD(e,ndt(e.e.c.length+e.g.c.length)))}function m9(t,e){return cV(),Gz(t,new nD(e,ndt(e.e.c.length+e.g.c.length)))}function b9(t,e){return 10!=mtt(e)&&Est(tlt(e),e.hm,e.__elementTypeId$,mtt(e),t),t}function w9(t,e){var n;return-1!=(n=y9(t,e,0))&&(s6(t,n),!0)}function k9(t,e){var n;return(n=jz(m6(t.e,e),387))?(OV(n),n.e):null}function v9(t){var e;return XI(t)&&(e=0-t,!isNaN(e))?e:aat(oct(t))}function y9(t,e,n){for(;n<t.c.length;++n)if(iY(e,t.c[n]))return n;return-1}function _9(t,e,n){var i;return yK(t),(i=new ct).a=e,t.a.Nb(new TE(i,n)),i.a}function C9(t){var e;return yK(t),e=P7(MLe,VXt,25,0,15,1),gC(t.a,new dg(e)),e}function A9(t){var e;return e=jz(PH(t.j,0),11),jz(wxt(e,(lKt(),fde)),11)}function x9(t){var e;if(!Qit(t))throw $b(new ww);return t.e=1,e=t.d,t.d=null,e}function E9(t,e){var n;this.f=t,this.b=e,n=jz(OW(t.b,e),283),this.c=n?n.b:null}function T9(){Vj(),this.b=new Pb,this.f=new Pb,this.g=new Pb,this.e=new Pb}function S9(t,e){this.a=P7(Sse,o1t,10,t.a.c.length,0,1),Ymt(t.a,this.a),this.b=e}function D9(t){var e;for(e=t.p+1;e<t.c.a.c.length;++e)--jz(PH(t.c.a,e),10).p}function I9(t){var e;null!=(e=t.Ai())&&-1!=t.d&&jz(e,92).Ng(t),t.i&&t.i.Fi()}function B9(t){WM(this),this.g=t?EZ(t,t.$d()):null,this.f=t,vX(this),this._d()}function M9(t,e,n,i,r,o,a){vit.call(this,e,i,r,o,a),this.c=t,this.b=n}function P9(t,e,n,i,r){return kK(t),kK(e),kK(n),kK(i),kK(r),new vG(t,e,i)}function L9(t,e){if(e<0)throw $b(new Dv(J5t+e));return g3(t,e+1),PH(t.j,e)}function O9(t,e,n,i){if(!t)throw $b(new Rv(BRt(e,Est(Vy(Ite,1),zKt,1,5,[n,i]))))}function N9(t,e){return iY(e,PH(t.f,0))||iY(e,PH(t.f,1))||iY(e,PH(t.f,2))}function R9(t,e){BF(jz(jz(t.f,33).We((cKt(),oTe)),98))&&Yft(wY(jz(t.f,33)),e)}function F9(t,e){var n,i;return!(i=(n=jz(e,675)).Oh())&&n.Rh(i=new OD(t,e)),i}function j9(t,e){var n,i;return!(i=(n=jz(e,677)).pk())&&n.tk(i=new N0(t,e)),i}function $9(t){return t.b||(t.b=new Xq(t,GBe,t),!t.a&&(t.a=new aR(t,t))),t.b}function z9(){z9=I,Sae=new GE("XY",0),Tae=new GE("X",1),Dae=new GE("Y",2)}function V9(){V9=I,ire=new HE("TOP",0),nre=new HE(eQt,1),ere=new HE(sQt,2)}function H9(){H9=I,xhe=new PT(YJt,0),Ehe=new PT("TOP",1),Ahe=new PT(sQt,2)}function q9(){q9=I,Nwe=new VT("INPUT_ORDER",0),Rwe=new VT("PORT_DEGREE",1)}function U9(){U9=I,dee=CM(xXt,xXt,524287),fee=CM(0,0,TXt),gee=F4(1),F4(2),pee=F4(0)}function G9(t,e,n){t.a.c=P7(Ite,zKt,1,0,5,1),GHt(t,e,n),0==t.a.c.length||ujt(t,e)}function W9(t){var e,n;return YG(t,0,n=t.length,e=P7(TLe,WYt,25,n,15,1),0),e}function K9(t){var e;return t.dh()||(e=hW(t.Tg())-t.Ah(),t.ph().bk(e)),t.Pg()}function Y9(t){var e;return null==(e=ent(kat(t,32)))&&(umt(t),e=ent(kat(t,32))),e}function X9(t,e){var n;return(n=Igt(t.d,e))>=0?Qbt(t,n,!0,!0):rIt(t,e,!0)}function Z9(t,e){var n,i;return Cx(),n=l3(t),i=l3(e),!!n&&!!i&&!Rbt(n.k,i.k)}function Q9(t,e){Ent(t,null==e||GF((kK(e),e))||isNaN((kK(e),e))?0:(kK(e),e))}function J9(t,e){Tnt(t,null==e||GF((kK(e),e))||isNaN((kK(e),e))?0:(kK(e),e))}function ttt(t,e){xnt(t,null==e||GF((kK(e),e))||isNaN((kK(e),e))?0:(kK(e),e))}function ett(t,e){Ant(t,null==e||GF((kK(e),e))||isNaN((kK(e),e))?0:(kK(e),e))}function ntt(t){(this.q?this.q:(AX(),AX(),lne)).Ac(t.q?t.q:(AX(),AX(),lne))}function itt(t,e){return iP(e,99)&&jz(e,18).Bb&$Xt?new PI(e,t):new Iat(e,t)}function rtt(t,e){return iP(e,99)&&jz(e,18).Bb&$Xt?new PI(e,t):new Iat(e,t)}function ott(t,e){Wre=new ne,toe=e,jz((Gre=t).b,65),N7(Gre,Wre,null),aHt(Gre)}function att(t,e,n){var i;return i=t.g[e],vP(t,e,t.oi(e,n)),t.gi(e,n,i),t.ci(),i}function stt(t,e){var n;return(n=t.Xc(e))>=0&&(t.$c(n),!0)}function ctt(t){var e;return t.d!=t.r&&(e=Syt(t),t.e=!!e&&e.Cj()==_8t,t.d=e),t.e}function ltt(t,e){var n;for(wW(t),wW(e),n=!1;e.Ob();)n|=t.Fc(e.Pb());return n}function utt(t,e){var n;return(n=jz(OW(t.e,e),387))?(oP(t,n),n.e):null}function htt(t){var e,n;return e=t/60|0,0==(n=t%60)?""+e:e+":"+n}function dtt(t,e){return Ydt(t),new OH(t,new NF(new C6(e,t.a)))}function ftt(t,e){var n=t.a[e],i=(Qst(),uee)[typeof n];return i?i(n):vut(typeof n)}function gtt(t){switch(t.g){case 0:return OKt;case 1:return-1;default:return 0}}function ptt(t){return Ryt(t,(U9(),pee))<0?-EL(oct(t)):t.l+t.m*SXt+t.h*DXt}function mtt(t){return null==t.__elementTypeCategory$?10:t.__elementTypeCategory$}function btt(t){var e;return null!=(e=0==t.b.c.length?null:PH(t.b,0))&&lrt(t,0),e}function wtt(t,e){for(;e[0]<t.length&&VI(" \t\r\n",XAt(lY(t,e[0])))>=0;)++e[0]}function ktt(t,e){this.e=e,this.a=Kat(t),this.a<54?this.f=v2(t):this.c=Jmt(t)}function vtt(t,e,n,i){fKt(),Db.call(this,26),this.c=t,this.a=e,this.d=n,this.b=i}function ytt(t,e,n){var i,r;for(i=10,r=0;r<n-1;r++)e<i&&(t.a+="0"),i*=10;t.a+=e}function _tt(t,e){var n;for(n=0;t.e!=t.i.gc();)gH(e,vbt(t),ndt(n)),n!=OKt&&++n}function Ctt(t,e){var n;for(++t.d,++t.c[e],n=e+1;n<t.a.length;)++t.a[n],n+=n&-n}function Att(t,e){var n,i,r;r=e.c.i,i=(n=jz(OW(t.f,r),57)).d.c-n.e.c,Xrt(e.a,i,0)}function xtt(t){var e,n;return e=t+128,!(n=(vH(),yee)[e])&&(n=yee[e]=new If(t)),n}function Ett(t,e){var n;return kK(e),Ptt(!!(n=t[":"+e]),Est(Vy(Ite,1),zKt,1,5,[e])),n}function Ttt(t){var e,n;if(t.b){n=null;do{e=t.b,t.b=null,n=cTt(e,n)}while(t.b);t.b=n}}function Stt(t){var e,n;if(t.a){n=null;do{e=t.a,t.a=null,n=cTt(e,n)}while(t.a);t.a=n}}function Dtt(t){var e;for(++t.a,e=t.c.a.length;t.a<e;++t.a)if(t.c.b[t.a])return}function Itt(t,e){var n,i;for(n=(i=e.c)+1;n<=e.f;n++)t.a[n]>t.a[i]&&(i=n);return i}function Btt(t,e){var n;return 0==(n=Sft(t.e.c,e.e.c))?Edt(t.e.d,e.e.d):n}function Mtt(t,e){return 0==e.e||0==t.e?ene:(BIt(),ILt(t,e))}function Ptt(t,e){if(!t)throw $b(new Rv(XLt("Enum constant undefined: %s",e)))}function Ltt(){Ltt=I,ose=new xe,ase=new Ce,ise=new Ie,rse=new Be,sse=new Me}function Ott(){Ott=I,mie=new jE("BY_SIZE",0),bie=new jE("BY_SIZE_AND_SHAPE",1)}function Ntt(){Ntt=I,Loe=new UE("EADES",0),Ooe=new UE("FRUCHTERMAN_REINGOLD",1)}function Rtt(){Rtt=I,Aue=new xT("READING_DIRECTION",0),xue=new xT("ROTATION",1)}function Ftt(){Ftt=I,Cue=hut((Kwt(),Est(Vy(Eue,1),BYt,335,0,[wue,bue,vue,yue,kue])))}function jtt(){jtt=I,vwe=hut((Pwt(),Est(Vy(Dwe,1),BYt,315,0,[wwe,pwe,mwe,gwe,bwe])))}function $tt(){$tt=I,Sle=hut((MCt(),Est(Vy(Nle,1),BYt,363,0,[Cle,xle,Ele,Ale,_le])))}function ztt(){ztt=I,Hde=hut((Cft(),Est(Vy(ewe,1),BYt,163,0,[zde,Rde,Fde,jde,$de])))}function Vtt(){Vtt=I,sAe=hut((BEt(),Est(Vy(HAe,1),BYt,316,0,[eAe,nAe,oAe,iAe,rAe])))}function Htt(){Htt=I,hxe=hut((ibt(),Est(Vy(vxe,1),BYt,175,0,[cxe,sxe,oxe,lxe,axe])))}function qtt(){qtt=I,jCe=hut((XPt(),Est(Vy(HCe,1),BYt,355,0,[LCe,PCe,NCe,OCe,RCe])))}function Utt(){Utt=I,zae=hut((kxt(),Est(Vy(qae,1),BYt,356,0,[Oae,Nae,Rae,Fae,jae])))}function Gtt(){Gtt=I,VTe=hut((jht(),Est(Vy(GTe,1),BYt,103,0,[jTe,FTe,RTe,NTe,$Te])))}function Wtt(){Wtt=I,HSe=hut((rbt(),Est(Vy(XSe,1),BYt,249,0,[jSe,zSe,RSe,FSe,$Se])))}function Ktt(){Ktt=I,SDe=hut((vGt(),Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])))}function Ytt(t,e){var n;return(n=jz(OW(t.a,e),134))||(n=new Qt,WK(t.a,e,n)),n}function Xtt(t){var e;return!!(e=jz(wxt(t,(lKt(),Ohe)),305))&&e.a==t}function Ztt(t){var e;return!!(e=jz(wxt(t,(lKt(),Ohe)),305))&&e.i==t}function Qtt(t,e){return kK(e),LU(t),!!t.d.Ob()&&(e.td(t.d.Pb()),!0)}function Jtt(t){return Kut(t,OKt)>0?OKt:Kut(t,FYt)<0?FYt:fq(t)}function tet(t){return t<3?(hit(t,SYt),t+1):t<DYt?EQ(t/.75+1):OKt}function eet(t,e){var n;return null==t.i&&V$t(t),n=t.i,e>=0&&e<n.length?n[e]:null}function net(t,e,n){var i;if(null==e)throw $b(new gw);return i=HQ(t,e),e5(t,e,n),i}function iet(t){return t.a>=-.01&&t.a<=uQt&&(t.a=0),t.b>=-.01&&t.b<=uQt&&(t.b=0),t}function ret(t,e){return e==(ij(),ij(),Cne)?t.toLocaleLowerCase():t.toLowerCase()}function oet(t){return(2&t.i?"interface ":1&t.i?"":"class ")+(yN(t),t.o)}function aet(t){var e;e=new Ik,l8((!t.q&&(t.q=new tG(WBe,t,11,10)),t.q),e)}function set(t,e){var n;return n=e>0?e-1:e,I_(B_(jnt(BV(new Uk,n),t.n),t.j),t.k)}function cet(t,e,n,i){t.j=-1,VIt(t,_Tt(t,e,n),(Zx(),jz(e,66).Mj().Ok(i)))}function uet(t){this.g=t,this.f=new Mb,this.a=i.Math.min(this.g.c.c,this.g.d.c)}function het(t){this.b=new Mb,this.a=new Mb,this.c=new Mb,this.d=new Mb,this.e=t}function det(t,e){this.a=new Pb,this.e=new Pb,this.b=(Aut(),owe),this.c=t,this.b=e}function fet(t,e,n){MR.call(this),Let(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function get(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(nv(),qte)}function pet(t){if(t<0)throw $b(new Rv("Illegal Capacity: "+t));this.g=this.ri(t)}function met(t,e){if(0>t||t>e)throw $b(new _y("fromIndex: 0, toIndex: "+t+lZt+e))}function bet(t){var e;if(t.a==t.b.a)throw $b(new ww);return e=t.a,t.c=e,t.a=t.a.e,e}function wet(t){var e;CO(!!t.c),e=t.c.a,Iet(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function ket(t,e){var n;return Ydt(t),n=new mX(t,t.a.rd(),4|t.a.qd(),e),new OH(t,n)}function vet(t,e){var n,i;return(n=jz(hht(t.d,e),14))?(i=e,t.e.pc(i,n)):null}function yet(t,e){var n;for(n=t.Kc();n.Ob();)lct(jz(n.Pb(),70),(lKt(),ode),e)}function _et(t){var e;return(e=Vv(CN(wxt(t,(zWt(),rme)))))<0&&lct(t,rme,e=0),e}function Cet(t,e,n){var r;jyt(n,r=i.Math.max(0,t.b/2-.5),1),Gz(e,new eT(n,r))}function Aet(t,e,n){return EQ($V(t.a.e[jz(e.a,10).p]-t.a.e[jz(n.a,10).p]))}function xet(t,e,n,i,r,o){var a;AJ(a=G4(i),r),CJ(a,o),ZDt(t.a,i,new Bj(a,e,n.f))}function Eet(t,e){var n;if(!(n=PLt(t.Tg(),e)))throw $b(new Rv(i6t+e+a6t));return n}function Tet(t,e){var n;for(n=t;XQ(n);)if((n=XQ(n))==e)return!0;return!1}function Set(t,e){var n,i,r;for(i=e.a.cd(),n=jz(e.a.dd(),14).gc(),r=0;r<n;r++)t.td(i)}function Det(t,e){var n,i,r,o;for(kK(e),r=0,o=(i=t.c).length;r<o;++r)n=i[r],e.td(n)}function Iet(t,e){var n;return n=e.c,e.a.b=e.b,e.b.a=e.a,e.a=e.b=null,e.c=null,--t.b,n}function Bet(t,e){return!(!e||t.b[e.g]!=e||(IW(t.b,e.g,null),--t.c,0))}function Met(t,e){return!!Qrt(t,e,fq(rft(xYt,nY(fq(rft(null==e?0:Jct(e),EYt)),15))))}function Pet(t,e){BF(jz(wxt(jz(t.e,10),(zWt(),tbe)),98))&&(AX(),bM(jz(t.e,10).j,e))}function Let(t){t.b=(X8(),Kie),t.f=(V9(),nre),t.d=(hit(2,IYt),new X6(2)),t.e=new V_}function Oet(){Oet=I,Vie=new zE("BEGIN",0),Hie=new zE(eQt,1),qie=new zE("END",2)}function Net(){Net=I,HTe=new RS(eQt,0),qTe=new RS("HEAD",1),UTe=new RS("TAIL",2)}function Ret(){return lBt(),Est(Vy(iBe,1),BYt,237,0,[tBe,ZIe,QIe,XIe,JIe,KIe,WIe,YIe])}function Fet(){return ETt(),Est(Vy(Axe,1),BYt,277,0,[kxe,dxe,mxe,wxe,fxe,gxe,pxe,bxe])}function jet(){return vNt(),Est(Vy(eue,1),BYt,270,0,[jle,Vle,Fle,Ule,zle,$le,qle,Hle])}function $et(){return cLt(),Est(Vy(Lwe,1),BYt,260,0,[Twe,_we,xwe,Cwe,Awe,ywe,Ewe,Swe])}function zet(){zet=I,ZSe=hut((YCt(),Est(Vy(rDe,1),BYt,98,0,[YSe,KSe,WSe,qSe,GSe,USe])))}function Vet(){Vet=I,Qie=(Oet(),Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length,Zie=Qie}function Het(t){this.b=(wW(t),new JF(t)),this.a=new Mb,this.d=new Mb,this.e=new V_}function qet(t){var e;return(e=i.Math.sqrt(t.a*t.a+t.b*t.b))>0&&(t.a/=e,t.b/=e),t}function Uet(t){var e;return t.w?t.w:((e=W1(t))&&!e.kh()&&(t.w=e),e)}function Get(t){var e;return null==t?null:KAt(e=jz(t,190),e.length)}function Wet(t,e){if(null==t.g||e>=t.i)throw $b(new BI(e,t.i));return t.li(e,t.g[e])}function Ket(t){var e,n;for(e=t.a.d.j,n=t.c.d.j;e!=n;)srt(t.b,e),e=Adt(e);srt(t.b,e)}function Yet(t){var e;for(e=0;e<t.c.length;e++)(u1(e,t.c.length),jz(t.c[e],11)).p=e}function Xet(t,e,n){var i,r,o;for(r=e[n],i=0;i<r.length;i++)o=r[i],t.e[o.c.p][o.p]=i}function Zet(t,e){var n,i,r,o;for(r=0,o=(i=t.d).length;r<o;++r)n=i[r],uP(t.g,n).a=e}function Qet(t,e){var n;for(n=cbt(t,0);n.b!=n.d.c;)qR(jz(h3(n),8),e);return t}function Jet(t,e){return UR(jM(jz(OW(t.g,e),8)),RM(jz(OW(t.f,e),460).b))}function tnt(t){var e;return p2(t.e,t),xO(t.b),t.c=t.a,e=jz(t.a.Pb(),42),t.b=gst(t),e}function ent(t){var e;return XV(null==t||Array.isArray(t)&&!((e=mtt(t))>=14&&e<=16)),t}function nnt(t,e,n){var i=function(){return t.apply(i,arguments)};return e.apply(i,n),i}function int(t,e,n){var i,r;i=e;do{r=Vv(t.p[i.p])+n,t.p[i.p]=r,i=t.a[i.p]}while(i!=e)}function rnt(t,e){var n,i;i=t.a,n=Yht(t,e,null),i!=e&&!t.e&&(n=oUt(t,e,n)),n&&n.Fi()}function ont(t,e){return cM(),iit(RYt),i.Math.abs(t-e)<=RYt||t==e||isNaN(t)&&isNaN(e)}function ant(t,e){return cM(),iit(RYt),i.Math.abs(t-e)<=RYt||t==e||isNaN(t)&&isNaN(e)}function snt(t,e){return Fxt(),yM(t.b.c.length-t.e.c.length,e.b.c.length-e.e.c.length)}function cnt(t,e){return Z_(Zrt(t,e,fq(rft(xYt,nY(fq(rft(null==e?0:Jct(e),EYt)),15)))))}function lnt(){lnt=I,Dse=hut((aEt(),Est(Vy(Ise,1),BYt,267,0,[Ese,xse,Cse,Tse,Ase,_se])))}function unt(){unt=I,Jxe=hut((fCt(),Est(Vy(zTe,1),BYt,291,0,[Zxe,Xxe,Yxe,Wxe,Gxe,Kxe])))}function hnt(){hnt=I,Pxe=hut((fwt(),Est(Vy(Qxe,1),BYt,248,0,[Exe,Dxe,Ixe,Bxe,Txe,Sxe])))}function dnt(){dnt=I,nue=hut((BTt(),Est(Vy(oue,1),BYt,227,0,[Zle,Jle,Xle,Qle,tue,Yle])))}function fnt(){fnt=I,ahe=hut((Zxt(),Est(Vy(bhe,1),BYt,275,0,[ihe,the,rhe,nhe,ehe,Jue])))}function gnt(){gnt=I,Que=hut(($_t(),Est(Vy(ohe,1),BYt,274,0,[Kue,Wue,Xue,Gue,Yue,Uue])))}function pnt(){pnt=I,nwe=hut((CAt(),Est(Vy(awe,1),BYt,313,0,[Jbe,Zbe,Ybe,Xbe,twe,Qbe])))}function mnt(){mnt=I,$ue=hut((pEt(),Est(Vy(Hue,1),BYt,276,0,[Lue,Pue,Nue,Oue,Fue,Rue])))}function bnt(){bnt=I,Xve=hut((OTt(),Est(Vy(Rye,1),BYt,327,0,[Kve,qve,Gve,Uve,Wve,Hve])))}function wnt(){wnt=I,oDe=hut((hDt(),Est(Vy(TDe,1),BYt,273,0,[nDe,tDe,eDe,JSe,QSe,iDe])))}function knt(){knt=I,sSe=hut((JAt(),Est(Vy(wSe,1),BYt,312,0,[rSe,nSe,oSe,tSe,iSe,eSe])))}function vnt(){return JBt(),Est(Vy(VSe,1),BYt,93,0,[TSe,ESe,DSe,LSe,PSe,MSe,ISe,BSe,SSe])}function ynt(t,e){var n;n=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,0,n,t.a))}function _nt(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,1,n,t.b))}function Cnt(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,3,n,t.b))}function Ant(t,e){var n;n=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,3,n,t.f))}function xnt(t,e){var n;n=t.g,t.g=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,4,n,t.g))}function Ent(t,e){var n;n=t.i,t.i=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,5,n,t.i))}function Tnt(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,6,n,t.j))}function Snt(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,1,n,t.j))}function Dnt(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,4,n,t.c))}function Int(t,e){var n;n=t.k,t.k=e,4&t.Db&&!(1&t.Db)&&dat(t,new l5(t,2,n,t.k))}function Bnt(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&dat(t,new u5(t,2,n,t.d))}function Mnt(t,e){var n;n=t.s,t.s=e,4&t.Db&&!(1&t.Db)&&dat(t,new u5(t,4,n,t.s))}function Pnt(t,e){var n;n=t.t,t.t=e,4&t.Db&&!(1&t.Db)&&dat(t,new u5(t,5,n,t.t))}function Lnt(t,e){var n;n=t.F,t.F=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,5,n,e))}function Ont(t,e){var n;return(n=jz(OW((Qx(),mBe),t),55))?n.xj(e):P7(Ite,zKt,1,e,5,1)}function Nnt(t,e){var n;return e in t.a&&(n=HQ(t,e).he())?n.a:null}function Rnt(t,e){var n,i;return J_(),i=new cc,!!e&&SLt(i,e),Lit(n=i,t),n}function Fnt(t,e,n){if(Llt(t,n),!t.Bk()&&null!=n&&!t.wj(n))throw $b(new uw);return n}function jnt(t,e){return t.n=e,t.n?(t.f=new Mb,t.e=new Mb):(t.f=null,t.e=null),t}function $nt(t,e,n,i,r,o){var a;return Ynt(n,a=bW(t,e)),a.i=r?8:0,a.f=i,a.e=r,a.g=o,a}function znt(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=t,this.a=n}function Vnt(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=t,this.a=n}function Hnt(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=t,this.a=n}function qnt(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=t,this.a=n}function Unt(t,e,n,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=t,this.a=n}function Gnt(t,e){var n,i,r,o;for(r=0,o=(i=e).length;r<o;++r)n=i[r],W8(t.a,n);return t}function Wnt(t){var e,n,i;for(n=0,i=(e=t).length;n<i;++n)wW(e[n]);return new DI(t)}function Knt(t){var e=/function(?:\s+([\w$]+))?\s*\(/.exec(t);return e&&e[1]||qYt}function Ynt(t,e){if(t){e.n=t;var n=qQ(e);n?n.gm=e:xKt[t]=[e]}}function Xnt(t,e,n){var r;return r=t.length,FSt(t,0,e,0,i.Math.min(n,r),!0),e}function Znt(t,e,n){var i,r;for(r=e.Kc();r.Ob();)i=jz(r.Pb(),79),_G(t,jz(n.Kb(i),33))}function Qnt(){YC();for(var t=EKt,e=0;e<arguments.length;e++)t.push(arguments[e])}function Jnt(t,e){var n,i,r;for(i=0,r=(n=e).length;i<r;++i)n4(t,n[i],t.c.b,t.c)}function tit(t,e){t.b=i.Math.max(t.b,e.d),t.e+=e.r+(0==t.a.c.length?0:t.c),Gz(t.a,e)}function eit(t){CO(t.c>=0),imt(t.d,t.c)<0&&(t.a=t.a-1&t.d.a.length-1,t.b=t.d.c),t.c=-1}function nit(t){return t.a<54?t.f<0?-1:t.f>0?1:0:(!t.c&&(t.c=kut(t.f)),t.c).e}function iit(t){if(!(t>=0))throw $b(new Rv("tolerance ("+t+") must be >= 0"));return t}function rit(){return ixe||vlt(ixe=new DRt,Est(Vy(Rie,1),zKt,130,0,[new Bh])),ixe}function oit(){oit=I,Vwe=new HT(lQt,0),$we=new HT("INPUT",1),zwe=new HT("OUTPUT",2)}function ait(){ait=I,due=new CT("ARD",0),gue=new CT("MSD",1),fue=new CT("MANUAL",2)}function sit(){sit=I,Ske=new YT("BARYCENTER",0),Dke=new YT(_1t,1),Ike=new YT(C1t,2)}function cit(t,e){var n;if(n=t.gc(),e<0||e>n)throw $b(new JR(e,n));return new OF(t,e)}function lit(t,e){var n;return iP(e,42)?t.c.Mc(e):(n=ipt(t,e),Wpt(t,e),n)}function uit(t,e,n){return Sut(t,e),Prt(t,n),Mnt(t,0),Pnt(t,1),Jht(t,!0),Xht(t,!0),t}function hit(t,e){if(t<0)throw $b(new Rv(e+" cannot be negative but was: "+t));return t}function dit(t,e){var n,i;for(n=0,i=t.gc();n<i;++n)if(iY(e,t.Xb(n)))return n;return-1}function fit(t){var e;for(e=t.c.Cc().Kc();e.Ob();)jz(e.Pb(),14).$b();t.c.$b(),t.d=0}function git(t){var e,n,i,r;for(i=0,r=(n=t.a).length;i<r;++i)KG(e=n[i],e.length,null)}function pit(t){var e,n;if(0==t)return 32;for(n=0,e=1;!(e&t);e<<=1)++n;return n}function mit(t){var e;for(e=new Gf(evt(t));e.a<e.c.c.length;)jz(Q1(e),680).Gf()}function bit(t){mx(),this.g=new Pb,this.f=new Pb,this.b=new Pb,this.c=new pQ,this.i=t}function wit(){this.f=new V_,this.d=new dk,this.c=new V_,this.a=new Mb,this.b=new Mb}function kit(t,e,n,i){this.rj(),this.a=e,this.b=t,this.c=null,this.c=new uF(this,e,n,i)}function vit(t,e,n,i,r){this.d=t,this.n=e,this.g=n,this.o=i,this.p=-1,r||(this.o=-2-i-1)}function yit(){SP.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=v6t}function _it(){return JFt(),Est(Vy(eIe,1),BYt,259,0,[VDe,qDe,zDe,UDe,GDe,KDe,WDe,HDe,$De])}function Cit(){return tRt(),Est(Vy(jie,1),BYt,250,0,[Oie,Iie,Bie,Die,Pie,Lie,Mie,Sie,Tie])}function Ait(){Ait=I,Dee=Est(Vy(SLe,1),lXt,25,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function xit(){xit=I,kke=fH(fH(fH(new j2,(kxt(),Oae),(hKt(),ice)),Nae,Sce),Rae,Tce)}function Eit(){Eit=I,vke=fH(fH(fH(new j2,(kxt(),Oae),(hKt(),ice)),Nae,Sce),Rae,Tce)}function Tit(){Tit=I,Cke=fH(fH(fH(new j2,(kxt(),Oae),(hKt(),ice)),Nae,Sce),Rae,Tce)}function Sit(){Sit=I,Eke=Gq(fH(fH(new j2,(kxt(),Rae),(hKt(),Bce)),Fae,yce),jae,Ice)}function Dit(){Dit=I,cue=new _T("LAYER_SWEEP",0),sue=new _T($1t,1),lue=new _T(YJt,2)}function Iit(t,e){var n,i;return n=t.c,(i=e.e[t.p])>0?jz(PH(n.a,i-1),10):null}function Bit(t,e){var n;n=t.k,t.k=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,2,n,t.k))}function Mit(t,e){var n;n=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,8,n,t.f))}function Pit(t,e){var n;n=t.i,t.i=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,7,n,t.i))}function Lit(t,e){var n;n=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,8,n,t.a))}function Oit(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,0,n,t.b))}function Nit(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,0,n,t.b))}function Rit(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,1,n,t.c))}function Fit(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,1,n,t.c))}function jit(t,e){var n;n=t.c,t.c=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,4,n,t.c))}function $it(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,1,n,t.d))}function zit(t,e){var n;n=t.D,t.D=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,2,n,t.D))}function Vit(t,e){t.r>0&&t.c<t.r&&(t.c+=e,t.i&&t.i.d>0&&0!=t.g&&Vit(t.i,e/t.r*t.i.d))}function Hit(t,e,n){var i;t.b=e,t.a=n,i=512&~t.a?new Nu:new Fk,t.c=ANt(i,t.b,t.a)}function qit(t,e){return BOt(t.e,e)?(Zx(),ctt(e)?new uH(e,t):new PD(e,t)):new ND(e,t)}function Uit(t,e){return X_(Qrt(t.a,e,fq(rft(xYt,nY(fq(rft(null==e?0:Jct(e),EYt)),15)))))}function Git(t,e,n){return P9(t,new lg(e),new at,new ug(n),Est(Vy(Qne,1),BYt,132,0,[]))}function Wit(t){return 0>t?new WA:new IN(null,new b4(t+1,t))}function Kit(t,e){var n;return AX(),n=new UA(1),UD(t)?bJ(n,t,e):ySt(n.f,t,e),new Uf(n)}function Yit(t,e){var n,i;return(n=t.o+t.p)<(i=e.o+e.p)?-1:n==i?0:1}function Xit(t){var e;return iP(e=wxt(t,(lKt(),fde)),160)?wgt(jz(e,160)):null}function Zit(t){var e;return(t=i.Math.max(t,2))>(e=vct(t))?(e<<=1)>0?e:DYt:e}function Qit(t){switch(oL(3!=t.e),t.e){case 2:return!1;case 0:return!0}return R4(t)}function Jit(t,e){var n;return!!iP(e,8)&&(n=jz(e,8),t.a==n.a&&t.b==n.b)}function trt(t,e,n){var i,r;return r=e>>5,i=31&e,t0(vU(t.n[n][r],fq(wU(i,1))),3)}function ert(t,e){var n,i;for(i=e.vc().Kc();i.Ob();)b_t(t,(n=jz(i.Pb(),42)).cd(),n.dd())}function nrt(t,e){var n;n=new ne,jz(e.b,65),jz(e.b,65),jz(e.b,65),Det(e.a,new _z(t,n,e))}function irt(t,e){var n;n=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,21,n,t.b))}function rrt(t,e){var n;n=t.d,t.d=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,11,n,t.d))}function ort(t,e){var n;n=t.j,t.j=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,13,n,t.j))}function art(t,e,n){var i,r,o;for(o=t.a.length-1,r=t.b,i=0;i<n;r=r+1&o,++i)IW(e,i,t.a[r])}function srt(t,e){var n;return kK(e),n=e.g,!t.b[n]&&(IW(t.b,n,e),++t.c,!0)}function crt(t,e){var n;return!((n=null==e?-1:y9(t.b,e,0))<0||(lrt(t,n),0))}function lrt(t,e){var n;n=s6(t.b,t.b.c.length-1),e<t.b.c.length&&(i4(t.b,e,n),RSt(t,e))}function urt(t,e){0==(k4(),Kne?null:e.c).length&&HN(e,new W),bJ(t.a,Kne?null:e.c,e)}function hrt(t,e){DAt(e,"Hierarchical port constraint processing",1),dbt(t),XWt(t),zEt(e)}function drt(t,e){var n,i;for(i=e.Kc();i.Ob();)n=jz(i.Pb(),266),t.b=!0,_G(t.e,n),n.b=t}function frt(t,e){var n,i;return n=1-e,i=t.a[n],t.a[n]=i.a[e],i.a[e]=t,t.b=!0,i.b=!1,i}function grt(t,e){var n,i;return n=jz(wxt(t,(zWt(),sbe)),8),i=jz(wxt(e,sbe),8),Edt(n.b,i.b)}function prt(t){Oq.call(this),this.b=Vv(CN(wxt(t,(zWt(),wbe)))),this.a=jz(wxt(t,Zpe),218)}function mrt(t,e,n){V2.call(this,t,e,n),this.a=new Pb,this.b=new Pb,this.d=new Gp(this)}function brt(t){this.e=t,this.d=new hC(tet(gU(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function wrt(t){this.b=t,this.a=P7(SLe,lXt,25,t+1,15,1),this.c=P7(SLe,lXt,25,t,15,1),this.d=0}function krt(t,e,n){var i;return yOt(t,e,i=new Mb,n,!0,!0),t.b=new wrt(i.c.length),i}function vrt(t,e){var n;return(n=jz(OW(t.c,e),458))||((n=new ik).c=e,WK(t.c,n.c,n)),n}function yrt(t,e){var n=t.a,i=0;for(var r in n)n.hasOwnProperty(r)&&(e[i++]=r);return e}function _rt(t){return null==t.b?(Yx(),Yx(),MMe):t.Lk()?t.Kk():t.Jk()}function Crt(t){var e,n;for(n=new DP(t);n.e!=n.i.gc();)Ent(e=jz(vbt(n),33),0),Tnt(e,0)}function Art(){Art=I,sae=new ob(DJt),cae=new ob(IJt),aae=new ob(BJt),oae=new ob(MJt)}function xrt(){xrt=I,zse=new ZE("TO_INTERNAL_LTR",0),$se=new ZE("TO_INPUT_DIRECTION",1)}function Ert(){Ert=I,Kye=new fS("P1_NODE_PLACEMENT",0),Yye=new fS("P2_EDGE_ROUTING",1)}function Trt(){Trt=I,Ole=new kT("START",0),Lle=new kT("MIDDLE",1),Ple=new kT("END",2)}function Srt(){Srt=I,Jce=new eR("edgelabelcenterednessanalysis.includelabel",(cL(),mee))}function Drt(t,e){XA(DY(new OH(null,new d1(new Ef(t.b),1)),new XS(t,e)),new QS(t,e))}function Irt(){this.c=new TC(0),this.b=new TC($3t),this.d=new TC(j3t),this.a=new TC(ZQt)}function Brt(t){var e,n;for(n=t.c.a.ec().Kc();n.Ob();)Hd(e=jz(n.Pb(),214),new zxt(e.e))}function Mrt(t){var e,n;for(n=t.c.a.ec().Kc();n.Ob();)Vd(e=jz(n.Pb(),214),new WU(e.f))}function Prt(t,e){var n;n=t.zb,t.zb=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,1,n,t.zb))}function Lrt(t,e){var n;n=t.xb,t.xb=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,3,n,t.xb))}function Ort(t,e){var n;n=t.yb,t.yb=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,2,n,t.yb))}function Nrt(t,e){var n;(n=new Sk).n=e,l8((!t.s&&(t.s=new tG(RBe,t,21,17)),t.s),n)}function Rrt(t,e){var n;(n=new pN).n=e,l8((!t.s&&(t.s=new tG(RBe,t,21,17)),t.s),n)}function Frt(t,e){var n,i;for(H8(n=t.Pc(),0,n.length,e),i=0;i<n.length;i++)t._c(i,n[i])}function jrt(t,e){var n,i,r;for(kK(e),n=!1,r=e.Kc();r.Ob();)i=r.Pb(),n|=t.Fc(i);return n}function $rt(t){var e,n,i;for(e=0,i=t.Kc();i.Ob();)e=~~(e+=null!=(n=i.Pb())?Jct(n):0);return e}function zrt(t){var e;return 0==t?"UTC":(t<0?(t=-t,e="UTC+"):e="UTC-",e+htt(t))}function Vrt(t,e){var n;return iP(e,14)?(n=jz(e,14),t.Gc(n)):ltt(t,jz(wW(e),20).Kc())}function Hrt(t,e,n){det.call(this,e,n),this.d=P7(Sse,o1t,10,t.a.c.length,0,1),Ymt(t.a,this.d)}function qrt(t){t.a=null,t.e=null,t.b.c=P7(Ite,zKt,1,0,5,1),t.f.c=P7(Ite,zKt,1,0,5,1),t.c=null}function Urt(t,e){e?null==t.B&&(t.B=t.D,t.D=null):null!=t.B&&(t.D=t.B,t.B=null)}function Grt(t,e){return Vv(CN(IL(Bht(IY(new OH(null,new d1(t.c.b,16)),new Pp(t)),e))))}function Wrt(t,e){return Vv(CN(IL(Bht(IY(new OH(null,new d1(t.c.b,16)),new Mp(t)),e))))}function Krt(t,e){DAt(e,v1t,1),XA(dtt(new OH(null,new d1(t.b,16)),new Qe),new Je),zEt(e)}function Yrt(t,e){var n,i;return n=jz(QBt(t,(Uvt(),B_e)),19),i=jz(QBt(e,B_e),19),yM(n.a,i.a)}function Xrt(t,e,n){var i,r;for(r=cbt(t,0);r.b!=r.d.c;)(i=jz(h3(r),8)).a+=e,i.b+=n;return t}function Zrt(t,e,n){var i;for(i=t.b[n&t.f];i;i=i.b)if(n==i.a&&dK(e,i.g))return i;return null}function Qrt(t,e,n){var i;for(i=t.c[n&t.f];i;i=i.d)if(n==i.f&&dK(e,i.i))return i;return null}function Jrt(t,e,n){var i,r,o;for(i=0,r=0;r<n;r++)o=e[r],t[r]=o<<1|i,i=o>>>31;0!=i&&(t[n]=i)}function tot(t,e){var n,i;for(AX(),i=new Mb,n=0;n<t;++n)i.c[i.c.length]=e;return new Iy(i)}function eot(t){var e;return KD((e=_2(t)).a,0)?(cx(),cx(),xne):(cx(),new wO(e.b))}function not(t){var e;return KD((e=_2(t)).a,0)?(cx(),cx(),xne):(cx(),new wO(e.c))}function iot(t){var e;return KD((e=y2(t)).a,0)?(lx(),lx(),Ene):(lx(),new kO(e.b))}function rot(t){return t.b.c.i.k==(aEt(),Cse)?jz(wxt(t.b.c.i,(lKt(),fde)),11):t.b.c}function oot(t){return t.b.d.i.k==(aEt(),Cse)?jz(wxt(t.b.d.i,(lKt(),fde)),11):t.b.d}function aot(t,e,n,i,r,o,a,s,c,l,u,h,d){return dSt(t,e,n,i,r,o,a,s,c,l,u,h,d),Hdt(t,!1),t}function sot(t,e,n,i,r,o,a){gA.call(this,t,e),this.d=n,this.e=i,this.c=r,this.b=o,this.a=o6(a)}function cot(t,e){typeof window===IKt&&typeof window.$gwt===IKt&&(window.$gwt[t]=e)}function lot(t,e){return Ist(),t==Zae&&e==tse||t==tse&&e==Zae||t==Jae&&e==Qae||t==Qae&&e==Jae}function uot(t,e){return Ist(),t==Zae&&e==Qae||t==Zae&&e==Jae||t==tse&&e==Jae||t==tse&&e==Qae}function hot(t,e){return cM(),iit(uQt),i.Math.abs(0-e)<=uQt||0==e||isNaN(0)&&isNaN(e)?0:t/e}function dot(){return dNt(),Est(Vy(_he,1),BYt,256,0,[che,uhe,hhe,dhe,fhe,ghe,mhe,she,lhe,phe])}function fot(){fot=I,AMe=new Tk,EMe=Est(Vy(RBe,1),P8t,170,0,[]),xMe=Est(Vy(WBe,1),L8t,59,0,[])}function got(){got=I,ske=new WT("NO",0),oke=new WT("GREEDY",1),ake=new WT("LOOK_BACK",2)}function pot(){pot=I,Lse=new ze,Mse=new $e,Pse=new Ve,Bse=new He,Ose=new qe,Nse=new Ue}function mot(t){var e,n;for(n=0,e=new Gf(t.b);e.a<e.c.c.length;)jz(Q1(e),29).p=n,++n}function bot(t,e){var n;return BDt(new PS((n=FAt(t)).c,n.d),new PS(n.b,n.a),t.rf(),e,t.Hf())}function wot(t,e){var n;return t.b?null:(n=set(t,t.g),LV(t.a,n),n.i=t,t.d=e,n)}function kot(t,e,n){DAt(n,"DFS Treeifying phase",1),ypt(t,e),rOt(t,e),t.a=null,t.b=null,zEt(n)}function vot(t,e,n){this.g=t,this.d=e,this.e=n,this.a=new Mb,USt(this),AX(),bM(this.a,null)}function yot(t){this.i=t.gc(),this.i>0&&(this.g=this.ri(this.i+(this.i/8|0)+1),t.Qc(this.g))}function _ot(t,e){CV.call(this,UMe,t,e),this.b=this,this.a=oOt(t.Tg(),eet(this.e.Tg(),this.c))}function Cot(t,e){var n,i;for(kK(e),i=e.vc().Kc();i.Ob();)n=jz(i.Pb(),42),t.zc(n.cd(),n.dd())}function Aot(t,e,n){var i;for(i=n.Kc();i.Ob();)if(!V3(t,e,i.Pb()))return!1;return!0}function xot(t,e,n,i,r){var o;return n&&(o=Igt(e.Tg(),t.c),r=n.gh(e,-1-(-1==o?i:o),null,r)),r}function Eot(t,e,n,i,r){var o;return n&&(o=Igt(e.Tg(),t.c),r=n.ih(e,-1-(-1==o?i:o),null,r)),r}function Tot(t){var e;if(-2==t.b){if(0==t.e)e=-1;else for(e=0;0==t.a[e];e++);t.b=e}return t.b}function Sot(t){switch(t.g){case 2:return vGt(),EDe;case 4:return vGt(),aDe;default:return t}}function Dot(t){switch(t.g){case 1:return vGt(),ADe;case 3:return vGt(),sDe;default:return t}}function Iot(t){var e,n,i;return t.j==(vGt(),sDe)&&(n=AL(e=UIt(t),aDe),(i=AL(e,EDe))||i&&n)}function Bot(t){var e;return new YF(e=jz(t.e&&t.e(),9),jz(WG(e,e.length),9),e.length)}function Mot(t,e){DAt(e,v1t,1),tgt(sx(new xg((gx(),new $Y(t,!1,!1,new je))))),zEt(e)}function Pot(t,e){return cL(),UD(t)?l6(t,AN(e)):qD(t)?_U(t,CN(e)):HD(t)?yU(t,_N(e)):t.wd(e)}function Lot(t,e){e.q=t,t.d=i.Math.max(t.d,e.r),t.b+=e.d+(0==t.a.c.length?0:t.c),Gz(t.a,e)}function Oot(t,e){var n,i,r,o;return r=t.c,n=t.c+t.b,o=t.d,i=t.d+t.a,e.a>r&&e.a<n&&e.b>o&&e.b<i}function Not(t,e,n,i){iP(t.Cb,179)&&(jz(t.Cb,179).tb=null),Prt(t,n),e&&FDt(t,e),i&&t.xk(!0)}function Rot(t,e){var n;zX(n=jz(e,183),"x",t.i),zX(n,"y",t.j),zX(n,T6t,t.g),zX(n,E6t,t.f)}function Fot(){Fot=I,Tke=smt(vI(fH(fH(new j2,(kxt(),Rae),(hKt(),Bce)),Fae,yce),jae),Ice)}function jot(){jot=I,Lke=smt(vI(fH(fH(new j2,(kxt(),Rae),(hKt(),Bce)),Fae,yce),jae),Ice)}function $ot(){$ot=I,U_e=new wS(YJt,0),G_e=new wS("POLAR_COORDINATE",1),q_e=new wS("ID",2)}function zot(){zot=I,Uwe=new qT("EQUALLY",0),Gwe=new qT(wQt,1),Wwe=new qT("NORTH_SOUTH",2)}function Vot(){Vot=I,Iwe=hut((cLt(),Est(Vy(Lwe,1),BYt,260,0,[Twe,_we,xwe,Cwe,Awe,ywe,Ewe,Swe])))}function Hot(){Hot=I,Wle=hut((vNt(),Est(Vy(eue,1),BYt,270,0,[jle,Vle,Fle,Ule,zle,$le,qle,Hle])))}function qot(){qot=I,yxe=hut((ETt(),Est(Vy(Axe,1),BYt,277,0,[kxe,dxe,mxe,wxe,fxe,gxe,pxe,bxe])))}function Uot(){Uot=I,nBe=hut((lBt(),Est(Vy(iBe,1),BYt,237,0,[tBe,ZIe,QIe,XIe,JIe,KIe,WIe,YIe])))}function Got(){Got=I,Kre=new eR("debugSVG",(cL(),!1)),Yre=new eR("overlapsExisted",!0)}function Wot(t,e){return P9(new ag(t),new sg(e),new cg(e),new et,Est(Vy(Qne,1),BYt,132,0,[]))}function Kot(){var t;return zne||(zne=new Nw,YB(t=new w4(""),(ux(),$ne)),urt(zne,t)),zne}function Yot(t,e){for(wW(e);t.Ob();)if(!Yat(jz(t.Pb(),10)))return!1;return!0}function Xot(t,e){var n;return!!(n=GRt(rit(),t))&&(Xbt(e,(cKt(),bTe),n),!0)}function Zot(t,e){var n;for(n=0;n<e.j.c.length;n++)jz(L9(t,n),21).Gc(jz(L9(e,n),14));return t}function Qot(t,e){var n,i;for(i=new Gf(e.b);i.a<i.c.c.length;)n=jz(Q1(i),29),t.a[n.p]=Yxt(n)}function Jot(t,e){var n,i;for(kK(e),i=t.vc().Kc();i.Ob();)n=jz(i.Pb(),42),e.Od(n.cd(),n.dd())}function tat(t,e){iP(e,83)?(jz(t.c,76).Xj(),ert(t,jz(e,83))):jz(t.c,76).Wb(e)}function eat(t){return iP(t,152)?a6(jz(t,152)):iP(t,131)?jz(t,131).a:iP(t,54)?new lv(t):new EA(t)}function nat(t,e){return e<t.b.gc()?jz(t.b.Xb(e),10):e==t.b.gc()?t.a:jz(PH(t.e,e-t.b.gc()-1),10)}function iat(t,e){t.a=ift(t.a,1),t.c=i.Math.min(t.c,e),t.b=i.Math.max(t.b,e),t.d=ift(t.d,e)}function rat(t,e){DAt(e,"Edge and layer constraint edge reversal",1),jUt(MRt(t)),zEt(e)}function oat(t){var e;null==t.d?(++t.e,t.f=0,iht(null)):(++t.e,e=t.d,t.d=null,t.f=0,iht(e))}function aat(t){var e;return 0==(e=t.h)?t.l+t.m*SXt:e==EXt?t.l+t.m*SXt-DXt:t}function sat(t){return zN(),t.A.Hc((wpt(),LDe))&&!t.B.Hc((JFt(),qDe))?Jgt(t):null}function cat(t){if(kK(t),0==t.length)throw $b(new Cy("Zero length BigInteger"));nFt(this,t)}function lat(t){if(!t)throw $b(new Fv("no calls to next() since the last call to remove()"))}function uat(t){return BXt<t&&t<DXt?t<0?i.Math.ceil(t):i.Math.floor(t):aat(pLt(t))}function hat(t,e){var n,i,r;for(n=t.c.Ee(),r=e.Kc();r.Ob();)i=r.Pb(),t.a.Od(n,i);return t.b.Kb(n)}function dat(t,e){var n,i,r;if(null!=(n=t.Jg())&&t.Mg())for(i=0,r=n.length;i<r;++i)n[i].ui(e)}function fat(t,e){var n,i;for(i=mK(n=t).e;i;){if((n=i)==e)return!0;i=mK(n).e}return!1}function gat(t,e,n){var i,r;return(i=t.a.f[e.p])<(r=t.a.f[n.p])?-1:i==r?0:1}function pat(t,e,n){var i,r;return r=jz(qF(t.d,e),19),i=jz(qF(t.b,n),19),r&&i?q6(t,r.a,i.a):null}function mat(t,e){var n,i;for(i=new DP(t);i.e!=i.i.gc();)AB(n=jz(vbt(i),33),n.i+e.b,n.j+e.d)}function bat(t,e){var n,i;for(i=new Gf(e);i.a<i.c.c.length;)n=jz(Q1(i),70),Gz(t.d,n),Rxt(t,n)}function wat(t,e){var n,i;i=new Mb,n=e;do{i.c[i.c.length]=n,n=jz(OW(t.k,n),17)}while(n);return i}function kat(t,e){var n;return t.Db&e?-1==(n=Nkt(t,e))?t.Eb:ent(t.Eb)[n]:null}function vat(t,e){var n;return(n=new Nh).G=e,!t.rb&&(t.rb=new XU(t,jBe,t)),l8(t.rb,n),n}function yat(t,e){var n;return(n=new yw).G=e,!t.rb&&(t.rb=new XU(t,jBe,t)),l8(t.rb,n),n}function _at(t,e){switch(e){case 1:return!!t.n&&0!=t.n.i;case 2:return null!=t.k}return b0(t,e)}function Cat(t){switch(t.a.g){case 1:return new yD;case 3:return new lvt;default:return new Eh}}function Aat(t){var e;if(t.g>1||t.Ob())return++t.a,t.g=0,e=t.i,t.Ob(),e;throw $b(new ww)}function xat(t){var e;return rM(),oE(sve,t)||((e=new ca).a=t,dR(sve,t,e)),jz(aY(sve,t),635)}function Eat(t){var e,n,i;return n=0,(i=t)<0&&(i+=DXt,n=EXt),e=EQ(i/SXt),CM(EQ(i-e*SXt),e,n)}function Tat(t){var e,n,i;for(i=0,n=new KA(t.a);n.a<n.c.a.length;)e=o5(n),t.b.Hc(e)&&++i;return i}function Sat(t){var e,n,i;for(e=1,i=t.Kc();i.Ob();)e=~~(e=31*e+(null==(n=i.Pb())?0:Jct(n)));return e}function Dat(t,e){var n;this.c=t,pkt(t,n=new Mb,e,t.b,null,!1,null,!1),this.a=new C2(n,0)}function Iat(t,e){this.b=t,this.e=e,this.d=e.j,this.f=(Zx(),jz(t,66).Oj()),this.k=oOt(e.e.Tg(),t)}function Bat(t,e,n){this.b=(kK(t),t),this.d=(kK(e),e),this.e=(kK(n),n),this.c=this.d+""+this.e}function Mat(){this.a=jz(wbt((uRt(),zoe)),19).a,this.c=Vv(CN(wbt(iae))),this.b=Vv(CN(wbt(Joe)))}function Pat(){Pat=I,NSe=hut((JBt(),Est(Vy(VSe,1),BYt,93,0,[TSe,ESe,DSe,LSe,PSe,MSe,ISe,BSe,SSe])))}function Lat(){Lat=I,Fie=hut((tRt(),Est(Vy(jie,1),BYt,250,0,[Oie,Iie,Bie,Die,Pie,Lie,Mie,Sie,Tie])))}function Oat(){Oat=I,Ore=new qE("UP",0),Mre=new qE(mQt,1),Pre=new qE(rQt,2),Lre=new qE(oQt,3)}function Nat(){Nat=I,sJ(),wye=new II(G3t,kye=Oye),j0(),mye=new II(W3t,bye=$ye)}function Rat(){Rat=I,vhe=new MT("ONE_SIDED",0),yhe=new MT("TWO_SIDED",1),khe=new MT("OFF",2)}function Fat(t){t.r=new Ow,t.w=new Ow,t.t=new Mb,t.i=new Mb,t.d=new Ow,t.a=new hB,t.c=new Pb}function jat(t){this.n=new Mb,this.e=new YA,this.j=new YA,this.k=new Mb,this.f=new Mb,this.p=t}function $at(t,e){t.c&&(ZFt(t,e,!0),XA(new OH(null,new d1(e,16)),new zp(t))),ZFt(t,e,!1)}function zat(t,e,n){return t==(sit(),Ike)?new So:0!=zMt(e,1)?new O_(n.length):new L_(n.length)}function Vat(t,e){var n;return e?((n=e.Ve()).dc()||(t.q?Cot(t.q,n):t.q=new bI(n)),t):t}function Hat(t,e){var n;return void 0===(n=t.a.get(e))?++t.d:(bR(t.a,e),--t.c,aZ(t.b)),n}function qat(t,e){var n;return 0==(n=e.p-t.p)?Edt(t.f.a*t.f.b,e.f.a*e.f.b):n}function Uat(t,e){var n,i;return(n=t.f.c.length)<(i=e.f.c.length)?-1:n==i?0:1}function Gat(t){return 0!=t.b.c.length&&jz(PH(t.b,0),70).a?jz(PH(t.b,0),70).a:tX(t)}function Wat(t){var e;if(t){if((e=t).dc())throw $b(new ww);return e.Xb(e.gc()-1)}return o1(t.Kc())}function Kat(t){var e;return Kut(t,0)<0&&(t=oV(t)),64-(0!=(e=fq(kU(t,32)))?QDt(e):QDt(fq(t))+32)}function Yat(t){var e;return e=jz(wxt(t,(lKt(),Khe)),61),t.k==(aEt(),Cse)&&(e==(vGt(),EDe)||e==aDe)}function Xat(t,e,n){var i,r;(r=jz(wxt(t,(zWt(),mme)),74))&&(Wlt(i=new kk,0,r),Qet(i,n),jrt(e,i))}function Zat(t,e,n){var i,r,o,a;i=(a=mK(t)).d,r=a.c,o=t.n,e&&(o.a=o.a-i.b-r.a),n&&(o.b=o.b-i.d-r.b)}function Qat(t,e){var n,i;return(n=t.j)!=(i=e.j)?n.g-i.g:t.p==e.p?0:n==(vGt(),sDe)?t.p-e.p:e.p-t.p}function Jat(t){var e,n;for(EGt(t),n=new Gf(t.d);n.a<n.c.c.length;)(e=jz(Q1(n),101)).i&&GEt(e)}function tst(t,e,n,i,r){IW(t.c[e.g],n.g,i),IW(t.c[n.g],e.g,i),IW(t.b[e.g],n.g,r),IW(t.b[n.g],e.g,r)}function est(t,e,n,i){jz(n.b,65),jz(n.b,65),jz(i.b,65),jz(i.b,65),jz(i.b,65),Det(i.a,new yz(t,e,i))}function nst(t,e){t.d==(jht(),RTe)||t.d==$Te?jz(e.a,57).c.Fc(jz(e.b,57)):jz(e.b,57).c.Fc(jz(e.a,57))}function ist(t,e,n,i){return 1==n?(!t.n&&(t.n=new tG(VIe,t,1,7)),Fbt(t.n,e,i)):eEt(t,e,n,i)}function rst(t,e){var n;return Prt(n=new Vc,e),l8((!t.A&&(t.A=new MP(TMe,t,7)),t.A),n),n}function ost(t,e,n){var i,r;return r=M2(e,I6t),m_t((i=new rD(t,n)).a,i.b,r),r}function ast(t){var e;return t.a&&(1&t.Bb||!t.a.kh())||iP(e=Syt(t),148)&&(t.a=jz(e,148)),t.a}function sst(t,e){var n,i;for(kK(e),i=e.Kc();i.Ob();)if(n=i.Pb(),!t.Hc(n))return!1;return!0}function cst(t,e){var n,i,r;return n=t.l+e.l,i=t.m+e.m+(n>>22),r=t.h+e.h+(i>>22),CM(n&xXt,i&xXt,r&EXt)}function lst(t,e){var n,i,r;return n=t.l-e.l,i=t.m-e.m+(n>>22),r=t.h-e.h+(i>>22),CM(n&xXt,i&xXt,r&EXt)}function ust(t){var e;return t<128?(!(e=(CH(),Aee)[t])&&(e=Aee[t]=new Bf(t)),e):new Bf(t)}function hst(t){var e;return iP(t,78)?t:((e=t&&t.__java$exception)||aw(e=new yut(t)),e)}function dst(t){if(iP(t,186))return jz(t,118);if(t)return null;throw $b(new $v(e7t))}function fst(t,e){if(null==e)return!1;for(;t.a!=t.b;)if(Pht(e,Fut(t)))return!0;return!1}function gst(t){return!!t.a.Ob()||t.a==t.d&&(t.a=new A2(t.e.f),t.a.Ob())}function pst(t,e){var n;return 0!=(n=e.Pc()).length&&(Jz(t.c,t.c.length,n),!0)}function mst(t,e,n){var i,r;for(r=e.vc().Kc();r.Ob();)i=jz(r.Pb(),42),t.yc(i.cd(),i.dd(),n);return t}function bst(t,e){var n;for(n=new Gf(t.b);n.a<n.c.c.length;)lct(jz(Q1(n),70),(lKt(),ode),e)}function wst(t,e,n){var i,r;for(r=new Gf(t.b);r.a<r.c.c.length;)AB(i=jz(Q1(r),33),i.i+e,i.j+n)}function kst(t,e){if(!t)throw $b(new Rv(BRt("value already present: %s",Est(Vy(Ite,1),zKt,1,5,[e]))))}function vst(t,e){return!(!t||!e||t==e)&&Fpt(t.d.c,e.d.c+e.d.b)&&Fpt(e.d.c,t.d.c+t.d.b)}function yst(){return k4(),Kne?new w4(null):jIt(Kot(),"com.google.common.base.Strings")}function _st(t,e){var n;return n=sO(e.a.gc()),XA(ket(new OH(null,new d1(e,1)),t.i),new MS(t,n)),n}function Cst(t){var e;return Prt(e=new Vc,"T"),l8((!t.d&&(t.d=new MP(TMe,t,11)),t.d),e),e}function Ast(t){var e,n,i,r;for(e=1,n=0,r=t.gc();n<r;++n)e=31*e+(null==(i=t.ki(n))?0:Jct(i));return e}function xst(t,e,n,i){var r;return d2(e,t.e.Hd().gc()),d2(n,t.c.Hd().gc()),r=t.a[e][n],IW(t.a[e],n,i),r}function Est(t,e,n,i,r){return r.gm=t,r.hm=e,r.im=D,r.__elementTypeId$=n,r.__elementTypeCategory$=i,r}function Tst(t,e,n,r,o){return yNt(),i.Math.min(qqt(t,e,n,r,o),qqt(n,r,t,e,zO(new PS(o.a,o.b))))}function Sst(){Sst=I,rle=new JE(YJt,0),nle=new JE(T1t,1),ile=new JE(S1t,2),ele=new JE("BOTH",3)}function Dst(){Dst=I,mle=new bT(eQt,0),ble=new bT(rQt,1),wle=new bT(oQt,2),kle=new bT("TOP",3)}function Ist(){Ist=I,Zae=new KE("Q1",0),tse=new KE("Q4",1),Qae=new KE("Q2",2),Jae=new KE("Q3",3)}function Bst(){Bst=I,hke=new KT("OFF",0),dke=new KT("SINGLE_EDGE",1),uke=new KT("MULTI_EDGE",2)}function Mst(){Mst=I,GAe=new AS("MINIMUM_SPANNING_TREE",0),UAe=new AS("MAXIMUM_SPANNING_TREE",1)}function Pst(){Pst=I,ZAe=new ls,XAe=new ss}function Lst(t){var e,n;for(e=new YA,n=cbt(t.d,0);n.b!=n.d.c;)LV(e,jz(h3(n),188).c);return e}function Ost(t){var e,n;for(n=new Mb,e=t.Kc();e.Ob();)pst(n,fNt(jz(e.Pb(),33)));return n}function Nst(t){var e;tzt(t,!0),e=KYt,BO(t,(zWt(),lbe))&&(e+=jz(wxt(t,lbe),19).a),lct(t,lbe,ndt(e))}function Rst(t,e,n){var i;IG(t.a),Det(n.i,new vm(t)),vmt(t,i=new EM(jz(OW(t.a,e.b),65)),e),n.f=i}function Fst(t,e){var n,i;return n=t.c,(i=e.e[t.p])<n.a.c.length-1?jz(PH(n.a,i+1),10):null}function jst(t,e){var n,i;for(GX(e,"predicate"),i=0;t.Ob();i++)if(n=t.Pb(),e.Lb(n))return i;return-1}function $st(t,e){var n,i;if(i=0,t<64&&t<=e)for(e=e<64?e:63,n=t;n<=e;n++)i=e0(i,wU(1,n));return i}function zst(t){var e,n,i;for(AX(),i=0,n=t.Kc();n.Ob();)i+=null!=(e=n.Pb())?Jct(e):0,i|=0;return i}function Vst(t){var e;return J_(),e=new ac,t&&l8((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a),e),e}function Hst(t){var e;return(e=new b).a=t,e.b=kct(t),e.c=P7(Yee,cYt,2,2,6,1),e.c[0]=zrt(t),e.c[1]=zrt(t),e}function qst(t,e){if(0===e)return!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),void t.o.c.$b();wTt(t,e)}function Ust(t,e,n){switch(n.g){case 2:t.b=e;break;case 1:t.c=e;break;case 4:t.d=e;break;case 3:t.a=e}}function Gst(t){switch(t.g){case 1:return ySe;case 2:return vSe;case 3:return _Se;default:return CSe}}function Wst(t){switch(jz(wxt(t,(zWt(),kme)),163).g){case 2:case 4:return!0;default:return!1}}function Kst(){Kst=I,whe=hut((dNt(),Est(Vy(_he,1),BYt,256,0,[che,uhe,hhe,dhe,fhe,ghe,mhe,she,lhe,phe])))}function Yst(){Yst=I,XDe=hut((JFt(),Est(Vy(eIe,1),BYt,259,0,[VDe,qDe,zDe,UDe,GDe,KDe,WDe,HDe,$De])))}function Xst(){Xst=I,Uye=fH(smt(smt(Fx(fH(new j2,(qvt(),Nve),(OTt(),Kve)),Rve),Uve),Gve),Fve,Wve)}function Zst(){Zst=I,Due=new ET(YJt,0),Sue=new ET("INCOMING_ONLY",1),Iue=new ET("OUTGOING_ONLY",2)}function Qst(){Qst=I,uee={boolean:qA,number:Ev,string:Tv,object:CSt,function:CSt,undefined:Gb}}function Jst(t,e){mV(t>=0,"Negative initial capacity"),mV(e>=0,"Non-positive load factor"),IG(this)}function tct(t,e,n){return!(t>=128)&&XD(t<64?t0(wU(1,t),n):t0(wU(1,t-64),e),0)}function ect(t,e){return!(!t||!e||t==e)&&Sft(t.b.c,e.b.c+e.b.b)<0&&Sft(e.b.c,t.b.c+t.b.b)<0}function nct(t){var e,n,i;return n=t.n,i=t.o,e=t.d,new qY(n.a-e.b,n.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function ict(t){var e,n,i,r;for(i=0,r=(n=t.a).length;i<r;++i)xct(t,e=n[i],(vGt(),ADe)),xct(t,e,sDe)}function rct(t){var e,n;for(null==t.j&&(t.j=(xZ(),S_t(eee.ce(t)))),e=0,n=t.j.length;e<n;++e);}function oct(t){var e,n;return CM(e=1+~t.l&xXt,n=~t.m+(0==e?1:0)&xXt,~t.h+(0==e&&0==n?1:0)&EXt)}function act(t,e){return C$t(jz(jz(OW(t.g,e.a),46).a,65),jz(jz(OW(t.g,e.b),46).a,65))}function sct(t,e,n){var i;if(e>(i=t.gc()))throw $b(new JR(e,i));return t.hi()&&(n=QQ(t,n)),t.Vh(e,n)}function cct(t,e,n){return null==n?(!t.q&&(t.q=new Pb),m6(t.q,e)):(!t.q&&(t.q=new Pb),WK(t.q,e,n)),t}function lct(t,e,n){return null==n?(!t.q&&(t.q=new Pb),m6(t.q,e)):(!t.q&&(t.q=new Pb),WK(t.q,e,n)),t}function uct(t){var e,n;return Vat(n=new w6,t),lct(n,(Art(),sae),t),ezt(t,n,e=new Pb),xUt(t,n,e),n}function hct(t){var e,n,i;for(yNt(),n=P7(xxe,cYt,8,2,0,1),i=0,e=0;e<2;e++)i+=.5,n[e]=hkt(i,t);return n}function dct(t,e){var n,i,r;for(n=!1,i=t.a[e].length,r=0;r<i-1;r++)n|=Ept(t,e,r,r+1);return n}function fct(t,e,n,i,r){var o,a;for(a=n;a<=r;a++)for(o=e;o<=i;o++)bkt(t,o,a)||jRt(t,o,a,!0,!1)}function gct(t,e){this.b=t,MI.call(this,(jz(Wet(KX((KW(),QBe).o),10),18),e.i),e.g),this.a=(fot(),EMe)}function pct(t,e){this.c=t,this.d=e,this.b=this.d/this.c.c.Hd().gc()|0,this.a=this.d%this.c.c.Hd().gc()}function mct(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function bct(t,e,n){this.q=new i.Date,this.q.setFullYear(t+cXt,e,n),this.q.setHours(0,0,0,0),hzt(this,0)}function wct(){wct=I,Mwe=new zT(YJt,0),Bwe=new zT("NODES_AND_EDGES",1),Pwe=new zT("PREFER_EDGES",2)}function kct(t){var e;return 0==t?"Etc/GMT":(t<0?(t=-t,e="Etc/GMT-"):e="Etc/GMT+",e+htt(t))}function vct(t){var e;if(t<0)return FYt;if(0==t)return 0;for(e=DYt;!(e&t);e>>=1);return e}function yct(t){var e,n;return 32==(n=QDt(t.h))?32==(e=QDt(t.m))?QDt(t.l)+32:e+20-10:n-12}function _ct(t){var e;return null==(e=t.a[t.b])?null:(IW(t.a,t.b,null),t.b=t.b+1&t.a.length-1,e)}function Cct(t){var e,n;return e=t.t-t.k[t.o.p]*t.d+t.j[t.o.p]>t.f,n=t.u+t.e[t.o.p]*t.d>t.f*t.s*t.d,e||n}function Act(t,e,n){var i,r;return i=new $7(e,n),r=new H,t.b=WOt(t,t.b,i,r),r.b||++t.c,t.b.b=!1,r.d}function xct(t,e,n){var i,r,o;for(o=0,r=Mht(e,n).Kc();r.Ob();)i=jz(r.Pb(),11),WK(t.c,i,ndt(o++))}function Ect(t){var e,n;for(n=new Gf(t.a.b);n.a<n.c.c.length;)(e=jz(Q1(n),81)).g.c=-e.g.c-e.g.b;vLt(t)}function Tct(t){var e,n;for(n=new Gf(t.a.b);n.a<n.c.c.length;)(e=jz(Q1(n),57)).d.c=-e.d.c-e.d.b;kLt(t)}function Sct(t){var e;return(!t.c||!(1&t.Bb)&&64&t.c.Db)&&iP(e=Syt(t),88)&&(t.c=jz(e,26)),t.c}function Dct(t){var e,n,i;e=1+~t.l&xXt,n=~t.m+(0==e?1:0)&xXt,i=~t.h+(0==e&&0==n?1:0)&EXt,t.l=e,t.m=n,t.h=i}function Ict(t){var e,n,i,r,o;for(e=new V_,r=0,o=(i=t).length;r<o;++r)n=i[r],e.a+=n.a,e.b+=n.b;return e}function Bct(t,e){var n,i,r,o,a;for(AX(),a=!1,r=0,o=(i=e).length;r<o;++r)n=i[r],a|=t.Fc(n);return a}function Mct(t){var e,n;for(yNt(),n=-17976931348623157e292,e=0;e<t.length;e++)t[e]>n&&(n=t[e]);return n}function Pct(t,e,n){var i;return yOt(t,e,i=new Mb,(vGt(),aDe),!0,!1),yOt(t,n,i,EDe,!1,!1),i}function Lct(t,e,n){var i,r;return r=M2(e,"labels"),GBt((i=new gD(t,n)).a,i.b,r),r}function Oct(t,e,n,i){var r;return(r=wMt(t,e,n,i))||!(r=odt(t,n,i))||jHt(t,e,r)?r:null}function Nct(t,e,n,i){var r;return(r=kMt(t,e,n,i))||!(r=adt(t,n,i))||jHt(t,e,r)?r:null}function Rct(t,e){var n;for(n=0;n<t.a.a.length;n++)if(!jz(LH(t.a,n),169).Lb(e))return!1;return!0}function Fct(t,e,n){if(wW(e),n.Ob())for(sI(e,EW(n.Pb()));n.Ob();)sI(e,t.a),sI(e,EW(n.Pb()));return e}function jct(t){var e,n,i;for(AX(),i=1,n=t.Kc();n.Ob();)i=31*i+(null!=(e=n.Pb())?Jct(e):0),i|=0;return i}function $ct(t,e,n,i,r){var o;return o=yBt(t,e),n&&Dct(o),r&&(t=xkt(t,e),hee=i?oct(t):CM(t.l,t.m,t.h)),o}function zct(t,e){var n;try{e.Vd()}catch(e){if(!iP(e=hst(e),78))throw $b(e);n=e,t.c[t.c.length]=n}}function Vct(t,e,n){var i,r;return iP(e,144)&&n?(i=jz(e,144),r=n,t.a[i.b][r.b]+t.a[r.b][i.b]):0}function Hct(t,e){switch(e){case 7:return!!t.e&&0!=t.e.i;case 8:return!!t.d&&0!=t.d.i}return ugt(t,e)}function qct(t,e){switch(e.g){case 0:iP(t.b,631)||(t.b=new Mat);break;case 1:iP(t.b,632)||(t.b=new lV)}}function Uct(t,e){for(;null!=t.g||t.c?null==t.g||0!=t.i&&jz(t.g[t.i-1],47).Ob():JQ(t);)mD(e,oPt(t))}function Gct(t,e,n){t.g=ITt(t,e,(vGt(),aDe),t.b),t.d=ITt(t,n,aDe,t.b),0!=t.g.c&&0!=t.d.c&&qxt(t)}function Wct(t,e,n){t.g=ITt(t,e,(vGt(),EDe),t.j),t.d=ITt(t,n,EDe,t.j),0!=t.g.c&&0!=t.d.c&&qxt(t)}function Kct(t,e,n){return!vC(DY(new OH(null,new d1(t.c,16)),new rg(new ZS(e,n)))).sd((fx(),Jne))}function Yct(t){var e;return yK(t),e=new ct,t.a.sd(e)?(EP(),new mv(kK(e.a))):(EP(),EP(),Ane)}function Xct(t){var e;return!(t.b<=0)&&((e=VI("MLydhHmsSDkK",XAt(lY(t.c,0))))>1||e>=0&&t.b<3)}function Zct(t){var e,n;for(e=new kk,n=cbt(t,0);n.b!=n.d.c;)NO(e,0,new dB(jz(h3(n),8)));return e}function Qct(t){var e;for(e=new Gf(t.a.b);e.a<e.c.c.length;)jz(Q1(e),81).f.$b();kv(t.b,t),$Lt(t)}function Jct(t){return UD(t)?bwt(t):qD(t)?WI(t):HD(t)?(kK(t),t?1231:1237):eU(t)?t.Hb():Dq(t)?xL(t):JX(t)}function tlt(t){return UD(t)?Yee:qD(t)?Eee:HD(t)?vee:eU(t)||Dq(t)?t.gm:t.gm||Array.isArray(t)&&Vy(Jte,1)||Jte}function elt(t){if(0===t.g)return new as;throw $b(new Rv(P5t+(null!=t.f?t.f:""+t.g)))}function nlt(t){if(0===t.g)return new rs;throw $b(new Rv(P5t+(null!=t.f?t.f:""+t.g)))}function ilt(t,e,n){if(0===e)return!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),void tat(t.o,n);kSt(t,e,n)}function rlt(t,e,n){this.g=t,this.e=new V_,this.f=new V_,this.d=new YA,this.b=new YA,this.a=e,this.c=n}function olt(t,e,n,i){this.b=new Mb,this.n=new Mb,this.i=i,this.j=n,this.s=t,this.t=e,this.r=0,this.d=0}function alt(t){this.e=t,this.d=new p5(this.e.g),this.a=this.d,this.b=gst(this),this.$modCount=t.$modCount}function slt(t){for(;!t.d||!t.d.Ob();){if(!t.b||Gv(t.b))return null;t.d=jz(fG(t.b),47)}return t.d}function clt(t){return Gz(t.c,(Pst(),ZAe)),ant(t.a,Vv(CN(wbt((Ngt(),Wbe)))))?new qs:new Em(t)}function llt(t){switch(t.g){case 1:return j3t;default:case 2:return 0;case 3:return ZQt;case 4:return $3t}}function ult(){var t;return fKt(),ALe||(t=tO(QGt("M",!0)),t=gq(QGt("M",!1),t),ALe=t)}function hlt(t,e){var n,i,r;for(r=t.b;r;){if(0==(n=t.a.ue(e,r.d)))return r;i=n<0?0:1,r=r.a[i]}return null}function dlt(t,e,n){var i,r;cL(),i=!!_I(n),(r=jz(e.xc(i),15))||(r=new Mb,e.zc(i,r)),r.Fc(n)}function flt(t,e){var n,i;return(n=jz(QBt(t,(WMt(),fCe)),19).a)==(i=jz(QBt(e,fCe),19).a)||n<i?-1:n>i?1:0}function glt(t,e){return!!dLt(t,e)&&(ZDt(t.b,jz(wxt(e,(lKt(),Uhe)),21),e),LV(t.a,e),!0)}function plt(t){var e,n;(e=jz(wxt(t,(lKt(),yde)),10))&&(w9((n=e.c).a,e),0==n.a.c.length&&w9(mK(e).b,n))}function mlt(t){return Kne?P7(Vne,gZt,572,0,0,1):jz(Ymt(t.a,P7(Vne,gZt,572,t.a.c.length,0,1)),842)}function blt(t,e,n,i){return QK(),new cv(Est(Vy(zte,1),vYt,42,0,[(qwt(t,e),new mA(t,e)),(qwt(n,i),new mA(n,i))]))}function wlt(t,e,n){var i;return uit(i=new Ik,e,n),l8((!t.q&&(t.q=new tG(WBe,t,11,10)),t.q),i),i}function klt(t){var e,n,i,r;for(n=(r=lE(DIe,t)).length,i=P7(Yee,cYt,2,n,6,1),e=0;e<n;++e)i[e]=r[e];return i}function vlt(t,e){var n,i,r,o,a;for(r=0,o=(i=e).length;r<o;++r)n=i[r],a=new qW(t),n.Qe(a),Pzt(a);IG(t.f)}function ylt(t,e){var n;return e===t||!!iP(e,224)&&(n=jz(e,224),Pht(t.Zb(),n.Zb()))}function _lt(t,e){var n;2*e+1>=t.b.c.length||(_lt(t,2*e+1),(n=2*e+2)<t.b.c.length&&_lt(t,n),RSt(t,e))}function Clt(t,e,n){var i,r;this.g=t,this.c=e,this.a=this,this.d=this,r=Zit(n),i=P7(Yte,TYt,330,r,0,1),this.b=i}function Alt(t,e,n){var i;for(i=n-1;i>=0&&t[i]===e[i];i--);return i<0?0:sE(t0(t[i],UXt),t0(e[i],UXt))?-1:1}function xlt(t,e){var n,i;for(i=cbt(t,0);i.b!=i.d.c;)(n=jz(h3(i),214)).e.length>0&&(e.td(n),n.i&&mdt(n))}function Elt(t,e){var n,i;return i=jz(kat(t.a,4),126),n=P7(dBe,n8t,415,e,0,1),null!=i&&oVt(i,0,n,0,i.length),n}function Tlt(t,e){var n;return n=new iRt(!!(256&t.f),t.i,t.a,t.d,!!(16&t.f),t.j,t.g,e),null!=t.e||(n.c=t),n}function Slt(t,e){var n;for(n=t.Zb().Cc().Kc();n.Ob();)if(jz(n.Pb(),14).Hc(e))return!0;return!1}function Dlt(t,e,n,i,r){var o,a;for(a=n;a<=r;a++)for(o=e;o<=i;o++)if(bkt(t,o,a))return!0;return!1}function Ilt(t,e,n){var i,r,o,a;for(kK(n),a=!1,o=t.Zc(e),r=n.Kc();r.Ob();)i=r.Pb(),o.Rb(i),a=!0;return a}function Blt(t,e){var n;return t===e||!!iP(e,83)&&(n=jz(e,83),qEt(uU(t),n.vc()))}function Mlt(t,e,n){var i,r;for(r=n.Kc();r.Ob();)if(i=jz(r.Pb(),42),t.re(e,i.dd()))return!0;return!1}function Plt(t,e,n){return t.d[e.p][n.p]||(nwt(t,e,n),t.d[e.p][n.p]=!0,t.d[n.p][e.p]=!0),t.a[e.p][n.p]}function Llt(t,e){if(!t.ai()&&null==e)throw $b(new Rv("The 'no null' constraint is violated"));return e}function Olt(t,e){null==t.D&&null!=t.B&&(t.D=t.B,t.B=null),zit(t,null==e?null:(kK(e),e)),t.C&&t.yk(null)}function Nlt(t,e){return!(!t||t==e||!BO(e,(lKt(),nde)))&&jz(wxt(e,(lKt(),nde)),10)!=t}function Rlt(t){switch(t.i){case 2:return!0;case 1:return!1;case-1:++t.c;default:return t.pl()}}function Flt(t){switch(t.i){case-2:return!0;case-1:return!1;case 1:--t.c;default:return t.ql()}}function jlt(t){RQ.call(this,"The given string does not match the expected format for individual spacings.",t)}function $lt(){$lt=I,oIe=new iD("ELK",0),aIe=new iD("JSON",1),rIe=new iD("DOT",2),sIe=new iD("SVG",3)}function zlt(){zlt=I,s_e=new mS(YJt,0),c_e=new mS("RADIAL_COMPACTION",1),l_e=new mS("WEDGE_COMPACTION",2)}function Vlt(){Vlt=I,Hne=new pE("CONCURRENT",0),qne=new pE("IDENTITY_FINISH",1),Une=new pE("UNORDERED",2)}function Hlt(){Hlt=I,dx(),aoe=new II($Qt,soe=noe),ooe=new ob(zQt),coe=new ob(VQt),loe=new ob(HQt)}function qlt(){qlt=I,ule=new _i,hle=new Ci,lle=new Ai,cle=new xi,kK(new Ei),sle=new N}function Ult(){Ult=I,tke=new GT("CONSERVATIVE",0),eke=new GT("CONSERVATIVE_SOFT",1),nke=new GT("SLOPPY",2)}function Glt(){Glt=I,fSe=new GB(15),dSe=new UB((cKt(),UEe),fSe),gSe=gTe,cSe=rEe,lSe=NEe,hSe=jEe,uSe=FEe}function Wlt(t,e,n){var i,r;for(i=new YA,r=cbt(n,0);r.b!=r.d.c;)LV(i,new dB(jz(h3(r),8)));Ilt(t,e,i)}function Klt(t){var e,n,i;for(e=0,i=P7(xxe,cYt,8,t.b,0,1),n=cbt(t,0);n.b!=n.d.c;)i[e++]=jz(h3(n),8);return i}function Ylt(t){var e;return!t.a&&(t.a=new tG(UBe,t,9,5)),0!=(e=t.a).i?$x(jz(Wet(e,0),678)):null}function Xlt(t,e){var n;return n=ift(t,e),sE(n0(t,e),0)|YD(n0(t,n),0)?n:ift(dYt,n0(vU(n,63),1))}function Zlt(t,e){var n;n=null!=wbt((Ngt(),Wbe))&&null!=e.wg()?Vv(CN(e.wg()))/Vv(CN(wbt(Wbe))):1,WK(t.b,e,n)}function Qlt(t,e){var n,i;return(n=jz(t.d.Bc(e),14))?((i=t.e.hc()).Gc(n),t.e.d-=n.gc(),n.$b(),i):null}function Jlt(t,e){var n,i;if(0!=(i=t.c[e]))for(t.c[e]=0,t.d-=i,n=e+1;n<t.a.length;)t.a[n]-=i,n+=n&-n}function tut(t){var e;if((e=t.a.c.length)>0)return NU(e-1,t.a.c.length),s6(t.a,e-1);throw $b(new bw)}function eut(t,e,n){if(e<0)throw $b(new Dv(J5t+e));e<t.j.c.length?i4(t.j,e,n):(g3(t,e),Gz(t.j,n))}function nut(t,e,n){if(t>e)throw $b(new Rv(wZt+t+kZt+e));if(t<0||e>n)throw $b(new _y(wZt+t+vZt+e+lZt+n))}function iut(t){if(!(t.a&&8&t.a.i))throw $b(new Fv("Enumeration class expected for layout option "+t.f))}function rut(t){var e;++t.j,0==t.i?t.g=null:t.i<t.g.length&&(e=t.g,t.g=t.ri(t.i),oVt(e,0,t.g,0,t.i))}function out(t,e){var n,i;for(n=t.a.length-1,t.c=t.c-1&n;e!=t.c;)i=e+1&n,IW(t.a,e,t.a[i]),e=i;IW(t.a,t.c,null)}function aut(t,e){var n,i;for(n=t.a.length-1;e!=t.b;)i=e-1&n,IW(t.a,e,t.a[i]),e=i;IW(t.a,t.b,null),t.b=t.b+1&n}function sut(t,e,n){var i;return BJ(e,t.c.length),0!=(i=n.Pc()).length&&(Jz(t.c,e,i),!0)}function cut(t){var e,n;if(null==t)return null;for(e=0,n=t.length;e<n;e++)if(!xV(t[e]))return t[e];return null}function lut(t,e,n){var i,r,o,a;for(o=0,a=(r=n).length;o<a;++o)if(i=r[o],t.b.re(e,i.cd()))return i;return null}function uut(t){var e,n,i,r,o;for(o=1,i=0,r=(n=t).length;i<r;++i)o=31*o+(null!=(e=n[i])?Jct(e):0),o|=0;return o}function hut(t){var e,n,i,r,o;for(e={},r=0,o=(i=t).length;r<o;++r)e[":"+(null!=(n=i[r]).f?n.f:""+n.g)]=n;return e}function dut(t){var e;for(wW(t),Ej(!0,"numberToAdvance must be nonnegative"),e=0;e<0&&gBt(t);e++)q4(t);return e}function fut(t){var e,n,i;for(i=0,n=new aU(ZP(t.a.Kc(),new u));gBt(n);)(e=jz(q4(n),17)).c.i==e.d.i||++i;return i}function gut(t,e){var n,i,r;for(n=t,r=0;;){if(n==e)return r;if(!(i=n.e))throw $b(new dw);n=mK(i),++r}}function put(t,e){var n,i,r;for(r=e-t.f,i=new Gf(t.d);i.a<i.c.c.length;)vpt(n=jz(Q1(i),443),n.e,n.f+r);t.f=e}function mut(t,e,n){return i.Math.abs(e-t)<F3t||i.Math.abs(n-t)<F3t||(e-t>F3t?t-n>F3t:n-t>F3t)}function but(t,e){return t?e&&!t.j||iP(t,124)&&0==jz(t,124).a.b?0:t.Re():0}function wut(t,e){return t?e&&!t.k||iP(t,124)&&0==jz(t,124).a.a?0:t.Se():0}function kut(t){return DNt(),t<0?-1!=t?new Nbt(-1,-t):Xee:t<=10?Qee[EQ(t)]:new Nbt(1,t)}function vut(t){throw Qst(),$b(new gv("Unexpected typeof result '"+t+"'; please report this bug to the GWT team"))}function yut(t){cy(),WM(this),vX(this),this.e=t,TOt(this,t),this.g=null==t?qKt:$ft(t),this.a="",this.b=t,this.a=""}function _ut(){this.a=new es,this.f=new fm(this),this.b=new gm(this),this.i=new pm(this),this.e=new mm(this)}function Cut(){iv.call(this,new z7(tet(16))),hit(2,sYt),this.b=2,this.a=new $K(null,null,0,null),ew(this.a,this.a)}function Aut(){Aut=I,iwe=new NT("DUMMY_NODE_OVER",0),rwe=new NT("DUMMY_NODE_UNDER",1),owe=new NT("EQUAL",2)}function xut(){xut=I,Uae=$Q(Est(Vy(GTe,1),BYt,103,0,[(jht(),RTe),FTe])),Gae=$Q(Est(Vy(GTe,1),BYt,103,0,[$Te,NTe]))}function Eut(t){return(vGt(),wDe).Hc(t.j)?Vv(CN(wxt(t,(lKt(),Bde)))):Ict(Est(Vy(xxe,1),cYt,8,0,[t.i.n,t.n,t.a])).b}function Tut(t){var e,n;for(e=t.b.a.a.ec().Kc();e.Ob();)n=new YMt(jz(e.Pb(),561),t.e,t.f),Gz(t.g,n)}function Sut(t,e){var n,i;n=t.nk(e,null),i=null,e&&(eC(),rnt(i=new Nb,t.r)),(n=zAt(t,i,n))&&n.Fi()}function Dut(t,e){var n,i;for(i=0!=zMt(t.d,1),n=!0;n;)n=!1,n=e.c.Tf(e.e,i),n|=OLt(t,e,i,!1),i=!i;Brt(t)}function Iut(t,e){var n,i,r;return i=!1,n=e.q.d,e.d<t.b&&(r=gLt(e.q,t.b),e.q.d>r&&(oCt(e.q,r),i=n!=e.q.d)),i}function But(t,e){var n,r,o,a,s;return a=e.i,s=e.j,r=a-(n=t.f).i,o=s-n.j,i.Math.sqrt(r*r+o*o)}function Mut(t,e){var n;return(n=Xpt(t))||(NVt(),l8((n=new Eb(XTt(e))).Vk(),t)),n}function Put(t,e){var n,i;return(n=jz(t.c.Bc(e),14))?((i=t.hc()).Gc(n),t.d-=n.gc(),n.$b(),t.mc(i)):t.jc()}function Lut(t,e){var n;for(n=0;n<e.length;n++)if(t==(h1(n,e.length),e.charCodeAt(n)))return!0;return!1}function Out(t,e){var n;for(n=0;n<e.length;n++)if(t==(h1(n,e.length),e.charCodeAt(n)))return!0;return!1}function Nut(t){var e,n;if(null==t)return!1;for(e=0,n=t.length;e<n;e++)if(!xV(t[e]))return!1;return!0}function Rut(t){var e;if(0!=t.c)return t.c;for(e=0;e<t.a.length;e++)t.c=33*t.c+(-1&t.a[e]);return t.c=t.c*t.e,t.c}function Fut(t){var e;return xO(t.a!=t.b),e=t.d.a[t.a],yO(t.b==t.d.c&&null!=e),t.c=t.a,t.a=t.a+1&t.d.a.length-1,e}function jut(t){var e;if(!(t.c.c<0?t.a>=t.c.b:t.a<=t.c.b))throw $b(new ww);return e=t.a,t.a+=t.c.c,++t.b,ndt(e)}function $ut(t){var e;return e=new uet(t),e2(t.a,sse,new Xv(Est(Vy(Xae,1),zKt,369,0,[e]))),e.d&&Gz(e.f,e.d),e.f}function zut(t){var e;return Vat(e=new SM(t.a),t),lct(e,(lKt(),fde),t),e.o.a=t.g,e.o.b=t.f,e.n.a=t.i,e.n.b=t.j,e}function Vut(t,e,n,i){var r,o;for(o=t.Kc();o.Ob();)(r=jz(o.Pb(),70)).n.a=e.a+(i.a-r.o.a)/2,r.n.b=e.b,e.b+=r.o.b+n}function Hut(t,e,n){var i;for(i=e.a.a.ec().Kc();i.Ob();)if(iZ(t,jz(i.Pb(),57),n))return!0;return!1}function qut(t){var e,n;for(n=new Gf(t.r);n.a<n.c.c.length;)if(e=jz(Q1(n),10),t.n[e.p]<=0)return e;return null}function Uut(t){var e,n;for(n=new Ow,e=new Gf(t);e.a<e.c.c.length;)jrt(n,gNt(jz(Q1(e),33)));return n}function Gut(t){var e;return e=kB(Eke),jz(wxt(t,(lKt(),Zhe)),21).Hc((dNt(),fhe))&&fH(e,(kxt(),Rae),(hKt(),jce)),e}function Wut(t,e,n){var i;i=new AIt(t,e),ZDt(t.r,e.Hf(),i),n&&!$U(t.u)&&(i.c=new wQ(t.d),Det(e.wf(),new Eg(i)))}function Kut(t,e){var n;return XI(t)&&XI(e)&&(n=t-e,!isNaN(n))?n:Ryt(XI(t)?Eat(t):t,XI(e)?Eat(e):e)}function Yut(t,e){return e<t.length&&(h1(e,t.length),63!=t.charCodeAt(e))&&(h1(e,t.length),35!=t.charCodeAt(e))}function Xut(t,e,n,i){var r,o;t.a=e,o=i?0:1,t.f=(r=new QEt(t.c,t.a,n,o),new aRt(n,t.a,r,t.e,t.b,t.c==(sit(),Dke)))}function Zut(t,e,n){var i,r;return r=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&(i=new QU(t,1,1,r,e),n?n.Ei(i):n=i),n}function Qut(t,e,n){var i,r;return r=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&(i=new QU(t,1,3,r,e),n?n.Ei(i):n=i),n}function Jut(t,e,n){var i,r;return r=t.f,t.f=e,4&t.Db&&!(1&t.Db)&&(i=new QU(t,1,0,r,e),n?n.Ei(i):n=i),n}function tht(t,e){var n,i,r,o;return(o=vSt((i=e,(r=t?Xpt(t):null)&&r.Xk(),i)))==e&&(n=Xpt(t))&&n.Xk(),o}function eht(t,e){var n,i,r;for(r=1,n=t,i=e>=0?e:-e;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return e<0?1/r:r}function nht(t,e){var n,i,r;for(r=1,n=t,i=e>=0?e:-e;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return e<0?1/r:r}function iht(t){var e,n;if(null!=t)for(n=0;n<t.length;++n)(e=t[n])&&(jz(e.g,367),e.i)}function rht(t){var e,n,r;for(r=0,n=new Gf(t.a);n.a<n.c.c.length;)e=jz(Q1(n),187),r=i.Math.max(r,e.g);return r}function oht(t){var e,n,i;for(i=new Gf(t.b);i.a<i.c.c.length;)(e=(n=jz(Q1(i),214)).c.Rf()?n.f:n.a)&&fHt(e,n.j)}function aht(){aht=I,mSe=new $S("INHERIT",0),pSe=new $S("INCLUDE_CHILDREN",1),bSe=new $S("SEPARATE_CHILDREN",2)}function sht(t,e){switch(e){case 1:return!t.n&&(t.n=new tG(VIe,t,1,7)),void cHt(t.n);case 2:return void Bit(t,null)}qst(t,e)}function cht(t){switch(t.gc()){case 0:return jte;case 1:return new xH(wW(t.Xb(0)));default:return new AZ(t)}}function lht(t){switch(sj(),t.gc()){case 0:return WW(),Kte;case 1:return new wy(t.Kc().Pb());default:return new mE(t)}}function uht(t){switch(sj(),t.c){case 0:return WW(),Kte;case 1:return new wy(ZSt(new KA(t)));default:return new sv(t)}}function hht(t,e){wW(t);try{return t.xc(e)}catch(t){if(iP(t=hst(t),205)||iP(t,173))return null;throw $b(t)}}function dht(t,e){wW(t);try{return t.Bc(e)}catch(t){if(iP(t=hst(t),205)||iP(t,173))return null;throw $b(t)}}function fht(t,e){wW(t);try{return t.Hc(e)}catch(t){if(iP(t=hst(t),205)||iP(t,173))return!1;throw $b(t)}}function ght(t,e){wW(t);try{return t.Mc(e)}catch(t){if(iP(t=hst(t),205)||iP(t,173))return!1;throw $b(t)}}function pht(t,e){wW(t);try{return t._b(e)}catch(t){if(iP(t=hst(t),205)||iP(t,173))return!1;throw $b(t)}}function mht(t,e){t.a.c.length>0&&glt(jz(PH(t.a,t.a.c.length-1),570),e)||Gz(t.a,new p4(e))}function bht(t){var e,n;Vj(),e=t.d.c-t.e.c,Det((n=jz(t.g,145)).b,new vp(e)),Det(n.c,new yp(e)),t4(n.i,new _p(e))}function wht(t){var e;return(e=new Ey).a+="VerticalSegment ",oI(e,t.e),e.a+=" ",aI(e,XP(new by,new Gf(t.k))),e.a}function kht(t){var e;return(e=jz(utt(t.c.c,""),229))||(e=new qJ(v_(k_(new ws,""),"Other")),Zmt(t.c.c,"",e)),e}function vht(t){var e;return 64&t.Db?EMt(t):((e=new lL(EMt(t))).a+=" (name: ",iI(e,t.zb),e.a+=")",e.a)}function yht(t,e,n){var i,r;return r=t.sb,t.sb=e,4&t.Db&&!(1&t.Db)&&(i=new QU(t,1,4,r,e),n?n.Ei(i):n=i),n}function _ht(t,e){var n,i;for(n=0,i=oft(t,e).Kc();i.Ob();)n+=null!=wxt(jz(i.Pb(),11),(lKt(),yde))?1:0;return n}function Cht(t,e,n){var i,r,o;for(i=0,o=cbt(t,0);o.b!=o.d.c&&!((r=Vv(CN(h3(o))))>n);)r>=e&&++i;return i}function Aht(t,e,n){var i;return i=new M9(t.e,3,13,null,e.c||(pKt(),lMe),awt(t,e),!1),n?n.Ei(i):n=i,n}function xht(t,e,n){var i;return i=new M9(t.e,4,13,e.c||(pKt(),lMe),null,awt(t,e),!1),n?n.Ei(i):n=i,n}function Eht(t,e,n){var i,r;return r=t.r,t.r=e,4&t.Db&&!(1&t.Db)&&(i=new QU(t,1,8,r,t.r),n?n.Ei(i):n=i),n}function Tht(t,e){var n,i;return!(i=(n=jz(e,676)).vk())&&n.wk(i=iP(e,88)?new ID(t,jz(e,26)):new R0(t,jz(e,148))),i}function Sht(t,e,n){var i;t.qi(t.i+1),i=t.oi(e,n),e!=t.i&&oVt(t.g,e,t.g,e+1,t.i-e),IW(t.g,e,i),++t.i,t.bi(e,n),t.ci()}function Dht(t,e){var n;return e.a&&(n=e.a.a.length,t.a?aI(t.a,t.b):t.a=new uL(t.d),V0(t.a,e.a,e.d.length,n)),t}function Iht(t,e){var n,i,r;if(e.vi(t.a),null!=(r=jz(kat(t.a,8),1936)))for(n=0,i=r.length;n<i;++n)null.jm()}function Bht(t,e){var n;return n=new ct,t.a.sd(n)?(EP(),new mv(kK(_9(t,n.a,e)))):(yK(t),EP(),EP(),Ane)}function Mht(t,e){switch(e.g){case 2:case 1:return oft(t,e);case 3:case 4:return eat(oft(t,e))}return AX(),AX(),cne}function Pht(t,e){return UD(t)?bF(t,e):qD(t)?mF(t,e):HD(t)?(kK(t),VD(t)===VD(e)):eU(t)?t.Fb(e):Dq(t)?FI(t,e):m0(t,e)}function Lht(t){return t?1&t.i?t==DLe?vee:t==SLe?Iee:t==PLe?Tee:t==MLe?Eee:t==ILe?Nee:t==LLe?Fee:t==BLe?Cee:xee:t:null}function Oht(t,e,n,i,r){0!=e&&0!=i&&(1==e?r[i]=gwt(r,n,i,t[0]):1==i?r[e]=gwt(r,t,e,n[0]):XIt(t,n,r,e,i))}function Nht(t,e){var n;0!=t.c.length&&(cB(n=jz(Ymt(t,P7(Sse,o1t,10,t.c.length,0,1)),193),new In),eIt(n,e))}function Rht(t,e){var n;0!=t.c.length&&(cB(n=jz(Ymt(t,P7(Sse,o1t,10,t.c.length,0,1)),193),new Bn),eIt(n,e))}function Fht(t,e,n,i){switch(e){case 1:return!t.n&&(t.n=new tG(VIe,t,1,7)),t.n;case 2:return t.k}return _vt(t,e,n,i)}function jht(){jht=I,jTe=new NS(lQt,0),FTe=new NS(oQt,1),RTe=new NS(rQt,2),NTe=new NS(mQt,3),$Te=new NS("UP",4)}function $ht(){$ht=I,dse=new YE(YJt,0),hse=new YE("INSIDE_PORT_SIDE_GROUPS",1),use=new YE("FORCE_MODEL_ORDER",2)}function zht(t,e,n){if(t<0||e>n)throw $b(new Dv(wZt+t+vZt+e+", size: "+n));if(t>e)throw $b(new Rv(wZt+t+kZt+e))}function Vht(t,e,n){if(e<0)rDt(t,n);else{if(!n.Ij())throw $b(new Rv(i6t+n.ne()+r6t));jz(n,66).Nj().Vj(t,t.yh(),e)}}function Hht(t,e,n,i,r,o,a,s){var c;for(c=n;o<a;)c>=i||e<n&&s.ue(t[e],t[c])<=0?IW(r,o++,t[e++]):IW(r,o++,t[c++])}function qht(t,e,n,i,r,o){this.e=new Mb,this.f=(oit(),Vwe),Gz(this.e,t),this.d=e,this.a=n,this.b=i,this.f=r,this.c=o}function Uht(t,e){var n,i;for(i=new DP(t);i.e!=i.i.gc();)if(n=jz(vbt(i),26),VD(e)===VD(n))return!0;return!1}function Ght(t){var e,n,i,r;for(gKt(),i=0,r=(n=tbt()).length;i<r;++i)if(-1!=y9((e=n[i]).a,t,0))return e;return Tre}function Wht(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t>=48&&t<=57?t-48:0}function Kht(t){var e;return 64&t.Db?EMt(t):((e=new lL(EMt(t))).a+=" (source: ",iI(e,t.d),e.a+=")",e.a)}function Yht(t,e,n){var i,r;return r=t.a,t.a=e,4&t.Db&&!(1&t.Db)&&(i=new QU(t,1,5,r,t.a),n?RCt(n,i):n=i),n}function Xht(t,e){var n;n=!!(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,2,n,e))}function Zht(t,e){var n;n=!!(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,8,n,e))}function Qht(t,e){var n;n=!!(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,8,n,e))}function Jht(t,e){var n;n=!!(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,3,n,e))}function tdt(t,e){var n;n=!!(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,9,n,e))}function edt(t,e){var n;return-1==t.b&&t.a&&(n=t.a.Gj(),t.b=n?t.c.Xg(t.a.aj(),n):Igt(t.c.Tg(),t.a)),t.c.Og(t.b,e)}function ndt(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(JV(),See)[e])&&(n=See[e]=new Pf(t)),n):new Pf(t)}function idt(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(_H(),Ree)[e])&&(n=Ree[e]=new Of(t)),n):new Of(t)}function rdt(t){var e;return t.k==(aEt(),Cse)&&((e=jz(wxt(t,(lKt(),Khe)),61))==(vGt(),sDe)||e==ADe)}function odt(t,e,n){var i,r;return(r=BMt(t.b,e))&&(i=jz(PVt(F9(t,r),""),26))?wMt(t,i,e,n):null}function adt(t,e,n){var i,r;return(r=BMt(t.b,e))&&(i=jz(PVt(F9(t,r),""),26))?kMt(t,i,e,n):null}function sdt(t,e){var n,i;for(i=new DP(t);i.e!=i.i.gc();)if(n=jz(vbt(i),138),VD(e)===VD(n))return!0;return!1}function cdt(t,e,n){var i;if(e>(i=t.gc()))throw $b(new JR(e,i));if(t.hi()&&t.Hc(n))throw $b(new Rv(o7t));t.Xh(e,n)}function ldt(t,e){var n;if(null==(n=cnt(t.i,e)))throw $b(new ty("Node did not exist in input."));return Rot(e,n),null}function udt(t,e){var n;if(iP(n=PLt(t,e),322))return jz(n,34);throw $b(new Rv(i6t+e+"' is not a valid attribute"))}function hdt(t,e,n){var i,r;for(r=iP(e,99)&&jz(e,18).Bb&$Xt?new PI(e,t):new Iat(e,t),i=0;i<n;++i)rwt(r);return r}function ddt(t){var e,n,i;for(i=0,n=t.length,e=0;e<n;e++)32==t[e]||13==t[e]||10==t[e]||9==t[e]||(t[i++]=t[e]);return i}function fdt(t){var e,n,i;for(e=new Mb,i=new Gf(t.b);i.a<i.c.c.length;)n=jz(Q1(i),594),pst(e,jz(n.jf(),14));return e}function gdt(t){var e,n;for(n=jz(wxt(t,(VHt(),uye)),15).Kc();n.Ob();)LV((e=jz(n.Pb(),188)).b.d,e),LV(e.c.b,e)}function pdt(t){switch(jz(wxt(t,(lKt(),ede)),303).g){case 1:lct(t,ede,(H9(),Ahe));break;case 2:lct(t,ede,(H9(),Ehe))}}function mdt(t){var e;t.g&&(LOt((e=t.c.Rf()?t.f:t.a).a,t.o,!0),LOt(e.a,t.o,!1),lct(t.o,(zWt(),tbe),(YCt(),qSe)))}function bdt(t){var e;if(!t.a)throw $b(new Fv("Cannot offset an unassigned cut."));e=t.c-t.b,t.b+=e,PX(t,e),MX(t,e)}function wdt(t){var e;return null==(e=t.a[t.c-1&t.a.length-1])?null:(t.c=t.c-1&t.a.length-1,IW(t.a,t.c,null),e)}function kdt(t){var e,n;for(n=t.p.a.ec().Kc();n.Ob();)if((e=jz(n.Pb(),213)).f&&t.b[e.c]<-1e-10)return e;return null}function vdt(t,e){switch(t.b.g){case 0:case 1:return e;case 2:case 3:return new qY(e.d,0,e.a,e.b);default:return null}}function ydt(t){switch(t.g){case 2:return FTe;case 1:return RTe;case 4:return NTe;case 3:return $Te;default:return jTe}}function _dt(t){switch(t.g){case 1:return EDe;case 2:return sDe;case 3:return aDe;case 4:return ADe;default:return xDe}}function Cdt(t){switch(t.g){case 1:return ADe;case 2:return EDe;case 3:return sDe;case 4:return aDe;default:return xDe}}function Adt(t){switch(t.g){case 1:return aDe;case 2:return ADe;case 3:return EDe;case 4:return sDe;default:return xDe}}function xdt(t){switch(t){case 0:return new bk;case 1:return new pk;case 2:return new mk;default:throw $b(new dw)}}function Edt(t,e){return t<e?-1:t>e?1:t==e?0==t?Edt(1/t,1/e):0:isNaN(t)?isNaN(e)?0:1:-1}function Tdt(t,e){DAt(e,"Sort end labels",1),XA(DY(dtt(new OH(null,new d1(t.b,16)),new gn),new pn),new mn),zEt(e)}function Sdt(t,e,n){var i,r;return t.ej()?(r=t.fj(),i=XDt(t,e,n),t.$i(t.Zi(7,ndt(n),i,e,r)),i):XDt(t,e,n)}function Ddt(t,e){var n,i,r;null==t.d?(++t.e,--t.f):(r=e.cd(),M6(t,i=((n=e.Sh())&OKt)%t.d.length,IMt(t,i,n,r)))}function Idt(t,e){var n;n=!!(t.Bb&v6t),e?t.Bb|=v6t:t.Bb&=-1025,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,10,n,e))}function Bdt(t,e){var n;n=!!(t.Bb&FXt),e?t.Bb|=FXt:t.Bb&=-4097,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,12,n,e))}function Mdt(t,e){var n;n=!!(t.Bb&C8t),e?t.Bb|=C8t:t.Bb&=-8193,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,15,n,e))}function Pdt(t,e){var n;n=!!(t.Bb&A8t),e?t.Bb|=A8t:t.Bb&=-2049,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,11,n,e))}function Ldt(t,e){var n;return 0!=(n=Edt(t.b.c,e.b.c))||0!=(n=Edt(t.a.a,e.a.a))?n:Edt(t.a.b,e.a.b)}function Odt(t,e){var n;if(null==(n=OW(t.k,e)))throw $b(new ty("Port did not exist in input."));return Rot(e,n),null}function Ndt(t){var e,n;for(n=HMt(Uet(t)).Kc();n.Ob();)if(Pjt(t,e=AN(n.Pb())))return w5((qx(),LBe),e);return null}function Rdt(t,e){var n,i,r,o,a;for(a=oOt(t.e.Tg(),e),o=0,n=jz(t.g,119),r=0;r<t.i;++r)i=n[r],a.rl(i.ak())&&++o;return o}function Fdt(t,e,n){var i,r;return i=jz(e.We(t.a),35),r=jz(n.We(t.a),35),null!=i&&null!=r?Pot(i,r):null!=i?-1:null!=r?1:0}function jdt(t,e,n){var i;if(t.c)hxt(t.c,e,n);else for(i=new Gf(t.b);i.a<i.c.c.length;)jdt(jz(Q1(i),157),e,n)}function $dt(t,e){var n,i;for(i=new Gf(e);i.a<i.c.c.length;)n=jz(Q1(i),46),w9(t.b.b,n.b),oZ(jz(n.a,189),jz(n.b,81))}function zdt(t){var e,n;for(n=PW(new Ey,91),e=!0;t.Ob();)e||(n.a+=jKt),e=!1,oI(n,t.Pb());return(n.a+="]",n).a}function Vdt(t,e){var n;n=!!(t.Bb&lYt),e?t.Bb|=lYt:t.Bb&=-16385,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,16,n,e))}function Hdt(t,e){var n;n=!!(t.Bb&l6t),e?t.Bb|=l6t:t.Bb&=-32769,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,18,n,e))}function qdt(t,e){var n;n=!!(t.Bb&l6t),e?t.Bb|=l6t:t.Bb&=-32769,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,18,n,e))}function Udt(t,e){var n;n=!!(t.Bb&$Xt),e?t.Bb|=$Xt:t.Bb&=-65537,4&t.Db&&!(1&t.Db)&&dat(t,new J4(t,1,20,n,e))}function Gdt(t){var e;return e=P7(TLe,WYt,25,2,15,1),t-=$Xt,e[0]=(t>>10)+zXt&YYt,e[1]=56320+(1023&t)&YYt,$pt(e,0,e.length)}function Wdt(t){var e;return(e=jz(wxt(t,(zWt(),qpe)),103))==(jht(),jTe)?Vv(CN(wxt(t,ype)))>=1?FTe:NTe:e}function Kdt(t){switch(jz(wxt(t,(zWt(),Zpe)),218).g){case 1:return new io;case 3:return new co;default:return new no}}function Ydt(t){if(t.c)Ydt(t.c);else if(t.d)throw $b(new Fv("Stream already terminated, can't be modified or used"))}function Xdt(t){var e;return 64&t.Db?EMt(t):((e=new lL(EMt(t))).a+=" (identifier: ",iI(e,t.k),e.a+=")",e.a)}function Zdt(t,e,n){var i;return J_(),ynt(i=new oc,e),_nt(i,n),t&&l8((!t.a&&(t.a=new IP(MIe,t,5)),t.a),i),i}function Qdt(t,e,n,i){var r,o;return kK(i),kK(n),null==(o=null==(r=t.xc(e))?n:ZA(jz(r,15),jz(n,14)))?t.Bc(e):t.zc(e,o),o}function Jdt(t){var e,n,i,r;return srt(n=new YF(e=jz(W_((r=(i=t.gm).f)==Ute?i:r),9),jz(AR(e,e.length),9),0),t),n}function tft(t,e,n){var i,r;for(r=t.a.ec().Kc();r.Ob();)if(i=jz(r.Pb(),10),sst(n,jz(PH(e,i.p),14)))return i;return null}function eft(t,e,n){try{Fct(t,e,n)}catch(t){throw iP(t=hst(t),597)?$b(new g4(t)):$b(t)}return e}function nft(t,e){var n;return XI(t)&&XI(e)&&BXt<(n=t-e)&&n<DXt?n:aat(lst(XI(t)?Eat(t):t,XI(e)?Eat(e):e))}function ift(t,e){var n;return XI(t)&&XI(e)&&BXt<(n=t+e)&&n<DXt?n:aat(cst(XI(t)?Eat(t):t,XI(e)?Eat(e):e))}function rft(t,e){var n;return XI(t)&&XI(e)&&BXt<(n=t*e)&&n<DXt?n:aat(uHt(XI(t)?Eat(t):t,XI(e)?Eat(e):e))}function oft(t,e){var n;return t.i||eDt(t),(n=jz(aY(t.g,e),46))?new s1(t.j,jz(n.a,19).a,jz(n.b,19).a):(AX(),AX(),cne)}function aft(t,e,n){var i;return i=t.a.get(e),t.a.set(e,void 0===n?null:n),void 0===i?(++t.c,aZ(t.b)):++t.d,i}function sft(t,e,n){t.n=kH(ILe,[cYt,jXt],[364,25],14,[n,EQ(i.Math.ceil(e/32))],2),t.o=e,t.p=n,t.j=e-1>>1,t.k=n-1>>1}function cft(){var t,e,n;kAt(),n=Bne+++Date.now(),t=EQ(i.Math.floor(n*aZt))&cZt,e=EQ(n-t*sZt),this.a=1502^t,this.b=e^oZt}function lft(t){var e,n;for(e=new Mb,n=new Gf(t.j);n.a<n.c.c.length;)Gz(e,jz(Q1(n),11).b);return wW(e),new SI(e)}function uft(t){var e,n;for(e=new Mb,n=new Gf(t.j);n.a<n.c.c.length;)Gz(e,jz(Q1(n),11).e);return wW(e),new SI(e)}function hft(t){var e,n;for(e=new Mb,n=new Gf(t.j);n.a<n.c.c.length;)Gz(e,jz(Q1(n),11).g);return wW(e),new SI(e)}function dft(t){var e,n;for(n=tMt(Uet(fJ(t))).Kc();n.Ob();)if(Pjt(t,e=AN(n.Pb())))return k5((Ux(),HBe),e);return null}function fft(t){var e,n;for(e=0,n=t.length;e<n;e++)if(null==t[e])throw $b(new $v("at index "+e));return new Xv(t)}function gft(t,e){var n;if(iP(n=PLt(t.Tg(),e),99))return jz(n,18);throw $b(new Rv(i6t+e+"' is not a valid reference"))}function pft(t){var e;return(e=dEt(t))>34028234663852886e22?NXt:e<-34028234663852886e22?RXt:e}function mft(t){return t=((t=((t-=t>>1&1431655765)>>2&858993459)+(858993459&t))>>4)+t&252645135,t+=t>>8,63&(t+=t>>16)}function bft(t){var e,n,i;for(e=new cR(t.Hd().gc()),i=0,n=B8(t.Hd().Kc());n.Ob();)vJ(e,n.Pb(),ndt(i++));return PEt(e.a)}function wft(t,e){var n,i,r;for(r=new Pb,i=e.vc().Kc();i.Ob();)WK(r,(n=jz(i.Pb(),42)).cd(),hat(t,jz(n.dd(),15)));return r}function kft(t,e){0==t.n.c.length&&Gz(t.n,new OQ(t.s,t.t,t.i)),Gz(t.b,e),ckt(jz(PH(t.n,t.n.c.length-1),211),e),$$t(t,e)}function vft(t){return t.c==t.b.b&&t.i==t.g.b||(t.a.c=P7(Ite,zKt,1,0,5,1),pst(t.a,t.b),pst(t.a,t.g),t.c=t.b.b,t.i=t.g.b),t.a}function yft(t,e){var n,i;for(i=0,n=jz(e.Kb(t),20).Kc();n.Ob();)zv(_N(wxt(jz(n.Pb(),17),(lKt(),Ede))))||++i;return i}function _ft(t,e){var n,r;r=Vv(CN(ept(l2(e),(zWt(),wbe)))),jyt(e,n=i.Math.max(0,r/2-.5),1),Gz(t,new uT(e,n))}function Cft(){Cft=I,zde=new jT(YJt,0),Rde=new jT("FIRST",1),Fde=new jT(T1t,2),jde=new jT("LAST",3),$de=new jT(S1t,4)}function Aft(){Aft=I,ZTe=new FS(lQt,0),YTe=new FS("POLYLINE",1),KTe=new FS("ORTHOGONAL",2),XTe=new FS("SPLINES",3)}function xft(){xft=I,Z_e=new kS("ASPECT_RATIO_DRIVEN",0),Q_e=new kS("MAX_SCALE_DRIVEN",1),X_e=new kS("AREA_DRIVEN",2)}function Eft(){Eft=I,$Ce=new yS("P1_STRUCTURE",0),zCe=new yS("P2_PROCESSING_ORDER",1),VCe=new yS("P3_EXECUTION",2)}function Tft(){Tft=I,t_e=new gS("OVERLAP_REMOVAL",0),Qye=new gS("COMPACTION",1),Jye=new gS("GRAPH_SIZE_CALCULATION",2)}function Sft(t,e){return cM(),iit(RYt),i.Math.abs(t-e)<=RYt||t==e||isNaN(t)&&isNaN(e)?0:t<e?-1:t>e?1:HI(isNaN(t),isNaN(e))}function Dft(t,e){var n,i;for(n=cbt(t,0);n.b!=n.d.c;){if((i=Hv(CN(h3(n))))==e)return;if(i>e){q0(n);break}}QG(n,e)}function Ift(t,e){var n,i,r,o,a;if(n=e.f,Zmt(t.c.d,n,e),null!=e.g)for(o=0,a=(r=e.g).length;o<a;++o)i=r[o],Zmt(t.c.e,i,e)}function Bft(t,e,n,i){var r,o,a;for(r=e+1;r<n;++r)for(o=r;o>e&&i.ue(t[o-1],t[o])>0;--o)a=t[o],IW(t,o,t[o-1]),IW(t,o-1,a)}function Mft(t,e,n,i){if(e<0)CPt(t,n,i);else{if(!n.Ij())throw $b(new Rv(i6t+n.ne()+r6t));jz(n,66).Nj().Tj(t,t.yh(),e,i)}}function Pft(t,e){if(e==t.d)return t.e;if(e==t.e)return t.d;throw $b(new Rv("Node "+e+" not part of edge "+t))}function Lft(t,e){switch(e.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function Oft(t,e){switch(e.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function Nft(t,e,n,i){switch(e){case 3:return t.f;case 4:return t.g;case 5:return t.i;case 6:return t.j}return Fht(t,e,n,i)}function Rft(t){return t.k==(aEt(),Ese)&&a4(new OH(null,new HG(new aU(ZP(hft(t).a.Kc(),new u)))),new Hr)}function Fft(t){return null==t.e?t:(!t.c&&(t.c=new iRt(!!(256&t.f),t.i,t.a,t.d,!!(16&t.f),t.j,t.g,null)),t.c)}function jft(t,e){return t.h==TXt&&0==t.m&&0==t.l?(e&&(hee=CM(0,0,0)),GI((U9(),gee))):(e&&(hee=CM(t.l,t.m,t.h)),CM(0,0,0))}function $ft(t){return Array.isArray(t)&&t.im===D?Q_(tlt(t))+"@"+(Jct(t)>>>0).toString(16):t.toString()}function zft(t){var e;this.a=new YF(e=jz(t.e&&t.e(),9),jz(AR(e,e.length),9),0),this.b=P7(Ite,zKt,1,this.a.a.length,5,1)}function Vft(t){var e,n,i;for(this.a=new lB,i=new Gf(t);i.a<i.c.c.length;)n=jz(Q1(i),14),drt(e=new cq,n),_G(this.a,e)}function Hft(t){var e,n;for(zN(),e=t.o.b,n=jz(jz(c6(t.r,(vGt(),ADe)),21),84).Kc();n.Ob();)jz(n.Pb(),111).e.b+=e}function qft(t){var e;if(t.b){if(qft(t.b),t.b.d!=t.c)throw $b(new mw)}else t.d.dc()&&(e=jz(t.f.c.xc(t.e),14))&&(t.d=e)}function Uft(t){var e;return null==t||(e=t.length)>0&&(h1(e-1,t.length),58==t.charCodeAt(e-1))&&!Gft(t,IBe,BBe)}function Gft(t,e,n){var i,r;for(i=0,r=t.length;i<r;i++)if(tct((h1(i,t.length),t.charCodeAt(i)),e,n))return!0;return!1}function Wft(t,e){var n,i;for(i=t.e.a.ec().Kc();i.Ob();)if(tEt(e,(n=jz(i.Pb(),266)).d)||SSt(e,n.d))return!0;return!1}function Kft(t,e){var n,i,r;for(r=(i=zRt(t,e))[i.length-1]/2,n=0;n<i.length;n++)if(i[n]>=r)return e.c+n;return e.c+e.b.gc()}function Yft(t,e){var n,i,r,o;for(fN(),r=e,H8(i=$8(t),0,i.length,r),n=0;n<i.length;n++)n!=(o=pyt(t,i[n],n))&&Sdt(t,n,o)}function Xft(t,e){var n,i,r,o,a,s;for(i=0,n=0,a=0,s=(o=e).length;a<s;++a)(r=o[a])>0&&(i+=r,++n);return n>1&&(i+=t.d*(n-1)),i}function Zft(t){var e,n,i;for((i=new Ay).a+="[",e=0,n=t.gc();e<n;)iI(i,kL(t.ki(e))),++e<n&&(i.a+=jKt);return i.a+="]",i.a}function Qft(t){var e,n,i;return i=IAt(t),!GC(t.c)&&(net(i,"knownLayouters",n=new xd),e=new nb(n),t4(t.c,e)),i}function Jft(t,e){var n,i;for(kK(e),n=!1,i=new Gf(t);i.a<i.c.c.length;)kgt(e,Q1(i),!1)&&(DG(i),n=!0);return n}function tgt(t){var e,n;for(n=Vv(CN(t.a.We((cKt(),STe)))),e=new Gf(t.a.xf());e.a<e.c.c.length;)KGt(t,jz(Q1(e),680),n)}function egt(t,e){var n,i;for(i=new Gf(e);i.a<i.c.c.length;)n=jz(Q1(i),46),Gz(t.b.b,jz(n.b,81)),g2(jz(n.a,189),jz(n.b,81))}function ngt(t,e,n){var i,r;for(i=(r=t.a.b).c.length;i<n;i++)kq(r,0,new $W(t.a));xJ(e,jz(PH(r,r.c.length-n),29)),t.b[e.p]=n}function igt(t,e,n){var i;!(i=n)&&(i=BV(new Uk,0)),DAt(i,VJt,2),wwt(t.b,e,wot(i,1)),RHt(t,e,wot(i,1)),VGt(e,wot(i,1)),zEt(i)}function rgt(t,e,n,i,r){jJ(),ULt(rx(ix(nx(ox(new $w,0),r.d.e-t),e),r.d)),ULt(rx(ix(nx(ox(new $w,0),n-r.a.e),r.a),i))}function ogt(t,e,n,i,r,o){this.a=t,this.c=e,this.b=n,this.f=i,this.d=r,this.e=o,this.c>0&&this.b>0&&YH(this.c,this.b,this.a)}function agt(t){Ngt(),this.c=o6(Est(Vy(nxe,1),zKt,831,0,[Gbe])),this.b=new Pb,this.a=t,WK(this.b,Wbe,1),Det(Kbe,new xm(this))}function sgt(t,e){var n;return t.d?cG(t.b,e)?jz(OW(t.b,e),51):(n=e.Kf(),WK(t.b,e,n),n):e.Kf()}function cgt(t,e){var n;return VD(t)===VD(e)||!!iP(e,91)&&(n=jz(e,91),t.e==n.e&&t.d==n.d&&y5(t,n.a))}function lgt(t){switch(vGt(),t.g){case 4:return sDe;case 1:return aDe;case 3:return ADe;case 2:return EDe;default:return xDe}}function ugt(t,e){switch(e){case 3:return 0!=t.f;case 4:return 0!=t.g;case 5:return 0!=t.i;case 6:return 0!=t.j}return _at(t,e)}function hgt(t){switch(t.g){case 0:return new Ua;case 1:return new Ga;default:throw $b(new Rv(r5t+(null!=t.f?t.f:""+t.g)))}}function dgt(t){switch(t.g){case 0:return new qa;case 1:return new Wa;default:throw $b(new Rv(A1t+(null!=t.f?t.f:""+t.g)))}}function fgt(t){switch(t.g){case 0:return new Wk;case 1:return new wk;default:throw $b(new Rv(P5t+(null!=t.f?t.f:""+t.g)))}}function ggt(t){switch(t.g){case 1:return new Fa;case 2:return new gN;default:throw $b(new Rv(r5t+(null!=t.f?t.f:""+t.g)))}}function pgt(t){var e,n;if(t.b)return t.b;for(n=Kne?null:t.d;n;){if(e=Kne?null:n.b)return e;n=Kne?null:n.d}return ux(),$ne}function mgt(t){var e,n;return 0==t.e?0:(e=t.d<<5,n=t.a[t.d-1],t.e<0&&Tot(t)==t.d-1&&(--n,n|=0),e-=QDt(n))}function bgt(t){var e,n,i;return t<tne.length?tne[t]:(e=31&t,(i=P7(SLe,lXt,25,1+(n=t>>5),15,1))[n]=1<<e,new uG(1,n+1,i))}function wgt(t){var e,n,i;return(n=t.zg())?iP(e=t.Ug(),160)&&null!=(i=wgt(jz(e,160)))?i+"."+n:n:null}function kgt(t,e,n){var i,r;for(r=t.Kc();r.Ob();)if(i=r.Pb(),VD(e)===VD(i)||null!=e&&Pht(e,i))return n&&r.Qb(),!0;return!1}function vgt(t,e,n){var i,r;if(++t.j,n.dc())return!1;for(r=n.Kc();r.Ob();)i=r.Pb(),t.Hi(e,t.oi(e,i)),++e;return!0}function ygt(t,e,n,i){var r,o;if((o=n-e)<3)for(;o<3;)t*=10,++o;else{for(r=1;o>3;)r*=10,--o;t=(t+(r>>1))/r|0}return i.i=t,!0}function _gt(t){return xut(),cL(),!!(Oft(jz(t.a,81).j,jz(t.b,103))||0!=jz(t.a,81).d.e&&Oft(jz(t.a,81).j,jz(t.b,103)))}function Cgt(t){P8(),jz(t.We((cKt(),zEe)),174).Hc((JFt(),WDe))&&(jz(t.We(lTe),174).Fc((hDt(),iDe)),jz(t.We(zEe),174).Mc(WDe))}function Agt(t,e){var n;if(e){for(n=0;n<t.i;++n)if(jz(t.g[n],366).Di(e))return!1;return l8(t,e)}return!1}function xgt(t){var e,n,i;for(e=new xd,i=new zf(t.b.Kc());i.b.Ob();)n=KEt(jz(i.b.Pb(),686)),GG(e,e.a.length,n);return e.a}function Egt(t){var e;return!t.c&&(t.c=new Pt),bM(t.d,new Ot),XFt(t),e=hNt(t),XA(new OH(null,new d1(t.d,16)),new Tg(t)),e}function Tgt(t){var e;return 64&t.Db?vht(t):((e=new lL(vht(t))).a+=" (instanceClassName: ",iI(e,t.D),e.a+=")",e.a)}function Sgt(t,e){var n,i;e&&(n=Nnt(e,"x"),Cnt(new Zm(t).a,(kK(n),n)),i=Nnt(e,"y"),Dnt(new Qm(t).a,(kK(i),i)))}function Dgt(t,e){var n,i;e&&(n=Nnt(e,"x"),Snt(new Wm(t).a,(kK(n),n)),i=Nnt(e,"y"),Int(new Ym(t).a,(kK(i),i)))}function Igt(t,e){var n,i,r;if(null==t.i&&V$t(t),n=t.i,-1!=(i=e.aj()))for(r=n.length;i<r;++i)if(n[i]==e)return i;return-1}function Bgt(t){var e,n,i,r;for(n=jz(t.g,674),i=t.i-1;i>=0;--i)for(e=n[i],r=0;r<i;++r)if(b$t(t,e,n[r])){Mvt(t,i);break}}function Mgt(t){var e=t.e;function n(t){return t&&0!=t.length?"\t"+t.join("\n\t"):""}return e&&(e.stack||n(t[UYt]))}function Pgt(t){var e;switch(GW(),(e=t.Pc()).length){case 0:return jte;case 1:return new xH(wW(e[0]));default:return new AZ(fft(e))}}function Lgt(t,e){switch(e.g){case 1:return Nz(t.j,(pot(),Mse));case 2:return Nz(t.j,(pot(),Lse));default:return AX(),AX(),cne}}function Ogt(t,e){switch(e){case 3:return void Ant(t,0);case 4:return void xnt(t,0);case 5:return void Ent(t,0);case 6:return void Tnt(t,0)}sht(t,e)}function Ngt(){Ngt=I,Dx(),zWt(),Wbe=Sbe,Kbe=o6(Est(Vy(uxe,1),v3t,146,0,[bbe,wbe,vbe,ybe,Abe,xbe,Ebe,Tbe,Ibe,Mbe,kbe,_be,Dbe]))}function Rgt(t){var e,n;e=t.d==(BTt(),Xle),n=BCt(t),lct(t.a,(zWt(),kpe),e&&!n||!e&&n?(fwt(),Ixe):(fwt(),Dxe))}function Fgt(t,e){var n;return(n=jz(x5(t,b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15)).Qc(uV(n.gc()))}function jgt(){jgt=I,tIe=new YS("SIMPLE",0),ZDe=new YS("GROUP_DEC",1),JDe=new YS("GROUP_MIXED",2),QDe=new YS("GROUP_INC",3)}function $gt(){$gt=I,VMe=new Mc,OMe=new Pc,NMe=new Lc,RMe=new Oc,FMe=new Nc,jMe=new Rc,$Me=new Fc,zMe=new jc,HMe=new $c}function zgt(t,e,n){Vet(),sk.call(this),this.a=kH(Uie,[cYt,iQt],[595,212],0,[Qie,Zie],2),this.c=new hB,this.g=t,this.f=e,this.d=n}function Vgt(t,e){this.n=kH(ILe,[cYt,jXt],[364,25],14,[e,EQ(i.Math.ceil(t/32))],2),this.o=t,this.p=e,this.j=t-1>>1,this.k=e-1>>1}function Hgt(t,e){DAt(e,"End label post-processing",1),XA(DY(dtt(new OH(null,new d1(t.b,16)),new an),new sn),new cn),zEt(e)}function qgt(t,e,n){var i;return i=Vv(t.p[e.i.p])+Vv(t.d[e.i.p])+e.n.b+e.a.b,Vv(t.p[n.i.p])+Vv(t.d[n.i.p])+n.n.b+n.a.b-i}function Ugt(t,e,n){var i,r;for(i=t0(n,UXt),r=0;0!=Kut(i,0)&&r<e;r++)i=ift(i,t0(t[r],UXt)),t[r]=fq(i),i=kU(i,32);return fq(i)}function Ggt(t){var e,n,i,r;for(r=0,n=0,i=t.length;n<i;n++)h1(n,t.length),(e=t.charCodeAt(n))<64&&(r=e0(r,wU(1,e)));return r}function Wgt(t){var e;return null==t?null:new IB((e=jzt(t,!0)).length>0&&(h1(0,e.length),43==e.charCodeAt(0))?e.substr(1):e)}function Kgt(t){var e;return null==t?null:new IB((e=jzt(t,!0)).length>0&&(h1(0,e.length),43==e.charCodeAt(0))?e.substr(1):e)}function Ygt(t,e){return t.i>0&&(e.length<t.i&&(e=Ont(tlt(e).c,t.i)),oVt(t.g,0,e,0,t.i)),e.length>t.i&&IW(e,t.i,null),e}function Xgt(t,e,n){var i,r,o;return t.ej()?(i=t.i,o=t.fj(),Sht(t,i,e),r=t.Zi(3,null,e,i,o),n?n.Ei(r):n=r):Sht(t,t.i,e),n}function Zgt(t,e,n){var i,r;return i=new M9(t.e,4,10,iP(r=e.c,88)?jz(r,26):(pKt(),dMe),null,awt(t,e),!1),n?n.Ei(i):n=i,n}function Qgt(t,e,n){var i,r;return i=new M9(t.e,3,10,null,iP(r=e.c,88)?jz(r,26):(pKt(),dMe),awt(t,e),!1),n?n.Ei(i):n=i,n}function Jgt(t){var e;return zN(),e=new dB(jz(t.e.We((cKt(),jEe)),8)),t.B.Hc((JFt(),VDe))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function tpt(t){return dwt(),(t.q?t.q:(AX(),AX(),lne))._b((zWt(),Ome))?jz(wxt(t,Ome),197):jz(wxt(mK(t),Nme),197)}function ept(t,e){var n,i;return i=null,BO(t,(zWt(),Cbe))&&(n=jz(wxt(t,Cbe),94)).Xe(e)&&(i=n.We(e)),null==i&&(i=wxt(mK(t),e)),i}function npt(t,e){var n,i,r;return!!iP(e,42)&&(i=(n=jz(e,42)).cd(),dK(r=hht(t.Rc(),i),n.dd())&&(null!=r||t.Rc()._b(i)))}function ipt(t,e){var n;return t.f>0&&(t.qj(),-1!=IMt(t,((n=null==e?0:Jct(e))&OKt)%t.d.length,n,e))}function rpt(t,e){var n,i;return t.f>0&&(t.qj(),n=oIt(t,((i=null==e?0:Jct(e))&OKt)%t.d.length,i,e))?n.dd():null}function opt(t,e){var n,i,r,o;for(o=oOt(t.e.Tg(),e),n=jz(t.g,119),r=0;r<t.i;++r)if(i=n[r],o.rl(i.ak()))return!1;return!0}function apt(t){if(null==t.b){for(;t.a.Ob();)if(t.b=t.a.Pb(),!jz(t.b,49).Zg())return!0;return t.b=null,!1}return!0}function spt(t,e){t.mj();try{t.d.Vc(t.e++,e),t.f=t.d.j,t.g=-1}catch(t){throw iP(t=hst(t),73)?$b(new mw):$b(t)}}function cpt(t,e){var n,i;return sM(),i=null,e==(n=lR((ly(),ly(),iee)))&&(i=jz(AQ(nee,t),615)),i||(i=new HW(t),e==n&&bJ(nee,t,i)),i}function lpt(t,e){var n,r;t.a=ift(t.a,1),t.c=i.Math.min(t.c,e),t.b=i.Math.max(t.b,e),t.d+=e,n=e-t.f,r=t.e+n,t.f=r-t.e-n,t.e=r}function upt(t,e){var n;t.c=e,t.a=mgt(e),t.a<54&&(t.f=(n=e.d>1?e0(wU(e.a[1],32),t0(e.a[0],UXt)):t0(e.a[0],UXt),v2(rft(e.e,n))))}function hpt(t,e){var n;return XI(t)&&XI(e)&&BXt<(n=t%e)&&n<DXt?n:aat((IHt(XI(t)?Eat(t):t,XI(e)?Eat(e):e,!0),hee))}function dpt(t,e){var n;OUt(e),(n=jz(wxt(t,(zWt(),Xpe)),276))&&lct(t,Xpe,Ivt(n)),QL(t.c),QL(t.f),W6(t.d),W6(jz(wxt(t,Dme),207))}function fpt(t){this.e=P7(SLe,lXt,25,t.length,15,1),this.c=P7(DLe,QZt,25,t.length,16,1),this.b=P7(DLe,QZt,25,t.length,16,1),this.f=0}function gpt(t){var e,n;for(t.j=P7(MLe,VXt,25,t.p.c.length,15,1),n=new Gf(t.p);n.a<n.c.c.length;)e=jz(Q1(n),10),t.j[e.p]=e.o.b/t.i}function ppt(t){var e;0!=t.c&&(1==(e=jz(PH(t.a,t.b),287)).b?(++t.b,t.b<t.a.c.length&&_f(jz(PH(t.a,t.b),287))):--e.b,--t.c)}function mpt(t){var e;e=t.a;do{(e=jz(q4(new aU(ZP(hft(e).a.Kc(),new u))),17).d.i).k==(aEt(),xse)&&Gz(t.e,e)}while(e.k==(aEt(),xse))}function bpt(){bpt=I,BDe=new GB(15),IDe=new UB((cKt(),UEe),BDe),PDe=new UB(BTe,15),MDe=new UB(mTe,ndt(0)),DDe=new UB(iEe,gJt)}function wpt(){wpt=I,NDe=new WS("PORTS",0),RDe=new WS("PORT_LABELS",1),ODe=new WS("NODE_LABELS",2),LDe=new WS("MINIMUM_SIZE",3)}function kpt(t,e){var n,i;for(i=e.length,n=0;n<i;n+=2)XOt(t,(h1(n,e.length),e.charCodeAt(n)),(h1(n+1,e.length),e.charCodeAt(n+1)))}function vpt(t,e,n){var i,r,o,a;for(o=e-t.e,a=n-t.f,r=new Gf(t.a);r.a<r.c.c.length;)Cwt(i=jz(Q1(r),187),i.s+o,i.t+a);t.e=e,t.f=n}function ypt(t,e){var n,i,r;for(r=e.b.b,t.a=new YA,t.b=P7(SLe,lXt,25,r,15,1),n=0,i=cbt(e.b,0);i.b!=i.d.c;)jz(h3(i),86).g=n++}function _pt(t,e){var n,i,r,o;return n=e>>5,e&=31,r=t.d+n+(0==e?0:1),LAt(i=P7(SLe,lXt,25,r,15,1),t.a,n,e),U0(o=new uG(t.e,r,i)),o}function Cpt(t,e,n){var i,r;i=jz(AQ(tLe,e),117),r=jz(AQ(eLe,e),117),n?(bJ(tLe,t,i),bJ(eLe,t,r)):(bJ(eLe,t,i),bJ(tLe,t,r))}function Apt(t,e,n){var i,r,o;for(r=null,o=t.b;o;){if(i=t.a.ue(e,o.d),n&&0==i)return o;i>=0?o=o.a[1]:(r=o,o=o.a[0])}return r}function xpt(t,e,n){var i,r,o;for(r=null,o=t.b;o;){if(i=t.a.ue(e,o.d),n&&0==i)return o;i<=0?o=o.a[0]:(r=o,o=o.a[1])}return r}function Ept(t,e,n,i){var r,o,a;return r=!1,Mqt(t.f,n,i)&&(Lmt(t.f,t.a[e][n],t.a[e][i]),a=(o=t.a[e])[i],o[i]=o[n],o[n]=a,r=!0),r}function Tpt(t,e,n,i,r){var o,a,s;for(a=r;e.b!=e.c;)o=jz(fG(e),10),s=jz(oft(o,i).Xb(0),11),t.d[s.p]=a++,n.c[n.c.length]=s;return a}function Spt(t,e,n){var r,o,a,s,c;return s=t.k,c=e.k,o=CN(ept(t,r=n[s.g][c.g])),a=CN(ept(e,r)),i.Math.max((kK(o),o),(kK(a),a))}function Dpt(t,e,n){var i,r,o,a;for(i=n/t.c.length,r=0,a=new Gf(t);a.a<a.c.c.length;)put(o=jz(Q1(a),200),o.f+i*r),o_t(o,e,i),++r}function Ipt(t,e,n){var i,r,o;for(r=jz(OW(t.b,n),177),i=0,o=new Gf(e.j);o.a<o.c.c.length;)r[jz(Q1(o),113).d.p]&&++i;return i}function Bpt(t){var e,n;return null!=(e=jz(kat(t.a,4),126))?(oVt(e,0,n=P7(dBe,n8t,415,e.length,0,1),0,e.length),n):hBe}function Mpt(){var t;return 0!=ree&&(t=u4())-oee>2e3&&(oee=t,aee=i.setTimeout(KC,10)),0==ree++&&(Stt((sy(),tee)),!0)}function Ppt(t,e){var n;for(n=new aU(ZP(hft(t).a.Kc(),new u));gBt(n);)if(jz(q4(n),17).d.i.c==e)return!1;return!0}function Lpt(t,e){var n;if(iP(e,245)){n=jz(e,245);try{return 0==t.vd(n)}catch(t){if(!iP(t=hst(t),205))throw $b(t)}}return!1}function Opt(){return Error.stackTraceLimit>0?(i.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Npt(t,e){return cM(),cM(),iit(RYt),(i.Math.abs(t-e)<=RYt||t==e||isNaN(t)&&isNaN(e)?0:t<e?-1:t>e?1:HI(isNaN(t),isNaN(e)))>0}function Rpt(t,e){return cM(),cM(),iit(RYt),(i.Math.abs(t-e)<=RYt||t==e||isNaN(t)&&isNaN(e)?0:t<e?-1:t>e?1:HI(isNaN(t),isNaN(e)))<0}function Fpt(t,e){return cM(),cM(),iit(RYt),(i.Math.abs(t-e)<=RYt||t==e||isNaN(t)&&isNaN(e)?0:t<e?-1:t>e?1:HI(isNaN(t),isNaN(e)))<=0}function jpt(t,e){for(var n=0;!e[n]||""==e[n];)n++;for(var i=e[n++];n<e.length;n++)e[n]&&""!=e[n]&&(i+=t+e[n]);return i}function $pt(t,e,n){var r,o,a,s;for(R7(e,a=e+n,t.length),s="",o=e;o<a;)r=i.Math.min(o+1e4,a),s+=GK(t.slice(o,r)),o=r;return s}function zpt(t){var e,n,i,r;if(null==t)return null;for(r=new Mb,n=0,i=(e=klt(t)).length;n<i;++n)Gz(r,jzt(e[n],!0));return r}function Vpt(t){var e,n,i,r;if(null==t)return null;for(r=new Mb,n=0,i=(e=klt(t)).length;n<i;++n)Gz(r,jzt(e[n],!0));return r}function Hpt(t){var e,n,i,r;if(null==t)return null;for(r=new Mb,n=0,i=(e=klt(t)).length;n<i;++n)Gz(r,jzt(e[n],!0));return r}function qpt(t,e){var n,i,r;if(t.c)xnt(t.c,e);else for(n=e-eq(t),r=new Gf(t.d);r.a<r.c.c.length;)qpt(i=jz(Q1(r),157),eq(i)+n)}function Upt(t,e){var n,i,r;if(t.c)Ant(t.c,e);else for(n=e-tq(t),r=new Gf(t.a);r.a<r.c.c.length;)Upt(i=jz(Q1(r),157),tq(i)+n)}function Gpt(t,e){var n,i,r;for(i=new X6(e.gc()),n=e.Kc();n.Ob();)(r=tjt(t,jz(n.Pb(),56)))&&(i.c[i.c.length]=r);return i}function Wpt(t,e){var n,i;return t.qj(),(n=oIt(t,((i=null==e?0:Jct(e))&OKt)%t.d.length,i,e))?(lit(t,n),n.dd()):null}function Kpt(t){var e,n;for(n=aTt(t),e=null;2==t.c;)YWt(t),e||(fKt(),fKt(),tHt(e=new nM(2),n),n=e),n.$l(aTt(t));return n}function Ypt(t){if(!(V6t in t.a))throw $b(new ty("Every element must have an id."));return vDt(HQ(t,V6t))}function Xpt(t){var e,n,i;if(!(i=t.Zg()))for(e=0,n=t.eh();n;n=n.eh()){if(++e>HXt)return n.fh();if((i=n.Zg())||n==t)break}return i}function Zpt(t){return cJ(),iP(t,156)?jz(OW(oBe,wne),288).vg(t):cG(oBe,tlt(t))?jz(OW(oBe,tlt(t)),288).vg(t):null}function Qpt(t){if(wmt(o4t,t))return cL(),bee;if(wmt(a4t,t))return cL(),mee;throw $b(new Rv("Expecting true or false"))}function Jpt(t,e){if(e.c==t)return e.d;if(e.d==t)return e.c;throw $b(new Rv("Input edge is not connected to the input port."))}function tmt(t,e){return t.e>e.e?1:t.e<e.e?-1:t.d>e.d?t.e:t.d<e.d?-e.e:t.e*Alt(t.a,e.a,t.d)}function emt(t){return t>=48&&t<48+i.Math.min(10,10)?t-48:t>=97&&t<97?t-97+10:t>=65&&t<65?t-65+10:-1}function nmt(t,e){var n;return VD(e)===VD(t)||!!iP(e,21)&&(n=jz(e,21)).gc()==t.gc()&&t.Ic(n)}function imt(t,e){var n,i,r;return i=t.a.length-1,n=e-t.b&i,r=t.c-e&i,yO(n<(t.c-t.b&i)),n>=r?(out(t,e),-1):(aut(t,e),1)}function rmt(t,e){var n,i;for(h1(e,t.length),n=t.charCodeAt(e),i=e+1;i<t.length&&(h1(i,t.length),t.charCodeAt(i)==n);)++i;return i-e}function omt(t){switch(t.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function amt(t,e){var n,i=t.a;e=String(e),i.hasOwnProperty(e)&&(n=i[e]);var r=(Qst(),uee)[typeof n];return r?r(n):vut(typeof n)}function smt(t,e){if(t.a<0)throw $b(new Fv("Did not call before(...) or after(...) before calling add(...)."));return GL(t,t.a,e),t}function cmt(t,e,n,i){var r;0!=e.c.length&&(r=APt(n,i),XA(ket(new OH(null,new d1(aDt(e),1)),new Ca),new UY(t,n,r,i)))}function lmt(t,e,n){var i;t.Db&e?null==n?WIt(t,e):-1==(i=Nkt(t,e))?t.Eb=n:IW(ent(t.Eb),i,n):null!=n&&wOt(t,e,n)}function umt(t){var e;return 32&t.Db||0!=(e=hW(jz(kat(t,16),26)||t.zh())-hW(t.zh()))&&lmt(t,32,P7(Ite,zKt,1,e,5,1)),t}function hmt(t){var e;return t.b||U_(t,!(e=QR(t.e,t.a))||!bF(a4t,rpt((!e.b&&(e.b=new XO((pKt(),wMe),qMe,e)),e.b),"qualified"))),t.c}function dmt(t,e,n){var i,r;return((r=(i=jz(Wet($9(t.a),e),87)).c||(pKt(),lMe)).kh()?tht(t.b,jz(r,49)):r)==n?h$t(i):rnt(i,n),r}function fmt(t,e){(e||null==console.groupCollapsed?null!=console.group?console.group:console.log:console.groupCollapsed).call(console,t)}function gmt(t,e,n,i){jz(n.b,65),jz(n.b,65),jz(i.b,65),jz(i.b,65).c.b,N7(i,e,t)}function pmt(t){var e,n;for(e=new Gf(t.g);e.a<e.c.c.length;)jz(Q1(e),562);qUt(n=new kOt(t.g,Vv(t.a),t.c)),t.g=n.b,t.d=n.a}function mmt(t,e,n){e.b=i.Math.max(e.b,-n.a),e.c=i.Math.max(e.c,n.a-t.a),e.d=i.Math.max(e.d,-n.b),e.a=i.Math.max(e.a,n.b-t.b)}function bmt(t,e){return t.e<e.e?-1:t.e>e.e?1:t.f<e.f?-1:t.f>e.f?1:Jct(t)-Jct(e)}function wmt(t,e){return kK(t),null!=e&&(!!bF(t,e)||t.length==e.length&&bF(t.toLowerCase(),e.toLowerCase()))}function kmt(t,e){var n,i,r,o;for(i=0,r=e.gc();i<r;++i)iP(n=e.il(i),99)&&jz(n,18).Bb&l6t&&null!=(o=e.jl(i))&&tjt(t,jz(o,56))}function vmt(t,e,n){var i,r,o;for(o=new Gf(n.a);o.a<o.c.c.length;)r=jz(Q1(o),221),i=new EM(jz(OW(t.a,r.b),65)),Gz(e.a,i),vmt(t,i,r)}function ymt(t){var e,n;return Kut(t,-129)>0&&Kut(t,128)<0?(e=fq(t)+128,!(n=(yH(),Bee)[e])&&(n=Bee[e]=new Lf(t)),n):new Lf(t)}function _mt(t,e){var n,i;return(n=e.Hh(t.a))&&null!=(i=AN(rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),t7t)))?i:e.ne()}function Cmt(t,e){var n,i;return(n=e.Hh(t.a))&&null!=(i=AN(rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),t7t)))?i:e.ne()}function Amt(t,e){var n,i;for(zJ(),i=new aU(ZP(lft(t).a.Kc(),new u));gBt(i);)if((n=jz(q4(i),17)).d.i==e||n.c.i==e)return n;return null}function xmt(t,e,n){this.c=t,this.f=new Mb,this.e=new V_,this.j=new AH,this.n=new AH,this.b=e,this.g=new qY(e.c,e.d,e.b,e.a),this.a=n}function Emt(t){var e,n,i,r;for(this.a=new lB,this.d=new Ow,this.e=0,i=0,r=(n=t).length;i<r;++i)e=n[i],!this.f&&(this.f=e),g2(this,e)}function Tmt(t){DNt(),0==t.length?(this.e=0,this.d=1,this.a=Est(Vy(SLe,1),lXt,25,15,[0])):(this.e=1,this.d=t.length,this.a=t,U0(this))}function Smt(t,e,n){sk.call(this),this.a=P7(Uie,iQt,212,(Oet(),Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length,0,1),this.b=t,this.d=e,this.c=n}function Dmt(t){this.d=new Mb,this.e=new m5,this.c=P7(SLe,lXt,25,(vGt(),Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])).length,15,1),this.b=t}function Imt(t){var e,n,i,r;for(lct(r=jz(wxt(t,(lKt(),fde)),11),Bde,t.i.n.b),n=0,i=(e=Z0(t.e)).length;n<i;++n)CJ(e[n],r)}function Bmt(t){var e,n,i,r;for(lct(e=jz(wxt(t,(lKt(),fde)),11),Bde,t.i.n.b),i=0,r=(n=Z0(t.g)).length;i<r;++i)AJ(n[i],e)}function Mmt(t){var e,n;return!!BO(t.d.i,(zWt(),Gme))&&(e=jz(wxt(t.c.i,Gme),19),n=jz(wxt(t.d.i,Gme),19),yM(e.a,n.a)>0)}function Pmt(t){var e;VD(QBt(t,(cKt(),yEe)))===VD((aht(),mSe))&&(XQ(t)?(e=jz(QBt(XQ(t),yEe),334),Xbt(t,yEe,e)):Xbt(t,yEe,bSe))}function Lmt(t,e,n){var i,r;uxt(t.e,e,n,(vGt(),EDe)),uxt(t.i,e,n,aDe),t.a&&(r=jz(wxt(e,(lKt(),fde)),11),i=jz(wxt(n,fde),11),k0(t.g,r,i))}function Omt(t,e,n){var i,r,o;i=e.c.p,o=e.p,t.b[i][o]=new LZ(t,e),n&&(t.a[i][o]=new jp(e),(r=jz(wxt(e,(lKt(),nde)),10))&&ZDt(t.d,r,e))}function Nmt(t,e){var n,i,r;if(Gz(Aoe,t),e.Fc(t),n=jz(OW(Coe,t),21))for(r=n.Kc();r.Ob();)i=jz(r.Pb(),33),-1!=y9(Aoe,i,0)||Nmt(i,e)}function Rmt(t,e,n){var i;(Gne?(pgt(t),1):Wne||Xne?(ux(),1):Yne&&(ux(),0))&&((i=new ej(e)).b=n,oEt(t,i))}function Fmt(t,e){var n;n=!t.A.Hc((wpt(),RDe))||t.q==(YCt(),USe),t.u.Hc((hDt(),tDe))?n?PGt(t,e):oGt(t,e):t.u.Hc(nDe)&&(n?IUt(t,e):ZGt(t,e))}function jmt(t,e){var n,i;++t.j,null!=e&&sIt(e,n=iP(i=t.a.Cb,97)?jz(i,97).Jg():null)?lmt(t.a,4,n):lmt(t.a,4,jz(e,126))}function $mt(t,e,n){return new qY(i.Math.min(t.a,e.a)-n/2,i.Math.min(t.b,e.b)-n/2,i.Math.abs(t.a-e.a)+n,i.Math.abs(t.b-e.b)+n)}function zmt(t,e){var n,i;return 0!=(n=yM(t.a.c.p,e.a.c.p))?n:0!=(i=yM(t.a.d.i.p,e.a.d.i.p))?i:yM(e.a.d.p,t.a.d.p)}function Vmt(t,e,n){var i,r,o,a;return(o=e.j)!=(a=n.j)?o.g-a.g:(i=t.f[e.p],r=t.f[n.p],0==i&&0==r?0:0==i?-1:0==r?1:Edt(i,r))}function Hmt(t,e,n){var i;if(!n[e.d])for(n[e.d]=!0,i=new Gf(vft(e));i.a<i.c.c.length;)Hmt(t,Pft(jz(Q1(i),213),e),n)}function qmt(t,e,n){var i;switch(i=n[t.g][e],t.g){case 1:case 3:return new PS(0,i);case 2:case 4:return new PS(i,0);default:return null}}function Umt(t,e,n){var i;i=jz(sQ(e.f),209);try{i.Ze(t,n),AK(e.f,i)}catch(t){throw iP(t=hst(t),102),$b(t)}}function Gmt(t,e,n){var i,r,o,a;return i=null,(o=mqt(rit(),e))&&(r=null,null!=(a=QHt(o,n))&&(r=t.Ye(o,a)),i=r),i}function Wmt(t,e,n,i){var r;return r=new M9(t.e,1,13,e.c||(pKt(),lMe),n.c||(pKt(),lMe),awt(t,e),!1),i?i.Ei(r):i=r,i}function Kmt(t,e,n,i){var r;if(e>=(r=t.length))return r;for(e=e>0?e:0;e<r&&!tct((h1(e,t.length),t.charCodeAt(e)),n,i);e++);return e}function Ymt(t,e){var n,i;for(i=t.c.length,e.length<i&&(e=zy(new Array(i),e)),n=0;n<i;++n)IW(e,n,t.c[n]);return e.length>i&&IW(e,i,null),e}function Xmt(t,e){var n,i;for(i=t.a.length,e.length<i&&(e=zy(new Array(i),e)),n=0;n<i;++n)IW(e,n,t.a[n]);return e.length>i&&IW(e,i,null),e}function Zmt(t,e,n){var i,r,o;return(r=jz(OW(t.e,e),387))?(o=pR(r,n),oP(t,r),o):(i=new Qz(t,e,n),WK(t.e,e,i),kQ(i),null)}function Qmt(t){var e;if(null==t)return null;if(null==(e=MMt(jzt(t,!0))))throw $b(new ey("Invalid hexBinary value: '"+t+"'"));return e}function Jmt(t){return DNt(),Kut(t,0)<0?0!=Kut(t,-1)?new bCt(-1,v9(t)):Xee:Kut(t,10)<=0?Qee[fq(t)]:new bCt(1,t)}function tbt(){return gKt(),Est(Vy(Nre,1),BYt,159,0,[xre,Are,Ere,mre,pre,bre,vre,kre,wre,Cre,_re,yre,fre,dre,gre,ure,lre,hre,sre,are,cre,Tre])}function ebt(t){var e;this.d=new Mb,this.j=new V_,this.g=new V_,e=t.g.b,this.f=jz(wxt(mK(e),(zWt(),qpe)),103),this.e=Vv(CN(pbt(e,Abe)))}function nbt(t){this.b=new Mb,this.e=new Mb,this.d=t,this.a=!vC(DY(new OH(null,new HG(new b6(t.b))),new rg(new qr))).sd((fx(),Jne))}function ibt(){ibt=I,cxe=new DS("PARENTS",0),sxe=new DS("NODES",1),oxe=new DS("EDGES",2),lxe=new DS("PORTS",3),axe=new DS("LABELS",4)}function rbt(){rbt=I,jSe=new HS("DISTRIBUTED",0),zSe=new HS("JUSTIFIED",1),RSe=new HS("BEGIN",2),FSe=new HS(eQt,3),$Se=new HS("END",4)}function obt(t){switch(t.yi(null)){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function abt(t){switch(t.g){case 1:return jht(),$Te;case 4:return jht(),RTe;case 2:return jht(),FTe;case 3:return jht(),NTe}return jht(),jTe}function sbt(t,e,n){var i;switch((i=n.q.getFullYear()-cXt+cXt)<0&&(i=-i),e){case 1:t.a+=i;break;case 2:ytt(t,i%100,2);break;default:ytt(t,i,e)}}function cbt(t,e){var n,i;if(BJ(e,t.b),e>=t.b>>1)for(i=t.c,n=t.b;n>e;--n)i=i.b;else for(i=t.a.a,n=0;n<e;++n)i=i.a;return new ZF(t,e,i)}function lbt(){lbt=I,fie=new FE("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),die=new FE("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function ubt(t){var e,n,i;for(bM(n=aSt(t),jse),(i=t.d).c=P7(Ite,zKt,1,0,5,1),e=new Gf(n);e.a<e.c.c.length;)pst(i,jz(Q1(e),456).b)}function hbt(t){var e,n;for(!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),e=(n=t.o).c.Kc();e.e!=e.i.gc();)jz(e.nj(),42).dd();return D7(n)}function dbt(t){var e;BF(jz(wxt(t,(zWt(),tbe)),98))&&(uIt((u1(0,(e=t.b).c.length),jz(e.c[0],29))),uIt(jz(PH(e,e.c.length-1),29)))}function fbt(t,e){var n,r,o,a;for(n=0,o=new Gf(e.a);o.a<o.c.c.length;)a=(r=jz(Q1(o),10)).o.a+r.d.c+r.d.b+t.j,n=i.Math.max(n,a);return n}function gbt(t){var e,n,i,r;for(r=0,n=0,i=t.length;n<i;n++)h1(n,t.length),(e=t.charCodeAt(n))>=64&&e<128&&(r=e0(r,wU(1,e-64)));return r}function pbt(t,e){var n,i;return i=null,BO(t,(cKt(),ETe))&&(n=jz(wxt(t,ETe),94)).Xe(e)&&(i=n.We(e)),null==i&&mK(t)&&(i=wxt(mK(t),e)),i}function mbt(t,e){var n,i,r;(i=(r=e.d.i).k)!=(aEt(),Ese)&&i!=_se&&gBt(n=new aU(ZP(hft(r).a.Kc(),new u)))&&WK(t.k,e,jz(q4(n),17))}function bbt(t,e){var n,i,r;return i=eet(t.Tg(),e),(n=e-t.Ah())<0?(r=t.Yg(i))>=0?t.lh(r):VDt(t,i):n<0?VDt(t,i):jz(i,66).Nj().Sj(t,t.yh(),n)}function wbt(t){var e;if(iP(t.a,4)){if(null==(e=Zpt(t.a)))throw $b(new Fv(s4t+t.b+"'. "+i4t+(yN(uBe),uBe.k)+r4t));return e}return t.a}function kbt(t){var e;if(null==t)return null;if(null==(e=UGt(jzt(t,!0))))throw $b(new ey("Invalid base64Binary value: '"+t+"'"));return e}function vbt(t){var e;try{return e=t.i.Xb(t.e),t.mj(),t.g=t.e++,e}catch(e){throw iP(e=hst(e),73)?(t.mj(),$b(new ww)):$b(e)}}function ybt(t){var e;try{return e=t.c.ki(t.e),t.mj(),t.g=t.e++,e}catch(e){throw iP(e=hst(e),73)?(t.mj(),$b(new ww)):$b(e)}}function _bt(){_bt=I,cKt(),yoe=_Te,poe=wEe,uoe=iEe,moe=UEe,Fyt(),koe=Cie,woe=yie,voe=xie,boe=vie,Hlt(),doe=aoe,hoe=ooe,foe=coe,goe=loe}function Cbt(t){switch(vx(),this.c=new Mb,this.d=t,t.g){case 0:case 2:this.a=KK(cse),this.b=NXt;break;case 3:case 1:this.a=cse,this.b=RXt}}function Abt(t,e,n){var i;if(t.c)Ent(t.c,t.c.i+e),Tnt(t.c,t.c.j+n);else for(i=new Gf(t.b);i.a<i.c.c.length;)Abt(jz(Q1(i),157),e,n)}function xbt(t,e){var n,i;if(t.j.length!=e.j.length)return!1;for(n=0,i=t.j.length;n<i;n++)if(!bF(t.j[n],e.j[n]))return!1;return!0}function Ebt(t,e,n){var i;e.a.length>0&&(Gz(t.b,new Wz(e.a,n)),0<(i=e.a.length)?e.a=e.a.substr(0,0):0>i&&(e.a+=nP(P7(TLe,WYt,25,-i,15,1))))}function Tbt(t,e){var n,i,r;for(n=t.o,r=jz(jz(c6(t.r,e),21),84).Kc();r.Ob();)(i=jz(r.Pb(),111)).e.a=gvt(i,n.a),i.e.b=n.b*Vv(CN(i.b.We(Bre)))}function Sbt(t,e){var n,i,r,o;return r=t.k,n=Vv(CN(wxt(t,(lKt(),_de)))),o=e.k,i=Vv(CN(wxt(e,_de))),o!=(aEt(),Cse)?-1:r!=Cse?1:n==i?0:n<i?-1:1}function Dbt(t,e){var n,i;return n=jz(jz(OW(t.g,e.a),46).a,65),i=jz(jz(OW(t.g,e.b),46).a,65),G7(e.a,e.b)-G7(e.a,RM(n.b))-G7(e.b,RM(i.b))}function Ibt(t,e){var n;return n=jz(wxt(t,(zWt(),mme)),74),JM(e,mse)?n?wX(n):(n=new kk,lct(t,mme,n)):n&&lct(t,mme,null),n}function Bbt(t){var e;return(e=new Ey).a+="n",t.k!=(aEt(),Ese)&&aI(aI((e.a+="(",e),fO(t.k).toLowerCase()),")"),aI((e.a+="_",e),pvt(t)),e.a}function Mbt(t,e){DAt(e,"Self-Loop post-processing",1),XA(DY(DY(dtt(new OH(null,new d1(t.b,16)),new Oi),new Ni),new Ri),new Fi),zEt(e)}function Pbt(t,e,n,i){var r;return n>=0?t.hh(e,n,i):(t.eh()&&(i=(r=t.Vg())>=0?t.Qg(i):t.eh().ih(t,-1-r,null,i)),t.Sg(e,n,i))}function Lbt(t,e){switch(e){case 7:return!t.e&&(t.e=new cF(NIe,t,7,4)),void cHt(t.e);case 8:return!t.d&&(t.d=new cF(NIe,t,8,5)),void cHt(t.d)}Ogt(t,e)}function Obt(t,e){var n;n=t.Zc(e);try{return n.Pb()}catch(t){throw iP(t=hst(t),109)?$b(new Dv("Can't get element "+e)):$b(t)}}function Nbt(t,e){this.e=t,e<GXt?(this.d=1,this.a=Est(Vy(SLe,1),lXt,25,15,[0|e])):(this.d=2,this.a=Est(Vy(SLe,1),lXt,25,15,[e%GXt|0,e/GXt|0]))}function Rbt(t,e){var n,i,r,o;for(AX(),n=t,o=e,iP(t,21)&&!iP(e,21)&&(n=e,o=t),r=n.Kc();r.Ob();)if(i=r.Pb(),o.Hc(i))return!1;return!0}function Fbt(t,e,n){var i,r,o,a;return-1!=(i=t.Xc(e))&&(t.ej()?(o=t.fj(),a=Mvt(t,i),r=t.Zi(4,a,null,i,o),n?n.Ei(r):n=r):Mvt(t,i)),n}function jbt(t,e,n){var i,r,o,a;return-1!=(i=t.Xc(e))&&(t.ej()?(o=t.fj(),a=dH(t,i),r=t.Zi(4,a,null,i,o),n?n.Ei(r):n=r):dH(t,i)),n}function $bt(t,e){var n;switch(n=jz(aY(t.b,e),124).n,e.g){case 1:t.t>=0&&(n.d=t.t);break;case 3:t.t>=0&&(n.a=t.t)}t.C&&(n.b=t.C.b,n.c=t.C.c)}function zbt(){zbt=I,jre=new RE(wQt,0),Fre=new RE(kQt,1),$re=new RE(vQt,2),zre=new RE(yQt,3),jre.a=!1,Fre.a=!0,$re.a=!1,zre.a=!0}function Vbt(){Vbt=I,Zre=new NE(wQt,0),Xre=new NE(kQt,1),Qre=new NE(vQt,2),Jre=new NE(yQt,3),Zre.a=!1,Xre.a=!0,Qre.a=!1,Jre.a=!0}function Hbt(t){var e;e=t.a;do{(e=jz(q4(new aU(ZP(uft(e).a.Kc(),new u))),17).c.i).k==(aEt(),xse)&&t.b.Fc(e)}while(e.k==(aEt(),xse));t.b=eat(t.b)}function qbt(t){var e,n,i;for(i=t.c.a,t.p=(wW(i),new JF(i)),n=new Gf(i);n.a<n.c.c.length;)(e=jz(Q1(n),10)).p=lSt(e).a;AX(),bM(t.p,new Bo)}function Ubt(t){var e,n,i;if(n=0,0==(i=fNt(t)).c.length)return 1;for(e=new Gf(i);e.a<e.c.c.length;)n+=Ubt(jz(Q1(e),33));return n}function Gbt(t,e){var n,i,r;for(r=0,i=jz(jz(c6(t.r,e),21),84).Kc();i.Ob();)r+=(n=jz(i.Pb(),111)).d.b+n.b.rf().a+n.d.c,i.Ob()&&(r+=t.w);return r}function Wbt(t,e){var n,i,r;for(r=0,i=jz(jz(c6(t.r,e),21),84).Kc();i.Ob();)r+=(n=jz(i.Pb(),111)).d.d+n.b.rf().b+n.d.a,i.Ob()&&(r+=t.w);return r}function Kbt(t,e,n,i){if(e.a<i.a)return!0;if(e.a==i.a){if(e.b<i.b)return!0;if(e.b==i.b&&t.b>n.b)return!0}return!1}function Ybt(t,e){return UD(t)?!!DKt[e]:t.hm?!!t.hm[e]:qD(t)?!!SKt[e]:!!HD(t)&&!!TKt[e]}function Xbt(t,e,n){return null==n?(!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),Wpt(t.o,e)):(!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),b_t(t.o,e,n)),t}function Zbt(t,e,n,i){var r;(r=Ght(e.Xe((cKt(),LEe))?jz(e.We(LEe),21):t.j))!=(gKt(),Tre)&&(n&&!omt(r)||UEt(PMt(t,r,i),e))}function Qbt(t,e,n,i){var r,o,a;return o=eet(t.Tg(),e),(r=e-t.Ah())<0?(a=t.Yg(o))>=0?t._g(a,n,!0):rIt(t,o,n):jz(o,66).Nj().Pj(t,t.yh(),r,n,i)}function Jbt(t,e,n,i){var r,o;n.mh(e)&&(Zx(),ctt(e)?kmt(t,jz(n.ah(e),153)):(r=(o=e)?jz(i,49).xh(o):null)&&Rb(n.ah(e),r))}function twt(t){switch(t.g){case 1:return Oat(),Ore;case 3:return Oat(),Mre;case 2:return Oat(),Lre;case 4:return Oat(),Pre;default:return null}}function ewt(t){switch(typeof t){case PKt:return bwt(t);case MKt:return EQ(t);case BKt:return cL(),t?1231:1237;default:return null==t?0:xL(t)}}function nwt(t,e,n){if(t.e)switch(t.b){case 1:jX(t.c,e,n);break;case 0:$X(t.c,e,n)}else J3(t.c,e,n);t.a[e.p][n.p]=t.c.i,t.a[n.p][e.p]=t.c.e}function iwt(t){var e,n;if(null==t)return null;for(n=P7(Sse,cYt,193,t.length,0,2),e=0;e<n.length;e++)n[e]=jz(V8(t[e],t[e].length),193);return n}function rwt(t){var e;if(Rlt(t))return bU(t),t.Lk()&&(e=jDt(t.e,t.b,t.c,t.a,t.j),t.j=e),t.g=t.a,++t.a,++t.c,t.i=0,t.j;throw $b(new ww)}function owt(t,e){var n,i,r,o;return(o=t.o)<(n=t.p)?o*=o:n*=n,i=o+n,(o=e.o)<(n=e.p)?o*=o:n*=n,i<(r=o+n)?-1:i==r?0:1}function awt(t,e){var n,i;if((i=Wvt(t,e))>=0)return i;if(t.Fk())for(n=0;n<t.i;++n)if(VD(t.Gk(jz(t.g[n],56)))===VD(e))return n;return-1}function swt(t,e,n){var i,r;if(e>=(r=t.gc()))throw $b(new JR(e,r));if(t.hi()&&(i=t.Xc(n))>=0&&i!=e)throw $b(new Rv(o7t));return t.mi(e,n)}function cwt(t,e){if(this.a=jz(wW(t),245),this.b=jz(wW(e),245),t.vd(e)>0||t==(tv(),Rte)||e==(Jk(),Fte))throw $b(new Rv("Invalid range: "+j3(t,e)))}function lwt(t){var e,n;for(this.b=new Mb,this.c=t,this.a=!1,n=new Gf(t.a);n.a<n.c.c.length;)e=jz(Q1(n),10),this.a=this.a|e.k==(aEt(),Ese)}function uwt(t,e){var n,i,r;for(n=DL(new zw,t),r=new Gf(e);r.a<r.c.c.length;)i=jz(Q1(r),121),ULt(rx(ix(ox(nx(new $w,0),0),n),i));return n}function hwt(t,e,n){var i,r,o;for(r=new aU(ZP((e?uft(t):hft(t)).a.Kc(),new u));gBt(r);)i=jz(q4(r),17),(o=e?i.c.i:i.d.i).k==(aEt(),Ase)&&xJ(o,n)}function dwt(){dwt=I,uwe=new RT(YJt,0),hwe=new RT("PORT_POSITION",1),lwe=new RT("NODE_SIZE_WHERE_SPACE_PERMITS",2),cwe=new RT("NODE_SIZE",3)}function fwt(){fwt=I,Exe=new LS("AUTOMATIC",0),Dxe=new LS(rQt,1),Ixe=new LS(oQt,2),Bxe=new LS("TOP",3),Txe=new LS(sQt,4),Sxe=new LS(eQt,5)}function gwt(t,e,n,i){var r,o;for(BIt(),r=0,o=0;o<n;o++)r=ift(rft(t0(e[o],UXt),t0(i,UXt)),t0(fq(r),UXt)),t[o]=fq(r),r=vU(r,32);return fq(r)}function pwt(t,e,n){var r,o;for(o=0,r=0;r<Zie;r++)o=i.Math.max(o,but(t.a[e.g][r],n));return e==(Oet(),Hie)&&t.b&&(o=i.Math.max(o,t.b.b)),o}function mwt(t,e){var n,i;if(_O(e>0),(e&-e)==e)return EQ(e*zMt(t,31)*4.656612873077393e-10);do{i=(n=zMt(t,31))%e}while(n-i+(e-1)<0);return EQ(i)}function bwt(t){var e,n,i;return nj(),null!=(i=nie[n=":"+t])?EQ((kK(i),i)):(e=null==(i=eie[n])?ZLt(t):EQ((kK(i),i)),TX(),nie[n]=e,e)}function wwt(t,e,n){DAt(n,"Compound graph preprocessor",1),t.a=new pQ,PUt(t,e,null),HVt(t,e),tLt(t),lct(e,(lKt(),$he),t.a),t.a=null,IG(t.b),zEt(n)}function kwt(t,e,n){switch(n.g){case 1:t.a=e.a/2,t.b=0;break;case 2:t.a=e.a,t.b=e.b/2;break;case 3:t.a=e.a/2,t.b=e.b;break;case 4:t.a=0,t.b=e.b/2}}function vwt(t){var e,n,i;for(i=jz(c6(t.a,(MCt(),xle)),15).Kc();i.Ob();)eW(t,n=jz(i.Pb(),101),(e=zvt(n))[0],(Trt(),Ple),0),eW(t,n,e[1],Ole,1)}function ywt(t){var e,n,i;for(i=jz(c6(t.a,(MCt(),Ele)),15).Kc();i.Ob();)eW(t,n=jz(i.Pb(),101),(e=zvt(n))[0],(Trt(),Ple),0),eW(t,n,e[1],Ole,1)}function _wt(t){switch(t.g){case 0:return null;case 1:return new Irt;case 2:return new Xk;default:throw $b(new Rv(r5t+(null!=t.f?t.f:""+t.g)))}}function Cwt(t,e,n){var i,r;for(wst(t,e-t.s,n-t.t),r=new Gf(t.n);r.a<r.c.c.length;)ef(i=jz(Q1(r),211),i.e+e-t.s),nf(i,i.f+n-t.t);t.s=e,t.t=n}function Awt(t){var e,n,i,r;for(n=0,i=new Gf(t.a);i.a<i.c.c.length;)jz(Q1(i),121).d=n++;return r=null,(e=fEt(t)).c.length>1&&(r=uwt(t,e)),r}function xwt(t){var e;return t.f&&t.f.kh()&&(e=jz(t.f,49),t.f=jz(tht(t,e),82),t.f!=e&&4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,9,8,e,t.f))),t.f}function Ewt(t){var e;return t.i&&t.i.kh()&&(e=jz(t.i,49),t.i=jz(tht(t,e),82),t.i!=e&&4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,9,7,e,t.i))),t.i}function Twt(t){var e;return t.b&&64&t.b.Db&&(e=t.b,t.b=jz(tht(t,e),18),t.b!=e&&4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,9,21,e,t.b))),t.b}function Swt(t,e){var n,i,r;null==t.d?(++t.e,++t.f):(i=e.Sh(),uLt(t,t.f+1),r=(i&OKt)%t.d.length,!(n=t.d[r])&&(n=t.d[r]=t.uj()),n.Fc(e),++t.f)}function Dwt(t,e,n){var i;return!e.Kj()&&(-2!=e.Zj()?null==(i=e.zj())?null==n:Pht(i,n):e.Hj()==t.e.Tg()&&null==n)}function Iwt(){var t;hit(16,SYt),t=Zit(16),this.b=P7(Hte,TYt,317,t,0,1),this.c=P7(Hte,TYt,317,t,0,1),this.a=null,this.e=null,this.i=0,this.f=t-1,this.g=0}function Bwt(t){BR.call(this),this.k=(aEt(),Ese),this.j=(hit(6,IYt),new X6(6)),this.b=(hit(2,IYt),new X6(2)),this.d=new lk,this.f=new dk,this.a=t}function Mwt(t){var e,n;t.c.length<=1||(gTt(t,jz((e=_Nt(t,(vGt(),ADe))).a,19).a,jz(e.b,19).a),gTt(t,jz((n=_Nt(t,EDe)).a,19).a,jz(n.b,19).a))}function Pwt(){Pwt=I,wwe=new FT("SIMPLE",0),pwe=new FT($1t,1),mwe=new FT("LINEAR_SEGMENTS",2),gwe=new FT("BRANDES_KOEPF",3),bwe=new FT(y3t,4)}function Lwt(t,e,n){BF(jz(wxt(e,(zWt(),tbe)),98))||(G9(t,e,OEt(e,n)),G9(t,e,OEt(e,(vGt(),ADe))),G9(t,e,OEt(e,sDe)),AX(),bM(e.j,new Rp(t)))}function Owt(t,e,n,i){var r;for(r=jz(c6(i?t.a:t.b,e),21).Kc();r.Ob();)if(FNt(t,n,jz(r.Pb(),33)))return!0;return!1}function Nwt(t){var e,n;for(n=new DP(t);n.e!=n.i.gc();)if((e=jz(vbt(n),87)).e||0!=(!e.d&&(e.d=new IP(GBe,e,1)),e.d).i)return!0;return!1}function Rwt(t){var e,n;for(n=new DP(t);n.e!=n.i.gc();)if((e=jz(vbt(n),87)).e||0!=(!e.d&&(e.d=new IP(GBe,e,1)),e.d).i)return!0;return!1}function Fwt(t){var e,n;for(e=0,n=new Gf(t.c.a);n.a<n.c.c.length;)e+=F3(new aU(ZP(hft(jz(Q1(n),10)).a.Kc(),new u)));return e/t.c.a.c.length}function jwt(t){var e,n;for(t.c||qHt(t),n=new kk,Q1(e=new Gf(t.a));e.a<e.c.c.length;)LV(n,jz(Q1(e),407).a);return xO(0!=n.b),Iet(n,n.c.b),n}function $wt(){$wt=I,dRt(),zAe=OAe,jAe=new GB(8),new UB((cKt(),UEe),jAe),new UB(BTe,8),$Ae=PAe,RAe=CAe,FAe=AAe,NAe=new UB(uEe,(cL(),!1))}function zwt(t,e,n,i){switch(e){case 7:return!t.e&&(t.e=new cF(NIe,t,7,4)),t.e;case 8:return!t.d&&(t.d=new cF(NIe,t,8,5)),t.d}return Nft(t,e,n,i)}function Vwt(t){var e;return t.a&&t.a.kh()&&(e=jz(t.a,49),t.a=jz(tht(t,e),138),t.a!=e&&4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,9,5,e,t.a))),t.a}function Hwt(t){return t<48||t>102?-1:t<=57?t-48:t<65?-1:t<=70?t-65+10:t<97?-1:t-97+10}function qwt(t,e){if(null==t)throw $b(new $v("null key in entry: null="+e));if(null==e)throw $b(new $v("null value in entry: "+t+"=null"))}function Uwt(t,e){for(var n,i;t.Ob();){if(!e.Ob())return!1;if(n=t.Pb(),i=e.Pb(),!(VD(n)===VD(i)||null!=n&&Pht(n,i)))return!1}return!e.Ob()}function Gwt(t,e){var n;return n=Est(Vy(MLe,1),VXt,25,15,[but(t.a[0],e),but(t.a[1],e),but(t.a[2],e)]),t.d&&(n[0]=i.Math.max(n[0],n[2]),n[2]=n[0]),n}function Wwt(t,e){var n;return n=Est(Vy(MLe,1),VXt,25,15,[wut(t.a[0],e),wut(t.a[1],e),wut(t.a[2],e)]),t.d&&(n[0]=i.Math.max(n[0],n[2]),n[2]=n[0]),n}function Kwt(){Kwt=I,wue=new AT("GREEDY",0),bue=new AT(z1t,1),vue=new AT($1t,2),yue=new AT("MODEL_ORDER",3),kue=new AT("GREEDY_MODEL_ORDER",4)}function Ywt(t,e){var n,i,r;for(t.b[e.g]=1,i=cbt(e.d,0);i.b!=i.d.c;)r=(n=jz(h3(i),188)).c,1==t.b[r.g]?LV(t.a,n):2==t.b[r.g]?t.b[r.g]=1:Ywt(t,r)}function Xwt(t,e){var n,i,r;for(r=new X6(e.gc()),i=e.Kc();i.Ob();)(n=jz(i.Pb(),286)).c==n.f?lTt(t,n,n.c):iTt(t,n)||(r.c[r.c.length]=n);return r}function Zwt(t,e,n){var i,r,o,a;for(a=t.r+e,t.r+=e,t.d+=n,i=n/t.n.c.length,r=0,o=new Gf(t.n);o.a<o.c.c.length;)fMt(jz(Q1(o),211),a,i,r),++r}function Qwt(t){var e,n;for(bv(t.b.a),t.a=P7(hie,zKt,57,t.c.c.a.b.c.length,0,1),e=0,n=new Gf(t.c.c.a.b);n.a<n.c.c.length;)jz(Q1(n),57).f=e++}function Jwt(t){var e,n;for(bv(t.b.a),t.a=P7(Kae,zKt,81,t.c.a.a.b.c.length,0,1),e=0,n=new Gf(t.c.a.a.b);n.a<n.c.c.length;)jz(Q1(n),81).i=e++}function tkt(t,e,n){DAt(n,"Shrinking tree compaction",1),zv(_N(wxt(e,(Got(),Kre))))?(nrt(t,e.f),ott(e.f,e.c)):ott(e.f,e.c),zEt(n)}function ekt(t){var e;if(e=dut(t),!gBt(t))throw $b(new Dv("position (0) must be less than the number of elements that remained ("+e+")"));return q4(t)}function nkt(t,e,n){try{return bkt(t,e+t.j,n+t.k)}catch(t){throw iP(t=hst(t),73)?$b(new Dv(t.g+TQt+e+jKt+n+").")):$b(t)}}function ikt(t,e,n){try{return wkt(t,e+t.j,n+t.k)}catch(t){throw iP(t=hst(t),73)?$b(new Dv(t.g+TQt+e+jKt+n+").")):$b(t)}}function rkt(t,e,n){try{return kkt(t,e+t.j,n+t.k)}catch(t){throw iP(t=hst(t),73)?$b(new Dv(t.g+TQt+e+jKt+n+").")):$b(t)}}function okt(t){switch(t.g){case 1:return vGt(),EDe;case 4:return vGt(),sDe;case 3:return vGt(),aDe;case 2:return vGt(),ADe;default:return vGt(),xDe}}function akt(t,e,n){e.k==(aEt(),Ese)&&n.k==xse&&(t.d=_ht(e,(vGt(),ADe)),t.b=_ht(e,sDe)),n.k==Ese&&e.k==xse&&(t.d=_ht(n,(vGt(),sDe)),t.b=_ht(n,ADe))}function skt(t,e){var n,i;for(i=oft(t,e).Kc();i.Ob();)if(null!=wxt(n=jz(i.Pb(),11),(lKt(),yde))||HL(new b6(n.b)))return!0;return!1}function ckt(t,e){return Ent(e,t.e+t.d+(0==t.c.c.length?0:t.b)),Tnt(e,t.f),t.a=i.Math.max(t.a,e.f),t.d+=e.g+(0==t.c.c.length?0:t.b),Gz(t.c,e),!0}function lkt(t,e,n){var i,r,o,a;for(a=0,i=n/t.a.c.length,o=new Gf(t.a);o.a<o.c.c.length;)Cwt(r=jz(Q1(o),187),r.s,r.t+a*i),Zwt(r,t.d-r.r+e,i),++a}function ukt(t){var e,n,i;for(n=new Gf(t.b);n.a<n.c.c.length;)for(e=0,i=new Gf(jz(Q1(n),29).a);i.a<i.c.c.length;)jz(Q1(i),10).p=e++}function hkt(t,e){var n,i,r,o,a,s;for(r=e.length-1,a=0,s=0,i=0;i<=r;i++)o=e[i],n=mEt(r,i)*eht(1-t,r-i)*eht(t,i),a+=o.a*n,s+=o.b*n;return new PS(a,s)}function dkt(t,e){var n,i,r,o,a;for(n=e.gc(),t.qi(t.i+n),o=e.Kc(),a=t.i,t.i+=n,i=a;i<t.i;++i)r=o.Pb(),vP(t,i,t.oi(i,r)),t.bi(i,r),t.ci();return 0!=n}function fkt(t,e,n){var i,r,o;return t.ej()?(i=t.Vi(),o=t.fj(),++t.j,t.Hi(i,t.oi(i,e)),r=t.Zi(3,null,e,i,o),n?n.Ei(r):n=r):ZN(t,t.Vi(),e),n}function gkt(t,e,n){var i,r,o;return(64&(o=iP(r=(i=jz(Wet(r5(t.a),e),87)).c,88)?jz(r,26):(pKt(),dMe)).Db?tht(t.b,o):o)==n?h$t(i):rnt(i,n),o}function pkt(t,e,n,i,r,o,a,s){var c,l;i&&((c=i.a[0])&&pkt(t,e,n,c,r,o,a,s),Svt(t,n,i.d,r,o,a,s)&&e.Fc(i),(l=i.a[1])&&pkt(t,e,n,l,r,o,a,s))}function mkt(t,e){var n;return t.a||(n=P7(MLe,VXt,25,0,15,1),gC(t.b.a,new hg(n)),n.sort(nnt(A.prototype.te,A,[])),t.a=new RF(n,t.d)),N6(t.a,e)}function bkt(t,e,n){try{return KD(trt(t,e,n),1)}catch(i){throw iP(i=hst(i),320)?$b(new Dv(AQt+t.o+"*"+t.p+xQt+e+jKt+n+EQt)):$b(i)}}function wkt(t,e,n){try{return KD(trt(t,e,n),0)}catch(i){throw iP(i=hst(i),320)?$b(new Dv(AQt+t.o+"*"+t.p+xQt+e+jKt+n+EQt)):$b(i)}}function kkt(t,e,n){try{return KD(trt(t,e,n),2)}catch(i){throw iP(i=hst(i),320)?$b(new Dv(AQt+t.o+"*"+t.p+xQt+e+jKt+n+EQt)):$b(i)}}function vkt(t,e){if(-1==t.g)throw $b(new fw);t.mj();try{t.d._c(t.g,e),t.f=t.d.j}catch(t){throw iP(t=hst(t),73)?$b(new mw):$b(t)}}function ykt(t,e,n){DAt(n,"Linear segments node placement",1),t.b=jz(wxt(e,(lKt(),Dde)),304),KWt(t,e),bVt(t,e),YVt(t,e),lWt(t),t.a=null,t.b=null,zEt(n)}function _kt(t,e){var n,i,r,o;for(o=t.gc(),e.length<o&&(e=zy(new Array(o),e)),r=e,i=t.Kc(),n=0;n<o;++n)IW(r,n,i.Pb());return e.length>o&&IW(e,o,null),e}function Ckt(t,e){var n,i;if(i=t.gc(),null==e){for(n=0;n<i;n++)if(null==t.Xb(n))return n}else for(n=0;n<i;n++)if(Pht(e,t.Xb(n)))return n;return-1}function Akt(t,e){var n,i,r;return n=e.cd(),r=e.dd(),i=t.xc(n),!(!(VD(r)===VD(i)||null!=r&&Pht(r,i))||null==i&&!t._b(n))}function xkt(t,e){var n,i,r;return e<=22?(n=t.l&(1<<e)-1,i=r=0):e<=44?(n=t.l,i=t.m&(1<<e-22)-1,r=0):(n=t.l,i=t.m,r=t.h&(1<<e-44)-1),CM(n,i,r)}function Ekt(t,e){switch(e.g){case 1:return t.f.n.d+t.t;case 3:return t.f.n.a+t.t;case 2:return t.f.n.c+t.s;case 4:return t.f.n.b+t.s;default:return 0}}function Tkt(t,e){var n,i;switch(i=e.c,n=e.a,t.b.g){case 0:n.d=t.e-i.a-i.d;break;case 1:n.d+=t.e;break;case 2:n.c=t.e-i.a-i.d;break;case 3:n.c=t.e+i.d}}function Skt(t,e,n,i){var r,o;this.a=e,this.c=i,Dd(this,new PS(-(r=t.a).c,-r.d)),qR(this.b,n),o=i/2,e.a?jO(this.b,0,o):jO(this.b,o,0),Gz(t.c,this)}function Dkt(){Dkt=I,z_e=new bS(YJt,0),j_e=new bS(V1t,1),$_e=new bS("EDGE_LENGTH_BY_POSITION",2),F_e=new bS("CROSSING_MINIMIZATION_BY_POSITION",3)}function Ikt(t,e){var n,i;if(n=jz(cnt(t.g,e),33))return n;if(i=jz(cnt(t.j,e),118))return i;throw $b(new ty("Referenced shape does not exist: "+e))}function Bkt(t,e){if(t.c==e)return t.d;if(t.d==e)return t.c;throw $b(new Rv("Node 'one' must be either source or target of edge 'edge'."))}function Mkt(t,e){if(t.c.i==e)return t.d.i;if(t.d.i==e)return t.c.i;throw $b(new Rv("Node "+e+" is neither source nor target of edge "+t))}function Pkt(t,e){var n;switch(e.g){case 2:case 4:n=t.a,t.c.d.n.b<n.d.n.b&&(n=t.c),hG(t,e,(Dst(),kle),n);break;case 1:case 3:hG(t,e,(Dst(),mle),null)}}function Lkt(t,e,n,i,r,o){var a,s,c,l,u;for(a=n_t(e,n,o),s=n==(vGt(),sDe)||n==EDe?-1:1,l=t[n.g],u=0;u<l.length;u++)(c=l[u])>0&&(c+=r),l[u]=a,a+=s*(c+i)}function Okt(t){var e,n,i;for(i=t.f,t.n=P7(MLe,VXt,25,i,15,1),t.d=P7(MLe,VXt,25,i,15,1),e=0;e<i;e++)n=jz(PH(t.c.b,e),29),t.n[e]=fbt(t,n),t.d[e]=KPt(t,n)}function Nkt(t,e){var n,i,r;for(r=0,i=2;i<e;i<<=1)t.Db&i&&++r;if(0==r){for(n=e<<=1;n<=128;n<<=1)if(t.Db&n)return 0;return-1}return r}function Rkt(t,e){var n,i,r,o,a;for(a=oOt(t.e.Tg(),e),o=null,n=jz(t.g,119),r=0;r<t.i;++r)i=n[r],a.rl(i.ak())&&(!o&&(o=new mc),l8(o,i));o&&oWt(t,o)}function Fkt(t){var e,n;if(!t)return null;if(t.dc())return"";for(n=new Ay,e=t.Kc();e.Ob();)iI(n,AN(e.Pb())),n.a+=" ";return NI(n,n.a.length-1)}function jkt(t,e,n){var i,r,o,a;for(rct(t),null==t.k&&(t.k=P7(Zte,cYt,78,0,0,1)),r=0,o=(i=t.k).length;r<o;++r)jkt(i[r]);(a=t.f)&&jkt(a)}function $kt(t,e){var n,i=new Array(e);switch(t){case 14:case 15:n=0;break;case 16:n=!1;break;default:return i}for(var r=0;r<e;++r)i[r]=n;return i}function zkt(t){var e;for(e=new Gf(t.a.b);e.a<e.c.c.length;)jz(Q1(e),57).c.$b();Det(fB(t.d)?t.a.c:t.a.d,new Cg(t)),t.c.Me(t),FOt(t)}function Vkt(t){var e,n,i;for(n=new Gf(t.e.c);n.a<n.c.c.length;){for(i=new Gf((e=jz(Q1(n),282)).b);i.a<i.c.c.length;)Fzt(jz(Q1(i),447));$St(e)}}function Hkt(t){var e,n,r,o,a;for(r=0,a=0,o=0,n=new Gf(t.a);n.a<n.c.c.length;)e=jz(Q1(n),187),a=i.Math.max(a,e.r),r+=e.d+(o>0?t.c:0),++o;t.b=r,t.d=a}function qkt(t,e){var n,r,o,a,s;for(r=0,o=0,n=0,s=new Gf(e);s.a<s.c.c.length;)a=jz(Q1(s),200),r=i.Math.max(r,a.e),o+=a.b+(n>0?t.g:0),++n;t.c=o,t.d=r}function Ukt(t,e){var n;return n=Est(Vy(MLe,1),VXt,25,15,[pwt(t,(Oet(),Vie),e),pwt(t,Hie,e),pwt(t,qie,e)]),t.f&&(n[0]=i.Math.max(n[0],n[2]),n[2]=n[0]),n}function Gkt(t,e,n){try{jRt(t,e+t.j,n+t.k,!1,!0)}catch(t){throw iP(t=hst(t),73)?$b(new Dv(t.g+TQt+e+jKt+n+").")):$b(t)}}function Wkt(t,e,n){try{jRt(t,e+t.j,n+t.k,!0,!1)}catch(t){throw iP(t=hst(t),73)?$b(new Dv(t.g+TQt+e+jKt+n+").")):$b(t)}}function Kkt(t){var e;BO(t,(zWt(),Ime))&&((e=jz(wxt(t,Ime),21)).Hc((JBt(),TSe))?(e.Mc(TSe),e.Fc(DSe)):e.Hc(DSe)&&(e.Mc(DSe),e.Fc(TSe)))}function Ykt(t){var e;BO(t,(zWt(),Ime))&&((e=jz(wxt(t,Ime),21)).Hc((JBt(),LSe))?(e.Mc(LSe),e.Fc(MSe)):e.Hc(MSe)&&(e.Mc(MSe),e.Fc(LSe)))}function Xkt(t,e,n){DAt(n,"Self-Loop ordering",1),XA(IY(DY(DY(dtt(new OH(null,new d1(e.b,16)),new Di),new Ii),new Bi),new Mi),new hp(t)),zEt(n)}function Zkt(t,e,n,i){var r,o;for(r=e;r<t.c.length;r++){if(u1(r,t.c.length),o=jz(t.c[r],11),!n.Mb(o))return r;i.c[i.c.length]=o}return t.c.length}function Qkt(t,e,n,i){var r,o,a;return null==t.a&&gEt(t,e),a=e.b.j.c.length,o=n.d.p,(r=i.d.p-1)<0&&(r=a-1),o<=r?t.a[r]-t.a[o]:t.a[a-1]-t.a[o]+t.a[r]}function Jkt(t){var e,n;if(!t.b)for(t.b=E2(jz(t.f,33).Ag().i),n=new DP(jz(t.f,33).Ag());n.e!=n.i.gc();)e=jz(vbt(n),137),Gz(t.b,new Ov(e));return t.b}function tvt(t){var e,n;if(!t.e)for(t.e=E2(wY(jz(t.f,33)).i),n=new DP(wY(jz(t.f,33)));n.e!=n.i.gc();)e=jz(vbt(n),118),Gz(t.e,new ab(e));return t.e}function evt(t){var e,n;if(!t.a)for(t.a=E2(YX(jz(t.f,33)).i),n=new DP(YX(jz(t.f,33)));n.e!=n.i.gc();)e=jz(vbt(n),33),Gz(t.a,new XL(t,e));return t.a}function nvt(t){var e;if(!t.C&&(null!=t.D||null!=t.B))if(e=dUt(t))t.yk(e);else try{t.yk(null)}catch(t){if(!iP(t=hst(t),60))throw $b(t)}return t.C}function ivt(t){switch(t.q.g){case 5:v_t(t,(vGt(),sDe)),v_t(t,ADe);break;case 4:rqt(t,(vGt(),sDe)),rqt(t,ADe);break;default:jTt(t,(vGt(),sDe)),jTt(t,ADe)}}function rvt(t){switch(t.q.g){case 5:y_t(t,(vGt(),aDe)),y_t(t,EDe);break;case 4:oqt(t,(vGt(),aDe)),oqt(t,EDe);break;default:$Tt(t,(vGt(),aDe)),$Tt(t,EDe)}}function ovt(t,e){var n,r,o;for(o=new V_,r=t.Kc();r.Ob();)QRt(n=jz(r.Pb(),37),o.a,0),o.a+=n.f.a+e,o.b=i.Math.max(o.b,n.f.b);return o.b>0&&(o.b+=e),o}function avt(t,e){var n,r,o;for(o=new V_,r=t.Kc();r.Ob();)QRt(n=jz(r.Pb(),37),0,o.b),o.b+=n.f.b+e,o.a=i.Math.max(o.a,n.f.a);return o.a>0&&(o.a+=e),o}function svt(t){var e,n,r;for(r=OKt,n=new Gf(t.a);n.a<n.c.c.length;)BO(e=jz(Q1(n),10),(lKt(),dde))&&(r=i.Math.min(r,jz(wxt(e,dde),19).a));return r}function cvt(t,e){var n,i;if(0==e.length)return 0;for(n=ZW(t.a,e[0],(vGt(),EDe)),n+=ZW(t.a,e[e.length-1],aDe),i=0;i<e.length;i++)n+=Vxt(t,i,e);return n}function lvt(){pOt(),this.c=new Mb,this.i=new Mb,this.e=new lB,this.f=new lB,this.g=new lB,this.j=new Mb,this.a=new Mb,this.b=new Pb,this.k=new Pb}function uvt(t,e){var n;return t.Db>>16==6?t.Cb.ih(t,5,zIe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||t.zh(),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function hvt(t){xZ();var e=t.e;if(e&&e.stack){var n=e.stack,i=e+"\n";return n.substring(0,i.length)==i&&(n=n.substring(i.length)),n.split("\n")}return[]}function dvt(t){var e;return Ait(),(e=Dee)[t>>>28]|e[t>>24&15]<<4|e[t>>20&15]<<8|e[t>>16&15]<<12|e[t>>12&15]<<16|e[t>>8&15]<<20|e[t>>4&15]<<24|e[15&t]<<28}function fvt(t){var e,n,r;t.b==t.c&&(r=t.a.length,n=vct(i.Math.max(8,r))<<1,0!=t.b?(art(t,e=AR(t.a,n),r),t.a=e,t.b=0):xw(t.a,n),t.c=r)}function gvt(t,e){var n;return(n=t.b).Xe((cKt(),rTe))?n.Hf()==(vGt(),EDe)?-n.rf().a-Vv(CN(n.We(rTe))):e+Vv(CN(n.We(rTe))):n.Hf()==(vGt(),EDe)?-n.rf().a:e}function pvt(t){var e;return 0!=t.b.c.length&&jz(PH(t.b,0),70).a?jz(PH(t.b,0),70).a:null!=(e=tX(t))?e:""+(t.c?y9(t.c.a,t,0):-1)}function mvt(t){var e;return 0!=t.f.c.length&&jz(PH(t.f,0),70).a?jz(PH(t.f,0),70).a:null!=(e=tX(t))?e:""+(t.i?y9(t.i.j,t,0):-1)}function bvt(t,e){var n,i;if(e<0||e>=t.gc())return null;for(n=e;n<t.gc();++n)if(i=jz(t.Xb(n),128),n==t.gc()-1||!i.o)return new nD(ndt(n),i);return null}function wvt(t,e,n){var i,r,o,a;for(o=t.c,i=n?t:e,r=(n?e:t).p+1;r<i.p;++r)if((a=jz(PH(o.a,r),10)).k!=(aEt(),_se)&&!Myt(a))return!1;return!0}function kvt(t){var e,n,r,o,a;for(a=0,o=RXt,r=0,n=new Gf(t.a);n.a<n.c.c.length;)a+=(e=jz(Q1(n),187)).r+(r>0?t.c:0),o=i.Math.max(o,e.d),++r;t.e=a,t.b=o}function vvt(t){var e,n;if(!t.b)for(t.b=E2(jz(t.f,118).Ag().i),n=new DP(jz(t.f,118).Ag());n.e!=n.i.gc();)e=jz(vbt(n),137),Gz(t.b,new Ov(e));return t.b}function yvt(t,e){var n,i,r;if(e.dc())return fN(),fN(),gBe;for(n=new rR(t,e.gc()),r=new DP(t);r.e!=r.i.gc();)i=vbt(r),e.Hc(i)&&l8(n,i);return n}function _vt(t,e,n,i){return 0==e?i?(!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),t.o):(!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),D7(t.o)):Qbt(t,e,n,i)}function Cvt(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e<n;++e)mO(Wet(t.rb,e));if(t.vb)for(e=0,n=t.vb.i;e<n;++e)mO(Wet(t.vb,e));rU((STt(),XMe),t),t.Bb|=1}function Avt(t,e,n,i,r,o,a,s,c,l,u,h,d,f){return dSt(t,e,i,null,r,o,a,s,c,l,d,!0,f),qdt(t,u),iP(t.Cb,88)&&ISt(x4(jz(t.Cb,88)),2),n&&irt(t,n),Udt(t,h),t}function xvt(t){var e;if(null==t)return null;e=0;try{e=hjt(t,FYt,OKt)&YYt}catch(n){if(!iP(n=hst(n),127))throw $b(n);e=W9(t)[0]}return ust(e)}function Evt(t){var e;if(null==t)return null;e=0;try{e=hjt(t,FYt,OKt)&YYt}catch(n){if(!iP(n=hst(n),127))throw $b(n);e=W9(t)[0]}return ust(e)}function Tvt(t,e){var n,i,r;return!((r=t.h-e.h)<0||(n=t.l-e.l,(r+=(i=t.m-e.m+(n>>22))>>22)<0||(t.l=n&xXt,t.m=i&xXt,t.h=r&EXt,0)))}function Svt(t,e,n,i,r,o,a){var s,c;return!(e.Ae()&&(c=t.a.ue(n,i),c<0||!r&&0==c)||e.Be()&&(s=t.a.ue(n,o),s>0||!a&&0==s))}function Dvt(t,e){if(qlt(),0!=t.j.g-e.j.g)return 0;switch(t.j.g){case 2:return yft(e,hle)-yft(t,hle);case 4:return yft(t,ule)-yft(e,ule)}return 0}function Ivt(t){switch(t.g){case 0:return Pue;case 1:return Lue;case 2:return Oue;case 3:return Nue;case 4:return Rue;case 5:return Fue;default:return null}}function Bvt(t,e,n){var i,r;return Sut(r=new Bk,e),Prt(r,n),l8((!t.c&&(t.c=new tG(KBe,t,12,10)),t.c),r),Mnt(i=r,0),Pnt(i,1),Jht(i,!0),Xht(i,!0),i}function Mvt(t,e){var n,i;if(e>=t.i)throw $b(new BI(e,t.i));return++t.j,n=t.g[e],(i=t.i-e-1)>0&&oVt(t.g,e+1,t.g,e,i),IW(t.g,--t.i,null),t.fi(e,n),t.ci(),n}function Pvt(t,e){var n;return t.Db>>16==17?t.Cb.ih(t,21,$Be,e):(n=Twt(jz(eet(jz(kat(t,16),26)||t.zh(),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Lvt(t){var e,n,i;for(AX(),bM(t.c,t.a),i=new Gf(t.c);i.a<i.c.c.length;)for(n=Q1(i),e=new Gf(t.b);e.a<e.c.c.length;)jz(Q1(e),679).Ke(n)}function Ovt(t){var e,n,i;for(AX(),bM(t.c,t.a),i=new Gf(t.c);i.a<i.c.c.length;)for(n=Q1(i),e=new Gf(t.b);e.a<e.c.c.length;)jz(Q1(e),369).Ke(n)}function Nvt(t){var e,n,i,r,o;for(r=OKt,o=null,i=new Gf(t.d);i.a<i.c.c.length;)(n=jz(Q1(i),213)).d.j^n.e.j&&(e=n.e.e-n.d.e-n.a)<r&&(r=e,o=n);return o}function Rvt(){Rvt=I,fae=new II(PJt,(cL(),!1)),lae=new II(LJt,100),z9(),uae=new II(OJt,hae=Sae),dae=new II(NJt,hJt),gae=new II(RJt,ndt(OKt))}function Fvt(t,e,n){var i,r,o,a,s,c;for(c=0,r=0,o=(i=t.a[e]).length;r<o;++r)for(s=Mht(i[r],n).Kc();s.Ob();)a=jz(s.Pb(),11),WK(t.f,a,ndt(c++))}function jvt(t,e,n){var i,r;if(n)for(r=((i=new cU(n.a.length)).b-i.a)*i.c<0?(tE(),_Le):new UP(i);r.Ob();)ZDt(t,e,vDt(ftt(n,jz(r.Pb(),19).a)))}function $vt(t,e,n){var i,r;if(n)for(r=((i=new cU(n.a.length)).b-i.a)*i.c<0?(tE(),_Le):new UP(i);r.Ob();)ZDt(t,e,vDt(ftt(n,jz(r.Pb(),19).a)))}function zvt(t){var e;return Fxt(),H8(e=jz(_kt(gU(t.k),P7(FDe,XJt,61,2,0,1)),122),0,e.length,null),e[0]==(vGt(),sDe)&&e[1]==EDe&&(IW(e,0,EDe),IW(e,1,sDe)),e}function Vvt(t,e,n){var i,r,o;return o=cNt(t,r=GLt(t,e,n)),N8(t.b),k0(t,e,n),AX(),bM(r,new Wp(t)),i=cNt(t,r),N8(t.b),k0(t,n,e),new nD(ndt(o),ndt(i))}function Hvt(){Hvt=I,qke=fH(new j2,(kxt(),jae),(hKt(),fce)),Uke=new eR("linearSegments.inputPrio",ndt(0)),Gke=new eR("linearSegments.outputPrio",ndt(0))}function qvt(){qvt=I,Ove=new lS("P1_TREEIFICATION",0),Nve=new lS("P2_NODE_ORDERING",1),Rve=new lS("P3_NODE_PLACEMENT",2),Fve=new lS("P4_EDGE_ROUTING",3)}function Uvt(){Uvt=I,cKt(),P_e=gTe,N_e=BTe,E_e=NEe,T_e=jEe,S_e=zEe,x_e=LEe,D_e=qEe,M_e=lTe,RBt(),C_e=d_e,A_e=f_e,I_e=p_e,B_e=b_e,L_e=w_e,O_e=k_e,R_e=y_e}function Gvt(){Gvt=I,CSe=new zS("UNKNOWN",0),vSe=new zS("ABOVE",1),ySe=new zS("BELOW",2),_Se=new zS("INLINE",3),new eR("org.eclipse.elk.labelSide",CSe)}function Wvt(t,e){var n;if(t.ni()&&null!=e){for(n=0;n<t.i;++n)if(Pht(e,t.g[n]))return n}else for(n=0;n<t.i;++n)if(VD(t.g[n])===VD(e))return n;return-1}function Kvt(t,e,n){var i,r;return e.c==(oit(),zwe)&&n.c==$we?-1:e.c==$we&&n.c==zwe?1:(i=gut(e.a,t.a),r=gut(n.a,t.a),e.c==zwe?r-i:i-r)}function Yvt(t,e,n){if(n&&(e<0||e>n.a.c.length))throw $b(new Rv("index must be >= 0 and <= layer node count"));t.c&&w9(t.c.a,t),t.c=n,n&&kq(n.a,e,t)}function Xvt(t,e){var n,i,r;for(i=new aU(ZP(lft(t).a.Kc(),new u));gBt(i);)return n=jz(q4(i),17),new $h(wW((r=jz(e.Kb(n),10)).n.b+r.o.b/2));return ev(),ev(),Dte}function Zvt(t,e){this.c=new Pb,this.a=t,this.b=e,this.d=jz(wxt(t,(lKt(),Dde)),304),VD(wxt(t,(zWt(),Bme)))===VD((g9(),zue))?this.e=new gk:this.e=new fk}function Qvt(t,e){var n,r,o;for(o=0,r=new Gf(t);r.a<r.c.c.length;)n=jz(Q1(r),33),o+=i.Math.pow(n.g*n.f-e,2);return i.Math.sqrt(o/(t.c.length-1))}function Jvt(t,e){var n,i;return i=null,t.Xe((cKt(),ETe))&&(n=jz(t.We(ETe),94)).Xe(e)&&(i=n.We(e)),null==i&&t.yf()&&(i=t.yf().We(e)),null==i&&(i=wbt(e)),i}function tyt(t,e){var n,i;n=t.Zc(e);try{return i=n.Pb(),n.Qb(),i}catch(t){throw iP(t=hst(t),109)?$b(new Dv("Can't remove element "+e)):$b(t)}}function eyt(t,e){var n,i,r;if(0==(n=Ozt(t,e,r=new bct((i=new DA).q.getFullYear()-cXt,i.q.getMonth(),i.q.getDate())))||n<e.length)throw $b(new Rv(e));return r}function nyt(t,e){var n,i,r;for(kK(e),_O(e!=t),r=t.b.c.length,i=e.Kc();i.Ob();)n=i.Pb(),Gz(t.b,kK(n));return r!=t.b.c.length&&(_lt(t,0),!0)}function iyt(){iyt=I,cKt(),kae=EEe,new UB(fEe,(cL(),!0)),_ae=NEe,Cae=jEe,Aae=zEe,yae=LEe,xae=qEe,Eae=lTe,Rvt(),wae=fae,mae=uae,bae=dae,vae=gae,pae=lae}function ryt(t,e){if(e==t.c)return t.d;if(e==t.d)return t.c;throw $b(new Rv("'port' must be either the source port or target port of the edge."))}function oyt(t,e,n){var i,r;switch(r=t.o,i=t.d,e.g){case 1:return-i.d-n;case 3:return r.b+i.a+n;case 2:return r.a+i.c+n;case 4:return-i.b-n;default:return 0}}function ayt(t,e,n,i){var r,o,a;for(xJ(e,jz(i.Xb(0),29)),a=i.bd(1,i.gc()),o=jz(n.Kb(e),20).Kc();o.Ob();)ayt(t,(r=jz(o.Pb(),17)).c.i==e?r.d.i:r.c.i,n,a)}function syt(t){var e;return e=new Pb,BO(t,(lKt(),Lde))?jz(wxt(t,Lde),83):(XA(DY(new OH(null,new d1(t.j,16)),new er),new gp(e)),lct(t,Lde,e),e)}function cyt(t,e){var n;return t.Db>>16==6?t.Cb.ih(t,6,NIe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(TWt(),wIe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function lyt(t,e){var n;return t.Db>>16==7?t.Cb.ih(t,1,PIe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(TWt(),vIe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function uyt(t,e){var n;return t.Db>>16==9?t.Cb.ih(t,9,HIe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(TWt(),_Ie),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function hyt(t,e){var n;return t.Db>>16==5?t.Cb.ih(t,9,qBe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(pKt(),aMe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function dyt(t,e){var n;return t.Db>>16==3?t.Cb.ih(t,0,FIe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(pKt(),JBe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function fyt(t,e){var n;return t.Db>>16==7?t.Cb.ih(t,6,zIe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(pKt(),pMe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function gyt(){this.a=new fc,this.g=new Iwt,this.j=new Iwt,this.b=new Pb,this.d=new Iwt,this.i=new Iwt,this.k=new Pb,this.c=new Pb,this.e=new Pb,this.f=new Pb}function pyt(t,e,n){var i,r,o;for(n<0&&(n=0),o=t.i,r=n;r<o;r++)if(i=Wet(t,r),null==e){if(null==i)return r}else if(VD(e)===VD(i)||Pht(e,i))return r;return-1}function myt(t,e){var n,i;return(n=e.Hh(t.a))?(i=AN(rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),y9t)),bF(_9t,i)?rU(t,Uet(e.Hj())):i):null}function byt(t,e){var n,i;if(e){if(e==t)return!0;for(n=0,i=jz(e,49).eh();i&&i!=e;i=i.eh()){if(++n>HXt)return byt(t,i);if(i==t)return!0}}return!1}function wyt(t){switch(LL(),t.q.g){case 5:bDt(t,(vGt(),sDe)),bDt(t,ADe);break;case 4:qMt(t,(vGt(),sDe)),qMt(t,ADe);break;default:bGt(t,(vGt(),sDe)),bGt(t,ADe)}}function kyt(t){switch(LL(),t.q.g){case 5:xIt(t,(vGt(),aDe)),xIt(t,EDe);break;case 4:Tbt(t,(vGt(),aDe)),Tbt(t,EDe);break;default:wGt(t,(vGt(),aDe)),wGt(t,EDe)}}function vyt(t){var e,n;(e=jz(wxt(t,(uRt(),Qoe)),19))?(n=e.a,lct(t,(Art(),cae),0==n?new cft:new E5(n))):lct(t,(Art(),cae),new E5(1))}function yyt(t,e){var n;switch(n=t.i,e.g){case 1:return-(t.n.b+t.o.b);case 2:return t.n.a-n.o.a;case 3:return t.n.b-n.o.b;case 4:return-(t.n.a+t.o.a)}return 0}function _yt(t,e){switch(t.g){case 0:return e==(Cft(),Fde)?nle:ile;case 1:return e==(Cft(),Fde)?nle:ele;case 2:return e==(Cft(),Fde)?ele:ile;default:return ele}}function Cyt(t,e){var n,r,o;for(w9(t.a,e),t.e-=e.r+(0==t.a.c.length?0:t.c),o=J3t,r=new Gf(t.a);r.a<r.c.c.length;)n=jz(Q1(r),187),o=i.Math.max(o,n.d);t.b=o}function Ayt(t,e){var n;return t.Db>>16==3?t.Cb.ih(t,12,HIe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(TWt(),bIe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function xyt(t,e){var n;return t.Db>>16==11?t.Cb.ih(t,10,HIe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(TWt(),yIe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Eyt(t,e){var n;return t.Db>>16==10?t.Cb.ih(t,11,$Be,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(pKt(),fMe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Tyt(t,e){var n;return t.Db>>16==10?t.Cb.ih(t,12,WBe,e):(n=Twt(jz(eet(jz(kat(t,16),26)||(pKt(),mMe),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Syt(t){var e;return 1&t.Bb||!t.r||!t.r.kh()||(e=jz(t.r,49),t.r=jz(tht(t,e),138),t.r!=e&&4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,9,8,e,t.r))),t.r}function Dyt(t,e,n){var r;return r=Est(Vy(MLe,1),VXt,25,15,[nxt(t,(Oet(),Vie),e,n),nxt(t,Hie,e,n),nxt(t,qie,e,n)]),t.f&&(r[0]=i.Math.max(r[0],r[2]),r[2]=r[0]),r}function Iyt(t,e){var n,i,r;if(0!=(r=Xwt(t,e)).c.length)for(bM(r,new ei),n=r.c.length,i=0;i<n;i++)lTt(t,(u1(i,r.c.length),jz(r.c[i],286)),CNt(t,r,i))}function Byt(t){var e,n,i;for(i=jz(c6(t.a,(MCt(),_le)),15).Kc();i.Ob();)for(e=gU((n=jz(i.Pb(),101)).k).Kc();e.Ob();)eW(t,n,jz(e.Pb(),61),(Trt(),Lle),1)}function Myt(t){var e,n;if(t.k==(aEt(),xse))for(n=new aU(ZP(lft(t).a.Kc(),new u));gBt(n);)if(!h4(e=jz(q4(n),17))&&t.c==I_t(e,t).c)return!0;return!1}function Pyt(t){var e,n;if(t.k==(aEt(),xse))for(n=new aU(ZP(lft(t).a.Kc(),new u));gBt(n);)if(!h4(e=jz(q4(n),17))&&e.c.i.c==e.d.i.c)return!0;return!1}function Lyt(t,e){var n,i;for(DAt(e,"Dull edge routing",1),i=cbt(t.b,0);i.b!=i.d.c;)for(n=cbt(jz(h3(i),86).d,0);n.b!=n.d.c;)wX(jz(h3(n),188).a)}function Oyt(t,e){var n,i,r;if(e)for(r=((n=new cU(e.a.length)).b-n.a)*n.c<0?(tE(),_Le):new UP(n);r.Ob();)(i=P2(e,jz(r.Pb(),19).a))&&DMt(t,i)}function Nyt(){var t;for(Jx(),JWt((KW(),QBe)),FWt(QBe),Cvt(QBe),pKt(),IMe=lMe,t=new Gf(GMe);t.a<t.c.c.length;)oUt(jz(Q1(t),241),lMe,null);return!0}function Ryt(t,e){var n,i,r,o,a,s;return(a=t.h>>19)!=(s=e.h>>19)?s-a:(i=t.h)!=(o=e.h)?i-o:(n=t.m)!=(r=e.m)?n-r:t.l-e.l}function Fyt(){Fyt=I,tRt(),xie=new II(UZt,Eie=Pie),Ott(),Cie=new II(GZt,Aie=bie),lbt(),yie=new II(WZt,_ie=fie),vie=new II(KZt,(cL(),!0))}function jyt(t,e,n){var i,r;i=e*n,iP(t.g,145)?(r=l3(t)).f.d?r.f.a||(t.d.a+=i+uQt):(t.d.d-=i+uQt,t.d.a+=i+uQt):iP(t.g,10)&&(t.d.d-=i,t.d.a+=2*i)}function $yt(t,e,n){var r,o,a,s,c;for(o=t[n.g],c=new Gf(e.d);c.a<c.c.c.length;)(a=(s=jz(Q1(c),101)).i)&&a.i==n&&(o[r=s.d[n.g]]=i.Math.max(o[r],a.j.b))}function zyt(t,e){var n,r,o,a,s;for(r=0,o=0,n=0,s=new Gf(e.d);s.a<s.c.c.length;)Hkt(a=jz(Q1(s),443)),r=i.Math.max(r,a.b),o+=a.d+(n>0?t.g:0),++n;e.b=r,e.e=o}function Vyt(t){var e,n,i;if(i=t.b,zA(t.i,i.length)){for(n=2*i.length,t.b=P7(Hte,TYt,317,n,0,1),t.c=P7(Hte,TYt,317,n,0,1),t.f=n-1,t.i=0,e=t.a;e;e=e.c)XSt(t,e,e);++t.g}}function Hyt(t,e,n,i){var r,o,a,s;for(r=0;r<e.o;r++)for(o=r-e.j+n,a=0;a<e.p;a++)s=a-e.k+i,bkt(e,r,a)?rkt(t,o,s)||Gkt(t,o,s):kkt(e,r,a)&&(nkt(t,o,s)||Wkt(t,o,s))}function qyt(t,e,n){var i;(i=e.c.i).k==(aEt(),xse)?(lct(t,(lKt(),cde),jz(wxt(i,cde),11)),lct(t,lde,jz(wxt(i,lde),11))):(lct(t,(lKt(),cde),e.c),lct(t,lde,n.d))}function Uyt(t,e,n){var r,o,a,s,c,l;return yNt(),s=e/2,a=n/2,c=1,l=1,(r=i.Math.abs(t.a))>s&&(c=s/r),(o=i.Math.abs(t.b))>a&&(l=a/o),kP(t,i.Math.min(c,l)),t}function Gyt(){var t,e;Vzt();try{if(e=jz(G_t((Gx(),VBe),k6t),2014))return e}catch(e){if(!iP(e=hst(e),102))throw $b(e);t=e,oU((oM(),t))}return new sc}function Wyt(){var t,e;f9();try{if(e=jz(G_t((Gx(),VBe),x9t),2024))return e}catch(e){if(!iP(e=hst(e),102))throw $b(e);t=e,oU((oM(),t))}return new Nl}function Kyt(){var t,e;Vzt();try{if(e=jz(G_t((Gx(),VBe),K8t),1941))return e}catch(e){if(!iP(e=hst(e),102))throw $b(e);t=e,oU((oM(),t))}return new Hc}function Yyt(t,e,n){var i,r;return r=t.e,t.e=e,4&t.Db&&!(1&t.Db)&&(i=new QU(t,1,4,r,e),n?n.Ei(i):n=i),r!=e&&(n=oUt(t,e?vPt(t,e):t.a,n)),n}function Xyt(){DA.call(this),this.e=-1,this.a=!1,this.p=FYt,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=FYt}function Zyt(t,e){var n,i,r;if(i=t.b.d.d,t.a||(i+=t.b.d.a),r=e.b.d.d,e.a||(r+=e.b.d.a),0==(n=Edt(i,r))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function Qyt(t,e){var n,i,r;if(i=t.b.b.d,t.a||(i+=t.b.b.a),r=e.b.b.d,e.a||(r+=e.b.b.a),0==(n=Edt(i,r))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function Jyt(t,e){var n,i,r;if(i=t.b.g.d,t.a||(i+=t.b.g.a),r=e.b.g.d,e.a||(r+=e.b.g.a),0==(n=Edt(i,r))){if(!t.a&&e.a)return-1;if(!e.a&&t.a)return 1}return n}function t_t(){t_t=I,Mae=Gq(fH(fH(fH(new j2,(kxt(),Fae),(hKt(),wce)),Fae,_ce),jae,Dce),jae,ace),Lae=fH(fH(new j2,Fae,Xse),Fae,sce),Pae=Gq(new j2,jae,lce)}function e_t(t){var e,n,i,r,o;for(e=jz(wxt(t,(lKt(),Hhe)),83),o=t.n,i=e.Cc().Kc();i.Ob();)(r=(n=jz(i.Pb(),306)).i).c+=o.a,r.d+=o.b,n.c?PNt(n):LNt(n);lct(t,Hhe,null)}function n_t(t,e,n){var i,r;switch(i=(r=t.b).d,e.g){case 1:return-i.d-n;case 2:return r.o.a+i.c+n;case 3:return r.o.b+i.a+n;case 4:return-i.b-n;default:return-1}}function i_t(t){var e,n,i,r,o;if(i=0,r=QQt,t.b)for(e=0;e<360;e++)n=.017453292519943295*e,UFt(t,t.d,0,0,Q3t,n),(o=t.b.ig(t.d))<r&&(i=n,r=o);UFt(t,t.d,0,0,Q3t,i)}function r_t(t,e){var n,i,r,o;for(o=new Pb,e.e=null,e.f=null,i=new Gf(e.i);i.a<i.c.c.length;)n=jz(Q1(i),65),r=jz(OW(t.g,n.a),46),n.a=zU(n.b),WK(o,n.a,r);t.g=o}function o_t(t,e,n){var i,r,o,a,s;for(r=(e-t.e)/t.d.c.length,o=0,s=new Gf(t.d);s.a<s.c.c.length;)a=jz(Q1(s),443),i=t.b-a.b+n,vpt(a,a.e+o*r,a.f),lkt(a,r,i),++o}function a_t(t){var e;if(t.f.qj(),-1!=t.b){if(++t.b,e=t.f.d[t.a],t.b<e.i)return;++t.a}for(;t.a<t.f.d.length;++t.a)if((e=t.f.d[t.a])&&0!=e.i)return void(t.b=0);t.b=-1}function s_t(t,e){var n,i,r;for(n=BSt(t,0==(r=e.c.length)?"":(u1(0,e.c.length),AN(e.c[0]))),i=1;i<r&&n;++i)n=jz(n,49).oh((u1(i,e.c.length),AN(e.c[i])));return n}function c_t(t,e){var n,i;for(i=new Gf(e);i.a<i.c.c.length;)n=jz(Q1(i),10),t.c[n.c.p][n.p].a=Sq(t.i),t.c[n.c.p][n.p].d=Vv(t.c[n.c.p][n.p].a),t.c[n.c.p][n.p].b=1}function l_t(t,e){var n,r,o;for(o=0,r=new Gf(t);r.a<r.c.c.length;)n=jz(Q1(r),157),o+=i.Math.pow(eq(n)*tq(n)-e,2);return i.Math.sqrt(o/(t.c.length-1))}function u_t(t,e,n,i){var r,o,a;return a=PRt(t,o=VRt(t,e,n,i)),uxt(t,e,n,i),N8(t.b),AX(),bM(o,new Kp(t)),r=PRt(t,o),uxt(t,n,e,i),N8(t.b),new nD(ndt(a),ndt(r))}function h_t(t,e,n){var i;for(DAt(n,"Interactive node placement",1),t.a=jz(wxt(e,(lKt(),Dde)),304),i=new Gf(e.b);i.a<i.c.c.length;)JOt(t,jz(Q1(i),29));zEt(n)}function d_t(t,e){DAt(e,"General Compactor",1),e.n&&t&&w0(e,a2(t),($lt(),oIe)),ggt(jz(QBt(t,(Uvt(),A_e)),380)).hg(t),e.n&&t&&w0(e,a2(t),($lt(),oIe))}function f_t(t,e,n){var i,r;for(EB(t,t.j+e,t.k+n),r=new DP((!t.a&&(t.a=new IP(MIe,t,5)),t.a));r.e!=r.i.gc();)_B(i=jz(vbt(r),469),i.a+e,i.b+n);xB(t,t.b+e,t.c+n)}function g_t(t,e,n,i){switch(n){case 7:return!t.e&&(t.e=new cF(NIe,t,7,4)),Xgt(t.e,e,i);case 8:return!t.d&&(t.d=new cF(NIe,t,8,5)),Xgt(t.d,e,i)}return jAt(t,e,n,i)}function p_t(t,e,n,i){switch(n){case 7:return!t.e&&(t.e=new cF(NIe,t,7,4)),Fbt(t.e,e,i);case 8:return!t.d&&(t.d=new cF(NIe,t,8,5)),Fbt(t.d,e,i)}return ist(t,e,n,i)}function m_t(t,e,n){var i,r,o;if(n)for(o=((i=new cU(n.a.length)).b-i.a)*i.c<0?(tE(),_Le):new UP(i);o.Ob();)(r=P2(n,jz(o.Pb(),19).a))&&dDt(t,r,e)}function b_t(t,e,n){var i,r,o;return t.qj(),o=null==e?0:Jct(e),t.f>0&&(r=oIt(t,(o&OKt)%t.d.length,o,e))?r.ed(n):(i=t.tj(o,e,n),t.c.Fc(i),null)}function w_t(t,e){var n,i,r,o;switch(Tht(t,e)._k()){case 3:case 2:for(r=0,o=(n=Xzt(e)).i;r<o;++r)if(5==LK(j9(t,i=jz(Wet(n,r),34))))return i}return null}function k_t(t){var e,n,i,r,o;if(zA(t.f,t.b.length))for(i=P7(Yte,TYt,330,2*t.b.length,0,1),t.b=i,r=i.length-1,n=t.a;n!=t;n=n.Rd())e=(o=jz(n,330)).d&r,o.a=i[e],i[e]=o}function v_t(t,e){var n,r,o,a;for(a=0,o=jz(jz(c6(t.r,e),21),84).Kc();o.Ob();)r=jz(o.Pb(),111),a=i.Math.max(a,r.e.a+r.b.rf().a);(n=jz(aY(t.b,e),124)).n.b=0,n.a.a=a}function y_t(t,e){var n,r,o,a;for(n=0,a=jz(jz(c6(t.r,e),21),84).Kc();a.Ob();)o=jz(a.Pb(),111),n=i.Math.max(n,o.e.b+o.b.rf().b);(r=jz(aY(t.b,e),124)).n.d=0,r.a.b=n}function __t(t){var e,n;return n=jz(wxt(t,(lKt(),Zhe)),21),e=kB(mve),n.Hc((dNt(),ghe))&&Zot(e,kve),n.Hc(mhe)&&Zot(e,yve),n.Hc(she)&&Zot(e,bve),n.Hc(lhe)&&Zot(e,wve),e}function C_t(t,e){var n;DAt(e,"Delaunay triangulation",1),n=new Mb,Det(t.i,new wm(n)),zv(_N(wxt(t,(Got(),Kre)))),t.e?jrt(t.e,BWt(n)):t.e=BWt(n),zEt(e)}function A_t(t){if(t<0)throw $b(new Rv("The input must be positive"));return t<Cxe.length?v2(Cxe[t]):i.Math.sqrt(Q3t*t)*(nht(t,t)/eht(2.718281828459045,t))}function x_t(t,e){var n;if(t.ni()&&null!=e){for(n=0;n<t.i;++n)if(Pht(e,t.g[n]))return!0}else for(n=0;n<t.i;++n)if(VD(t.g[n])===VD(e))return!0;return!1}function E_t(t,e){if(null==e){for(;t.a.Ob();)if(null==jz(t.a.Pb(),42).dd())return!0}else for(;t.a.Ob();)if(Pht(e,jz(t.a.Pb(),42).dd()))return!0;return!1}function T_t(t,e){var n;return e===t||!!iP(e,664)&&(n=jz(e,1947),nmt(t.g||(t.g=new Xh(t)),n.g||(n.g=new Xh(n))))}function S_t(t){var e,n,r;for(e="Sz",n="ez",r=i.Math.min(t.length,5)-1;r>=0;r--)if(bF(t[r].d,e)||bF(t[r].d,n)){t.length>=r+1&&t.splice(0,r+1);break}return t}function D_t(t,e){var n;return XI(t)&&XI(e)&&BXt<(n=t/e)&&n<DXt?n<0?i.Math.ceil(n):i.Math.floor(n):aat(IHt(XI(t)?Eat(t):t,XI(e)?Eat(e):e,!1))}function I_t(t,e){if(e==t.c.i)return t.d.i;if(e==t.d.i)return t.c.i;throw $b(new Rv("'node' must either be the source node or target node of the edge."))}function B_t(t){var e,n,i,r;if(r=jz(wxt(t,(lKt(),Fhe)),37)){for(i=new V_,e=mK(t.c.i);e!=r;)e=mK(n=e.e),RO(qR(qR(i,n.n),e.c),e.d.b,e.d.d);return i}return Fse}function M_t(t){var e;XA(dtt(new OH(null,new d1((e=jz(wxt(t,(lKt(),Sde)),403)).d,16)),new ji),new dp(t)),XA(DY(new OH(null,new d1(e.d,16)),new $i),new fp(t))}function P_t(t,e){var n,i;for(n=new aU(ZP((e?hft(t):uft(t)).a.Kc(),new u));gBt(n);)if((i=I_t(jz(q4(n),17),t)).k==(aEt(),xse)&&i.c!=t.c)return i;return null}function L_t(t){var e,n,r;for(n=new Gf(t.p);n.a<n.c.c.length;)(e=jz(Q1(n),10)).k==(aEt(),Ese)&&(r=e.o.b,t.i=i.Math.min(t.i,r),t.g=i.Math.max(t.g,r))}function O_t(t,e,n){var i,r,o;for(o=new Gf(e);o.a<o.c.c.length;)i=jz(Q1(o),10),t.c[i.c.p][i.p].e=!1;for(r=new Gf(e);r.a<r.c.c.length;)LUt(t,i=jz(Q1(r),10),n)}function N_t(t,e,n){var r,o;(r=Cht(e.j,n.s,n.c)+Cht(n.e,e.s,e.c))==(o=Cht(n.j,e.s,e.c)+Cht(e.e,n.s,n.c))?r>0&&(t.b+=2,t.a+=r):(t.b+=1,t.a+=i.Math.min(r,o))}function R_t(t,e){var n;if(n=!1,UD(e)&&(n=!0,QW(t,new VW(AN(e)))),n||iP(e,236)&&(n=!0,QW(t,new Cd(UF(jz(e,236))))),!n)throw $b(new Bv(z6t))}function F_t(t,e,n,i){var r,o,a;return r=new M9(t.e,1,10,iP(a=e.c,88)?jz(a,26):(pKt(),dMe),iP(o=n.c,88)?jz(o,26):(pKt(),dMe),awt(t,e),!1),i?i.Ei(r):i=r,i}function j_t(t){var e,n;switch(jz(wxt(mK(t),(zWt(),pme)),420).g){case 0:return e=t.n,n=t.o,new PS(e.a+n.a/2,e.b+n.b/2);case 1:return new dB(t.n);default:return null}}function $_t(){$_t=I,Kue=new DT(YJt,0),Wue=new DT("LEFTUP",1),Xue=new DT("RIGHTUP",2),Gue=new DT("LEFTDOWN",3),Yue=new DT("RIGHTDOWN",4),Uue=new DT("BALANCED",5)}function z_t(t,e,n){var i,r,o;if(0==(i=Edt(t.a[e.p],t.a[n.p]))){if(r=jz(wxt(e,(lKt(),ide)),15),o=jz(wxt(n,ide),15),r.Hc(n))return-1;if(o.Hc(e))return 1}return i}function V_t(t){switch(t.g){case 1:return new $a;case 2:return new za;case 3:return new ja;case 0:return null;default:throw $b(new Rv(r5t+(null!=t.f?t.f:""+t.g)))}}function H_t(t,e,n){switch(e){case 1:return!t.n&&(t.n=new tG(VIe,t,1,7)),cHt(t.n),!t.n&&(t.n=new tG(VIe,t,1,7)),void pW(t.n,jz(n,14));case 2:return void Bit(t,AN(n))}ilt(t,e,n)}function q_t(t,e,n){switch(e){case 3:return void Ant(t,Vv(CN(n)));case 4:return void xnt(t,Vv(CN(n)));case 5:return void Ent(t,Vv(CN(n)));case 6:return void Tnt(t,Vv(CN(n)))}H_t(t,e,n)}function U_t(t,e,n){var i,r;(i=zAt(r=new Bk,e,null))&&i.Fi(),Prt(r,n),l8((!t.c&&(t.c=new tG(KBe,t,12,10)),t.c),r),Mnt(r,0),Pnt(r,1),Jht(r,!0),Xht(r,!0)}function G_t(t,e){var n,i;return iP(n=cE(t.g,e),235)?((i=jz(n,235)).Qh(),i.Nh()):iP(n,498)?i=jz(n,1938).b:null}function W_t(t,e,n,i){var r,o;return wW(e),wW(n),O9(!!(o=jz(qF(t.d,e),19)),"Row %s not in %s",e,t.e),O9(!!(r=jz(qF(t.b,n),19)),"Column %s not in %s",n,t.c),xst(t,o.a,r.a,i)}function K_t(t,e,n,i,r,o,a){var s,c,l,u,h;if(h=$kt(s=(l=o==a-1)?i:0,u=r[o]),10!=i&&Est(Vy(t,a-o),e[o],n[o],s,h),!l)for(++o,c=0;c<u;++c)h[c]=K_t(t,e,n,i,r,o,a);return h}function Y_t(t){if(-1==t.g)throw $b(new fw);t.mj();try{t.i.$c(t.g),t.f=t.i.j,t.g<t.e&&--t.e,t.g=-1}catch(t){throw iP(t=hst(t),73)?$b(new mw):$b(t)}}function X_t(t,e){return t.b.a=i.Math.min(t.b.a,e.c),t.b.b=i.Math.min(t.b.b,e.d),t.a.a=i.Math.max(t.a.a,e.c),t.a.b=i.Math.max(t.a.b,e.d),t.c[t.c.length]=e,!0}function Z_t(t){var e,n,i;for(i=-1,n=0,e=new Gf(t);e.a<e.c.c.length;){if(jz(Q1(e),243).c==(oit(),$we)){i=0==n?0:n-1;break}n==t.c.length-1&&(i=n),n+=1}return i}function Q_t(t){var e,n,r,o;for(o=0,e=0,r=new Gf(t.c);r.a<r.c.c.length;)Ent(n=jz(Q1(r),33),t.e+o),Tnt(n,t.f),o+=n.g+t.b,e=i.Math.max(e,n.f+t.b);t.d=o-t.b,t.a=e-t.b}function J_t(t){var e,n,i;for(n=new Gf(t.a.b);n.a<n.c.c.length;)i=(e=jz(Q1(n),57)).d.c,e.d.c=e.d.d,e.d.d=i,i=e.d.b,e.d.b=e.d.a,e.d.a=i,i=e.b.a,e.b.a=e.b.b,e.b.b=i;kLt(t)}function tCt(t){var e,n,i;for(n=new Gf(t.a.b);n.a<n.c.c.length;)i=(e=jz(Q1(n),81)).g.c,e.g.c=e.g.d,e.g.d=i,i=e.g.b,e.g.b=e.g.a,e.g.a=i,i=e.e.a,e.e.a=e.e.b,e.e.b=i;vLt(t)}function eCt(t){var e,n,i,r,o;for(o=gU(t.k),vGt(),i=0,r=(n=Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])).length;i<r;++i)if((e=n[i])!=xDe&&!o.Hc(e))return e;return null}function nCt(t,e){var n,i;return(i=jz(yL(Yct(DY(new OH(null,new d1(e.j,16)),new go))),11))&&(n=jz(PH(i.e,0),17))?jz(wxt(n,(lKt(),dde)),19).a:gtt(t.b)}function iCt(t,e){var n,i,r;for(r=new Gf(e.a);r.a<r.c.c.length;)for(i=jz(Q1(r),10),Qv(t.d),n=new aU(ZP(hft(i).a.Kc(),new u));gBt(n);)GIt(t,i,jz(q4(n),17).d.i)}function rCt(t,e){var n,i;for(w9(t.b,e),i=new Gf(t.n);i.a<i.c.c.length;)if(-1!=y9((n=jz(Q1(i),211)).c,e,0)){w9(n.c,e),Q_t(n),0==n.c.c.length&&w9(t.n,n);break}uVt(t)}function oCt(t,e){var n,r,o,a,s;for(s=t.f,o=0,a=0,r=new Gf(t.a);r.a<r.c.c.length;)Cwt(n=jz(Q1(r),187),t.e,s),p8(n,e),a=i.Math.max(a,n.r),o=s+=n.d+t.c;t.d=a,t.b=o}function aCt(t){var e,n;return c3(n=fPt(t))?null:(wW(n),e=jz(ekt(new aU(ZP(n.a.Kc(),new u))),79),EAt(jz(Wet((!e.b&&(e.b=new cF(OIe,e,4,7)),e.b),0),82)))}function sCt(t){return t.o||(t.Lj()?t.o=new rK(t,t,null):t.rk()?t.o=new nR(t,null):1==LK(j9((STt(),XMe),t))?t.o=new g5(t):t.o=new iR(t,null)),t.o}function cCt(t,e,n,i){var r,o,a,s,c;n.mh(e)&&(r=(a=e)?jz(i,49).xh(a):null)&&(c=n.ah(e),(s=e.t)>1||-1==s?(o=jz(c,15),r.Wb(Gpt(t,o))):r.Wb(tjt(t,jz(c,56))))}function lCt(t,e,n,i){YC();var r=EKt;function o(){for(var t=0;t<r.length;t++)r[t]()}if(t)try{jLe(o)()}catch(n){t(e,n)}else jLe(o)()}function uCt(t){var e,n,i,r,o;for(i=new alt(new xf(t.b).a);i.b;)e=jz((n=tnt(i)).cd(),10),o=jz(jz(n.dd(),46).a,10),r=jz(jz(n.dd(),46).b,8),qR(kI(e.n),qR(jM(o.n),r))}function hCt(t){switch(jz(wxt(t.b,(zWt(),tme)),375).g){case 1:XA(IY(dtt(new OH(null,new d1(t.d,16)),new jr),new $r),new zr);break;case 2:bRt(t);break;case 0:TSt(t)}}function dCt(t,e,n){DAt(n,"Straight Line Edge Routing",1),n.n&&e&&w0(n,a2(e),($lt(),oIe)),wVt(t,jz(QBt(e,(dN(),Wye)),33)),n.n&&e&&w0(n,a2(e),($lt(),oIe))}function fCt(){fCt=I,Zxe=new OS("V_TOP",0),Xxe=new OS("V_CENTER",1),Yxe=new OS("V_BOTTOM",2),Wxe=new OS("H_LEFT",3),Gxe=new OS("H_CENTER",4),Kxe=new OS("H_RIGHT",5)}function gCt(t){var e;return 64&t.Db?Tgt(t):((e=new lL(Tgt(t))).a+=" (abstract: ",wC(e,!!(256&t.Bb)),e.a+=", interface: ",wC(e,!!(512&t.Bb)),e.a+=")",e.a)}function pCt(t,e,n,i){var r,o,a;return bB(t.e)&&(a=BZ(t,1,r=e.ak(),e.dd(),o=n.dd(),r.$j()?mzt(t,r,o,iP(r,99)&&!!(jz(r,18).Bb&$Xt)):-1,!0),i?i.Ei(a):i=a),i}function mCt(t){var e;null==t.c&&(e=VD(t.b)===VD(Xte)?null:t.b,t.d=null==e?qKt:tU(e)?vL(yX(e)):UD(e)?VYt:Q_(tlt(e)),t.a=t.a+": "+(tU(e)?ER(yX(e)):e+""),t.c="("+t.d+") "+t.a)}function bCt(t,e){this.e=t,KD(t0(e,-4294967296),0)?(this.d=1,this.a=Est(Vy(SLe,1),lXt,25,15,[fq(e)])):(this.d=2,this.a=Est(Vy(SLe,1),lXt,25,15,[fq(e),fq(kU(e,32))]))}function wCt(){function t(){try{return(new Map).entries().next().done}catch(t){return!1}}return typeof Map===LKt&&Map.prototype.entries&&t()?Map:dGt()}function kCt(t,e){var n,i,r;for(r=new C2(t.e,0),n=0;r.b<r.d.gc();){if((i=Vv((xO(r.b<r.d.gc()),CN(r.d.Xb(r.c=r.b++))))-e)>O3t)return n;i>-1e-6&&++n}return n}function vCt(t,e){var n;e!=t.b?(n=null,t.b&&(n=aQ(t.b,t,-4,n)),e&&(n=Pbt(e,t,-4,n)),(n=Qut(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,3,e,e))}function yCt(t,e){var n;e!=t.f?(n=null,t.f&&(n=aQ(t.f,t,-1,n)),e&&(n=Pbt(e,t,-1,n)),(n=Jut(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,0,e,e))}function _Ct(t){var e,n,i;if(null==t)return null;if((n=jz(t,15)).dc())return"";for(i=new Ay,e=n.Kc();e.Ob();)iI(i,(UHt(),AN(e.Pb()))),i.a+=" ";return NI(i,i.a.length-1)}function CCt(t){var e,n,i;if(null==t)return null;if((n=jz(t,15)).dc())return"";for(i=new Ay,e=n.Kc();e.Ob();)iI(i,(UHt(),AN(e.Pb()))),i.a+=" ";return NI(i,i.a.length-1)}function ACt(t,e,n){var i,r;return i=t.c[e.c.p][e.p],r=t.c[n.c.p][n.p],null!=i.a&&null!=r.a?_U(i.a,r.a):null!=i.a?-1:null!=r.a?1:0}function xCt(t,e){var n,i,r;if(e)for(r=((n=new cU(e.a.length)).b-n.a)*n.c<0?(tE(),_Le):new UP(n);r.Ob();)i=P2(e,jz(r.Pb(),19).a),SY(new jm(t).a,i)}function ECt(t,e){var n,i,r;if(e)for(r=((n=new cU(e.a.length)).b-n.a)*n.c<0?(tE(),_Le):new UP(n);r.Ob();)i=P2(e,jz(r.Pb(),19).a),TY(new Im(t).a,i)}function TCt(t){if(null!=t&&t.length>0&&33==lY(t,t.length-1))try{return null==XTt(lO(t,0,t.length-1)).e}catch(t){if(!iP(t=hst(t),32))throw $b(t)}return!1}function SCt(t,e,n){var i,r,o;return i=e.ak(),o=e.dd(),r=i.$j()?BZ(t,3,i,null,o,mzt(t,i,o,iP(i,99)&&!!(jz(i,18).Bb&$Xt)),!0):BZ(t,1,i,i.zj(),o,-1,!0),n?n.Ei(r):n=r,n}function DCt(){var t,e,n;for(e=0,t=0;t<1;t++){if(0==(n=YIt((h1(t,1),"X".charCodeAt(t)))))throw $b(new ry("Unknown Option: "+"X".substr(t)));e|=n}return e}function ICt(t,e,n){var i,r;switch(i=Wdt(mK(e)),EJ(r=new TEt,e),n.g){case 1:VSt(r,Cdt(lgt(i)));break;case 2:VSt(r,lgt(i))}return lct(r,(zWt(),Jme),CN(wxt(t,Jme))),r}function BCt(t){var e,n;return e=jz(q4(new aU(ZP(uft(t.a).a.Kc(),new u))),17),n=jz(q4(new aU(ZP(hft(t.a).a.Kc(),new u))),17),zv(_N(wxt(e,(lKt(),Ede))))||zv(_N(wxt(n,Ede)))}function MCt(){MCt=I,Cle=new wT("ONE_SIDE",0),xle=new wT("TWO_SIDES_CORNER",1),Ele=new wT("TWO_SIDES_OPPOSING",2),Ale=new wT("THREE_SIDES",3),_le=new wT("FOUR_SIDES",4)}function PCt(t,e,n,i,r){var o,a;o=jz(x5(DY(e.Oc(),new Jr),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15),a=jz(pat(t.b,n,i),15),0==r?a.Wc(0,o):a.Gc(o)}function LCt(t,e){var n,i,r;for(i=new Gf(e.a);i.a<i.c.c.length;)for(n=new aU(ZP(uft(jz(Q1(i),10)).a.Kc(),new u));gBt(n);)r=jz(q4(n),17).c.i.p,t.n[r]=t.n[r]-1}function OCt(t,e){var n,i,r,o;for(r=new Gf(e.d);r.a<r.c.c.length;)for(i=jz(Q1(r),101),o=jz(OW(t.c,i),112).o,n=new KA(i.b);n.a<n.c.a.length;)g8(i,jz(o5(n),61),o)}function NCt(t){var e;for(e=new Gf(t.e.b);e.a<e.c.c.length;)lUt(t,jz(Q1(e),29));XA(DY(dtt(dtt(new OH(null,new d1(t.e.b,16)),new Ko),new ta),new ea),new cm(t))}function RCt(t,e){return!!e&&!t.Di(e)&&(t.i?t.i.Ei(e):iP(e,143)?(t.i=jz(e,143),!0):(t.i=new bc,t.i.Ei(e)))}function FCt(t){if(t=jzt(t,!0),bF(o4t,t)||bF("1",t))return cL(),bee;if(bF(a4t,t)||bF("0",t))return cL(),mee;throw $b(new ey("Invalid boolean value: '"+t+"'"))}function jCt(t,e,n){var i,r,o;for(r=t.vc().Kc();r.Ob();)if(o=(i=jz(r.Pb(),42)).cd(),VD(e)===VD(o)||null!=e&&Pht(e,o))return n&&(i=new xE(i.cd(),i.dd()),r.Qb()),i;return null}function $Ct(t){var e,n,i;zN(),t.B.Hc((JFt(),zDe))&&(i=t.f.i,e=new gZ(t.a.c),(n=new hk).b=e.c-i.c,n.d=e.d-i.d,n.c=i.c+i.b-(e.c+e.b),n.a=i.d+i.a-(e.d+e.a),t.e.Ff(n))}function zCt(t,e,n,r){var o,a,s;for(s=i.Math.min(n,W$t(jz(t.b,65),e,n,r)),a=new Gf(t.a);a.a<a.c.c.length;)(o=jz(Q1(a),221))!=e&&(s=i.Math.min(s,zCt(o,e,s,r)));return s}function VCt(t){var e,n,i;for(i=P7(Sse,cYt,193,t.b.c.length,0,2),n=new C2(t.b,0);n.b<n.d.gc();)xO(n.b<n.d.gc()),e=jz(n.d.Xb(n.c=n.b++),29),i[n.b-1]=Q0(e.a);return i}function HCt(t,e,n,i,r){var o,a,s,c;for(a=Qy(Zy($j(twt(n)),i),oyt(t,n,r)),c=OEt(t,n).Kc();c.Ob();)e[(s=jz(c.Pb(),11)).p]&&(o=e[s.p].i,Gz(a.d,new Pq(o,vdt(a,o))));Egt(a)}function qCt(t,e){this.f=new Pb,this.b=new Pb,this.j=new Pb,this.a=t,this.c=e,this.c>0&&Fvt(this,this.c-1,(vGt(),aDe)),this.c<this.a.length-1&&Fvt(this,this.c+1,(vGt(),EDe))}function UCt(t){t.length>0&&t[0].length>0&&(this.c=zv(_N(wxt(mK(t[0][0]),(lKt(),rde))))),this.a=P7(xke,cYt,2018,t.length,0,2),this.b=P7(Bke,cYt,2019,t.length,0,2),this.d=new Cut}function GCt(t){return 0!=t.c.length&&((u1(0,t.c.length),jz(t.c[0],17)).c.i.k==(aEt(),xse)||a4(IY(new OH(null,new d1(t,16)),new jo),new $o))}function WCt(t,e,n){return DAt(n,"Tree layout",1),c2(t.b),EG(t.b,(qvt(),Ove),Ove),EG(t.b,Nve,Nve),EG(t.b,Rve,Rve),EG(t.b,Fve,Fve),t.a=BHt(t.b,e),hOt(t,e,wot(n,1)),zEt(n),e}function KCt(t,e){var n,r,o,a,s,c;for(s=fNt(e),o=e.f,c=e.g,a=i.Math.sqrt(o*o+c*c),r=0,n=new Gf(s);n.a<n.c.c.length;)r+=KCt(t,jz(Q1(n),33));return i.Math.max(r,a)}function YCt(){YCt=I,YSe=new qS(lQt,0),KSe=new qS("FREE",1),WSe=new qS("FIXED_SIDE",2),qSe=new qS("FIXED_ORDER",3),GSe=new qS("FIXED_RATIO",4),USe=new qS("FIXED_POS",5)}function XCt(t,e){var n,i,r;if(n=e.Hh(t.a))for(r=AN(rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),C9t)),i=1;i<(STt(),ZMe).length;++i)if(bF(ZMe[i],r))return i;return 0}function ZCt(t){var e,n,i,r;if(null==t)return qKt;for(r=new Bat(jKt,"[","]"),n=0,i=(e=t).length;n<i;++n)h6(r,""+e[n]);return r.a?0==r.e.length?r.a.a:r.a.a+""+r.e:r.c}function QCt(t){var e,n,i,r;if(null==t)return qKt;for(r=new Bat(jKt,"[","]"),n=0,i=(e=t).length;n<i;++n)h6(r,""+e[n]);return r.a?0==r.e.length?r.a.a:r.a.a+""+r.e:r.c}function JCt(t){var e,n,i;for(i=new Bat(jKt,"{","}"),n=t.vc().Kc();n.Ob();)h6(i,G3(t,(e=jz(n.Pb(),42)).cd())+"="+G3(t,e.dd()));return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function tAt(t){for(var e,n,i,r;!Gv(t.o);)n=jz(fG(t.o),46),i=jz(n.a,121),r=Pft(e=jz(n.b,213),i),e.e==i?(OL(r.g,e),i.e=r.e+e.a):(OL(r.b,e),i.e=r.e-e.a),Gz(t.e.a,i)}function eAt(t,e){var n,i,r;for(n=null,r=jz(e.Kb(t),20).Kc();r.Ob();)if(i=jz(r.Pb(),17),n){if((i.c.i==t?i.d.i:i.c.i)!=n)return!1}else n=i.c.i==t?i.d.i:i.c.i;return!0}function nAt(t,e){var n,i,r;for(i=new Gf(YPt(t,!1,e));i.a<i.c.c.length;)0==(n=jz(Q1(i),129)).d?(GJ(n,null),WJ(n,null)):(r=n.a,GJ(n,n.b),WJ(n,r))}function iAt(t){var e,n;return Zot(e=new j2,Eve),(n=jz(wxt(t,(lKt(),Zhe)),21)).Hc((dNt(),mhe))&&Zot(e,Ive),n.Hc(she)&&Zot(e,Tve),n.Hc(ghe)&&Zot(e,Dve),n.Hc(lhe)&&Zot(e,Sve),e}function rAt(t){var e,n,i,r;for(xHt(t),n=new aU(ZP(lft(t).a.Kc(),new u));gBt(n);)r=(i=(e=jz(q4(n),17)).c.i==t)?e.d:e.c,i?CJ(e,null):AJ(e,null),lct(e,(lKt(),bde),r),aBt(t,r.i)}function oAt(t,e,n,i){var r,o;switch(r=n[(o=e.i).g][t.d[o.g]],o.g){case 1:r-=i+e.j.b,e.g.b=r;break;case 3:r+=i,e.g.b=r;break;case 4:r-=i+e.j.a,e.g.a=r;break;case 2:r+=i,e.g.a=r}}function aAt(t){var e,n;for(n=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));n.e!=n.i.gc();)if(!gBt(new aU(ZP(fPt(e=jz(vbt(n),33)).a.Kc(),new u))))return e;return null}function sAt(){var t;return UIe?jz(BMt((Gx(),VBe),k6t),2016):(t=jz(iP(AQ((Gx(),VBe),k6t),555)?AQ(VBe,k6t):new cBt,555),UIe=!0,Fqt(t),yKt(t),Cvt(t),bJ(VBe,k6t,t),t)}function cAt(t,e,n){var i,r;if(0==t.j)return n;if(r=jz(Fnt(t,e,n),72),!(i=n.ak()).Ij()||!t.a.rl(i))throw $b(new fv("Invalid entry feature '"+i.Hj().zb+"."+i.ne()+"'"));return r}function lAt(t,e){var n,i,r,o,a,s,c;for(s=0,c=(a=t.a).length;s<c;++s)for(r=0,o=(i=a[s]).length;r<o;++r)if(n=i[r],VD(e)===VD(n)||null!=e&&Pht(e,n))return!0;return!1}function uAt(t){var e,n,i;return Kut(t,0)>=0?(n=D_t(t,IXt),i=hpt(t,IXt)):(n=D_t(e=vU(t,1),5e8),i=ift(wU(i=hpt(e,5e8),1),t0(t,1))),e0(wU(i,32),t0(n,UXt))}function hAt(t,e,n){var i;switch(xO(0!=e.b),i=jz(Iet(e,e.a.a),8),n.g){case 0:i.b=0;break;case 2:i.b=t.f;break;case 3:i.a=0;break;default:i.a=t.g}return QG(cbt(e,0),i),e}function dAt(t,e,n,i){var r,o,a,s,c;switch(c=t.b,s=qmt(a=(o=e.d).j,c.d[a.g],n),r=qR(jM(o.n),o.a),o.j.g){case 1:case 3:s.a+=r.a;break;case 2:case 4:s.b+=r.b}n4(i,s,i.c.b,i.c)}function fAt(t,e,n){var i,r,o,a;for(a=y9(t.e,e,0),(o=new nk).b=n,i=new C2(t.e,a);i.b<i.d.gc();)xO(i.b<i.d.gc()),(r=jz(i.d.Xb(i.c=i.b++),10)).p=n,Gz(o.e,r),lK(i);return o}function gAt(t,e,n,i){var r,o,a,s,c;for(r=null,o=0,s=new Gf(e);s.a<s.c.c.length;)c=(a=jz(Q1(s),33)).i+a.g,t<a.j+a.f+i&&(r?n.i-c<n.i-o&&(r=a):r=a,o=r.i+r.g);return r?o+i:0}function pAt(t,e,n,i){var r,o,a,s,c;for(o=null,r=0,s=new Gf(e);s.a<s.c.c.length;)c=(a=jz(Q1(s),33)).j+a.f,t<a.i+a.g+i&&(o?n.j-c<n.j-r&&(o=a):o=a,r=o.j+o.f);return o?r+i:0}function mAt(t){var e,n,i;for(e=!1,i=t.b.c.length,n=0;n<i;n++)Xct(jz(PH(t.b,n),434))?!e&&n+1<i&&Xct(jz(PH(t.b,n+1),434))&&(e=!0,jz(PH(t.b,n),434).a=!0):e=!1}function bAt(t,e,n,i,r){var o,a;for(o=0,a=0;a<r;a++)o=ift(o,nft(t0(e[a],UXt),t0(i[a],UXt))),t[a]=fq(o),o=kU(o,32);for(;a<n;a++)o=ift(o,t0(e[a],UXt)),t[a]=fq(o),o=kU(o,32)}function wAt(t,e){var n,i;for(BIt(),DNt(),i=Zee,n=t;e>1;e>>=1)1&e&&(i=Mtt(i,n)),n=1==n.d?Mtt(n,n):new Tmt(Sjt(n.a,n.d,P7(SLe,lXt,25,n.d<<1,15,1)));return i=Mtt(i,n)}function kAt(){var t,e,n,i;for(kAt=I,Sne=P7(MLe,VXt,25,25,15,1),Dne=P7(MLe,VXt,25,33,15,1),i=152587890625e-16,e=32;e>=0;e--)Dne[e]=i,i*=.5;for(n=1,t=24;t>=0;t--)Sne[t]=n,n*=.5}function vAt(t){var e,n;if(zv(_N(QBt(t,(zWt(),dme)))))for(n=new aU(ZP(gPt(t).a.Kc(),new u));gBt(n);)if(YDt(e=jz(q4(n),79))&&zv(_N(QBt(e,fme))))return!0;return!1}function yAt(t,e){var n,i,r;_G(t.f,e)&&(e.b=t,i=e.c,-1!=y9(t.j,i,0)||Gz(t.j,i),r=e.d,-1!=y9(t.j,r,0)||Gz(t.j,r),0!=(n=e.a.b).c.length&&(!t.i&&(t.i=new ebt(t)),bat(t.i,n)))}function _At(t){var e,n,i,r;return(n=(e=t.c.d).j)==(r=(i=t.d.d).j)?e.p<i.p?0:1:Adt(n)==r?0:_dt(n)==r?1:AL(t.b.b,Adt(n))?0:1}function CAt(){CAt=I,Jbe=new OT(y3t,0),Zbe=new OT("LONGEST_PATH",1),Ybe=new OT("COFFMAN_GRAHAM",2),Xbe=new OT($1t,3),twe=new OT("STRETCH_WIDTH",4),Qbe=new OT("MIN_WIDTH",5)}function AAt(t){var e;this.d=new Pb,this.c=t.c,this.e=t.d,this.b=t.b,this.f=new sq(t.e),this.a=t.a,t.f?this.g=t.f:this.g=new YF(e=jz(W_(iBe),9),jz(AR(e,e.length),9),0)}function xAt(t,e){var n,i,r,o;!(r=L2(i=t,"layoutOptions"))&&(r=L2(i,A6t)),r&&(n=null,(o=r)&&(n=new _A(o,yrt(o,P7(Yee,cYt,2,0,6,1)))),n&&t4(n,new dD(o,e)))}function EAt(t){if(iP(t,239))return jz(t,33);if(iP(t,186))return GQ(jz(t,118));throw $b(t?new Jv("Only support nodes and ports."):new $v(e7t))}function TAt(t,e,n,i){return e>=0&&bF(t.substr(e,3),"GMT")||e>=0&&bF(t.substr(e,3),"UTC")?(n[0]=e+3,kjt(t,n,i)):kjt(t,n,i)}function SAt(t,e){var n,i,r,o,a;for(o=t.g.a,a=t.g.b,i=new Gf(t.d);i.a<i.c.c.length;)(r=(n=jz(Q1(i),70)).n).a=o,t.i==(vGt(),sDe)?r.b=a+t.j.b-n.o.b:r.b=a,qR(r,e),o+=n.o.a+t.e}function DAt(t,e,n){if(t.b)throw $b(new Fv("The task is already done."));return null==t.p&&(t.p=e,t.r=n,t.k&&(t.o=(IA(),rft(uat(Date.now()),KYt))),!0)}function IAt(t){var e;return e=new pv,null!=t.tg()&&DV(e,V6t,t.tg()),null!=t.ne()&&DV(e,t7t,t.ne()),null!=t.sg()&&DV(e,"description",t.sg()),e}function BAt(t,e,n){var i,r,o;return o=t.q,t.q=e,4&t.Db&&!(1&t.Db)&&(r=new QU(t,1,9,o,e),n?n.Ei(r):n=r),e?(i=e.c)!=t.r&&(n=t.nk(i,n)):t.r&&(n=t.nk(null,n)),n}function MAt(t,e,n){var i,r;for(n=Pbt(e,t.e,-1-t.c,n),r=new Cb(new alt(new xf(PK(t.a).a).a));r.a.b;)n=oUt(i=jz(tnt(r.a).cd(),87),vPt(i,t.a),n);return n}function PAt(t,e,n){var i,r;for(n=aQ(e,t.e,-1-t.c,n),r=new Cb(new alt(new xf(PK(t.a).a).a));r.a.b;)n=oUt(i=jz(tnt(r.a).cd(),87),vPt(i,t.a),n);return n}function LAt(t,e,n,i){var r,o,a;if(0==i)oVt(e,0,t,n,t.length-n);else for(a=32-i,t[t.length-1]=0,o=t.length-1;o>n;o--)t[o]|=e[o-n-1]>>>a,t[o-1]=e[o-n-1]<<i;for(r=0;r<n;r++)t[r]=0}function OAt(t){var e,n,r,o,a;for(e=0,n=0,a=t.Kc();a.Ob();)r=jz(a.Pb(),111),e=i.Math.max(e,r.d.b),n=i.Math.max(n,r.d.c);for(o=t.Kc();o.Ob();)(r=jz(o.Pb(),111)).d.b=e,r.d.c=n}function NAt(t){var e,n,r,o,a;for(n=0,e=0,a=t.Kc();a.Ob();)r=jz(a.Pb(),111),n=i.Math.max(n,r.d.d),e=i.Math.max(e,r.d.a);for(o=t.Kc();o.Ob();)(r=jz(o.Pb(),111)).d.d=n,r.d.a=e}function RAt(t,e){var n,i,r,o;for(o=new Mb,r=0,i=e.Kc();i.Ob();){for(n=ndt(jz(i.Pb(),19).a+r);n.a<t.f&&!JH(t,n.a);)n=ndt(n.a+1),++r;if(n.a>=t.f)break;o.c[o.c.length]=n}return o}function FAt(t){var e,n,i,r;for(e=null,r=new Gf(t.wf());r.a<r.c.c.length;)n=new qY((i=jz(Q1(r),181)).qf().a,i.qf().b,i.rf().a,i.rf().b),e?TTt(e,n):e=n;return!e&&(e=new hB),e}function jAt(t,e,n,i){return 1==n?(!t.n&&(t.n=new tG(VIe,t,1,7)),Xgt(t.n,e,i)):jz(eet(jz(kat(t,16),26)||t.zh(),n),66).Nj().Qj(t,umt(t),n-hW(t.zh()),e,i)}function $At(t,e,n){var i,r,o,a,s;for(i=n.gc(),t.qi(t.i+i),(s=t.i-e)>0&&oVt(t.g,e,t.g,e+i,s),a=n.Kc(),t.i+=i,r=0;r<i;++r)o=a.Pb(),vP(t,e,t.oi(e,o)),t.bi(e,o),t.ci(),++e;return 0!=i}function zAt(t,e,n){var i;return e!=t.q?(t.q&&(n=aQ(t.q,t,-10,n)),e&&(n=Pbt(e,t,-10,n)),n=BAt(t,e,n)):4&t.Db&&!(1&t.Db)&&(i=new QU(t,1,9,e,e),n?n.Ei(i):n=i),n}function VAt(t,e,n,i){return Ej(!(n&lYt),"flatMap does not support SUBSIZED characteristic"),Ej(!(4&n),"flatMap does not support SORTED characteristic"),wW(t),wW(e),new z2(t,n,i,e)}function HAt(t,e){AG(e,"Cannot suppress a null exception."),mV(e!=t,"Exception can not suppress itself."),t.i||(null==t.k?t.k=Est(Vy(Zte,1),cYt,78,0,[e]):t.k[t.k.length]=e)}function qAt(t,e,n,i){var r,o,a,s,c,l;for(a=n.length,o=0,r=-1,l=ret(t.substr(e),(ij(),_ne)),s=0;s<a;++s)(c=n[s].length)>o&&sG(l,ret(n[s],_ne))&&(r=s,o=c);return r>=0&&(i[0]=e+o),r}function UAt(t,e){var n;if(0!=(n=YI(t.b.Hf(),e.b.Hf())))return n;switch(t.b.Hf().g){case 1:case 2:return yM(t.b.sf(),e.b.sf());case 3:case 4:return yM(e.b.sf(),t.b.sf())}return 0}function GAt(t){var e,n,i;for(i=t.e.c.length,t.a=kH(SLe,[cYt,lXt],[48,25],15,[i,i],2),n=new Gf(t.c);n.a<n.c.c.length;)e=jz(Q1(n),282),t.a[e.c.b][e.d.b]+=jz(wxt(e,(uRt(),Zoe)),19).a}function WAt(t,e,n){DAt(n,"Grow Tree",1),t.b=e.f,zv(_N(wxt(e,(Got(),Kre))))?(t.c=new ne,KJ(t,null)):t.c=new ne,t.a=!1,jLt(t,e.f),lct(e,Yre,(cL(),!!t.a)),zEt(n)}function KAt(t,e){var n,i,r,o,a;if(null==t)return null;for(a=P7(TLe,WYt,25,2*e,15,1),i=0,r=0;i<e;++i)n=t[i]>>4&15,o=15&t[i],a[r++]=SIe[n],a[r++]=SIe[o];return $pt(a,0,a.length)}function YAt(t,e,n){var i,r,o;return i=e.ak(),o=e.dd(),r=i.$j()?BZ(t,4,i,o,null,mzt(t,i,o,iP(i,99)&&!!(jz(i,18).Bb&$Xt)),!0):BZ(t,i.Kj()?2:1,i,o,i.zj(),-1,!0),n?n.Ei(r):n=r,n}function XAt(t){var e,n;return t>=$Xt?(e=zXt+(t-$Xt>>10&1023)&YYt,n=56320+(t-$Xt&1023)&YYt,String.fromCharCode(e)+""+String.fromCharCode(n)):String.fromCharCode(t&YYt)}function ZAt(t,e){var n,i,r,o;return zN(),(r=jz(jz(c6(t.r,e),21),84)).gc()>=2&&(i=jz(r.Kc().Pb(),111),n=t.u.Hc((hDt(),JSe)),o=t.u.Hc(iDe),!i.a&&!n&&(2==r.gc()||o))}function QAt(t,e,n,i,r){var o,a,s;for(o=eNt(t,e,n,i,r),s=!1;!o;)_Mt(t,r,!0),s=!0,o=eNt(t,e,n,i,r);s&&_Mt(t,r,!1),0!=(a=Ost(r)).c.length&&(t.d&&t.d.lg(a),QAt(t,r,n,i,a))}function JAt(){JAt=I,rSe=new jS(YJt,0),nSe=new jS("DIRECTED",1),oSe=new jS("UNDIRECTED",2),tSe=new jS("ASSOCIATION",3),iSe=new jS("GENERALIZATION",4),eSe=new jS("DEPENDENCY",5)}function txt(t,e){var n;if(!GQ(t))throw $b(new Fv(j4t));switch(n=GQ(t),e.g){case 1:return-(t.j+t.f);case 2:return t.i-n.g;case 3:return t.j-n.f;case 4:return-(t.i+t.g)}return 0}function ext(t,e){var n,i;for(kK(e),i=t.b.c.length,Gz(t.b,e);i>0;){if(n=i,i=(i-1)/2|0,t.a.ue(PH(t.b,i),e)<=0)return i4(t.b,n,e),!0;i4(t.b,n,PH(t.b,i))}return i4(t.b,i,e),!0}function nxt(t,e,n,r){var o,a;if(o=0,n)o=wut(t.a[n.g][e.g],r);else for(a=0;a<Qie;a++)o=i.Math.max(o,wut(t.a[a][e.g],r));return e==(Oet(),Hie)&&t.b&&(o=i.Math.max(o,t.b.a)),o}function ixt(t,e){var n,i,r,o,a;return i=t.i,r=e.i,!(!i||!r)&&i.i==r.i&&i.i!=(vGt(),aDe)&&i.i!=(vGt(),EDe)&&(n=(o=i.g.a)+i.j.a,o<=(a=r.g.a)+r.j.a&&n>=a)}function rxt(t,e,n,i){var r;if(r=!1,UD(i)&&(r=!0,DV(e,n,AN(i))),r||HD(i)&&(r=!0,rxt(t,e,n,i)),r||iP(i,236)&&(r=!0,zX(e,n,jz(i,236))),!r)throw $b(new Bv(z6t))}function oxt(t,e){var n,i,r;if((n=e.Hh(t.a))&&null!=(r=rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),j8t)))for(i=1;i<(STt(),KMe).length;++i)if(bF(KMe[i],r))return i;return 0}function axt(t,e){var n,i,r;if((n=e.Hh(t.a))&&null!=(r=rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),j8t)))for(i=1;i<(STt(),YMe).length;++i)if(bF(YMe[i],r))return i;return 0}function sxt(t,e){var n,i,r,o;if(kK(e),(o=t.a.gc())<e.gc())for(n=t.a.ec().Kc();n.Ob();)i=n.Pb(),e.Hc(i)&&n.Qb();else for(r=e.Kc();r.Ob();)i=r.Pb(),t.a.Bc(i);return o!=t.a.gc()}function cxt(t){var e,n;switch(n=jM(Ict(Est(Vy(xxe,1),cYt,8,0,[t.i.n,t.n,t.a]))),e=t.i.d,t.j.g){case 1:n.b-=e.d;break;case 2:n.a+=e.c;break;case 3:n.b+=e.a;break;case 4:n.a-=e.b}return n}function lxt(t){var e;for(Srt(),e=jz(q4(new aU(ZP(uft(t).a.Kc(),new u))),17).c.i;e.k==(aEt(),xse);)lct(e,(lKt(),ade),(cL(),!0)),e=jz(q4(new aU(ZP(uft(e).a.Kc(),new u))),17).c.i}function uxt(t,e,n,i){var r,o,a;for(a=Mht(e,i).Kc();a.Ob();)r=jz(a.Pb(),11),t.d[r.p]=t.d[r.p]+t.c[n.p];for(o=Mht(n,i).Kc();o.Ob();)r=jz(o.Pb(),11),t.d[r.p]=t.d[r.p]-t.c[e.p]}function hxt(t,e,n){var i,r;for(r=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));r.e!=r.i.gc();)AB(i=jz(vbt(r),33),i.i+e,i.j+n);t4((!t.b&&(t.b=new tG(NIe,t,12,3)),t.b),new JS(e,n))}function dxt(t,e,n,i){var r,o;for(r=null==(o=e).d||t.a.ue(n.d,o.d)>0?1:0;o.a[r]!=n;)o=o.a[r],r=t.a.ue(n.d,o.d)>0?1:0;o.a[r]=i,i.b=n.b,i.a[0]=n.a[0],i.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function fxt(t){return hDt(),!(Tat(SQ(yq(tDe,Est(Vy(TDe,1),BYt,273,0,[nDe])),t))>1||Tat(SQ(yq(JSe,Est(Vy(TDe,1),BYt,273,0,[QSe,iDe])),t))>1)}function gxt(t,e){iP(AQ((Gx(),VBe),t),498)?bJ(VBe,t,new SD(this,e)):bJ(VBe,t,this),nEt(this,e),e==(eC(),ZBe)?(this.wb=jz(this,1939),jz(e,1941)):this.wb=(KW(),QBe)}function pxt(t){var e,n;if(null==t)return null;for(e=null,n=0;n<TIe.length;++n)try{return jx(TIe[n],t)}catch(t){if(!iP(t=hst(t),32))throw $b(t);e=t}throw $b(new B9(e))}function mxt(){mxt=I,pne=Est(Vy(Yee,1),cYt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),mne=Est(Vy(Yee,1),cYt,2,6,["Jan","Feb","Mar","Apr",tXt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function bxt(t){var e,n,i;(e=bF(typeof e,pZt)?null:new ht)&&(ux(),JW(n=(i=900)>=KYt?"error":i>=900?"warn":i>=800?"info":"log",t.a),t.b&&LLt(e,n,t.b,"Exception: ",!0))}function wxt(t,e){var n,i;return!t.q&&(t.q=new Pb),null!=(i=OW(t.q,e))?i:(iP(n=e.wg(),4)&&(null==n?(!t.q&&(t.q=new Pb),m6(t.q,e)):(!t.q&&(t.q=new Pb),WK(t.q,e,n))),n)}function kxt(){kxt=I,Oae=new WE("P1_CYCLE_BREAKING",0),Nae=new WE("P2_LAYERING",1),Rae=new WE("P3_NODE_ORDERING",2),Fae=new WE("P4_NODE_PLACEMENT",3),jae=new WE("P5_EDGE_ROUTING",4)}function vxt(t,e){var n,i,r,o;for(i=(1==e?Gae:Uae).a.ec().Kc();i.Ob();)for(n=jz(i.Pb(),103),o=jz(c6(t.f.c,n),21).Kc();o.Ob();)r=jz(o.Pb(),46),w9(t.b.b,r.b),w9(t.b.a,jz(r.b,81).d)}function yxt(t,e){var n;if(Ltt(),t.c==e.c){if(t.b==e.b||lot(t.b,e.b)){if(n=ZI(t.b)?1:-1,t.a&&!e.a)return n;if(!t.a&&e.a)return-n}return yM(t.b.g,e.b.g)}return Edt(t.c,e.c)}function _xt(t,e){var n;DAt(e,"Hierarchical port position processing",1),(n=t.b).c.length>0&&njt((u1(0,n.c.length),jz(n.c[0],29)),t),n.c.length>1&&njt(jz(PH(n,n.c.length-1),29),t),zEt(e)}function Cxt(t,e){var n,i;if(Pxt(t,e))return!0;for(i=new Gf(e);i.a<i.c.c.length;){if(FNt(t,n=jz(Q1(i),33),aCt(n)))return!0;if(But(t,n)-t.g<=t.a)return!0}return!1}function Axt(){Axt=I,dRt(),kAe=OAe,mAe=BAe,pAe=DAe,fAe=xAe,gAe=TAe,dAe=new GB(8),hAe=new UB((cKt(),UEe),dAe),bAe=new UB(BTe,8),wAe=PAe,cAe=vAe,lAe=_Ae,uAe=new UB(uEe,(cL(),!1))}function xxt(){xxt=I,Hxe=new GB(15),Vxe=new UB((cKt(),UEe),Hxe),Uxe=new UB(BTe,15),qxe=new UB(pTe,ndt(0)),Rxe=vEe,jxe=NEe,zxe=zEe,Lxe=new UB(iEe,u4t),Fxe=EEe,$xe=jEe,Oxe=oEe,Nxe=cEe}function Ext(t){if(1!=(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b).i||1!=(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c).i)throw $b(new Rv(i7t));return EAt(jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82))}function Txt(t){if(1!=(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b).i||1!=(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c).i)throw $b(new Rv(i7t));return dst(jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82))}function Sxt(t){if(1!=(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b).i||1!=(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c).i)throw $b(new Rv(i7t));return dst(jz(Wet((!t.c&&(t.c=new cF(OIe,t,5,8)),t.c),0),82))}function Dxt(t){if(1!=(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b).i||1!=(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c).i)throw $b(new Rv(i7t));return EAt(jz(Wet((!t.c&&(t.c=new cF(OIe,t,5,8)),t.c),0),82))}function Ixt(t,e,n){var i,r,o;if(++t.j,e>=(r=t.Vi())||e<0)throw $b(new Dv(a7t+e+s7t+r));if(n>=r||n<0)throw $b(new Dv(c7t+n+s7t+r));return e!=n?(o=t.Ti(n),t.Hi(e,o),i=o):i=t.Oi(n),i}function Bxt(t){var e,n,i;if(i=t,t)for(e=0,n=t.Ug();n;n=n.Ug()){if(++e>HXt)return Bxt(n);if(i=n,n==t)throw $b(new Fv("There is a cycle in the containment hierarchy of "+t))}return i}function Mxt(t){var e,n,i;for(i=new Bat(jKt,"[","]"),n=t.Kc();n.Ob();)h6(i,VD(e=n.Pb())===VD(t)?"(this Collection)":null==e?qKt:$ft(e));return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function Pxt(t,e){var n,i;if(i=!1,e.gc()<2)return!1;for(n=0;n<e.gc();n++)n<e.gc()-1?i|=FNt(t,jz(e.Xb(n),33),jz(e.Xb(n+1),33)):i|=FNt(t,jz(e.Xb(n),33),jz(e.Xb(0),33));return i}function Lxt(t,e){var n;e!=t.a?(n=null,t.a&&(n=jz(t.a,49).ih(t,4,zIe,n)),e&&(n=jz(e,49).gh(t,4,zIe,n)),(n=Zut(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,1,e,e))}function Oxt(t,e){var n;e!=t.e?(t.e&&R6(PK(t.e),t),e&&(!e.b&&(e.b=new _b(new Pk)),YR(e.b,t)),(n=Yyt(t,e,null))&&n.Fi()):4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,4,e,e))}function Nxt(t){var e,n,i;for(n=t.length,i=0;i<n&&(h1(i,t.length),t.charCodeAt(i)<=32);)++i;for(e=n;e>i&&(h1(e-1,t.length),t.charCodeAt(e-1)<=32);)--e;return i>0||e<n?t.substr(i,e-i):t}function Rxt(t,e){var n;n=e.o,fB(t.f)?(t.j.a=i.Math.max(t.j.a,n.a),t.j.b+=n.b,t.d.c.length>1&&(t.j.b+=t.e)):(t.j.a+=n.a,t.j.b=i.Math.max(t.j.b,n.b),t.d.c.length>1&&(t.j.a+=t.e))}function Fxt(){Fxt=I,Ile=Est(Vy(FDe,1),XJt,61,0,[(vGt(),sDe),aDe,ADe]),Dle=Est(Vy(FDe,1),XJt,61,0,[aDe,ADe,EDe]),Ble=Est(Vy(FDe,1),XJt,61,0,[ADe,EDe,sDe]),Mle=Est(Vy(FDe,1),XJt,61,0,[EDe,sDe,aDe])}function jxt(t,e,n,i){var r,o,a,s,c;if(o=t.c.d,a=t.d.d,o.j!=a.j)for(c=t.b,r=o.j,s=null;r!=a.j;)s=0==e?Adt(r):_dt(r),LV(i,qR(qmt(r,c.d[r.g],n),qmt(s,c.d[s.g],n))),r=s}function $xt(t,e,n,i){var r,o,a,s,c;return s=jz((a=Vvt(t.a,e,n)).a,19).a,o=jz(a.b,19).a,i&&(c=jz(wxt(e,(lKt(),yde)),10),r=jz(wxt(n,yde),10),c&&r&&(J3(t.b,c,r),s+=t.b.i,o+=t.b.e)),s>o}function zxt(t){var e,n,i,r,o,a,s,c;for(this.a=iwt(t),this.b=new Mb,i=0,r=(n=t).length;i<r;++i)for(e=n[i],o=new Mb,Gz(this.b,o),s=0,c=(a=e).length;s<c;++s)Gz(o,new JF(a[s].j))}function Vxt(t,e,n){var i,r,o;return o=0,i=n[e],e<n.length-1&&(r=n[e+1],t.b[e]?(o=dKt(t.d,i,r),o+=ZW(t.a,i,(vGt(),aDe)),o+=ZW(t.a,r,EDe)):o=T8(t.a,i,r)),t.c[e]&&(o+=B6(t.a,i)),o}function Hxt(t,e,n,i,r){var o,a,s,c;for(c=null,s=new Gf(i);s.a<s.c.c.length;)if((a=jz(Q1(s),441))!=n&&-1!=y9(a.e,r,0)){c=a;break}AJ(o=G4(r),n.b),CJ(o,c.b),ZDt(t.a,r,new Bj(o,e,n.f))}function qxt(t){for(;0!=t.g.c&&0!=t.d.c;)FN(t.g).c>FN(t.d).c?(t.i+=t.g.c,ppt(t.d)):FN(t.d).c>FN(t.g).c?(t.e+=t.d.c,ppt(t.g)):(t.i+=zH(t.g),t.e+=zH(t.d),ppt(t.g),ppt(t.d))}function Uxt(t,e,n){var i,r,o,a;for(o=e.q,a=e.r,new HJ((S6(),_ve),e,o,1),new HJ(_ve,o,a,1),r=new Gf(n);r.a<r.c.c.length;)(i=jz(Q1(r),112))!=o&&i!=e&&i!=a&&(pVt(t.a,i,e),pVt(t.a,i,a))}function Gxt(t,e,n,r){t.a.d=i.Math.min(e,n),t.a.a=i.Math.max(e,r)-t.a.d,e<n?(t.b=.5*(e+n),t.g=R3t*t.b+.9*e,t.f=R3t*t.b+.9*n):(t.b=.5*(e+r),t.g=R3t*t.b+.9*r,t.f=R3t*t.b+.9*e)}function Wxt(){function t(){return(new Date).getTime()}xKt={},!Array.isArray&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!Date.now&&(Date.now=t)}function Kxt(t,e){var n,i;i=jz(wxt(e,(zWt(),tbe)),98),lct(e,(lKt(),wde),i),(n=e.e)&&(XA(new OH(null,new d1(n.a,16)),new Og(t)),XA(dtt(new OH(null,new d1(n.b,16)),new we),new Ng(t)))}function Yxt(t){var e,n,r,o;if(gB(jz(wxt(t.b,(zWt(),qpe)),103)))return 0;for(e=0,r=new Gf(t.a);r.a<r.c.c.length;)(n=jz(Q1(r),10)).k==(aEt(),Ese)&&(o=n.o.a,e=i.Math.max(e,o));return e}function Xxt(t){switch(jz(wxt(t,(zWt(),kme)),163).g){case 1:lct(t,kme,(Cft(),jde));break;case 2:lct(t,kme,(Cft(),$de));break;case 3:lct(t,kme,(Cft(),Rde));break;case 4:lct(t,kme,(Cft(),Fde))}}function Zxt(){Zxt=I,ihe=new IT(YJt,0),the=new IT(rQt,1),rhe=new IT(oQt,2),nhe=new IT("LEFT_RIGHT_CONSTRAINT_LOCKING",3),ehe=new IT("LEFT_RIGHT_CONNECTION_LOCKING",4),Jue=new IT(V1t,5)}function Qxt(t,e,n){var r,o,a,s,c,l,u;c=n.a/2,a=n.b/2,l=1,u=1,(r=i.Math.abs(e.a-t.a))>c&&(l=c/r),(o=i.Math.abs(e.b-t.b))>a&&(u=a/o),s=i.Math.min(l,u),t.a+=s*(e.a-t.a),t.b+=s*(e.b-t.b)}function Jxt(t,e,n,i,r){var o,a;for(a=!1,o=jz(PH(n.b,0),33);lzt(t,e,o,i,r)&&(a=!0,rCt(n,o),0!=n.b.c.length);)o=jz(PH(n.b,0),33);return 0==n.b.c.length&&Cyt(n.j,n),a&&Hkt(e.q),a}function tEt(t,e){var n,i,r,o;if(yNt(),e.b<2)return!1;for(i=n=jz(h3(o=cbt(e,0)),8);o.b!=o.d.c;){if(rLt(t,i,r=jz(h3(o),8)))return!0;i=r}return!!rLt(t,i,n)}function eEt(t,e,n,i){return 0==n?(!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),jF(t.o,e,i)):jz(eet(jz(kat(t,16),26)||t.zh(),n),66).Nj().Rj(t,umt(t),n-hW(t.zh()),e,i)}function nEt(t,e){var n;e!=t.sb?(n=null,t.sb&&(n=jz(t.sb,49).ih(t,1,jIe,n)),e&&(n=jz(e,49).gh(t,1,jIe,n)),(n=yht(t,e,n))&&n.Fi()):4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,4,e,e))}function iEt(t,e){var n,i;if(!e)throw $b(new ty("All edge sections need an end point."));n=Nnt(e,"x"),Cnt(new Nm(t).a,(kK(n),n)),i=Nnt(e,"y"),Dnt(new Rm(t).a,(kK(i),i))}function rEt(t,e){var n,i;if(!e)throw $b(new ty("All edge sections need a start point."));n=Nnt(e,"x"),Snt(new Pm(t).a,(kK(n),n)),i=Nnt(e,"y"),Int(new Lm(t).a,(kK(i),i))}function oEt(t,e){var n,i,r,o,a;for(i=0,o=mlt(t).length;i<o;++i)bxt(e);for(a=!Kne&&t.e?Kne?null:t.d:null;a;){for(n=0,r=mlt(a).length;n<r;++n)bxt(e);a=!Kne&&a.e?Kne?null:a.d:null}}function aEt(){aEt=I,Ese=new XE("NORMAL",0),xse=new XE("LONG_EDGE",1),Cse=new XE("EXTERNAL_PORT",2),Tse=new XE("NORTH_SOUTH_PORT",3),Ase=new XE("LABEL",4),_se=new XE("BREAKING_POINT",5)}function sEt(t){var e,n,i,r;if(e=!1,BO(t,(lKt(),Hhe)))for(n=jz(wxt(t,Hhe),83),r=new Gf(t.j);r.a<r.c.c.length;)ZMt(i=jz(Q1(r),11))&&(e||(nDt(mK(t)),e=!0),ubt(jz(n.xc(i),306)))}function cEt(t,e,n){var i;DAt(n,"Self-Loop routing",1),i=Kdt(e),eI(wxt(e,(E6(),_xe))),XA(IY(DY(DY(dtt(new OH(null,new d1(e.b,16)),new Ui),new Gi),new Wi),new Ki),new tT(t,i)),zEt(n)}function lEt(t){var e,n,i;return i=IAt(t),null!=t.e&&DV(i,J6t,t.e),!!t.k&&DV(i,"type",fO(t.k)),!GC(t.j)&&(n=new xd,net(i,P6t,n),e=new ib(n),t4(t.j,e)),i}function uEt(t){var e,n,i,r;for(r=PW((hit(t.gc(),"size"),new Ty),123),i=!0,n=uU(t).Kc();n.Ob();)e=jz(n.Pb(),42),i||(r.a+=jKt),i=!1,oI(PW(oI(r,e.cd()),61),e.dd());return(r.a+="}",r).a}function hEt(t,e){var n,i,r;return(e&=63)<22?(n=t.l<<e,i=t.m<<e|t.l>>22-e,r=t.h<<e|t.m>>22-e):e<44?(n=0,i=t.l<<e-22,r=t.m<<e-22|t.l>>44-e):(n=0,i=0,r=t.l<<e-44),CM(n&xXt,i&xXt,r&EXt)}function dEt(t){if(null==kee&&(kee=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!kee.test(t))throw $b(new Cy(OXt+t+'"'));return parseFloat(t)}function fEt(t){var e,n,i,r;for(e=new Mb,mG(n=P7(DLe,QZt,25,t.a.c.length,16,1),n.length),r=new Gf(t.a);r.a<r.c.c.length;)n[(i=jz(Q1(r),121)).d]||(e.c[e.c.length]=i,Hmt(t,i,n));return e}function gEt(t,e){var n,i,r,o;for(o=e.b.j,t.a=P7(SLe,lXt,25,o.c.length,15,1),r=0,i=0;i<o.c.length;i++)u1(i,o.c.length),0==(n=jz(o.c[i],11)).e.c.length&&0==n.g.c.length?r+=1:r+=3,t.a[i]=r}function pEt(){pEt=I,Lue=new TT("ALWAYS_UP",0),Pue=new TT("ALWAYS_DOWN",1),Nue=new TT("DIRECTION_UP",2),Oue=new TT("DIRECTION_DOWN",3),Fue=new TT("SMART_UP",4),Rue=new TT("SMART_DOWN",5)}function mEt(t,e){if(t<0||e<0)throw $b(new Rv("k and n must be positive"));if(e>t)throw $b(new Rv("k must be smaller than n"));return 0==e||e==t?1:0==t?0:A_t(t)/(A_t(e)*A_t(t-e))}function bEt(t,e){var n,i,r,o;for(n=new SB(t);null!=n.g||n.c?null==n.g||0!=n.i&&jz(n.g[n.i-1],47).Ob():JQ(n);)if(iP(o=jz(oPt(n),56),160))for(i=jz(o,160),r=0;r<e.length;r++)e[r].og(i)}function wEt(t){var e;return 64&t.Db?Xdt(t):((e=new lL(Xdt(t))).a+=" (height: ",mC(e,t.f),e.a+=", width: ",mC(e,t.g),e.a+=", x: ",mC(e,t.i),e.a+=", y: ",mC(e,t.j),e.a+=")",e.a)}function kEt(t){var e,n,i,r,o,a;for(e=new m5,r=0,o=(i=t).length;r<o;++r)if(null!=Zmt(e,a=wW((n=i[r]).cd()),wW(n.dd())))throw $b(new Rv("duplicate key: "+a));this.b=(AX(),new Uf(e))}function vEt(t){var e,n,i,r,o;if(null==t)return qKt;for(o=new Bat(jKt,"[","]"),i=0,r=(n=t).length;i<r;++i)e=n[i],h6(o,String.fromCharCode(e));return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function yEt(){yEt=I,Ntt(),Toe=new II(sJt,Soe=Ooe),ndt(1),Eoe=new II(cJt,ndt(300)),ndt(0),Boe=new II(lJt,ndt(0)),Moe=new II(uJt,hJt),Doe=new II(dJt,5),Poe=Ooe,Ioe=Loe}function _Et(t,e){var n,i,r,o;for(i=(1==e?Gae:Uae).a.ec().Kc();i.Ob();)for(n=jz(i.Pb(),103),o=jz(c6(t.f.c,n),21).Kc();o.Ob();)r=jz(o.Pb(),46),Gz(t.b.b,jz(r.b,81)),Gz(t.b.a,jz(r.b,81).d)}function CEt(t,e){var n;if(null!=e&&!t.c.Yj().wj(e))throw n=iP(e,56)?jz(e,56).Tg().zb:Q_(tlt(e)),$b(new Nv(i6t+t.c.ne()+"'s type '"+t.c.Yj().ne()+"' does not permit a value of type '"+n+"'"))}function AEt(t,e,n){var i,r;for(r=new C2(t.b,0);r.b<r.d.gc();)xO(r.b<r.d.gc()),VD(wxt(i=jz(r.d.Xb(r.c=r.b++),70),(lKt(),mde)))===VD(e)&&(DTt(i.n,mK(t.c.i),n),lK(r),Gz(e.b,i))}function xEt(t,e){if(e.a)switch(jz(wxt(e.b,(lKt(),wde)),98).g){case 0:case 1:hCt(e);case 2:XA(new OH(null,new d1(e.d,16)),new Pi),sBt(t.a,e)}else XA(new OH(null,new d1(e.d,16)),new Pi)}function EEt(t){var e,n;return n=i.Math.sqrt((null==t.k&&(t.k=Wrt(t,new Ao)),Vv(t.k)/(t.b*(null==t.g&&(t.g=Grt(t,new Co)),Vv(t.g))))),e=fq(uat(i.Math.round(n))),e=i.Math.min(e,t.f)}function TEt(){pot(),BR.call(this),this.j=(vGt(),xDe),this.a=new V_,new lk,this.f=(hit(2,IYt),new X6(2)),this.e=(hit(4,IYt),new X6(4)),this.g=(hit(4,IYt),new X6(4)),this.b=new cT(this.e,this.g)}function SEt(t,e){var n;return!zv(_N(wxt(e,(lKt(),Ede))))&&(n=e.c.i,(t!=(Cft(),Rde)||n.k!=(aEt(),Ase))&&jz(wxt(n,(zWt(),kme)),163)!=Fde)}function DEt(t,e){var n;return!zv(_N(wxt(e,(lKt(),Ede))))&&(n=e.d.i,(t!=(Cft(),jde)||n.k!=(aEt(),Ase))&&jz(wxt(n,(zWt(),kme)),163)!=$de)}function IEt(t,e){var n,i,r,o,a,s,c;for(a=t.d,c=t.o,s=new qY(-a.b,-a.d,a.b+c.a+a.c,a.d+c.b+a.a),r=0,o=(i=e).length;r<o;++r)(n=i[r])&&TTt(s,n.i);a.b=-s.c,a.d=-s.d,a.c=s.b-a.b-c.a,a.a=s.a-a.d-c.b}function BEt(){BEt=I,eAe=new CS("CENTER_DISTANCE",0),nAe=new CS("CIRCLE_UNDERLAP",1),oAe=new CS("RECTANGLE_UNDERLAP",2),iAe=new CS("INVERTED_OVERLAP",3),rAe=new CS("MINIMUM_ROOT_DISTANCE",4)}function MEt(t){var e,n,i,r;if(RNt(),null==t)return null;for(i=t.length,e=P7(TLe,WYt,25,2*i,15,1),n=0;n<i;n++)(r=t[n])<0&&(r+=256),e[2*n]=KPe[r>>4],e[2*n+1]=KPe[15&r];return $pt(e,0,e.length)}function PEt(t){var e;switch(QK(),t.c.length){case 0:return $te;case 1:return TV((e=jz(ZSt(new Gf(t)),42)).cd(),e.dd());default:return new cv(jz(Ymt(t,P7(zte,vYt,42,t.c.length,0,1)),165))}}function LEt(t){var e,n,i,r,o;for(e=new Bb,n=new Bb,f3(e,t),f3(n,t);n.b!=n.c;)for(o=new Gf(jz(fG(n),37).a);o.a<o.c.c.length;)(r=jz(Q1(o),10)).e&&(f3(e,i=r.e),f3(n,i));return e}function OEt(t,e){switch(e.g){case 1:return Nz(t.j,(pot(),Pse));case 2:return Nz(t.j,(pot(),Bse));case 3:return Nz(t.j,(pot(),Ose));case 4:return Nz(t.j,(pot(),Nse));default:return AX(),AX(),cne}}function NEt(t,e){var n,i,r;n=sV(e,t.e),i=jz(OW(t.g.f,n),19).a,r=t.a.c.length-1,0!=t.a.c.length&&jz(PH(t.a,r),287).c==i?(++jz(PH(t.a,r),287).a,++jz(PH(t.a,r),287).b):Gz(t.a,new VO(i))}function REt(t,e,n){var i,r;return 0!=(i=xRt(t,e,n))?i:BO(e,(lKt(),dde))&&BO(n,dde)?((r=yM(jz(wxt(e,dde),19).a,jz(wxt(n,dde),19).a))<0?aFt(t,e,n):r>0&&aFt(t,n,e),r):SIt(t,e,n)}function FEt(t,e,n){var i,r,o,a;if(0!=e.b){for(i=new YA,a=cbt(e,0);a.b!=a.d.c;)jrt(i,Lst(o=jz(h3(a),86))),(r=o.e).a=jz(wxt(o,(VHt(),gye)),19).a,r.b=jz(wxt(o,pye),19).a;FEt(t,i,wot(n,i.b/t.a|0))}}function jEt(t,e){var n,i,r,o,a;if(t.e<=e)return t.g;if(H1(t,t.g,e))return t.g;for(o=t.r,i=t.g,a=t.r,r=(o-i)/2+i;i+1<o;)(n=rVt(t,r,!1)).b<=r&&n.a<=e?(a=r,o=r):i=r,r=(o-i)/2+i;return a}function $Et(t,e,n){DAt(n,"Recursive Graph Layout",lNt(t,e,!0)),bEt(e,Est(Vy(QAe,1),zKt,527,0,[new Dh])),x7(e,(cKt(),bTe))||bEt(e,Est(Vy(QAe,1),zKt,527,0,[new bs])),hWt(t,e,null,n),zEt(n)}function zEt(t){var e;if(null==t.p)throw $b(new Fv("The task has not begun yet."));t.b||(t.k&&(IA(),e=rft(uat(Date.now()),KYt),t.q=1e-9*v2(nft(e,t.o))),t.c<t.r&&Vit(t,t.r-t.c),t.b=!0)}function VEt(t){var e,n,i;for(LV(i=new kk,new PS(t.j,t.k)),n=new DP((!t.a&&(t.a=new IP(MIe,t,5)),t.a));n.e!=n.i.gc();)LV(i,new PS((e=jz(vbt(n),469)).a,e.b));return LV(i,new PS(t.b,t.c)),i}function HEt(t,e,n,i,r){var o,a,s,c;if(r)for(c=((o=new cU(r.a.length)).b-o.a)*o.c<0?(tE(),_Le):new UP(o);c.Ob();)s=P2(r,jz(c.Pb(),19).a),Ojt((a=new cX(t,e,n,i)).a,a.b,a.c,a.d,s)}function qEt(t,e){var n;if(VD(t)===VD(e))return!0;if(iP(e,21)){n=jz(e,21);try{return t.gc()==n.gc()&&t.Ic(n)}catch(t){if(iP(t=hst(t),173)||iP(t,205))return!1;throw $b(t)}}return!1}function UEt(t,e){var n;Gz(t.d,e),n=e.rf(),t.c?(t.e.a=i.Math.max(t.e.a,n.a),t.e.b+=n.b,t.d.c.length>1&&(t.e.b+=t.a)):(t.e.a+=n.a,t.e.b=i.Math.max(t.e.b,n.b),t.d.c.length>1&&(t.e.a+=t.a))}function GEt(t){var e,n,i,r;switch(e=(r=t.i).b,i=r.j,n=r.g,r.a.g){case 0:n.a=(t.g.b.o.a-i.a)/2;break;case 1:n.a=e.d.n.a+e.d.a.a;break;case 2:n.a=e.d.n.a+e.d.a.a-i.a;break;case 3:n.b=e.d.n.b+e.d.a.b}}function WEt(t,e,n,i,r){if(i<e||r<n)throw $b(new Rv("The highx must be bigger then lowx and the highy must be bigger then lowy"));return t.a<e?t.a=e:t.a>i&&(t.a=i),t.b<n?t.b=n:t.b>r&&(t.b=r),t}function KEt(t){if(iP(t,149))return ALt(jz(t,149));if(iP(t,229))return Qft(jz(t,229));if(iP(t,23))return lEt(jz(t,23));throw $b(new Rv(q6t+Mxt(new Xv(Est(Vy(Ite,1),zKt,1,5,[t])))))}function YEt(t,e,n,i,r){var o,a,s;for(o=!0,a=0;a<i;a++)o&=0==n[a];if(0==r)oVt(n,i,t,0,e),a=e;else{for(s=32-r,o&=!(n[a]<<s),a=0;a<e-1;a++)t[a]=n[a+i]>>>r|n[a+i+1]<<s;t[a]=n[a+i]>>>r,++a}return o}function XEt(t,e,n,i){var r,o;if(e.k==(aEt(),xse))for(o=new aU(ZP(uft(e).a.Kc(),new u));gBt(o);)if((r=jz(q4(o),17)).c.i.k==xse&&t.c.a[r.c.i.c.p]==i&&t.c.a[e.c.p]==n)return!0;return!1}function ZEt(t,e){var n,i,r,o;return e&=63,n=t.h&EXt,e<22?(o=n>>>e,r=t.m>>e|n<<22-e,i=t.l>>e|t.m<<22-e):e<44?(o=0,r=n>>>e-22,i=t.m>>e-22|t.h<<44-e):(o=0,r=0,i=n>>>e-44),CM(i&xXt,r&xXt,o&EXt)}function QEt(t,e,n,i){var r;this.b=i,this.e=t==(sit(),Dke),r=e[n],this.d=kH(DLe,[cYt,QZt],[177,25],16,[r.length,r.length],2),this.a=kH(SLe,[cYt,lXt],[48,25],15,[r.length,r.length],2),this.c=new qCt(e,n)}function JEt(t){var e,n,i;for(t.k=new a1((vGt(),Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])).length,t.j.c.length),i=new Gf(t.j);i.a<i.c.c.length;)e=(n=jz(Q1(i),113)).d.j,ZDt(t.k,e,n);t.e=nLt(gU(t.k))}function tTt(t,e){var n,i,r;_G(t.d,e),n=new _a,WK(t.c,e,n),n.f=Eut(e.c),n.a=Eut(e.d),n.d=(pOt(),(r=e.c.i.k)==(aEt(),Ese)||r==_se),n.e=(i=e.d.i.k)==Ese||i==_se,n.b=e.c.j==(vGt(),EDe),n.c=e.d.j==aDe}function eTt(t){var e,n,i,r,o;for(o=OKt,r=OKt,i=new Gf(vft(t));i.a<i.c.c.length;)e=(n=jz(Q1(i),213)).e.e-n.d.e,n.e==t&&e<r?r=e:e<o&&(o=e);return r==OKt&&(r=-1),o==OKt&&(o=-1),new nD(ndt(r),ndt(o))}function nTt(t,e){var n,r,o;return o=QQt,Vbt(),r=Zre,o=i.Math.abs(t.b),(n=i.Math.abs(e.f-t.b))<o&&(o=n,r=Qre),(n=i.Math.abs(t.a))<o&&(o=n,r=Jre),(n=i.Math.abs(e.g-t.a))<o&&(o=n,r=Xre),r}function iTt(t,e){var n,i,r;for(n=e.a.o.a,r=new Af(new s1(mK(e.a).b,e.c,e.f+1));r.b<r.d.gc();)if(xO(r.b<r.d.gc()),(i=jz(r.d.Xb(r.c=r.b++),29)).c.a>=n)return lTt(t,e,i.p),!0;return!1}function rTt(t){var e;return 64&t.Db?wEt(t):(e=new uL(Q4t),!t.a||aI(aI((e.a+=' "',e),t.a),'"'),aI(kC(aI(kC(aI(kC(aI(kC((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function oTt(t,e,n){var i,r,o,a,s;for(s=oOt(t.e.Tg(),e),r=jz(t.g,119),i=0,a=0;a<t.i;++a)if(o=r[a],s.rl(o.ak())){if(i==n)return uNt(t,a),Zx(),jz(e,66).Oj()?o:o.dd();++i}throw $b(new Dv(e8t+n+s7t+i))}function aTt(t){var e,n,i;if(2==(e=t.c)||7==e||1==e)return fKt(),fKt(),aLe;for(i=DWt(t),n=null;2!=(e=t.c)&&7!=e&&1!=e;)n||(fKt(),fKt(),tHt(n=new nM(1),i),i=n),tHt(n,DWt(t));return i}function sTt(t,e,n){return t<0||t>n?gSt(t,n,"start index"):e<0||e>n?gSt(e,n,"end index"):BRt("end index (%s) must not be less than start index (%s)",Est(Vy(Ite,1),zKt,1,5,[ndt(e),ndt(t)]))}function cTt(t,e){var n,i,r,o;for(i=0,r=t.length;i<r;i++){o=t[i];try{o[1]?o[0].jm()&&(e=_q(e,o)):o[0].jm()}catch(t){if(!iP(t=hst(t),78))throw $b(t);n=t,Ly(),wZ(iP(n,477)?jz(n,477).ae():n)}}return e}function lTt(t,e,n){var r,o;for(n!=e.c+e.b.gc()&&fVt(e.a,nat(e,n-e.c)),o=e.a.c.p,t.a[o]=i.Math.max(t.a[o],e.a.o.a),r=jz(wxt(e.a,(lKt(),xde)),15).Kc();r.Ob();)lct(jz(r.Pb(),70),Jce,(cL(),!0))}function uTt(t,e){var n,r,o;o=VLt(e),lct(e,(lKt(),ude),o),o&&(r=OKt,DZ(t.f,o)&&(r=jz(zD(DZ(t.f,o)),19).a),zv(_N(wxt(n=jz(PH(e.g,0),17),Ede)))||WK(t,o,ndt(i.Math.min(jz(wxt(n,dde),19).a,r))))}function hTt(t,e,n){var i,r,o,a;for(e.p=-1,a=Lgt(e,(oit(),zwe)).Kc();a.Ob();)for(r=new Gf(jz(a.Pb(),11).g);r.a<r.c.c.length;)e!=(o=(i=jz(Q1(r),17)).d.i)&&(o.p<0?n.Fc(i):o.p>0&&hTt(t,o,n));e.p=0}function dTt(t){var e;this.c=new YA,this.f=t.e,this.e=t.d,this.i=t.g,this.d=t.c,this.b=t.b,this.k=t.j,this.a=t.a,t.i?this.j=t.i:this.j=new YF(e=jz(W_(vxe),9),jz(AR(e,e.length),9),0),this.g=t.f}function fTt(t){var e,n,i,r;for(e=PW(aI(new uL("Predicates."),"and"),40),n=!0,r=new Af(t);r.b<r.d.gc();)xO(r.b<r.d.gc()),i=r.d.Xb(r.c=r.b++),n||(e.a+=","),e.a+=""+i,n=!1;return(e.a+=")",e).a}function gTt(t,e,n){var i,r,o;if(!(n<=e+2))for(r=(n-e)/2|0,i=0;i<r;++i)u1(e+i,t.c.length),o=jz(t.c[e+i],11),i4(t,e+i,(u1(n-i-1,t.c.length),jz(t.c[n-i-1],11))),u1(n-i-1,t.c.length),t.c[n-i-1]=o}function pTt(t,e,n){var i,r,o,a,s,c,l;s=(o=t.d.p).e,c=o.r,t.g=new KF(c),i=(a=t.d.o.c.p)>0?s[a-1]:P7(Sse,o1t,10,0,0,1),r=s[a],l=a<s.length-1?s[a+1]:P7(Sse,o1t,10,0,0,1),e==n-1?oJ(t.g,r,l):oJ(t.g,i,r)}function mTt(t){var e;this.j=new Mb,this.f=new Ow,this.b=new YF(e=jz(W_(FDe),9),jz(AR(e,e.length),9),0),this.d=P7(SLe,lXt,25,(vGt(),Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])).length,15,1),this.g=t}function bTt(t,e){var n,i,r;if(0!=e.c.length){for(n=Cxt(t,e),r=!1;!n;)_Mt(t,e,!0),r=!0,n=Cxt(t,e);r&&_Mt(t,e,!1),i=Ost(e),t.b&&t.b.lg(i),t.a=But(t,(u1(0,e.c.length),jz(e.c[0],33))),bTt(t,i)}}function wTt(t,e){var n,i,r;if(i=eet(t.Tg(),e),(n=e-t.Ah())<0){if(!i)throw $b(new Rv(s6t+e+c6t));if(!i.Ij())throw $b(new Rv(i6t+i.ne()+r6t));(r=t.Yg(i))>=0?t.Bh(r):rDt(t,i)}else Vht(t,n,i)}function kTt(t){var e,n;if(n=null,e=!1,iP(t,204)&&(e=!0,n=jz(t,204).a),e||iP(t,258)&&(e=!0,n=""+jz(t,258).a),e||iP(t,483)&&(e=!0,n=""+jz(t,483).a),!e)throw $b(new Bv(z6t));return n}function vTt(t,e){var n,i;if(t.f){for(;e.Ob();)if(iP(i=(n=jz(e.Pb(),72)).ak(),99)&&jz(i,18).Bb&l6t&&(!t.e||i.Gj()!=BIe||0!=i.aj())&&null!=n.dd())return e.Ub(),!0;return!1}return e.Ob()}function yTt(t,e){var n,i;if(t.f){for(;e.Sb();)if(iP(i=(n=jz(e.Ub(),72)).ak(),99)&&jz(i,18).Bb&l6t&&(!t.e||i.Gj()!=BIe||0!=i.aj())&&null!=n.dd())return e.Pb(),!0;return!1}return e.Sb()}function _Tt(t,e,n){var i,r,o,a,s,c;for(c=oOt(t.e.Tg(),e),i=0,s=t.i,r=jz(t.g,119),a=0;a<t.i;++a)if(o=r[a],c.rl(o.ak())){if(n==i)return a;++i,s=a+1}if(n==i)return s;throw $b(new Dv(e8t+n+s7t+i))}function CTt(t,e){var n,r,o;if(0==t.f.c.length)return null;for(o=new hB,n=new Gf(t.f);n.a<n.c.c.length;)r=jz(Q1(n),70).o,o.b=i.Math.max(o.b,r.a),o.a+=r.b;return o.a+=(t.f.c.length-1)*e,o}function ATt(t,e,n){var i,r,o;for(r=new aU(ZP(lft(n).a.Kc(),new u));gBt(r);)h4(i=jz(q4(r),17))||!h4(i)&&i.c.i.c==i.d.i.c||(o=qPt(t,i,n,new ok)).c.length>1&&(e.c[e.c.length]=o)}function xTt(t){var e,n,i;for(jrt(n=new YA,t.o),i=new ak;0!=n.b;)WGt(t,e=jz(0==n.b?null:(xO(0!=n.b),Iet(n,n.a.a)),508),!0)&&Gz(i.a,e);for(;0!=i.a.c.length;)WGt(t,e=jz(tut(i),508),!1)}function ETt(){ETt=I,kxe=new IS(lQt,0),dxe=new IS("BOOLEAN",1),mxe=new IS("INT",2),wxe=new IS("STRING",3),fxe=new IS("DOUBLE",4),gxe=new IS("ENUM",5),pxe=new IS("ENUMSET",6),bxe=new IS("OBJECT",7)}function TTt(t,e){var n,r,o,a,s;r=i.Math.min(t.c,e.c),a=i.Math.min(t.d,e.d),(o=i.Math.max(t.c+t.b,e.c+e.b))<r&&(n=r,r=o,o=n),(s=i.Math.max(t.d+t.a,e.d+e.a))<a&&(n=a,a=s,s=n),PV(t,r,a,o-r,s-a)}function STt(){STt=I,YMe=Est(Vy(Yee,1),cYt,2,6,[f9t,g9t,p9t,m9t,b9t,w9t,J6t]),KMe=Est(Vy(Yee,1),cYt,2,6,[f9t,"empty",g9t,R8t,"elementOnly"]),ZMe=Est(Vy(Yee,1),cYt,2,6,[f9t,"preserve","replace",k9t]),XMe=new AV}function DTt(t,e,n){var i,r,o;if(e!=n){i=e;do{qR(t,i.c),(r=i.e)&&(RO(t,(o=i.d).b,o.d),qR(t,r.n),i=mK(r))}while(r);i=n;do{UR(t,i.c),(r=i.e)&&(jO(t,(o=i.d).b,o.d),UR(t,r.n),i=mK(r))}while(r)}}function ITt(t,e,n,i){var r,o,a,s,c;if(i.f.c+i.g.c==0)for(s=0,c=(a=t.a[t.c]).length;s<c;++s)WK(i,o=a[s],new vot(t,o,n));return(r=jz(zD(DZ(i.f,e)),663)).b=0,r.c=r.f,0==r.c||_f(jz(PH(r.a,r.b),287)),r}function BTt(){BTt=I,Zle=new vT("MEDIAN_LAYER",0),Jle=new vT("TAIL_LAYER",1),Xle=new vT("HEAD_LAYER",2),Qle=new vT("SPACE_EFFICIENT_LAYER",3),tue=new vT("WIDEST_LAYER",4),Yle=new vT("CENTER_LAYER",5)}function MTt(t){switch(t.g){case 0:case 1:case 2:return vGt(),sDe;case 3:case 4:case 5:return vGt(),ADe;case 6:case 7:case 8:return vGt(),EDe;case 9:case 10:case 11:return vGt(),aDe;default:return vGt(),xDe}}function PTt(t,e){var n;return 0!=t.c.length&&(n=tpt((u1(0,t.c.length),jz(t.c[0],17)).c.i),jJ(),n==(dwt(),lwe)||n==cwe||a4(IY(new OH(null,new d1(t,16)),new zo),new em(e)))}function LTt(t,e,n){var i,r,o;if(!t.b[e.g]){for(t.b[e.g]=!0,!(i=n)&&(i=new x6),LV(i.b,e),o=t.a[e.g].Kc();o.Ob();)(r=jz(o.Pb(),188)).b!=e&&LTt(t,r.b,i),r.c!=e&&LTt(t,r.c,i),LV(i.a,r);return i}return null}function OTt(){OTt=I,Kve=new uS("ROOT_PROC",0),qve=new uS("FAN_PROC",1),Gve=new uS("NEIGHBORS_PROC",2),Uve=new uS("LEVEL_HEIGHT",3),Wve=new uS("NODE_POSITION_PROC",4),Hve=new uS("DETREEIFYING_PROC",5)}function NTt(t,e){if(iP(e,239))return HB(t,jz(e,33));if(iP(e,186))return qB(t,jz(e,118));if(iP(e,439))return VB(t,jz(e,202));throw $b(new Rv(q6t+Mxt(new Xv(Est(Vy(Ite,1),zKt,1,5,[e])))))}function RTt(t,e,n){var i,r;if(this.f=t,d6(n,r=(i=jz(OW(t.b,e),283))?i.a:0),n>=(r/2|0))for(this.e=i?i.c:null,this.d=r;n++<r;)_J(this);else for(this.c=i?i.b:null;n-- >0;)yJ(this);this.b=e,this.a=null}function FTt(t,e){var n,i;e.a?qLt(t,e):(!!(n=jz(kF(t.b,e.b),57))&&n==t.a[e.b.f]&&!!n.a&&n.a!=e.b.a&&n.c.Fc(e.b),!!(i=jz(wF(t.b,e.b),57))&&t.a[i.f]==e.b&&!!i.a&&i.a!=e.b.a&&e.b.c.Fc(i),CL(t.b,e.b))}function jTt(t,e){var n,i;if(n=jz(aY(t.b,e),124),jz(jz(c6(t.r,e),21),84).dc())return n.n.b=0,void(n.n.c=0);n.n.b=t.C.b,n.n.c=t.C.c,t.A.Hc((wpt(),RDe))&&kRt(t,e),i=Gbt(t,e),ENt(t,e)==(rbt(),jSe)&&(i+=2*t.w),n.a.a=i}function $Tt(t,e){var n,i;if(n=jz(aY(t.b,e),124),jz(jz(c6(t.r,e),21),84).dc())return n.n.d=0,void(n.n.a=0);n.n.d=t.C.d,n.n.a=t.C.a,t.A.Hc((wpt(),RDe))&&vRt(t,e),i=Wbt(t,e),ENt(t,e)==(rbt(),jSe)&&(i+=2*t.w),n.a.b=i}function zTt(t,e){var n,i,r,o;for(o=new Mb,i=new Gf(e);i.a<i.c.c.length;)Gz(o,new OE(n=jz(Q1(i),65),!0)),Gz(o,new OE(n,!1));bv((r=new cZ(t)).a.a),t2(o,t.b,new Xv(Est(Vy(aie,1),zKt,679,0,[r])))}function VTt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g;return s=t.a,h=t.b,c=e.a,d=e.b,l=n.a,f=n.b,new PS(((o=s*d-h*c)*(l-(u=i.a))-(a=l*(g=i.b)-f*u)*(s-c))/(r=(s-c)*(f-g)-(h-d)*(l-u)),(o*(f-g)-a*(h-d))/r)}function HTt(t,e){var n,i,r;if(!t.d[e.p]){for(t.d[e.p]=!0,t.a[e.p]=!0,i=new aU(ZP(hft(e).a.Kc(),new u));gBt(i);)h4(n=jz(q4(i),17))||(r=n.d.i,t.a[r.p]?Gz(t.b,n):HTt(t,r));t.a[e.p]=!1}}function qTt(t,e,n){var i;switch(i=0,jz(wxt(e,(zWt(),kme)),163).g){case 2:i=2*-n+t.a,++t.a;break;case 1:i=-n;break;case 3:i=n;break;case 4:i=2*n+t.b,++t.b}return BO(e,(lKt(),dde))&&(i+=jz(wxt(e,dde),19).a),i}function UTt(t,e,n){var i,r,o;for(n.zc(e,t),Gz(t.n,e),o=t.p.eg(e),e.j==t.p.fg()?Dft(t.e,o):Dft(t.j,o),nW(t),r=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[new $g(e),new Vg(e)])));gBt(r);)i=jz(q4(r),11),n._b(i)||UTt(t,i,n)}function GTt(t){var e,n;return jz(QBt(t,(cKt(),NEe)),21).Hc((wpt(),LDe))?(n=jz(QBt(t,zEe),21),e=new dB(jz(QBt(t,jEe),8)),n.Hc((JFt(),VDe))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e):new V_}function WTt(t){var e,n,i;if(!t.b){for(i=new Sc,n=new rO(Nzt(t));n.e!=n.i.gc();)(e=jz(ybt(n),18)).Bb&l6t&&l8(i,e);rut(i),t.b=new MI((jz(Wet(KX((KW(),QBe).o),8),18),i.i),i.g),x4(t).b&=-9}return t.b}function KTt(t,e){var n,i,r,o,a,s;a=jz(_kt(gU(e.k),P7(FDe,XJt,61,2,0,1)),122),Qkt(t,s=e.g,n=a3(e,a[0]),i=o3(e,a[1]))<=Qkt(t,s,r=a3(e,a[1]),o=o3(e,a[0]))?(e.a=n,e.c=i):(e.a=r,e.c=o)}function YTt(t,e,n){var i,r,o;for(DAt(n,"Processor set neighbors",1),t.a=0==e.b.b?1:e.b.b,r=null,i=cbt(e.b,0);!r&&i.b!=i.d.c;)zv(_N(wxt(o=jz(h3(i),86),(VHt(),fye))))&&(r=o);r&&MNt(t,new hm(r),n),zEt(n)}function XTt(t){var e,n,i,r;return NVt(),e=-1==(i=VI(t,XAt(35)))?t:t.substr(0,i),n=-1==i?null:t.substr(i+1),(r=W3(vBe,e))?null!=n&&(r=Tlt(r,(kK(n),n))):(r=WWt(e),r4(vBe,e,r),null!=n&&(r=Tlt(r,n))),r}function ZTt(t){var e,n,i,r,o,a,s;if(AX(),iP(t,54))for(o=0,r=t.gc()-1;o<r;++o,--r)e=t.Xb(o),t._c(o,t.Xb(r)),t._c(r,e);else for(n=t.Yc(),a=t.Zc(t.gc());n.Tb()<a.Vb();)i=n.Pb(),s=a.Ub(),n.Wb(s),a.Wb(i)}function QTt(t,e){var n,i,r;DAt(e,"End label pre-processing",1),n=Vv(CN(wxt(t,(zWt(),vbe)))),i=Vv(CN(wxt(t,Abe))),r=gB(jz(wxt(t,qpe),103)),XA(dtt(new OH(null,new d1(t.b,16)),new un),new Lj(n,i,r)),zEt(e)}function JTt(t,e){var n,i,r,o,a,s;for(s=0,f3(o=new Bb,e);o.b!=o.c;)for(s+=cvt((a=jz(fG(o),214)).d,a.e),r=new Gf(a.b);r.a<r.c.c.length;)i=jz(Q1(r),37),(n=jz(PH(t.b,i.p),214)).s||(s+=JTt(t,n));return s}function tSt(t,e,n){var r,o;Fat(this),e==(fQ(),Bve)?_G(this.r,t.c):_G(this.w,t.c),_G(n==Bve?this.r:this.w,t.d),tTt(this,t),Gxt(this,r=Eut(t.c),o=Eut(t.d),o),this.o=(pOt(),i.Math.abs(r-o)<.2)}function eSt(t,e,n){var i,r,o,a,s;if(null!=(a=jz(kat(t.a,8),1936)))for(r=0,o=a.length;r<o;++r)null.jm();i=n,1&t.a.Db||(s=new oK(t,n,e),i.ui(s)),iP(i,672)?jz(i,672).wi(t.a):i.ti()==t.a&&i.vi(null)}function nSt(){var t;return XPe?jz(BMt((Gx(),VBe),x9t),1945):(cGt(),t=jz(iP(AQ((Gx(),VBe),x9t),586)?AQ(VBe,x9t):new HK,586),XPe=!0,pWt(t),mKt(t),WK((Wx(),XBe),t,new Fl),Cvt(t),bJ(VBe,x9t,t),t)}function iSt(t,e,n,i){var r;return(r=qAt(t,n,Est(Vy(Yee,1),cYt,2,6,[dXt,fXt,gXt,pXt,mXt,bXt,wXt]),e))<0&&(r=qAt(t,n,Est(Vy(Yee,1),cYt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(r<0||(i.d=r,0))}function rSt(t,e,n,i){var r;return(r=qAt(t,n,Est(Vy(Yee,1),cYt,2,6,[dXt,fXt,gXt,pXt,mXt,bXt,wXt]),e))<0&&(r=qAt(t,n,Est(Vy(Yee,1),cYt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),e)),!(r<0||(i.d=r,0))}function oSt(t){var e,n,i;for(FMt(t),i=new Mb,n=new Gf(t.a.a.b);n.a<n.c.c.length;)Gz(i,new lT(e=jz(Q1(n),81),!0)),Gz(i,new lT(e,!1));Jwt(t.c),e2(i,t.b,new Xv(Est(Vy(Xae,1),zKt,369,0,[t.c]))),bBt(t)}function aSt(t){var e,n,i,r;for(n=new Pb,r=new Gf(t.d);r.a<r.c.c.length;)i=jz(Q1(r),181),e=jz(i.We((lKt(),qhe)),17),DZ(n.f,e)||WK(n,e,new _X(e)),Gz(jz(zD(DZ(n.f,e)),456).b,i);return new JF(new Sf(n))}function sSt(t,e){var n,i,r,o,a;for(i=new f1(t.j.c.length),n=null,o=new Gf(t.j);o.a<o.c.c.length;)(r=jz(Q1(o),11)).j!=n&&(i.b==i.c||jMt(i,n,e),a5(i),n=r.j),(a=wBt(r))&&d3(i,a);i.b==i.c||jMt(i,n,e)}function cSt(t,e){var n,i;for(i=new C2(t.b,0);i.b<i.d.gc();)xO(i.b<i.d.gc()),n=jz(i.d.Xb(i.c=i.b++),70),jz(wxt(n,(zWt(),Ype)),272)==(Net(),qTe)&&(lK(i),Gz(e.b,n),BO(n,(lKt(),qhe))||lct(n,qhe,t))}function lSt(t){var e,n,r;for(e=F3(new aU(ZP(hft(t).a.Kc(),new u))),n=new aU(ZP(uft(t).a.Kc(),new u));gBt(n);)r=F3(new aU(ZP(hft(jz(q4(n),17).c.i).a.Kc(),new u))),e=i.Math.max(e,r);return ndt(e)}function uSt(t,e,n){var i,r,o,a;for(DAt(n,"Processor arrange node",1),r=null,o=new YA,i=cbt(e.b,0);!r&&i.b!=i.d.c;)zv(_N(wxt(a=jz(h3(i),86),(VHt(),fye))))&&(r=a);n4(o,r,o.c.b,o.c),XUt(t,o,wot(n,1)),zEt(n)}function hSt(t,e,n){var i,r,o;i=jz(QBt(t,(cKt(),cEe)),21),r=0,o=0,e.a>n.a&&(i.Hc((fCt(),Gxe))?r=(e.a-n.a)/2:i.Hc(Kxe)&&(r=e.a-n.a)),e.b>n.b&&(i.Hc((fCt(),Xxe))?o=(e.b-n.b)/2:i.Hc(Yxe)&&(o=e.b-n.b)),hxt(t,r,o)}function dSt(t,e,n,i,r,o,a,s,c,l,u,h,d){iP(t.Cb,88)&&ISt(x4(jz(t.Cb,88)),4),Prt(t,n),t.f=a,Bdt(t,s),Pdt(t,c),Idt(t,l),Mdt(t,u),Jht(t,h),Vdt(t,d),Xht(t,!0),Mnt(t,r),t.ok(o),Sut(t,e),null!=i&&(t.i=null,ort(t,i))}function fSt(t){var e,n;if(t.f){for(;t.n>0;){if(iP(n=(e=jz(t.k.Xb(t.n-1),72)).ak(),99)&&jz(n,18).Bb&l6t&&(!t.e||n.Gj()!=BIe||0!=n.aj())&&null!=e.dd())return!0;--t.n}return!1}return t.n>0}function gSt(t,e,n){if(t<0)return BRt($Kt,Est(Vy(Ite,1),zKt,1,5,[n,ndt(t)]));if(e<0)throw $b(new Rv(VKt+e));return BRt("%s (%s) must not be greater than size (%s)",Est(Vy(Ite,1),zKt,1,5,[n,ndt(t),ndt(e)]))}function pSt(t,e,n,i,r,o){var a,s,c;if(i-n<7)Bft(e,n,i,o);else if(pSt(e,t,s=n+r,c=s+((a=i+r)-s>>1),-r,o),pSt(e,t,c,a,-r,o),o.ue(t[c-1],t[c])<=0)for(;n<i;)IW(e,n++,t[s++]);else Hht(t,s,c,a,e,n,i,o)}function mSt(t,e){var n,i,r;for(r=new Mb,i=new Gf(t.c.a.b);i.a<i.c.c.length;)n=jz(Q1(i),57),e.Lb(n)&&(Gz(r,new SE(n,!0)),Gz(r,new SE(n,!1)));Qwt(t.e),t2(r,t.d,new Xv(Est(Vy(aie,1),zKt,679,0,[t.e])))}function bSt(t,e){var n,i,r,o,a,s,c;for(c=e.d,r=e.b.j,s=new Gf(c);s.a<s.c.c.length;)for(a=jz(Q1(s),101),o=P7(DLe,QZt,25,r.c.length,16,1),WK(t.b,a,o),n=a.a.d.p-1,i=a.c.d.p;n!=i;)o[n=(n+1)%r.c.length]=!0}function wSt(t,e){for(t.r=new jat(t.p),Yd(t.r,t),jrt(t.r.j,t.j),wX(t.j),LV(t.j,e),LV(t.r.e,e),nW(t),nW(t.r);0!=t.f.c.length;)VM(jz(PH(t.f,0),129));for(;0!=t.k.c.length;)VM(jz(PH(t.k,0),129));return t.r}function kSt(t,e,n){var i,r,o;if(r=eet(t.Tg(),e),(i=e-t.Ah())<0){if(!r)throw $b(new Rv(s6t+e+c6t));if(!r.Ij())throw $b(new Rv(i6t+r.ne()+r6t));(o=t.Yg(r))>=0?t.sh(o,n):CPt(t,r,n)}else Mft(t,i,r,n)}function vSt(t){var e,n,i,r;if(n=jz(t,49).qh())try{if(i=null,(e=BMt((Gx(),VBe),Ajt(Fft(n))))&&(r=e.rh())&&(i=r.Wk(Uv(n.e))),i&&i!=t)return vSt(i)}catch(t){if(!iP(t=hst(t),60))throw $b(t)}return t}function ySt(t,e,n){var i,r,o,a;if(a=null==e?0:t.b.se(e),0==(r=null==(i=t.a.get(a))?new Array:i).length)t.a.set(a,r);else if(o=lut(t,e,r))return o.ed(n);return IW(r,r.length,new xE(e,n)),++t.c,aZ(t.b),null}function _St(t,e){var n;return c2(t.a),EG(t.a,(Ert(),Kye),Kye),EG(t.a,Yye,Yye),fH(n=new j2,Yye,(Tft(),t_e)),VD(QBt(e,(Uvt(),A_e)))!==VD((zlt(),s_e))&&fH(n,Yye,Qye),fH(n,Yye,Jye),rB(t.a,n),BHt(t.a,e)}function CSt(t){if(!t)return uy(),lee;var e=t.valueOf?t.valueOf():t;if(e!==t){var n=uee[typeof e];return n?n(e):vut(typeof e)}return t instanceof Array||t instanceof i.Array?new yd(t):new Ad(t)}function ASt(t,e,n){var r,o,a;switch(a=t.o,(o=(r=jz(aY(t.p,n),244)).i).b=xDt(r),o.a=ADt(r),o.b=i.Math.max(o.b,a.a),o.b>a.a&&!e&&(o.b=a.a),o.c=-(o.b-a.a)/2,n.g){case 1:o.d=-o.a;break;case 3:o.d=a.b}F$t(r),H$t(r)}function xSt(t,e,n){var r,o,a;switch(a=t.o,(o=(r=jz(aY(t.p,n),244)).i).b=xDt(r),o.a=ADt(r),o.a=i.Math.max(o.a,a.b),o.a>a.b&&!e&&(o.a=a.b),o.d=-(o.a-a.b)/2,n.g){case 4:o.c=-o.b;break;case 2:o.c=a.a}F$t(r),H$t(r)}function ESt(t,e){var n,i,r,o,a;if(!e.dc())if(r=jz(e.Xb(0),128),1!=e.gc())for(n=1;n<e.gc();)!r.j&&r.o||(o=bvt(e,n))&&(i=jz(o.a,19).a,vOt(t,r,a=jz(o.b,128),n,i,e),n=i+1,r=a);else vOt(t,r,r,1,0,e)}function TSt(t){var e,n,i,r;for(bM(r=new JF(t.d),new Ur),vNt(),e=Est(Vy(eue,1),BYt,270,0,[jle,Vle,Fle,Ule,zle,$le,qle,Hle]),n=0,i=new Gf(r);i.a<i.c.c.length;)TIt(jz(Q1(i),101),e[n%e.length]),++n}function SSt(t,e){var n,i,r,o;if(yNt(),e.b<2)return!1;for(i=n=jz(h3(o=cbt(e,0)),8);o.b!=o.d.c;){if(r=jz(h3(o),8),!Oot(t,i)||!Oot(t,r))return!1;i=r}return!(!Oot(t,i)||!Oot(t,n))}function DSt(t,e){var n,i,r,o,a;return n=Nnt(a=t,"x"),Q9(new zm(e).a,n),i=Nnt(a,"y"),J9(new Vm(e).a,i),r=Nnt(a,T6t),ttt(new Hm(e).a,r),o=Nnt(a,E6t),ett(new qm(e).a,o),o}function ISt(t,e){gRt(t,e),1&t.b&&(t.a.a=null),2&t.b&&(t.a.f=null),4&t.b&&(t.a.g=null,t.a.i=null),16&t.b&&(t.a.d=null,t.a.e=null),8&t.b&&(t.a.b=null),32&t.b&&(t.a.j=null,t.a.c=null)}function BSt(t,e){var n,i;if(i=0,e.length>0)try{i=hjt(e,FYt,OKt)}catch(t){throw iP(t=hst(t),127)?$b(new B9(t)):$b(t)}return!t.a&&(t.a=new Ab(t)),i<(n=t.a).i&&i>=0?jz(Wet(n,i),56):null}function MSt(t,e){if(t<0)return BRt($Kt,Est(Vy(Ite,1),zKt,1,5,["index",ndt(t)]));if(e<0)throw $b(new Rv(VKt+e));return BRt("%s (%s) must be less than size (%s)",Est(Vy(Ite,1),zKt,1,5,["index",ndt(t),ndt(e)]))}function PSt(t){var e,n,i,r,o;if(null==t)return qKt;for(o=new Bat(jKt,"[","]"),i=0,r=(n=t).length;i<r;++i)e=n[i],o.a?aI(o.a,o.b):o.a=new uL(o.d),rI(o.a,""+e);return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function LSt(t){var e,n,i,r,o;if(null==t)return qKt;for(o=new Bat(jKt,"[","]"),i=0,r=(n=t).length;i<r;++i)e=n[i],o.a?aI(o.a,o.b):o.a=new uL(o.d),rI(o.a,""+e);return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function OSt(t){var e,n,i,r,o;if(null==t)return qKt;for(o=new Bat(jKt,"[","]"),i=0,r=(n=t).length;i<r;++i)e=n[i],o.a?aI(o.a,o.b):o.a=new uL(o.d),rI(o.a,""+e);return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function NSt(t){var e,n,i,r,o;if(null==t)return qKt;for(o=new Bat(jKt,"[","]"),i=0,r=(n=t).length;i<r;++i)e=n[i],o.a?aI(o.a,o.b):o.a=new uL(o.d),rI(o.a,""+e);return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function RSt(t,e){var n,i,r,o,a,s;for(n=t.b.c.length,r=PH(t.b,e);2*e+1<n&&(s=o=2*e+1,(a=o+1)<n&&t.a.ue(PH(t.b,a),PH(t.b,o))<0&&(s=a),i=s,!(t.a.ue(r,PH(t.b,i))<0));)i4(t.b,e,PH(t.b,i)),e=i;i4(t.b,e,r)}function FSt(t,e,n,r,o,a){var s,c,l,u,h;for(VD(t)===VD(n)&&(t=t.slice(e,e+o),e=0),l=n,c=e,u=e+o;c<u;)o=(s=i.Math.min(c+1e4,u))-c,(h=t.slice(c,s)).splice(0,0,r,a?o:0),Array.prototype.splice.apply(l,h),c=s,r+=o}function jSt(t,e,n){var i,r;return i=n.d,r=n.e,t.g[i.d]<=t.i[e.d]&&t.i[e.d]<=t.i[i.d]&&t.g[r.d]<=t.i[e.d]&&t.i[e.d]<=t.i[r.d]?!(t.i[i.d]<t.i[r.d]):t.i[i.d]<t.i[r.d]}function $St(t){var e,n,i,r,o,a,s;if((i=t.a.c.length)>0)for(a=t.c.d,r=kP(UR(new PS((s=t.d.d).a,s.b),a),1/(i+1)),o=new PS(a.a,a.b),n=new Gf(t.a);n.a<n.c.c.length;)(e=jz(Q1(n),559)).d.a=o.a,e.d.b=o.b,qR(o,r)}function zSt(t,e,n){var r,o,a,s,c,l;for(l=NXt,a=new Gf(HPt(t.b));a.a<a.c.c.length;)for(o=jz(Q1(a),168),c=new Gf(HPt(e.b));c.a<c.c.c.length;)s=jz(Q1(c),168),r=Tst(o.a,o.b,s.a,s.b,n),l=i.Math.min(l,r);return l}function VSt(t,e){if(!e)throw $b(new gw);if(t.j=e,!t.d)switch(t.j.g){case 1:t.a.a=t.o.a/2,t.a.b=0;break;case 2:t.a.a=t.o.a,t.a.b=t.o.b/2;break;case 3:t.a.a=t.o.a/2,t.a.b=t.o.b;break;case 4:t.a.a=0,t.a.b=t.o.b/2}}function HSt(t,e){var n,r;return iP(e.g,10)&&jz(e.g,10).k==(aEt(),Cse)?NXt:l3(e)?i.Math.max(0,t.b/2-.5):(n=l2(e))?(r=Vv(CN(ept(n,(zWt(),Sbe)))),i.Math.max(0,r/2-.5)):NXt}function qSt(t,e){var n,r;return iP(e.g,10)&&jz(e.g,10).k==(aEt(),Cse)?NXt:l3(e)?i.Math.max(0,t.b/2-.5):(n=l2(e))?(r=Vv(CN(ept(n,(zWt(),Sbe)))),i.Math.max(0,r/2-.5)):NXt}function USt(t){var e,n,i,r;for(r=Mht(t.d,t.e).Kc();r.Ob();)for(i=jz(r.Pb(),11),n=new Gf(t.e==(vGt(),EDe)?i.e:i.g);n.a<n.c.c.length;)h4(e=jz(Q1(n),17))||e.c.i.c==e.d.i.c||(NEt(t,e),++t.f,++t.c)}function GSt(t,e){var n,i;if(e.dc())return AX(),AX(),cne;for(Gz(i=new Mb,ndt(FYt)),n=1;n<t.f;++n)null==t.a&&fRt(t),t.a[n]&&Gz(i,ndt(n));return 1==i.c.length?(AX(),AX(),cne):(Gz(i,ndt(OKt)),gzt(e,i))}function WSt(t,e){var n,i,r,o,a,s;n=ryt(e,s=e.c.i.k!=(aEt(),Ese)?e.d:e.c).i,r=jz(OW(t.k,s),121),i=t.i[n.p].a,DF(s.i)<(n.c?y9(n.c.a,n,0):-1)?(o=r,a=i):(o=i,a=r),ULt(rx(ix(ox(nx(new $w,0),4),o),a))}function KSt(t,e,n){var i,r,o;if(n)for(r=((i=new cU(n.a.length)).b-i.a)*i.c<0?(tE(),_Le):new UP(i);r.Ob();)(o=Ikt(t,vDt(ftt(n,jz(r.Pb(),19).a))))&&(!e.b&&(e.b=new cF(OIe,e,4,7)),l8(e.b,o))}function YSt(t,e,n){var i,r,o;if(n)for(r=((i=new cU(n.a.length)).b-i.a)*i.c<0?(tE(),_Le):new UP(i);r.Ob();)(o=Ikt(t,vDt(ftt(n,jz(r.Pb(),19).a))))&&(!e.c&&(e.c=new cF(OIe,e,5,8)),l8(e.c,o))}function XSt(t,e,n){var i,r;i=e.a&t.f,e.b=t.b[i],t.b[i]=e,r=e.f&t.f,e.d=t.c[r],t.c[r]=e,n?(e.e=n.e,e.e?e.e.c=e:t.a=e,e.c=n.c,e.c?e.c.e=e:t.e=e):(e.e=t.e,e.c=null,t.e?t.e.c=e:t.a=e,t.e=e),++t.i,++t.g}function ZSt(t){var e,n,i;if(e=t.Pb(),!t.Ob())return e;for(i=oI(aI(new Ey,"expected one element but was: <"),e),n=0;n<4&&t.Ob();n++)oI((i.a+=jKt,i),t.Pb());throw t.Ob()&&(i.a+=", ..."),i.a+=">",$b(new Rv(i.a))}function QSt(t,e){var n;e.d?e.d.b=e.b:t.a=e.b,e.b?e.b.d=e.d:t.e=e.d,e.e||e.c?(--(n=jz(OW(t.b,e.a),283)).a,e.e?e.e.c=e.c:n.b=e.c,e.c?e.c.e=e.e:n.c=e.e):((n=jz(m6(t.b,e.a),283)).a=0,++t.c),--t.d}function JSt(t){var e,n;return n=-t.a,e=Est(Vy(TLe,1),WYt,25,15,[43,48,48,48,48]),n<0&&(e[0]=45,n=-n),e[1]=e[1]+((n/60|0)/10|0)&YYt,e[2]=e[2]+(n/60|0)%10&YYt,e[3]=e[3]+(n%60/10|0)&YYt,e[4]=e[4]+n%10&YYt,$pt(e,0,e.length)}function tDt(t,e,n){var i,r;for(i=e.d,r=n.d;i.a-r.a==0&&i.b-r.b==0;)i.a+=zMt(t,26)*iZt+zMt(t,27)*rZt-.5,i.b+=zMt(t,26)*iZt+zMt(t,27)*rZt-.5,r.a+=zMt(t,26)*iZt+zMt(t,27)*rZt-.5,r.b+=zMt(t,26)*iZt+zMt(t,27)*rZt-.5}function eDt(t){var e,n,i,r;for(t.g=new zft(jz(wW(FDe),290)),i=0,vGt(),n=sDe,e=0;e<t.j.c.length;e++)(r=jz(PH(t.j,e),11)).j!=n&&(i!=e&&bq(t.g,n,new nD(ndt(i),ndt(e))),n=r.j,i=e);bq(t.g,n,new nD(ndt(i),ndt(e)))}function nDt(t){var e,n,i,r,o;for(n=0,e=new Gf(t.b);e.a<e.c.c.length;)for(r=new Gf(jz(Q1(e),29).a);r.a<r.c.c.length;)for((i=jz(Q1(r),10)).p=n++,o=new Gf(i.j);o.a<o.c.c.length;)jz(Q1(o),11).p=n++}function iDt(t,e,n,i,r){var o,a,s,c;if(e)for(a=e.Kc();a.Ob();)for(c=rRt(jz(a.Pb(),10),(oit(),zwe),n).Kc();c.Ob();)s=jz(c.Pb(),11),(o=jz(zD(DZ(r.f,s)),112))||(o=new jat(t.d),i.c[i.c.length]=o,UTt(o,s,r))}function rDt(t,e){var n,i,r;if(!(r=jHt((STt(),XMe),t.Tg(),e)))throw $b(new Rv(i6t+e.ne()+r6t));Zx(),jz(r,66).Oj()||(r=Z1(j9(XMe,r))),i=jz((n=t.Yg(r))>=0?t._g(n,!0,!0):rIt(t,r,!0),153),jz(i,215).ol(e)}function oDt(t){var e,n;return t>-0x800000000000&&t<0x800000000000?0==t?0:((e=t<0)&&(t=-t),n=EQ(i.Math.floor(i.Math.log(t)/.6931471805599453)),(!e||t!=i.Math.pow(2,n))&&++n,n):Kat(uat(t))}function aDt(t){var e,n,i,r,o,a,s;for(o=new lB,n=new Gf(t);n.a<n.c.c.length;)a=(e=jz(Q1(n),129)).a,s=e.b,o.a._b(a)||o.a._b(s)||(r=a,i=s,a.e.b+a.j.b>2&&s.e.b+s.j.b<=2&&(r=s,i=a),o.a.zc(r,o),r.q=i);return o}function sDt(t,e){var n,i,r;return Vat(i=new Bwt(t),e),lct(i,(lKt(),Whe),e),lct(i,(zWt(),tbe),(YCt(),USe)),lct(i,kpe,(fwt(),Sxe)),Fd(i,(aEt(),Cse)),EJ(n=new TEt,i),VSt(n,(vGt(),EDe)),EJ(r=new TEt,i),VSt(r,aDe),i}function cDt(t){switch(t.g){case 0:return new Mv((sit(),Ske));case 1:return new dh;case 2:return new kh;default:throw $b(new Rv("No implementation is available for the crossing minimizer "+(null!=t.f?t.f:""+t.g)))}}function lDt(t,e){var n,i,r,o;for(t.c[e.p]=!0,Gz(t.a,e),o=new Gf(e.j);o.a<o.c.c.length;)for(n=new b6((r=jz(Q1(o),11)).b);wM(n.a)||wM(n.b);)i=Jpt(r,jz(wM(n.a)?Q1(n.a):Q1(n.b),17)).i,t.c[i.p]||lDt(t,i)}function uDt(t){var e,n,r,o,a,s,c;for(s=0,n=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));n.e!=n.i.gc();)c=(e=jz(vbt(n),33)).g,o=e.f,r=i.Math.sqrt(c*c+o*o),s=i.Math.max(r,s),a=uDt(e),s=i.Math.max(a,s);return s}function hDt(){hDt=I,nDe=new US("OUTSIDE",0),tDe=new US("INSIDE",1),eDe=new US("NEXT_TO_PORT_IF_POSSIBLE",2),JSe=new US("ALWAYS_SAME_SIDE",3),QSe=new US("ALWAYS_OTHER_SAME_SIDE",4),iDe=new US("SPACE_EFFICIENT",5)}function dDt(t,e,n){var i,r,o,a;return Bit(i=N2(t,(J_(),r=new vk,!!n&&JPt(r,n),r),e),O2(e,V6t)),xAt(e,i),sMt(e,i),DSt(e,i),o=M2(e,"ports"),EPt((a=new pD(t,i)).a,a.b,o),Lct(t,e,i),ost(t,e,i),i}function fDt(t){var e,n;return n=-t.a,e=Est(Vy(TLe,1),WYt,25,15,[43,48,48,58,48,48]),n<0&&(e[0]=45,n=-n),e[1]=e[1]+((n/60|0)/10|0)&YYt,e[2]=e[2]+(n/60|0)%10&YYt,e[4]=e[4]+(n%60/10|0)&YYt,e[5]=e[5]+n%10&YYt,$pt(e,0,e.length)}function gDt(t){var e;return e=Est(Vy(TLe,1),WYt,25,15,[71,77,84,45,48,48,58,48,48]),t<=0&&(e[3]=43,t=-t),e[4]=e[4]+((t/60|0)/10|0)&YYt,e[5]=e[5]+(t/60|0)%10&YYt,e[7]=e[7]+(t%60/10|0)&YYt,e[8]=e[8]+t%10&YYt,$pt(e,0,e.length)}function pDt(t){var e,n,i,r,o;if(null==t)return qKt;for(o=new Bat(jKt,"[","]"),i=0,r=(n=t).length;i<r;++i)e=n[i],o.a?aI(o.a,o.b):o.a=new uL(o.d),rI(o.a,""+mU(e));return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function mDt(t,e){var n,r,o;for(o=OKt,r=new Gf(vft(e));r.a<r.c.c.length;)(n=jz(Q1(r),213)).f&&!t.c[n.c]&&(t.c[n.c]=!0,o=i.Math.min(o,mDt(t,Pft(n,e))));return t.i[e.d]=t.j,t.g[e.d]=i.Math.min(o,t.j++),t.g[e.d]}function bDt(t,e){var n,i,r;for(r=jz(jz(c6(t.r,e),21),84).Kc();r.Ob();)(i=jz(r.Pb(),111)).e.b=(n=i.b).Xe((cKt(),rTe))?n.Hf()==(vGt(),sDe)?-n.rf().b-Vv(CN(n.We(rTe))):Vv(CN(n.We(rTe))):n.Hf()==(vGt(),sDe)?-n.rf().b:0}function wDt(t){var e,n,i,r,o,a,s;for(n=KB(t.e),o=kP(jO(jM(WB(t.e)),t.d*t.a,t.c*t.b),-.5),e=n.a-o.a,r=n.b-o.b,s=0;s<t.c;s++){for(i=e,a=0;a<t.d;a++)Wft(t.e,new qY(i,r,t.a,t.b))&&jRt(t,a,s,!1,!0),i+=t.a;r+=t.b}}function kDt(t){var e,n,i;if(zv(_N(QBt(t,(cKt(),AEe))))){for(i=new Mb,n=new aU(ZP(gPt(t).a.Kc(),new u));gBt(n);)YDt(e=jz(q4(n),79))&&zv(_N(QBt(e,xEe)))&&(i.c[i.c.length]=e);return i}return AX(),AX(),cne}function vDt(t){var e;if(e=!1,iP(t,204))return e=!0,jz(t,204).a;if(!e&&iP(t,258)&&jz(t,258).a%1==0)return e=!0,ndt(KI(jz(t,258).a));throw $b(new ty("Id must be a string or an integer: '"+t+"'."))}function yDt(t,e){var n,i,r,o,a,s;for(o=null,r=new nG((!t.a&&(t.a=new Ab(t)),t.a));dIt(r);)if(Xzt(a=(n=jz(oPt(r),56)).Tg()),null!=(i=(s=a.o)&&n.mh(s)?pF(ast(s),n.ah(s)):null)&&bF(i,e)){o=n;break}return o}function _Dt(t,e,n){var i,r,o,a,s;if(hit(n,"occurrences"),0==n)return(s=jz(hht(SX(t.a),e),14))?s.gc():0;if(!(a=jz(hht(SX(t.a),e),14)))return 0;if(n>=(o=a.gc()))a.$b();else for(r=a.Kc(),i=0;i<n;i++)r.Pb(),r.Qb();return o}function CDt(t,e,n){var i,r,o;return hit(n,"oldCount"),hit(0,"newCount"),((i=jz(hht(SX(t.a),e),14))?i.gc():0)==n&&(hit(0,"count"),(o=-((r=jz(hht(SX(t.a),e),14))?r.gc():0))>0?dy():o<0&&_Dt(t,e,-o),!0)}function ADt(t){var e,n,i,r,o,a;if(a=0,0==t.b){for(e=0,r=0,o=(i=Gwt(t,!0)).length;r<o;++r)(n=i[r])>0&&(a+=n,++e);e>1&&(a+=t.c*(e-1))}else a=Ny(eot(BY(DY(BG(t.a),new At),new xt)));return a>0?a+t.n.d+t.n.a:0}function xDt(t){var e,n,i,r,o,a;if(a=0,0==t.b)a=Ny(eot(BY(DY(BG(t.a),new _t),new Ct)));else{for(e=0,r=0,o=(i=Wwt(t,!0)).length;r<o;++r)(n=i[r])>0&&(a+=n,++e);e>1&&(a+=t.c*(e-1))}return a>0?a+t.n.b+t.n.c:0}function EDt(t,e){var n,r,o,a;for(n=(a=jz(aY(t.b,e),124)).a,o=jz(jz(c6(t.r,e),21),84).Kc();o.Ob();)(r=jz(o.Pb(),111)).c&&(n.a=i.Math.max(n.a,WV(r.c)));if(n.a>0)switch(e.g){case 2:a.n.c=t.s;break;case 4:a.n.b=t.s}}function TDt(t,e){var n,i,r;return 0==(n=jz(wxt(e,(uRt(),Zoe)),19).a-jz(wxt(t,Zoe),19).a)?(i=UR(jM(jz(wxt(t,(Art(),oae)),8)),jz(wxt(t,aae),8)),r=UR(jM(jz(wxt(e,oae),8)),jz(wxt(e,aae),8)),Edt(i.a*i.b,r.a*r.b)):n}function SDt(t,e){var n,i,r;return 0==(n=jz(wxt(e,(TBt(),Iye)),19).a-jz(wxt(t,Iye),19).a)?(i=UR(jM(jz(wxt(t,(VHt(),Zve)),8)),jz(wxt(t,Qve),8)),r=UR(jM(jz(wxt(e,Zve),8)),jz(wxt(e,Qve),8)),Edt(i.a*i.b,r.a*r.b)):n}function DDt(t){var e,n;return(n=new Ey).a+="e_",null!=(e=Gat(t))&&(n.a+=""+e),t.c&&t.d&&(aI((n.a+=" ",n),mvt(t.c)),aI(oI((n.a+="[",n),t.c.i),"]"),aI((n.a+=e1t,n),mvt(t.d)),aI(oI((n.a+="[",n),t.d.i),"]")),n.a}function IDt(t){switch(t.g){case 0:return new gh;case 1:return new ph;case 2:return new fh;case 3:return new mh;default:throw $b(new Rv("No implementation is available for the layout phase "+(null!=t.f?t.f:""+t.g)))}}function BDt(t,e,n,r,o){var a;switch(a=0,o.g){case 1:a=i.Math.max(0,e.b+t.b-(n.b+r));break;case 3:a=i.Math.max(0,-t.b-r);break;case 2:a=i.Math.max(0,-t.a-r);break;case 4:a=i.Math.max(0,e.a+t.a-(n.a+r))}return a}function MDt(t,e,n){var i,r,o;if(n)for(o=((i=new cU(n.a.length)).b-i.a)*i.c<0?(tE(),_Le):new UP(i);o.Ob();)r=P2(n,jz(o.Pb(),19).a),M6t in r.a||P6t in r.a?cFt(t,r,e):_Wt(t,r,e),xP(jz(OW(t.b,Ypt(r)),79))}function PDt(t){var e,n;switch(t.b){case-1:return!0;case 0:return(n=t.t)>1||-1==n||(e=Syt(t))&&(Zx(),e.Cj()==_8t)?(t.b=-1,!0):(t.b=1,!1);default:return!1}}function LDt(t,e){var n,i,r,o,a;for(!e.s&&(e.s=new tG(RBe,e,21,17)),o=null,r=0,a=(i=e.s).i;r<a;++r)switch(LK(j9(t,n=jz(Wet(i,r),170)))){case 2:case 3:!o&&(o=new Mb),o.c[o.c.length]=n}return o||(AX(),AX(),cne)}function ODt(t,e){var n,i,r,o;if(YWt(t),0!=t.c||123!=t.a)throw $b(new ry(vKt((oM(),E7t))));if(o=112==e,i=t.d,(n=uO(t.i,125,i))<0)throw $b(new ry(vKt((oM(),T7t))));return r=lO(t.i,i,n),t.d=n+1,h8(r,o,!(512&~t.e))}function NDt(t){var e;if((e=jz(wxt(t,(zWt(),zpe)),314))==(Dit(),cue))throw $b(new iy("The hierarchy aware processor "+e+" in child node "+t+" is only allowed if the root node specifies the same hierarchical processor."))}function RDt(t,e){var n,i,r,o;for(Vj(),n=null,r=e.Kc();r.Ob();)(i=jz(r.Pb(),128)).o||(Gz((o=new Ezt(FM(i.a),hV(i.a),null,jz(i.d.a.ec().Kc().Pb(),17))).c,i.a),t.c[t.c.length]=o,n&&Gz(n.d,o),n=o)}function FDt(t,e){var n,i,r;if(e)if(4&e.i)for(i="[]",n=e.c;;n=n.c){if(!(4&n.i)){zit(t,r=qv((yN(n),n.o+i))),Lnt(t,r);break}i+="[]"}else zit(t,r=qv((yN(e),e.o))),Lnt(t,r);else zit(t,null),Lnt(t,null);t.yk(e)}function jDt(t,e,n,i,r){var o,a,s,c;return VD(c=cN(t,jz(r,56)))!==VD(r)?(s=jz(t.g[n],72),vP(t,n,cAt(t,n,o=Z3(e,c))),bB(t.e)&&(RCt(a=BZ(t,9,o.ak(),r,c,i,!1),new M9(t.e,9,t.c,s,o,i,!1)),I9(a)),c):r}function $Dt(t,e,n){var i,r,o,a,s,c;for(i=jz(c6(t.c,e),15),r=jz(c6(t.c,n),15),o=i.Zc(i.gc()),a=r.Zc(r.gc());o.Sb()&&a.Sb();)if((s=jz(o.Ub(),19))!=(c=jz(a.Ub(),19)))return yM(s.a,c.a);return o.Ob()||a.Ob()?o.Ob()?1:-1:0}function zDt(t,e){var n,i;try{return U1(t.a,e)}catch(r){if(iP(r=hst(r),32)){try{if(i=hjt(e,FYt,OKt),n=W_(t.a),i>=0&&i<n.length)return n[i]}catch(t){if(!iP(t=hst(t),127))throw $b(t)}return null}throw $b(r)}}function VDt(t,e){var n,i,r;if(r=jHt((STt(),XMe),t.Tg(),e))return Zx(),jz(r,66).Oj()||(r=Z1(j9(XMe,r))),i=jz((n=t.Yg(r))>=0?t._g(n,!0,!0):rIt(t,r,!0),153),jz(i,215).ll(e);throw $b(new Rv(i6t+e.ne()+a6t))}function HDt(){var t;return Jx(),WMe?jz(BMt((Gx(),VBe),K8t),1939):(OI(zte,new Sl),Jqt(),t=jz(iP(AQ((Gx(),VBe),K8t),547)?AQ(VBe,K8t):new qK,547),WMe=!0,sKt(t),CKt(t),WK((Wx(),XBe),t,new qc),bJ(VBe,K8t,t),t)}function qDt(t,e){var n,i,r,o;t.j=-1,bB(t.e)?(n=t.i,o=0!=t.i,i6(t,e),i=new M9(t.e,3,t.c,null,e,n,o),r=e.Qk(t.e,t.c,null),(r=SCt(t,e,r))?(r.Ei(i),r.Fi()):dat(t.e,i)):(i6(t,e),(r=e.Qk(t.e,t.c,null))&&r.Fi())}function UDt(t,e){var n,i,r;if(r=0,(i=e[0])>=t.length)return-1;for(h1(i,t.length),n=t.charCodeAt(i);n>=48&&n<=57&&(r=10*r+(n-48),!(++i>=t.length));)h1(i,t.length),n=t.charCodeAt(i);return i>e[0]?e[0]=i:r=-1,r}function GDt(t){var e,n,r,o,a;return n=o=jz(t.a,19).a,r=a=jz(t.b,19).a,e=i.Math.max(i.Math.abs(o),i.Math.abs(a)),o<=0&&o==a?(n=0,r=a-1):o==-e&&a!=e?(n=a,r=o,a>=0&&++n):(n=-a,r=o),new nD(ndt(n),ndt(r))}function WDt(t,e,n,i){var r,o,a,s,c,l;for(r=0;r<e.o;r++)for(o=r-e.j+n,a=0;a<e.p;a++)if(c=o,l=s=a-e.k+i,c+=t.j,l+=t.k,c>=0&&l>=0&&c<t.o&&l<t.p&&(!wkt(e,r,a)&&nkt(t,o,s)||bkt(e,r,a)&&!ikt(t,o,s)))return!0;return!1}function KDt(t,e,n){var i,r,o,a;o=t.c,a=t.d,r=(Ict(Est(Vy(xxe,1),cYt,8,0,[o.i.n,o.n,o.a])).b+Ict(Est(Vy(xxe,1),cYt,8,0,[a.i.n,a.n,a.a])).b)/2,i=null,i=o.j==(vGt(),aDe)?new PS(e+o.i.c.c.a+n,r):new PS(e-n,r),NO(t.a,0,i)}function YDt(t){var e,n,i;for(e=null,n=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c)])));gBt(n);)if(i=EAt(jz(q4(n),82)),e){if(e!=i)return!1}else e=i;return!0}function XDt(t,e,n){var i;if(++t.j,e>=t.i)throw $b(new Dv(a7t+e+s7t+t.i));if(n>=t.i)throw $b(new Dv(c7t+n+s7t+t.i));return i=t.g[n],e!=n&&(e<n?oVt(t.g,e,t.g,e+1,n-e):oVt(t.g,n+1,t.g,n,e-n),IW(t.g,e,i),t.ei(e,i,n),t.ci()),i}function ZDt(t,e,n){var i;if(i=jz(t.c.xc(e),14))return!!i.Fc(n)&&(++t.d,!0);if((i=t.ic(e)).Fc(n))return++t.d,t.c.zc(e,i),!0;throw $b(new g4("New Collection violated the Collection spec"))}function QDt(t){var e,n,i;return t<0?0:0==t?32:(n=16-(e=(i=-(t>>16))>>16&16),n+=e=(i=(t>>=e)-256)>>16&8,n+=e=(i=(t<<=e)-FXt)>>16&4,(n+=e=(i=(t<<=e)-lYt)>>16&2)+2-(e=(i=(t<<=e)>>14)&~(i>>1)))}function JDt(t){var e,n,i,r;for(CX(),Aoe=new Mb,Coe=new Pb,_oe=new Mb,!t.a&&(t.a=new tG(HIe,t,10,11)),LGt(e=t.a),r=new DP(e);r.e!=r.i.gc();)i=jz(vbt(r),33),-1==y9(Aoe,i,0)&&(n=new Mb,Gz(_oe,n),Nmt(i,n));return _oe}function tIt(t,e,n){var i,r,o,a;t.a=n.b.d,iP(e,352)?(t4(o=VEt(r=rNt(jz(e,79),!1,!1)),i=new Mg(t)),K$t(o,r),null!=e.We((cKt(),SEe))&&t4(jz(e.We(SEe),74),i)):((a=jz(e,470)).Hg(a.Dg()+t.a.a),a.Ig(a.Eg()+t.a.b))}function eIt(t,e){var n,r,o,a,s,c,l,u;for(u=Vv(CN(wxt(e,(zWt(),Mbe)))),l=t[0].n.a+t[0].o.a+t[0].d.c+u,c=1;c<t.length;c++)r=t[c].n,o=t[c].o,n=t[c].d,(a=r.a-n.b-l)<0&&(r.a-=a),(s=e.f).a=i.Math.max(s.a,r.a+o.a),l=r.a+o.a+n.c+u}function nIt(t,e){var n,i,r,o,a,s;return i=jz(jz(OW(t.g,e.a),46).a,65),r=jz(jz(OW(t.g,e.b),46).a,65),(n=JVt(o=i.b,a=r.b))>=0?n:(s=uK(UR(new PS(a.c+a.b/2,a.d+a.a/2),new PS(o.c+o.b/2,o.d+o.a/2))),-(Xjt(o,a)-1)*s)}function iIt(t,e,n){var i;XA(new OH(null,(!n.a&&(n.a=new tG(RIe,n,6,6)),new d1(n.a,16))),new tD(t,e)),XA(new OH(null,(!n.n&&(n.n=new tG(VIe,n,1,7)),new d1(n.n,16))),new eD(t,e)),(i=jz(QBt(n,(cKt(),SEe)),74))&&Xrt(i,t,e)}function rIt(t,e,n){var i,r,o;if(o=jHt((STt(),XMe),t.Tg(),e))return Zx(),jz(o,66).Oj()||(o=Z1(j9(XMe,o))),r=jz((i=t.Yg(o))>=0?t._g(i,!0,!0):rIt(t,o,!0),153),jz(r,215).hl(e,n);throw $b(new Rv(i6t+e.ne()+a6t))}function oIt(t,e,n,i){var r,o,a,s,c;if(r=t.d[e])if(o=r.g,c=r.i,null!=i){for(s=0;s<c;++s)if((a=jz(o[s],133)).Sh()==n&&Pht(i,a.cd()))return a}else for(s=0;s<c;++s)if(VD((a=jz(o[s],133)).cd())===VD(i))return a;return null}function aIt(t,e){var n;if(e<0)throw $b(new Sv("Negative exponent"));if(0==e)return Zee;if(1==e||cgt(t,Zee)||cgt(t,ene))return t;if(!uBt(t,0)){for(n=1;!uBt(t,n);)++n;return Mtt(bgt(n*e),aIt(H4(t,n),e))}return wAt(t,e)}function sIt(t,e){var n,i,r;if(VD(t)===VD(e))return!0;if(null==t||null==e)return!1;if(t.length!=e.length)return!1;for(n=0;n<t.length;++n)if(i=t[n],r=e[n],!(VD(i)===VD(r)||null!=i&&Pht(i,r)))return!1;return!0}function cIt(t){var e,n,i;for(kx(),this.b=Wae,this.c=(jht(),jTe),this.f=(wx(),Hae),this.a=t,Jy(this,new Te),vLt(this),i=new Gf(t.b);i.a<i.c.c.length;)(n=jz(Q1(i),81)).d||(e=new Emt(Est(Vy(Kae,1),zKt,81,0,[n])),Gz(t.a,e))}function lIt(t,e,n){var i,r,o,a,s,c;if(!t||0==t.c.length)return null;for(o=new NZ(e,!n),r=new Gf(t);r.a<r.c.c.length;)i=jz(Q1(r),70),UEt(o,(gx(),new jg(i)));return(a=o.i).a=(c=o.n,o.e.b+c.d+c.a),a.b=(s=o.n,o.e.a+s.b+s.c),o}function uIt(t){var e,n,i,r,o,a,s;for(cB(s=Q0(t.a),new Tn),n=null,o=0,a=(r=s).length;o<a&&(i=r[o]).k==(aEt(),Cse);++o)(e=jz(wxt(i,(lKt(),Khe)),61))!=(vGt(),EDe)&&e!=aDe||(n&&jz(wxt(n,ide),15).Fc(i),n=i)}function hIt(t,e,n){var i,r,o,a,s,c;u1(e,t.c.length),s=jz(t.c[e],329),s6(t,e),s.b/2>=n&&(i=e,o=(c=(s.c+s.a)/2)-n,s.c<=c-n&&kq(t,i++,new kz(s.c,o)),(a=c+n)<=s.a&&(r=new kz(a,s.a),BJ(i,t.c.length),CE(t.c,i,r)))}function dIt(t){var e;if(t.c||null!=t.g){if(null==t.g)return!0;if(0==t.i)return!1;e=jz(t.g[t.i-1],47)}else t.d=t.si(t.f),l8(t,t.d),e=t.d;return e==t.b&&null.km>=null.jm()?(oPt(t),dIt(t)):e.Ob()}function fIt(t,e,n){var i,r,o,a;if(!(a=n)&&(a=BV(new Uk,0)),DAt(a,VJt,1),Bqt(t.c,e),1==(o=Nqt(t.a,e)).gc())KVt(jz(o.Xb(0),37),a);else for(r=1/o.gc(),i=o.Kc();i.Ob();)KVt(jz(i.Pb(),37),wot(a,r));yy(t.a,o,e),jNt(e),zEt(a)}function gIt(t){if(this.a=t,t.c.i.k==(aEt(),Cse))this.c=t.c,this.d=jz(wxt(t.c.i,(lKt(),Khe)),61);else{if(t.d.i.k!=Cse)throw $b(new Rv("Edge "+t+" is not an external edge."));this.c=t.d,this.d=jz(wxt(t.d.i,(lKt(),Khe)),61)}}function pIt(t,e){var n,i,r;r=t.b,t.b=e,4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,3,r,t.b)),e?e!=t&&(Prt(t,e.zb),Bnt(t,e.d),jit(t,null==(n=null==(i=e.c)?e.zb:i)||bF(n,e.zb)?null:n)):(Prt(t,null),Bnt(t,0),jit(t,null))}function mIt(t){var e,n;if(t.f){for(;t.n<t.o;){if(iP(n=(e=jz(t.j?t.j.pi(t.n):t.k.Xb(t.n),72)).ak(),99)&&jz(n,18).Bb&l6t&&(!t.e||n.Gj()!=BIe||0!=n.aj())&&null!=e.dd())return!0;++t.n}return!1}return t.n<t.o}function bIt(t,e){var n;this.e=(GW(),wW(t),GW(),Pgt(t)),this.c=(wW(e),Pgt(e)),rL(this.e.Hd().dc()==this.c.Hd().dc()),this.d=bft(this.e),this.b=bft(this.c),n=kH(Ite,[cYt,zKt],[5,1],5,[this.e.Hd().gc(),this.c.Hd().gc()],2),this.a=n,git(this)}function wIt(t){return!Qte&&(Qte=YGt()),'"'+t.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,(function(t){return TQ(t)}))+'"'}function kIt(t){var e,n;for(EX(),this.b=cie,this.c=uie,this.g=(px(),sie),this.d=(jht(),jTe),this.a=t,kLt(this),n=new Gf(t.b);n.a<n.c.c.length;)!(e=jz(Q1(n),57)).a&&TL(Gnt(new Uw,Est(Vy(hie,1),zKt,57,0,[e])),t),e.e=new gZ(e.d)}function vIt(t){var e,n,i,r,o;for(r=t.e.c.length,i=P7(Nte,JQt,15,r,0,1),o=new Gf(t.e);o.a<o.c.c.length;)i[jz(Q1(o),144).b]=new YA;for(n=new Gf(t.c);n.a<n.c.c.length;)i[(e=jz(Q1(n),282)).c.b].Fc(e),i[e.d.b].Fc(e);return i}function yIt(t){var e,n,i,r,o,a;for(a=sO(t.c.length),r=new Gf(t);r.a<r.c.c.length;){for(i=jz(Q1(r),10),o=new Ow,n=new aU(ZP(hft(i).a.Kc(),new u));gBt(n);)(e=jz(q4(n),17)).c.i==e.d.i||_G(o,e.d.i);a.c[a.c.length]=o}return a}function _It(t,e){var n,i,r,o,a;if(e>=(a=null==(n=jz(kat(t.a,4),126))?0:n.length))throw $b(new JR(e,a));return r=n[e],1==a?i=null:(oVt(n,0,i=P7(dBe,n8t,415,a-1,0,1),0,e),(o=a-e-1)>0&&oVt(n,e+1,i,e,o)),jmt(t,i),eSt(t,e,r),r}function CIt(){CIt=I,cPe=jz(Wet(KX((iC(),fPe).qb),6),34),oPe=jz(Wet(KX(fPe.qb),3),34),aPe=jz(Wet(KX(fPe.qb),4),34),sPe=jz(Wet(KX(fPe.qb),5),18),sCt(cPe),sCt(oPe),sCt(aPe),sCt(sPe),lPe=new Xv(Est(Vy(RBe,1),P8t,170,0,[cPe,oPe]))}function AIt(t,e){var n;this.d=new uk,this.b=e,this.e=new dB(e.qf()),n=t.u.Hc((hDt(),eDe)),t.u.Hc(tDe)?t.D?this.a=n&&!e.If():this.a=!0:t.u.Hc(nDe)?this.a=!!n&&!(e.zf().Kc().Ob()||e.Bf().Kc().Ob()):this.a=!1}function xIt(t,e){var n,i,r,o;for(n=t.o.a,o=jz(jz(c6(t.r,e),21),84).Kc();o.Ob();)(r=jz(o.Pb(),111)).e.a=(i=r.b).Xe((cKt(),rTe))?i.Hf()==(vGt(),EDe)?-i.rf().a-Vv(CN(i.We(rTe))):n+Vv(CN(i.We(rTe))):i.Hf()==(vGt(),EDe)?-i.rf().a:n}function EIt(t,e){var n,i,r;n=jz(wxt(t,(zWt(),qpe)),103),r=jz(QBt(e,obe),61),(i=jz(wxt(t,tbe),98))!=(YCt(),KSe)&&i!=YSe?r==(vGt(),xDe)&&(r=D$t(e,n))==xDe&&(r=lgt(n)):r=GVt(e)>0?lgt(n):Cdt(lgt(n)),Xbt(e,obe,r)}function TIt(t,e){var n,i,r,o,a;for(a=t.j,e.a!=e.b&&bM(a,new Gr),r=a.c.length/2|0,i=0;i<r;i++)u1(i,a.c.length),(o=jz(a.c[i],113)).c&&VSt(o.d,e.a);for(n=r;n<a.c.length;n++)u1(n,a.c.length),(o=jz(a.c[n],113)).c&&VSt(o.d,e.b)}function SIt(t,e,n){var i,r,o;return i=t.c[e.c.p][e.p],r=t.c[n.c.p][n.p],null!=i.a&&null!=r.a?((o=_U(i.a,r.a))<0?aFt(t,e,n):o>0&&aFt(t,n,e),o):null!=i.a?(aFt(t,e,n),-1):null!=r.a?(aFt(t,n,e),1):0}function DIt(t,e){var n,i,r,o;t.ej()?(n=t.Vi(),o=t.fj(),++t.j,t.Hi(n,t.oi(n,e)),i=t.Zi(3,null,e,n,o),t.bj()&&(r=t.cj(e,null))?(r.Ei(i),r.Fi()):t.$i(i)):(tK(t,e),t.bj()&&(r=t.cj(e,null))&&r.Fi())}function IIt(t,e){var n,i,r,o,a;for(a=oOt(t.e.Tg(),e),r=new mc,n=jz(t.g,119),o=t.i;--o>=0;)i=n[o],a.rl(i.ak())&&l8(r,i);!oWt(t,r)&&bB(t.e)&&Bw(t,e.$j()?BZ(t,6,e,(AX(),cne),null,-1,!1):BZ(t,e.Kj()?2:1,e,null,null,-1,!1))}function BIt(){var t,e;for(BIt=I,one=P7(sne,cYt,91,32,0,1),ane=P7(sne,cYt,91,32,0,1),t=1,e=0;e<=18;e++)one[e]=Jmt(t),ane[e]=Jmt(wU(t,e)),t=rft(t,5);for(;e<ane.length;e++)one[e]=Mtt(one[e-1],one[1]),ane[e]=Mtt(ane[e-1],(DNt(),Jee))}function MIt(t,e){var n,i,r,o;return t.a==(Zxt(),ihe)||(r=e.a.c,n=e.a.c+e.a.b,!(e.j&&(o=(i=e.A).c.c.a-i.o.a/2,r-(i.n.a+i.o.a)>o)||e.q&&(o=(i=e.C).c.c.a-i.o.a/2,i.n.a-n>o)))}function PIt(t,e){DAt(e,"Partition preprocessing",1),XA(jz(x5(DY(dtt(DY(new OH(null,new d1(t.a,16)),new wi),new ki),new vi),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15).Oc(),new yi),zEt(e)}function LIt(t){var e,n,i,r,o,a;for(zJ(),n=new m5,i=new Gf(t.e.b);i.a<i.c.c.length;)for(o=new Gf(jz(Q1(i),29).a);o.a<o.c.c.length;)r=jz(Q1(o),10),(e=jz(utt(n,a=t.g[r.p]),15))||Zmt(n,a,e=new Mb),e.Fc(r);return n}function OIt(t,e){var n,i,r,o,a;for(r=e.b.b,t.a=P7(Nte,JQt,15,r,0,1),t.b=P7(DLe,QZt,25,r,16,1),a=cbt(e.b,0);a.b!=a.d.c;)o=jz(h3(a),86),t.a[o.g]=new YA;for(i=cbt(e.a,0);i.b!=i.d.c;)n=jz(h3(i),188),t.a[n.b.g].Fc(n),t.a[n.c.g].Fc(n)}function NIt(t){var e;return 64&t.Db?EMt(t):((e=new lL(EMt(t))).a+=" (startX: ",mC(e,t.j),e.a+=", startY: ",mC(e,t.k),e.a+=", endX: ",mC(e,t.b),e.a+=", endY: ",mC(e,t.c),e.a+=", identifier: ",iI(e,t.d),e.a+=")",e.a)}function RIt(t){var e;return 64&t.Db?vht(t):((e=new lL(vht(t))).a+=" (ordered: ",wC(e,!!(256&t.Bb)),e.a+=", unique: ",wC(e,!!(512&t.Bb)),e.a+=", lowerBound: ",bC(e,t.s),e.a+=", upperBound: ",bC(e,t.t),e.a+=")",e.a)}function FIt(t,e,n,i,r,o,a,s){var c;return iP(t.Cb,88)&&ISt(x4(jz(t.Cb,88)),4),Prt(t,n),t.f=i,Bdt(t,r),Pdt(t,o),Idt(t,a),Mdt(t,!1),Jht(t,!0),Vdt(t,s),Xht(t,!0),Mnt(t,0),t.b=0,Pnt(t,1),(c=zAt(t,e,null))&&c.Fi(),Hdt(t,!1),t}function jIt(t,e){var n,r;return jz(AQ(t.a,e),512)||(n=new w4(e),k4(),PF(n,jIt(t,lO(r=Kne?null:n.c,0,i.Math.max(0,bL(r,XAt(46)))))),0==(Kne?null:n.c).length&&HN(n,new W),bJ(t.a,Kne?null:n.c,n),n)}function $It(t,e){var n;t.b=e,t.g=new Mb,n=ZIt(t.b),t.e=n,t.f=n,t.c=zv(_N(wxt(t.b,(Fyt(),vie)))),t.a=CN(wxt(t.b,(cKt(),iEe))),null==t.a&&(t.a=1),Vv(t.a)>1?t.e*=Vv(t.a):t.f/=Vv(t.a),Tut(t),pmt(t),CRt(t),lct(t.b,(_bt(),goe),t.g)}function zIt(t,e,n){var i,r,o,a,s;for(i=0,s=n,e||(i=n*(t.c.length-1),s*=-1),o=new Gf(t);o.a<o.c.c.length;){for(lct(r=jz(Q1(o),10),(zWt(),kpe),(fwt(),Sxe)),r.o.a=i,a=OEt(r,(vGt(),aDe)).Kc();a.Ob();)jz(a.Pb(),11).n.a=i;i+=s}}function VIt(t,e,n){var i,r,o;t.ej()?(o=t.fj(),Sht(t,e,n),i=t.Zi(3,null,n,e,o),t.bj()?(r=t.cj(n,null),t.ij()&&(r=t.jj(n,r)),r?(r.Ei(i),r.Fi()):t.$i(i)):t.$i(i)):(Sht(t,e,n),t.bj()&&(r=t.cj(n,null))&&r.Fi())}function HIt(t,e,n){var i,r,o,a,s,c;return(s=t.Gk(n))!=n?(a=t.g[e],c=s,vP(t,e,t.oi(e,c)),o=a,t.gi(e,c,o),t.rk()&&(i=n,r=t.dj(i,null),!jz(s,49).eh()&&(r=t.cj(c,r)),r&&r.Fi()),bB(t.e)&&Bw(t,t.Zi(9,n,s,e,!1)),s):n}function qIt(t,e){var n,i,r;for(n=new Gf(t.a.a);n.a<n.c.c.length;)jz(Q1(n),189).g=!0;for(r=new Gf(t.a.b);r.a<r.c.c.length;)(i=jz(Q1(r),81)).k=zv(_N(t.e.Kb(new nD(i,e)))),i.d.g=i.d.g&zv(_N(t.e.Kb(new nD(i,e))));return t}function UIt(t){var e,n,i,r,o;if(n=new YF(e=jz(W_(FDe),9),jz(AR(e,e.length),9),0),o=jz(wxt(t,(lKt(),yde)),10))for(r=new Gf(o.j);r.a<r.c.c.length;)VD(wxt(i=jz(Q1(r),11),fde))===VD(t)&&HL(new b6(i.b))&&srt(n,i.j);return n}function GIt(t,e,n){var i,r,o,a;if(!t.d[n.p]){for(i=new aU(ZP(hft(n).a.Kc(),new u));gBt(i);){for(o=new aU(ZP(uft(a=jz(q4(i),17).d.i).a.Kc(),new u));gBt(o);)(r=jz(q4(o),17)).c.i==e&&(t.a[r.p]=!0);GIt(t,e,a)}t.d[n.p]=!0}}function WIt(t,e){var n,i,r,o,a,s,c;if(1==(i=mft(254&t.Db)))t.Eb=null;else if(o=ent(t.Eb),2==i)r=Nkt(t,e),t.Eb=o[0==r?1:0];else{for(a=P7(Ite,zKt,1,i-1,5,1),n=2,s=0,c=0;n<=128;n<<=1)n==e?++s:t.Db&n&&(a[c++]=o[s++]);t.Eb=a}t.Db&=~e}function KIt(t,e){var n,i,r,o,a;for(!e.s&&(e.s=new tG(RBe,e,21,17)),o=null,r=0,a=(i=e.s).i;r<a;++r)switch(LK(j9(t,n=jz(Wet(i,r),170)))){case 4:case 5:case 6:!o&&(o=new Mb),o.c[o.c.length]=n}return o||(AX(),AX(),cne)}function YIt(t){var e;switch(e=0,t){case 105:e=2;break;case 109:e=8;break;case 115:e=4;break;case 120:e=16;break;case 117:e=32;break;case 119:e=64;break;case 70:e=256;break;case 72:e=128;break;case 88:e=512;break;case 44:e=v6t}return e}function XIt(t,e,n,i,r){var o,a,s,c;if(VD(t)!==VD(e)||i!=r)for(s=0;s<i;s++){for(a=0,o=t[s],c=0;c<r;c++)a=ift(ift(rft(t0(o,UXt),t0(e[c],UXt)),t0(n[s+c],UXt)),t0(fq(a),UXt)),n[s+c]=fq(a),a=vU(a,32);n[s+r]=fq(a)}else Sjt(t,i,n)}function ZIt(t){var e,n,r,o,a,s,c,l,u,h,d;for(h=0,u=0,c=(o=t.a).a.gc(),r=o.a.ec().Kc();r.Ob();)(n=jz(r.Pb(),561)).b&&Kzt(n),h+=(d=(e=n.a).a)+(s=e.b),u+=d*s;return l=i.Math.sqrt(400*c*u-4*u+h*h)+h,0==(a=2*(100*c-1))?l:l/a}function QIt(t,e){0!=e.b&&(isNaN(t.s)?t.s=Vv((xO(0!=e.b),CN(e.a.a.c))):t.s=i.Math.min(t.s,Vv((xO(0!=e.b),CN(e.a.a.c)))),isNaN(t.c)?t.c=Vv((xO(0!=e.b),CN(e.c.b.c))):t.c=i.Math.max(t.c,Vv((xO(0!=e.b),CN(e.c.b.c)))))}function JIt(t){var e,n,i;for(e=null,n=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c)])));gBt(n);)if(i=EAt(jz(q4(n),82)),e){if(e!=XQ(i))return!0}else e=XQ(i);return!1}function tBt(t,e){var n,i,r,o;t.ej()?(n=t.i,o=t.fj(),i6(t,e),i=t.Zi(3,null,e,n,o),t.bj()?(r=t.cj(e,null),t.ij()&&(r=t.jj(e,r)),r?(r.Ei(i),r.Fi()):t.$i(i)):t.$i(i)):(i6(t,e),t.bj()&&(r=t.cj(e,null))&&r.Fi())}function eBt(t,e,n){var i,r,o;t.ej()?(o=t.fj(),++t.j,t.Hi(e,t.oi(e,n)),i=t.Zi(3,null,n,e,o),t.bj()&&(r=t.cj(n,null))?(r.Ei(i),r.Fi()):t.$i(i)):(++t.j,t.Hi(e,t.oi(e,n)),t.bj()&&(r=t.cj(n,null))&&r.Fi())}function nBt(t){var e,n,i,r;for(r=t.length,e=null,i=0;i<r;i++)h1(i,t.length),VI(".*+?{[()|\\^$",XAt(n=t.charCodeAt(i)))>=0?(e||(e=new xy,i>0&&iI(e,t.substr(0,i))),e.a+="\\",MW(e,n&YYt)):e&&MW(e,n&YYt);return e?e.a:t}function iBt(t){var e;if(!t.a)throw $b(new Fv("IDataType class expected for layout option "+t.f));if(null==(e=T3(t.a)))throw $b(new Fv("Couldn't create new instance of property '"+t.f+"'. "+i4t+(yN(uBe),uBe.k)+r4t));return jz(e,414)}function rBt(t){var e,n,i,r,o;return(o=t.eh())&&o.kh()&&(r=tht(t,o))!=o?(n=t.Vg(),i=(e=t.Vg())>=0?t.Qg(null):t.eh().ih(t,-1-e,null,null),t.Rg(jz(r,49),n),i&&i.Fi(),t.Lg()&&t.Mg()&&n>-1&&dat(t,new QU(t,9,n,o,r)),r):o}function oBt(t){var e,n,i,r,o,a,s;for(o=0,r=t.f.e,n=0;n<r.c.length;++n)for(u1(n,r.c.length),a=jz(r.c[n],144),i=n+1;i<r.c.length;++i)u1(i,r.c.length),s=jz(r.c[i],144),e=G7(a.d,s.d)-t.a[a.b][s.b],o+=t.i[a.b][s.b]*e*e;return o}function aBt(t,e){var n;if(!BO(e,(zWt(),kme))&&(n=_yt(jz(wxt(e,tle),360),jz(wxt(t,kme),163)),lct(e,tle,n),!gBt(new aU(ZP(lft(e).a.Kc(),new u)))))switch(n.g){case 1:lct(e,kme,(Cft(),Rde));break;case 2:lct(e,kme,(Cft(),jde))}}function sBt(t,e){var n;wRt(t),t.a=(n=new ay,XA(new OH(null,new d1(e.d,16)),new Sp(n)),n),AOt(t,jz(wxt(e.b,(zWt(),eme)),376)),vwt(t),DBt(t),Byt(t),ywt(t),yHt(t,e),XA(dtt(new OH(null,Y0(AW(t.b).a)),new Kr),new Yr),e.a=!1,t.a=null}function cBt(){gxt.call(this,k6t,(J_(),fIe)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}function lBt(){lBt=I,tBe=new CD(H1t,0),ZIe=new CD("INSIDE_SELF_LOOPS",1),QIe=new CD("MULTI_EDGES",2),XIe=new CD("EDGE_LABELS",3),JIe=new CD("PORTS",4),KIe=new CD("COMPOUND",5),WIe=new CD("CLUSTERS",6),YIe=new CD("DISCONNECTED",7)}function uBt(t,e){var n,i,r;if(0==e)return!!(1&t.a[0]);if(e<0)throw $b(new Sv("Negative bit address"));if((r=e>>5)>=t.d)return t.e<0;if(n=t.a[r],e=1<<(31&e),t.e<0){if(r<(i=Tot(t)))return!1;n=i==r?-n:~n}return!!(n&e)}function hBt(t,e,n,i){var r;jz(n.b,65),jz(n.b,65),jz(i.b,65),jz(i.b,65),MV(r=UR(jM(jz(n.b,65).c),jz(i.b,65).c),zSt(jz(n.b,65),jz(i.b,65),r)),jz(i.b,65),jz(i.b,65),jz(i.b,65).c.a,r.a,jz(i.b,65).c.b,r.b,jz(i.b,65),Det(i.a,new _z(t,e,i))}function dBt(t,e){var n,i,r,o,a,s,c;if(o=e.e)for(n=rBt(o),i=jz(t.g,674),a=0;a<t.i;++a)if(Vwt(c=i[a])==n&&(!c.d&&(c.d=new IP(GBe,c,1)),r=c.d,(s=jz(n.ah(pFt(o,o.Cb,o.Db>>16)),15).Xc(o))<r.i))return dBt(t,jz(Wet(r,s),87));return e}function fBt(t,e,n){var i,r=xKt,o=r[t],a=o instanceof Array?o[0]:null;o&&!a?AKt=o:(!(i=e&&e.prototype)&&(i=xKt[e]),(AKt=zQ(i)).hm=n,!e&&(AKt.im=D),r[t]=AKt);for(var s=3;s<arguments.length;++s)arguments[s].prototype=AKt;a&&(AKt.gm=a)}function gBt(t){for(var e;!jz(wW(t.a),47).Ob();){if(t.d=slt(t),!t.d)return!1;if(t.a=jz(t.d.Pb(),47),iP(t.a,39)){if(e=jz(t.a,39),t.a=e.a,!t.b&&(t.b=new Bb),f3(t.b,t.d),e.b)for(;!Gv(e.b);)f3(t.b,jz(gG(e.b),47));t.d=e.d}}return!0}function pBt(t,e){var n,i,r,o,a;for(o=null==e?0:t.b.se(e),i=null==(n=t.a.get(o))?new Array:n,a=0;a<i.length;a++)if(r=i[a],t.b.re(e,r.cd()))return 1==i.length?(i.length=0,mR(t.a,o)):i.splice(a,1),--t.c,aZ(t.b),r.dd();return null}function mBt(t,e){var n,i,r,o;for(r=1,e.j=!0,o=null,i=new Gf(vft(e));i.a<i.c.c.length;)n=jz(Q1(i),213),t.c[n.c]||(t.c[n.c]=!0,o=Pft(n,e),n.f?r+=mBt(t,o):o.j||n.a!=n.e.e-n.d.e||(n.f=!0,_G(t.p,n),r+=mBt(t,o)));return r}function bBt(t){var e,n,r;for(n=new Gf(t.a.a.b);n.a<n.c.c.length;)e=jz(Q1(n),81),kK(0),(r=0)>0&&((!fB(t.a.c)||!e.n.d)&&(!gB(t.a.c)||!e.n.b)&&(e.g.d+=i.Math.max(0,r/2-.5)),(!fB(t.a.c)||!e.n.a)&&(!gB(t.a.c)||!e.n.c)&&(e.g.a-=r-1))}function wBt(t){var e,n,r,o,a;if(a=Rjt(t,o=new Mb),e=jz(wxt(t,(lKt(),yde)),10))for(r=new Gf(e.j);r.a<r.c.c.length;)VD(wxt(n=jz(Q1(r),11),fde))===VD(t)&&(a=i.Math.max(a,Rjt(n,o)));return 0==o.c.length||lct(t,hde,a),-1!=a?o:null}function kBt(t,e,n){var i,r,o,a,s,c;r=(i=(o=jz(PH(e.e,0),17).c).i).k,s=(a=(c=jz(PH(n.g,0),17).d).i).k,r==(aEt(),xse)?lct(t,(lKt(),cde),jz(wxt(i,cde),11)):lct(t,(lKt(),cde),o),lct(t,(lKt(),lde),s==xse?jz(wxt(a,lde),11):c)}function vBt(t,e){var n,i,r,o;for(n=(o=fq(rft(xYt,nY(fq(rft(null==e?0:Jct(e),EYt)),15))))&t.b.length-1,r=null,i=t.b[n];i;r=i,i=i.a)if(i.d==o&&dK(i.i,e))return r?r.a=i.a:t.b[n]=i.a,ky(i.c,i.f),ew(i.b,i.e),--t.f,++t.e,!0;return!1}function yBt(t,e){var n,i,r,o,a;return e&=63,(i=!!((n=t.h)&TXt))&&(n|=-1048576),e<22?(a=n>>e,o=t.m>>e|n<<22-e,r=t.l>>e|t.m<<22-e):e<44?(a=i?EXt:0,o=n>>e-22,r=t.m>>e-22|n<<44-e):(a=i?EXt:0,o=i?xXt:0,r=n>>e-44),CM(r&xXt,o&xXt,a&EXt)}function _Bt(t){var e,n,r,o,a,s;for(this.c=new Mb,this.d=t,r=NXt,o=NXt,e=RXt,n=RXt,s=cbt(t,0);s.b!=s.d.c;)a=jz(h3(s),8),r=i.Math.min(r,a.a),o=i.Math.min(o,a.b),e=i.Math.max(e,a.a),n=i.Math.max(n,a.b);this.a=new qY(r,o,e-r,n-o)}function CBt(t,e){var n,i,r,o;for(i=new Gf(t.b);i.a<i.c.c.length;)for(o=new Gf(jz(Q1(i),29).a);o.a<o.c.c.length;)for((r=jz(Q1(o),10)).k==(aEt(),Ase)&&l$t(r,e),n=new aU(ZP(hft(r).a.Kc(),new u));gBt(n);)bst(jz(q4(n),17),e)}function ABt(t){var e,n,i;this.c=t,i=jz(wxt(t,(zWt(),qpe)),103),e=Vv(CN(wxt(t,ype))),n=Vv(CN(wxt(t,Nbe))),i==(jht(),RTe)||i==FTe||i==jTe?this.b=e*n:this.b=1/(e*n),this.j=Vv(CN(wxt(t,Dbe))),this.e=Vv(CN(wxt(t,Sbe))),this.f=t.b.c.length}function xBt(t){var e,n;for(t.e=P7(SLe,lXt,25,t.p.c.length,15,1),t.k=P7(SLe,lXt,25,t.p.c.length,15,1),n=new Gf(t.p);n.a<n.c.c.length;)e=jz(Q1(n),10),t.e[e.p]=F3(new aU(ZP(uft(e).a.Kc(),new u))),t.k[e.p]=F3(new aU(ZP(hft(e).a.Kc(),new u)))}function EBt(t){var e,n,i,r,o;for(i=0,t.q=new Mb,e=new Ow,o=new Gf(t.p);o.a<o.c.c.length;){for((r=jz(Q1(o),10)).p=i,n=new aU(ZP(hft(r).a.Kc(),new u));gBt(n);)_G(e,jz(q4(n),17).d.i);e.a.Bc(r),Gz(t.q,new IH(e)),e.a.$b(),++i}}function TBt(){TBt=I,Sye=new GB(20),Tye=new UB((cKt(),UEe),Sye),Pye=new UB(BTe,20),vye=new UB(iEe,gJt),Iye=new UB(pTe,ndt(1)),Mye=new UB(kTe,(cL(),!0)),yye=uEe,Cye=NEe,Aye=jEe,xye=zEe,_ye=LEe,Eye=qEe,Dye=lTe,Nat(),Lye=wye,Bye=mye}function SBt(t,e){var n,i,r,o,a,s,c,l,u;if(t.a.f>0&&iP(e,42)&&(t.a.qj(),o=null==(c=(l=jz(e,42)).cd())?0:Jct(c),a=tR(t.a,o),n=t.a.d[a]))for(i=jz(n.g,367),u=n.i,s=0;s<u;++s)if((r=i[s]).Sh()==o&&r.Fb(l))return SBt(t,l),!0;return!1}function DBt(t){var e,n,i,r;for(r=jz(c6(t.a,(MCt(),Ale)),15).Kc();r.Ob();)eW(t,i=jz(r.Pb(),101),(n=(e=gU(i.k)).Hc((vGt(),sDe))?e.Hc(aDe)?e.Hc(ADe)?e.Hc(EDe)?null:Ile:Mle:Ble:Dle)[0],(Trt(),Ple),0),eW(t,i,n[1],Lle,1),eW(t,i,n[2],Ole,1)}function IBt(t,e){var n,i;ZOt(t,e,n=wFt(e)),nAt(t.a,jz(wxt(mK(e.b),(lKt(),Ade)),230)),djt(t),OCt(t,e),i=P7(SLe,lXt,25,e.b.j.c.length,15,1),cUt(t,e,(vGt(),sDe),i,n),cUt(t,e,aDe,i,n),cUt(t,e,ADe,i,n),cUt(t,e,EDe,i,n),t.a=null,t.c=null,t.b=null}function BBt(){BBt=I,xft(),aCe=new II(_5t,sCe=Q_e),rCe=new II(C5t,(cL(),!0)),ndt(-1),eCe=new II(A5t,ndt(-1)),ndt(-1),nCe=new II(x5t,ndt(-1)),oCe=new II(E5t,!1),cCe=new II(T5t,!0),iCe=new II(S5t,!1),lCe=new II(D5t,-1)}function MBt(t,e,n){switch(e){case 7:return!t.e&&(t.e=new cF(NIe,t,7,4)),cHt(t.e),!t.e&&(t.e=new cF(NIe,t,7,4)),void pW(t.e,jz(n,14));case 8:return!t.d&&(t.d=new cF(NIe,t,8,5)),cHt(t.d),!t.d&&(t.d=new cF(NIe,t,8,5)),void pW(t.d,jz(n,14))}q_t(t,e,n)}function PBt(t,e){var n,i,r,o,a;if(VD(e)===VD(t))return!0;if(!iP(e,15))return!1;if(a=jz(e,15),t.gc()!=a.gc())return!1;for(o=a.Kc(),i=t.Kc();i.Ob();)if(n=i.Pb(),r=o.Pb(),!(VD(n)===VD(r)||null!=n&&Pht(n,r)))return!1;return!0}function LBt(t,e){var n,i,r,o;for((o=jz(x5(dtt(dtt(new OH(null,new d1(e.b,16)),new Rn),new Fn),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15)).Jc(new jn),n=0,r=o.Kc();r.Ob();)-1==(i=jz(r.Pb(),11)).p&&jBt(t,i,n++)}function OBt(t){switch(t.g){case 0:return new xh;case 1:return new lh;case 2:return new ch;case 3:return new vD;case 4:return new Rq;default:throw $b(new Rv("No implementation is available for the node placer "+(null!=t.f?t.f:""+t.g)))}}function NBt(t){switch(t.g){case 0:return new Nq;case 1:return new hh;case 2:return new eh;case 3:return new nh;case 4:return new _D;default:throw $b(new Rv("No implementation is available for the cycle breaker "+(null!=t.f?t.f:""+t.g)))}}function RBt(){RBt=I,b_e=new II(a5t,ndt(0)),w_e=new II(s5t,0),zlt(),f_e=new II(c5t,g_e=s_e),ndt(0),d_e=new II(l5t,ndt(1)),$ot(),k_e=new II(u5t,v_e=U_e),L8(),y_e=new II(h5t,__e=r_e),Dkt(),p_e=new II(d5t,m_e=z_e)}function FBt(t,e,n){var i;i=null,e&&(i=e.d),X_t(t,new fT(e.n.a-i.b+n.a,e.n.b-i.d+n.b)),X_t(t,new fT(e.n.a-i.b+n.a,e.n.b+e.o.b+i.a+n.b)),X_t(t,new fT(e.n.a+e.o.a+i.c+n.a,e.n.b-i.d+n.b)),X_t(t,new fT(e.n.a+e.o.a+i.c+n.a,e.n.b+e.o.b+i.a+n.b))}function jBt(t,e,n){var i,r,o;for(e.p=n,o=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[new $g(e),new Vg(e)])));gBt(o);)-1==(i=jz(q4(o),11)).p&&jBt(t,i,n);if(e.i.k==(aEt(),xse))for(r=new Gf(e.i.j);r.a<r.c.c.length;)(i=jz(Q1(r),11))!=e&&-1==i.p&&jBt(t,i,n)}function $Bt(t){var e,n,r,o,a;if(o=jz(x5(IJ(r1(t)),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15),r=QQt,o.gc()>=2)for(e=CN((n=o.Kc()).Pb());n.Ob();)a=e,e=CN(n.Pb()),r=i.Math.min(r,(kK(e),e-(kK(a),a)));return r}function zBt(t,e){var n,i,r,o,a;n4(i=new YA,e,i.c.b,i.c);do{for(xO(0!=i.b),n=jz(Iet(i,i.a.a),86),t.b[n.g]=1,o=cbt(n.d,0);o.b!=o.d.c;)a=(r=jz(h3(o),188)).c,1==t.b[a.g]?LV(t.a,r):2==t.b[a.g]?t.b[a.g]=1:n4(i,a,i.c.b,i.c)}while(0!=i.b)}function VBt(t,e){var n,i,r;if(VD(e)===VD(wW(t)))return!0;if(!iP(e,15))return!1;if(i=jz(e,15),(r=t.gc())!=i.gc())return!1;if(iP(i,54)){for(n=0;n<r;n++)if(!dK(t.Xb(n),i.Xb(n)))return!1;return!0}return Uwt(t.Kc(),i.Kc())}function HBt(t,e){var n;if(0!=t.c.length){if(2==t.c.length)l$t((u1(0,t.c.length),jz(t.c[0],10)),(Gvt(),vSe)),l$t((u1(1,t.c.length),jz(t.c[1],10)),ySe);else for(n=new Gf(t);n.a<n.c.c.length;)l$t(jz(Q1(n),10),e);t.c=P7(Ite,zKt,1,0,5,1)}}function qBt(t){var e,n;if(2!=t.c.length)throw $b(new Fv("Order only allowed for two paths."));u1(0,t.c.length),e=jz(t.c[0],17),u1(1,t.c.length),n=jz(t.c[1],17),e.d.i!=n.c.i&&(t.c=P7(Ite,zKt,1,0,5,1),t.c[t.c.length]=n,t.c[t.c.length]=e)}function UBt(t,e){var n,i,r,o,a;for(i=new m5,o=A5(new Xv(t.g)).a.ec().Kc();o.Ob();){if(!(r=jz(o.Pb(),10))){SV(e,"There are no classes in a balanced layout.");break}(n=jz(utt(i,a=t.j[r.p]),15))||Zmt(i,a,n=new Mb),n.Fc(r)}return i}function GBt(t,e,n){var i,r,o,a;if(n)for(r=((i=new cU(n.a.length)).b-i.a)*i.c<0?(tE(),_Le):new UP(i);r.Ob();)(o=P2(n,jz(r.Pb(),19).a))&&(a=Rnt(O2(o,D6t),e),WK(t.f,a,o),V6t in o.a&&Bit(a,O2(o,V6t)),xAt(o,a),DSt(o,a))}function WBt(t,e){var n,i,r;for(DAt(e,"Port side processing",1),r=new Gf(t.a);r.a<r.c.c.length;)rzt(jz(Q1(r),10));for(n=new Gf(t.b);n.a<n.c.c.length;)for(i=new Gf(jz(Q1(n),29).a);i.a<i.c.c.length;)rzt(jz(Q1(i),10));zEt(e)}function KBt(t,e,n){var i,r,o,a,s;if(!(r=t.f)&&(r=jz(t.a.a.ec().Kc().Pb(),57)),jyt(r,e,n),1!=t.a.a.gc())for(i=e*n,a=t.a.a.ec().Kc();a.Ob();)(o=jz(a.Pb(),57))!=r&&((s=l3(o)).f.d?(o.d.d+=i+uQt,o.d.a-=i+uQt):s.f.a&&(o.d.a-=i+uQt))}function YBt(t,e,n,r,o){var a,s,c,l,u,h,d,f,g;return s=n-t,c=r-e,l=(a=i.Math.atan2(s,c))+ZQt,u=a-ZQt,h=o*i.Math.sin(l)+t,f=o*i.Math.cos(l)+e,d=o*i.Math.sin(u)+t,g=o*i.Math.cos(u)+e,o6(Est(Vy(xxe,1),cYt,8,0,[new PS(h,f),new PS(d,g)]))}function XBt(t,e,n,r){var o,a,s,c,l,u,h,d;o=n,a=h=e;do{a=t.a[a.p],d=t.g[a.p],c=Vv(t.p[d.p])+Vv(t.d[a.p])-a.d.d,(l=Iit(a,r))&&(u=t.g[l.p],s=Vv(t.p[u.p])+Vv(t.d[l.p])+l.o.b+l.d.a,o=i.Math.min(o,c-(s+NM(t.k,a,l))))}while(h!=a);return o}function ZBt(t,e,n,r){var o,a,s,c,l,u,h,d;o=n,a=h=e;do{a=t.a[a.p],d=t.g[a.p],s=Vv(t.p[d.p])+Vv(t.d[a.p])+a.o.b+a.d.a,(l=Fst(a,r))&&(u=t.g[l.p],c=Vv(t.p[u.p])+Vv(t.d[l.p])-l.d.d,o=i.Math.min(o,c-(s+NM(t.k,a,l))))}while(h!=a);return o}function QBt(t,e){var n,i;return!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),null!=(i=rpt(t.o,e))?i:(iP(n=e.wg(),4)&&(null==n?(!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),Wpt(t.o,e)):(!t.o&&(t.o=new w8((TWt(),CIe),eBe,t,0)),b_t(t.o,e,n))),n)}function JBt(){JBt=I,TSe=new VS("H_LEFT",0),ESe=new VS("H_CENTER",1),DSe=new VS("H_RIGHT",2),LSe=new VS("V_TOP",3),PSe=new VS("V_CENTER",4),MSe=new VS("V_BOTTOM",5),ISe=new VS("INSIDE",6),BSe=new VS("OUTSIDE",7),SSe=new VS("H_PRIORITY",8)}function tMt(t){var e,n,i,r,o,a,s;if((e=t.Hh(K8t))&&null!=(s=AN(rpt((!e.b&&(e.b=new XO((pKt(),wMe),qMe,e)),e.b),"settingDelegates")))){for(n=new Mb,o=0,a=(r=vFt(s,"\\w+")).length;o<a;++o)i=r[o],n.c[n.c.length]=i;return n}return AX(),AX(),cne}function eMt(t,e){var n,i,r,o,a,s,c;if(!e.f)throw $b(new Rv("The input edge is not a tree edge."));for(o=null,r=OKt,i=new Gf(t.d);i.a<i.c.c.length;)s=(n=jz(Q1(i),213)).d,c=n.e,jSt(t,s,e)&&!jSt(t,c,e)&&(a=c.e-s.e-n.a)<r&&(r=a,o=n);return o}function nMt(t){var e,n,i,r,o,a;if(!(t.f.e.c.length<=1)){e=0,r=oBt(t),n=NXt;do{for(e>0&&(r=n),a=new Gf(t.f.e);a.a<a.c.c.length;)zv(_N(wxt(o=jz(Q1(a),144),(iyt(),wae))))||(i=Qjt(t,o),qR(kI(o.d),i));n=oBt(t)}while(!XW(t,e++,r,n))}}function iMt(t,e){var n,i,r;for(DAt(e,"Layer constraint preprocessing",1),n=new Mb,r=new C2(t.a,0);r.b<r.d.gc();)xO(r.b<r.d.gc()),Wst(i=jz(r.d.Xb(r.c=r.b++),10))&&(rAt(i),n.c[n.c.length]=i,lK(r));0==n.c.length||lct(t,(lKt(),Qhe),n),zEt(e)}function rMt(t,e){var n,i,r,o,a;for(o=t.g.a,a=t.g.b,i=new Gf(t.d);i.a<i.c.c.length;)r=(n=jz(Q1(i),70)).n,t.a==(Dst(),ble)||t.i==(vGt(),aDe)?r.a=o:t.a==wle||t.i==(vGt(),EDe)?r.a=o+t.j.a-n.o.a:r.a=o+(t.j.a-n.o.a)/2,r.b=a,qR(r,e),a+=n.o.b+t.e}function oMt(t,e,n){var i,r,o,a;for(DAt(n,"Processor set coordinates",1),t.a=0==e.b.b?1:e.b.b,o=null,i=cbt(e.b,0);!o&&i.b!=i.d.c;)zv(_N(wxt(a=jz(h3(i),86),(VHt(),fye))))&&(o=a,(r=a.e).a=jz(wxt(a,gye),19).a,r.b=0);FEt(t,Lst(o),wot(n,1)),zEt(n)}function aMt(t,e,n){var i,r,o;for(DAt(n,"Processor determine the height for each level",1),t.a=0==e.b.b?1:e.b.b,r=null,i=cbt(e.b,0);!r&&i.b!=i.d.c;)zv(_N(wxt(o=jz(h3(i),86),(VHt(),fye))))&&(r=o);r&&QOt(t,o6(Est(Vy(Yve,1),tJt,86,0,[r])),n),zEt(n)}function sMt(t,e){var n,i,r,o,a;(o=L2(t,"individualSpacings"))&&(!x7(e,(cKt(),ETe))&&(n=new Qs,Xbt(e,ETe,n)),r=jz(QBt(e,ETe),373),i=null,(a=o)&&(i=new _A(a,yrt(a,P7(Yee,cYt,2,0,6,1)))),i&&t4(i,new fD(a,r)))}function cMt(t,e){var n,i,r,o,a,s;return o=null,(Z6t in(a=t).a||Q6t in a.a||O6t in a.a)&&(s=Vst(e),i=L2(a,Z6t),Dgt(new $m(s).a,i),r=L2(a,Q6t),Sgt(new Xm(s).a,r),n=M2(a,O6t),ECt(new Jm(s).a,n),o=n),o}function lMt(t,e){var n,i,r;if(e===t)return!0;if(iP(e,543)){if(r=jz(e,835),t.a.d!=r.a.d||yY(t).gc()!=yY(r).gc())return!1;for(i=yY(r).Kc();i.Ob();)if(i1(t,(n=jz(i.Pb(),416)).a.cd())!=jz(n.a.dd(),14).gc())return!1;return!0}return!1}function uMt(t){var e,n,i,r;return e=i=jz(t.a,19).a,n=r=jz(t.b,19).a,0==i&&0==r?n-=1:-1==i&&r<=0?(e=0,n-=2):i<=0&&r>0?(e-=1,n-=1):i>=0&&r<0?(e+=1,n+=1):i>0&&r>=0?(e-=1,n+=1):(e+=1,n-=1),new nD(ndt(e),ndt(n))}function hMt(t,e){return t.c<e.c?-1:t.c>e.c?1:t.b<e.b?-1:t.b>e.b?1:t.a!=e.a?Jct(t.a)-Jct(e.a):t.d==(K5(),$ke)&&e.d==jke?-1:t.d==jke&&e.d==$ke?1:0}function dMt(t,e){var n,i,r,o,a;return a=(o=e.a).c.i==e.b?o.d:o.c,i=o.c.i==e.b?o.c:o.d,(r=qgt(t.a,a,i))>0&&r<QQt?(n=XBt(t.a,i.i,r,t.c),int(t.a,i.i,-n),n>0):r<0&&-r<QQt&&(n=ZBt(t.a,i.i,-r,t.c),int(t.a,i.i,n),n>0)}function fMt(t,e,n,i){var r,o,a,s,c,l;for(r=(e-t.d)/t.c.c.length,o=0,t.a+=n,t.d=e,l=new Gf(t.c);l.a<l.c.c.length;)s=(c=jz(Q1(l),33)).g,a=c.f,Ent(c,c.i+o*r),Tnt(c,c.j+i*n),xnt(c,c.g+r),Ant(c,t.a),++o,hSt(c,new PS(c.g,c.f),new PS(s,a))}function gMt(t){var e,n,i,r,o,a,s;if(null==t)return null;for(s=t.length,a=P7(BLe,b6t,25,r=(s+1)/2|0,15,1),s%2!=0&&(a[--r]=QNt((h1(s-1,t.length),t.charCodeAt(s-1)))),n=0,i=0;n<r;++n)e=QNt(lY(t,i++)),o=QNt(lY(t,i++)),a[n]=(e<<4|o)<<24>>24;return a}function pMt(t){if(t.pe()){var e=t.c;return e.qe()?t.o="["+e.n:e.pe()?t.o="["+e.ne():t.o="[L"+e.ne()+";",t.b=e.me()+"[]",void(t.k=e.oe()+"[]")}var n=t.j,i=t.d;i=i.split("/"),t.o=jpt(".",[n,jpt("$",i)]),t.b=jpt(".",[n,jpt(".",i)]),t.k=i[i.length-1]}function mMt(t,e){var n,i,r,o,a;for(a=null,o=new Gf(t.e.a);o.a<o.c.c.length;)if((r=jz(Q1(o),121)).b.a.c.length==r.g.a.c.length){for(i=r.e,a=eTt(r),n=r.e-jz(a.a,19).a+1;n<r.e+jz(a.b,19).a;n++)e[n]<e[i]&&(i=n);e[i]<e[r.e]&&(--e[r.e],++e[i],r.e=i)}}function bMt(t){var e,n,r,o,a,s,c;for(r=NXt,n=RXt,e=new Gf(t.e.b);e.a<e.c.c.length;)for(a=new Gf(jz(Q1(e),29).a);a.a<a.c.c.length;)o=jz(Q1(a),10),s=(c=Vv(t.p[o.p]))+Vv(t.b[t.g[o.p].p]),r=i.Math.min(r,c),n=i.Math.max(n,s);return n-r}function wMt(t,e,n,i){var r,o,a,s,c;for(s=0,c=(r=yFt(t,e)).gc();s<c;++s)if(bF(i,kY(j9(t,o=jz(r.Xb(s),170)))))if(a=vY(j9(t,o)),null==n){if(null==a)return o}else if(bF(n,a))return o;return null}function kMt(t,e,n,i){var r,o,a,s,c;for(s=0,c=(r=_Ft(t,e)).gc();s<c;++s)if(bF(i,kY(j9(t,o=jz(r.Xb(s),170)))))if(a=vY(j9(t,o)),null==n){if(null==a)return o}else if(bF(n,a))return o;return null}function vMt(t,e,n){var i,r,o,a,s,c;if(a=new mc,s=oOt(t.e.Tg(),e),i=jz(t.g,119),Zx(),jz(e,66).Oj())for(o=0;o<t.i;++o)r=i[o],s.rl(r.ak())&&l8(a,r);else for(o=0;o<t.i;++o)r=i[o],s.rl(r.ak())&&(c=r.dd(),l8(a,n?jDt(t,e,o,a.i,c):c));return M3(a)}function yMt(t,e){var n,i,r,o;for(n=new zft(oue),BTt(),r=0,o=(i=Est(Vy(oue,1),BYt,227,0,[Zle,Jle,Xle,Qle,tue,Yle])).length;r<o;++r)dR(n,i[r],new Mb);return XA(IY(DY(dtt(new OH(null,new d1(t.b,16)),new Jn),new ti),new cp(e)),new lp(n)),n}function _Mt(t,e,n){var r,o,a,s,c,l,u,h;for(a=e.Kc();a.Ob();)l=(o=jz(a.Pb(),33)).i+o.g/2,h=o.j+o.f/2,c=l-((s=t.f).i+s.g/2),u=h-(s.j+s.f/2),r=i.Math.sqrt(c*c+u*u),c*=t.e/r,u*=t.e/r,n?(l-=c,h-=u):(l+=c,h+=u),Ent(o,l-o.g/2),Tnt(o,h-o.f/2)}function CMt(t){var e,n,i;if(!t.c&&null!=t.b){for(e=t.b.length-4;e>=0;e-=2)for(n=0;n<=e;n+=2)(t.b[n]>t.b[n+2]||t.b[n]===t.b[n+2]&&t.b[n+1]>t.b[n+3])&&(i=t.b[n+2],t.b[n+2]=t.b[n],t.b[n]=i,i=t.b[n+3],t.b[n+3]=t.b[n+1],t.b[n+1]=i);t.c=!0}}function AMt(t,e){var n,i,r,o,a,s;for(o=(1==e?Gae:Uae).a.ec().Kc();o.Ob();)for(r=jz(o.Pb(),103),s=jz(c6(t.f.c,r),21).Kc();s.Ob();)switch(a=jz(s.Pb(),46),i=jz(a.b,81),n=jz(a.a,189).c,r.g){case 2:case 1:i.g.d+=n;break;case 4:case 3:i.g.c+=n}}function xMt(t,e){var n,i,r,o,a,s,c,l,u;for(l=-1,u=0,s=0,c=(a=t).length;s<c;++s){for(o=a[s],n=new kV(-1==l?t[0]:t[l],e,(Aut(),owe)),i=0;i<o.length;i++)for(r=i+1;r<o.length;r++)BO(o[i],(lKt(),dde))&&BO(o[r],dde)&&uWt(n,o[i],o[r])>0&&++u;++l}return u}function EMt(t){var e;return(e=new uL(Q_(t.gm))).a+="@",aI(e,(Jct(t)>>>0).toString(16)),t.kh()?(e.a+=" (eProxyURI: ",oI(e,t.qh()),t.$g()&&(e.a+=" eClass: ",oI(e,t.$g())),e.a+=")"):t.$g()&&(e.a+=" (eClass: ",oI(e,t.$g()),e.a+=")"),e.a}function TMt(t){var e,n,i;if(t.e)throw $b(new Fv((yN(gie),IZt+gie.k+BZt)));for(t.d==(jht(),jTe)&&CUt(t,RTe),n=new Gf(t.a.a);n.a<n.c.c.length;)(e=jz(Q1(n),307)).g=e.i;for(i=new Gf(t.a.b);i.a<i.c.c.length;)jz(Q1(i),57).i=RXt;return t.b.Le(t),t}function SMt(t,e){var n,i,r,o,a;if(e<2*t.b)throw $b(new Rv("The knot vector must have at least two time the dimension elements."));for(t.f=1,r=0;r<t.b;r++)Gz(t.e,0);for(n=a=e+1-2*t.b,o=1;o<a;o++)Gz(t.e,o/n);if(t.d)for(i=0;i<t.b;i++)Gz(t.e,1)}function DMt(t,e){var n,i,r,o,a;if(o=e,!(a=jz(Uit(xW(t.i),o),33)))throw $b(new ty("Unable to find elk node for json object '"+O2(o,V6t)+"' Panic!"));i=M2(o,"edges"),MDt((n=new oD(t,a)).a,n.b,i),r=M2(o,I6t),Oyt(new Mm(t).a,r)}function IMt(t,e,n,i){var r,o,a,s,c;if(null!=i){if(r=t.d[e])for(o=r.g,c=r.i,s=0;s<c;++s)if((a=jz(o[s],133)).Sh()==n&&Pht(i,a.cd()))return s}else if(r=t.d[e])for(o=r.g,c=r.i,s=0;s<c;++s)if(VD((a=jz(o[s],133)).cd())===VD(i))return s;return-1}function BMt(t,e){var n,i;return iP(n=null==e?zD(DZ(t.f,null)):cE(t.g,e),235)?((i=jz(n,235)).Qh(),i):iP(n,498)?((i=jz(n,1938).a)&&(null==i.yb||(null==e?ySt(t.f,null,i):aft(t.g,e,i))),i):null}function MMt(t){var e,n,i,r,o,a,s;if(RNt(),null==t)return null;if((r=t.length)%2!=0)return null;for(e=W9(t),n=P7(BLe,b6t,25,o=r/2|0,15,1),i=0;i<o;i++){if(-1==(a=WPe[e[2*i]]))return null;if(-1==(s=WPe[e[2*i+1]]))return null;n[i]=(a<<4|s)<<24>>24}return n}function PMt(t,e,n){var i,r,o;if(!(r=jz(aY(t.i,e),306)))if(r=new fet(t.d,e,n),bq(t.i,e,r),omt(e))yP(t.a,e.c,e.b,r);else switch(o=MTt(e),i=jz(aY(t.p,o),244),o.g){case 1:case 3:r.j=!0,vv(i,e.b,r);break;case 4:case 2:r.k=!0,vv(i,e.c,r)}return r}function LMt(t,e,n,i){var r,o,a,s,c,l;if(s=new mc,c=oOt(t.e.Tg(),e),r=jz(t.g,119),Zx(),jz(e,66).Oj())for(a=0;a<t.i;++a)o=r[a],c.rl(o.ak())&&l8(s,o);else for(a=0;a<t.i;++a)o=r[a],c.rl(o.ak())&&(l=o.dd(),l8(s,i?jDt(t,e,a,s.i,l):l));return Ygt(s,n)}function OMt(t,e){var n,r,o,a,s,c;if((r=t.b[e.p])>=0)return r;for(o=1,a=new Gf(e.j);a.a<a.c.c.length;)for(n=new Gf(jz(Q1(a),11).g);n.a<n.c.c.length;)e!=(c=jz(Q1(n),17).d.i)&&(s=OMt(t,c),o=i.Math.max(o,s+1));return ngt(t,e,o),o}function NMt(t,e,n){var i,r,o;for(i=1;i<t.c.length;i++){for(u1(i,t.c.length),o=jz(t.c[i],10),r=i;r>0&&e.ue((u1(r-1,t.c.length),jz(t.c[r-1],10)),o)>0;)i4(t,r,(u1(r-1,t.c.length),jz(t.c[r-1],10))),--r;u1(r,t.c.length),t.c[r]=o}n.a=new Pb,n.b=new Pb}function RMt(t,e,n){var i,r,o,a,s,c,l;for(l=new YF(i=jz(e.e&&e.e(),9),jz(AR(i,i.length),9),0),a=0,s=(o=vFt(n,"[\\[\\]\\s,]+")).length;a<s;++a)if(0!=Nxt(r=o[a]).length){if(null==(c=zDt(t,r)))return null;srt(l,jz(c,22))}return l}function FMt(t){var e,n,r;for(n=new Gf(t.a.a.b);n.a<n.c.c.length;)e=jz(Q1(n),81),kK(0),(r=0)>0&&((!fB(t.a.c)||!e.n.d)&&(!gB(t.a.c)||!e.n.b)&&(e.g.d-=i.Math.max(0,r/2-.5)),(!fB(t.a.c)||!e.n.a)&&(!gB(t.a.c)||!e.n.c)&&(e.g.a+=i.Math.max(0,r-1)))}function jMt(t,e,n){var i;if(2==(t.c-t.b&t.a.length-1))e==(vGt(),sDe)||e==aDe?(yet(jz(_ct(t),15),(Gvt(),vSe)),yet(jz(_ct(t),15),ySe)):(yet(jz(_ct(t),15),(Gvt(),ySe)),yet(jz(_ct(t),15),vSe));else for(i=new hY(t);i.a!=i.b;)yet(jz(Fut(i),15),n)}function $Mt(t,e){var n,i,r,o,a,s;for(a=new C2(i=$z(new sb(t)),i.c.length),s=new C2(r=$z(new sb(e)),r.c.length),o=null;a.b>0&&s.b>0&&(xO(a.b>0),n=jz(a.a.Xb(a.c=--a.b),33),xO(s.b>0),n==jz(s.a.Xb(s.c=--s.b),33));)o=n;return o}function zMt(t,e){var n,r,o,a;return o=t.a*oZt+1502*t.b,a=t.b*oZt+11,o+=n=i.Math.floor(a*aZt),a-=n*sZt,o%=sZt,t.a=o,t.b=a,e<=24?i.Math.floor(t.a*Sne[e]):((r=t.a*(1<<e-24)+i.Math.floor(t.b*Dne[e]))>=2147483648&&(r-=GXt),r)}function VMt(t,e,n){var i,r,o,a;d0(t,e)>d0(t,n)?(i=oft(n,(vGt(),aDe)),t.d=i.dc()?0:oH(jz(i.Xb(0),11)),a=oft(e,EDe),t.b=a.dc()?0:oH(jz(a.Xb(0),11))):(r=oft(n,(vGt(),EDe)),t.d=r.dc()?0:oH(jz(r.Xb(0),11)),o=oft(e,aDe),t.b=o.dc()?0:oH(jz(o.Xb(0),11)))}function HMt(t){var e,n,i,r,o,a,s;if(t&&(e=t.Hh(K8t))&&null!=(a=AN(rpt((!e.b&&(e.b=new XO((pKt(),wMe),qMe,e)),e.b),"conversionDelegates")))){for(s=new Mb,r=0,o=(i=vFt(a,"\\w+")).length;r<o;++r)n=i[r],s.c[s.c.length]=n;return s}return AX(),AX(),cne}function qMt(t,e){var n,i,r,o;for(n=t.o.a,o=jz(jz(c6(t.r,e),21),84).Kc();o.Ob();)(r=jz(o.Pb(),111)).e.a=n*Vv(CN(r.b.We(Bre))),r.e.b=(i=r.b).Xe((cKt(),rTe))?i.Hf()==(vGt(),sDe)?-i.rf().b-Vv(CN(i.We(rTe))):Vv(CN(i.We(rTe))):i.Hf()==(vGt(),sDe)?-i.rf().b:0}function UMt(t){var e,n,i,r,o,a,s,c;e=!0,r=null,o=null;t:for(c=new Gf(t.a);c.a<c.c.c.length;)for(i=new aU(ZP(uft(s=jz(Q1(c),10)).a.Kc(),new u));gBt(i);){if(n=jz(q4(i),17),r&&r!=s){e=!1;break t}if(r=s,a=n.c.i,o&&o!=a){e=!1;break t}o=a}return e}function GMt(t,e,n){var i,r,o,a,s,c;for(o=-1,s=-1,a=0;a<e.c.length&&(u1(a,e.c.length),!((r=jz(e.c[a],329)).c>t.c));a++)r.a>=t.s&&(o<0&&(o=a),s=a);return c=(t.s+t.c)/2,o>=0&&(c=zx((u1(i=XRt(t,e,o,s),e.c.length),jz(e.c[i],329))),hIt(e,i,n)),c}function WMt(){WMt=I,uCe=new UB((cKt(),iEe),1.3),gCe=vEe,TCe=new GB(15),ECe=new UB(UEe,TCe),ICe=new UB(BTe,15),hCe=cEe,vCe=NEe,yCe=jEe,_Ce=zEe,kCe=LEe,CCe=qEe,SCe=lTe,BBt(),xCe=aCe,wCe=rCe,ACe=oCe,DCe=cCe,pCe=iCe,mCe=EEe,bCe=TEe,fCe=nCe,dCe=eCe,BCe=lCe}function KMt(t,e,n){var i,r,o,a,s;for($it(r=new _c,(kK(e),e)),!r.b&&(r.b=new XO((pKt(),wMe),qMe,r)),s=r.b,a=1;a<n.length;a+=2)b_t(s,n[a-1],n[a]);for(!t.Ab&&(t.Ab=new tG(OBe,t,0,3)),i=t.Ab,o=0;o<0;++o)i=bK(jz(Wet(i,i.i-1),590));l8(i,r)}function YMt(t,e,n){var i,r,o;for(BN.call(this,new Mb),this.a=e,this.b=n,this.e=t,t.b&&Kzt(t),i=t.a,this.d=XY(i.a,this.a),this.c=XY(i.b,this.b),sft(this,this.d,this.c),wDt(this),o=this.e.e.a.ec().Kc();o.Ob();)(r=jz(o.Pb(),266)).c.c.length>0&&LHt(this,r)}function XMt(t,e,n,i,r,o){var a,s,c;if(!r[e.b]){for(r[e.b]=!0,!(a=i)&&(a=new w6),Gz(a.e,e),c=o[e.b].Kc();c.Ob();)(s=jz(c.Pb(),282)).d!=n&&s.c!=n&&(s.c!=e&&XMt(t,s.c,e,a,r,o),s.d!=e&&XMt(t,s.d,e,a,r,o),Gz(a.c,s),pst(a.d,s.b));return a}return null}function ZMt(t){var e,n,i;for(e=0,n=new Gf(t.e);n.a<n.c.c.length;)a4(new OH(null,new d1(jz(Q1(n),17).b,16)),new bn)&&++e;for(i=new Gf(t.g);i.a<i.c.c.length;)a4(new OH(null,new d1(jz(Q1(i),17).b,16)),new wn)&&++e;return e>=2}function QMt(t,e){var n,i,r,o;for(DAt(e,"Self-Loop pre-processing",1),i=new Gf(t.a);i.a<i.c.c.length;)Rft(n=jz(Q1(i),10))&&(o=new Dmt(n),lct(n,(lKt(),Sde),o),vjt(o),XA(IY(dtt(new OH(null,new d1((r=o).d,16)),new Vi),new Hi),new qi),nOt(r));zEt(e)}function JMt(t,e,n,i,r){var o,a,s,c,l;for(o=t.c.d.j,a=jz(Obt(n,0),8),l=1;l<n.b;l++)c=jz(Obt(n,l),8),n4(i,a,i.c.b,i.c),s=kP(qR(new dB(a),c),.5),qR(s,kP(new UJ(llt(o)),r)),n4(i,s,i.c.b,i.c),a=c,o=0==e?Adt(o):_dt(o);LV(i,(xO(0!=n.b),jz(n.c.b.c,8)))}function tPt(t){return JBt(),!(Tat(SQ(yq(ISe,Est(Vy(VSe,1),BYt,93,0,[BSe])),t))>1||Tat(SQ(yq(TSe,Est(Vy(VSe,1),BYt,93,0,[ESe,DSe])),t))>1||Tat(SQ(yq(LSe,Est(Vy(VSe,1),BYt,93,0,[PSe,MSe])),t))>1)}function ePt(t,e){var n,i,r;return(n=e.Hh(t.a))&&null!=(r=AN(rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),"affiliation")))?-1==(i=bL(r,XAt(35)))?adt(t,rU(t,Uet(e.Hj())),r):0==i?adt(t,null,r.substr(1)):adt(t,r.substr(0,i),r.substr(i+1)):null}function nPt(t){var e,n;try{return null==t?qKt:$ft(t)}catch(i){if(iP(i=hst(i),102))return e=i,n=Q_(tlt(t))+"@"+(IA(),(ewt(t)>>>0).toString(16)),Rmt(yst(),(ux(),"Exception during lenientFormat for "+n),e),"<"+n+" threw "+Q_(e.gm)+">";throw $b(i)}}function iPt(t){switch(t.g){case 0:return new oh;case 1:return new th;case 2:return new Ix;case 3:return new Io;case 4:return new OR;case 5:return new ah;default:throw $b(new Rv("No implementation is available for the layerer "+(null!=t.f?t.f:""+t.g)))}}function rPt(t,e,n){var i,r,o;for(o=new Gf(t.t);o.a<o.c.c.length;)(i=jz(Q1(o),268)).b.s<0&&i.c>0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&LV(e,i.b));for(r=new Gf(t.i);r.a<r.c.c.length;)(i=jz(Q1(r),268)).a.s<0&&i.c>0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&LV(n,i.a))}function oPt(t){var e,n,i;if(null==t.g&&(t.d=t.si(t.f),l8(t,t.d),t.c))return t.f;if(i=(e=jz(t.g[t.i-1],47)).Pb(),t.e=e,(n=t.si(i)).Ob())t.d=n,l8(t,n);else for(t.d=null;!e.Ob()&&(IW(t.g,--t.i,null),0!=t.i);)e=jz(t.g[t.i-1],47);return i}function aPt(t,e){var n,i,r,o,a,s;if(r=(i=e).ak(),BOt(t.e,r)){if(r.hi()&&V3(t,r,i.dd()))return!1}else for(s=oOt(t.e.Tg(),r),n=jz(t.g,119),o=0;o<t.i;++o)if(a=n[o],s.rl(a.ak()))return!Pht(a,i)&&(jz(swt(t,o,e),72),!0);return l8(t,e)}function sPt(t,e,n,r){var o,a,s;for(Fd(o=new Bwt(t),(aEt(),Ase)),lct(o,(lKt(),fde),e),lct(o,xde,r),lct(o,(zWt(),tbe),(YCt(),USe)),lct(o,cde,e.c),lct(o,lde,e.d),qOt(e,o),s=i.Math.floor(n/2),a=new Gf(o.j);a.a<a.c.c.length;)jz(Q1(a),11).n.b=s;return o}function cPt(t,e){var n,i,r,o,a,s,c,l,u;for(c=sO(t.c-t.b&t.a.length-1),l=null,u=null,o=new hY(t);o.a!=o.b;)r=jz(Fut(o),10),n=(s=jz(wxt(r,(lKt(),cde)),11))?s.i:null,i=(a=jz(wxt(r,lde),11))?a.i:null,l==n&&u==i||(HBt(c,e),l=n,u=i),c.c[c.c.length]=r;HBt(c,e)}function lPt(t){var e,n,r,o,a,s;for(e=0,n=new Gf(t.a);n.a<n.c.c.length;)for(o=new aU(ZP(hft(jz(Q1(n),10)).a.Kc(),new u));gBt(o);)t==(r=jz(q4(o),17)).d.i.c&&r.c.j==(vGt(),EDe)&&(a=g1(r.c).b,s=g1(r.d).b,e=i.Math.max(e,i.Math.abs(s-a)));return e}function uPt(t,e,n){var i,r;DAt(n,"Remove overlaps",1),n.n&&e&&w0(n,a2(e),($lt(),oIe)),i=jz(QBt(e,(dN(),Wye)),33),t.f=i,t.a=_wt(jz(QBt(e,(Uvt(),O_e)),293)),tf(t,(kK(r=CN(QBt(e,(cKt(),BTe)))),r)),GUt(t,e,fNt(i),n),n.n&&e&&w0(n,a2(e),($lt(),oIe))}function hPt(t,e,n){switch(n.g){case 1:return new PS(e.a,i.Math.min(t.d.b,e.b));case 2:return new PS(i.Math.max(t.c.a,e.a),e.b);case 3:return new PS(e.a,i.Math.max(t.c.b,e.b));case 4:return new PS(i.Math.min(e.a,t.d.a),e.b)}return new PS(e.a,e.b)}function dPt(t,e,n,i){var r,o,a,s,c,l,u,h,d;for(h=i?(vGt(),EDe):(vGt(),aDe),r=!1,l=0,u=(c=e[n]).length;l<u;++l)BF(jz(wxt(s=c[l],(zWt(),tbe)),98))||(a=s.e,(d=!oft(s,h).dc()&&!!a)&&(o=VCt(a),t.b=new qCt(o,i?0:o.length-1)),r|=rjt(t,s,h,d));return r}function fPt(t){var e,n,i;for(Gz(e=sO(1+(!t.c&&(t.c=new tG(qIe,t,9,9)),t.c).i),(!t.d&&(t.d=new cF(NIe,t,8,5)),t.d)),i=new DP((!t.c&&(t.c=new tG(qIe,t,9,9)),t.c));i.e!=i.i.gc();)Gz(e,(!(n=jz(vbt(i),118)).d&&(n.d=new cF(NIe,n,8,5)),n.d));return wW(e),new SI(e)}function gPt(t){var e,n,i;for(Gz(e=sO(1+(!t.c&&(t.c=new tG(qIe,t,9,9)),t.c).i),(!t.e&&(t.e=new cF(NIe,t,7,4)),t.e)),i=new DP((!t.c&&(t.c=new tG(qIe,t,9,9)),t.c));i.e!=i.i.gc();)Gz(e,(!(n=jz(vbt(i),118)).e&&(n.e=new cF(NIe,n,7,4)),n.e));return wW(e),new SI(e)}function pPt(t){var e,n,i,r;if(null==t)return null;if(i=jzt(t,!0),r=L9t.length,bF(i.substr(i.length-r,r),L9t))if(4==(n=i.length)){if(h1(0,i.length),43==(e=i.charCodeAt(0)))return jPe;if(45==e)return FPe}else if(3==n)return jPe;return dEt(i)}function mPt(t){var e,n,i,r;for(e=0,n=0,r=new Gf(t.j);r.a<r.c.c.length;)if(e=fq(ift(e,z6(DY(new OH(null,new d1((i=jz(Q1(r),11)).e,16)),new Qo)))),n=fq(ift(n,z6(DY(new OH(null,new d1(i.g,16)),new Jo)))),e>1||n>1)return 2;return e+n==1?2:0}function bPt(t,e,n){var i,r,o,a;for(DAt(n,"ELK Force",1),zv(_N(QBt(e,(uRt(),Goe))))||vQ(new _g((Vx(),new Lv(e)))),vyt(a=uct(e)),qct(t,jz(wxt(a,Voe),424)),r=(o=z$t(t.a,a)).Kc();r.Ob();)i=jz(r.Pb(),231),EFt(t.b,i,wot(n,1/o.gc()));xGt(a=HGt(o)),zEt(n)}function wPt(t,e){var n,i,r;if(DAt(e,"Breaking Point Processor",1),DUt(t),zv(_N(wxt(t,(zWt(),Vbe))))){for(i=new Gf(t.b);i.a<i.c.c.length;)for(n=0,r=new Gf(jz(Q1(i),29).a);r.a<r.c.c.length;)jz(Q1(r),10).p=n++;sVt(t),zOt(t,!0),zOt(t,!1)}zEt(e)}function kPt(t,e,n){var i,r,o,a,s;for(a=t.c,o=(n.q?n.q:(AX(),AX(),lne)).vc().Kc();o.Ob();)r=jz(o.Pb(),42),!vC(DY(new OH(null,new d1(a,16)),new rg(new BS(e,r)))).sd((fx(),Jne))&&(iP(s=r.dd(),4)&&null!=(i=Zpt(s))&&(s=i),e.Ye(jz(r.cd(),146),s))}function vPt(t,e){var n,i,r,o;if(e){for(o=!(r=iP(t.Cb,88)||iP(t.Cb,99))&&iP(t.Cb,322),n=new DP((!e.a&&(e.a=new rq(e,GBe,e)),e.a));n.e!=n.i.gc();)if(i=h$t(jz(vbt(n),87)),r?iP(i,88):o?iP(i,148):i)return i;return r?(pKt(),dMe):(pKt(),lMe)}return null}function yPt(t,e){var n,i,r,o,a;for(DAt(e,"Constraints Postprocessor",1),o=0,r=new Gf(t.b);r.a<r.c.c.length;){for(a=0,i=new Gf(jz(Q1(r),29).a);i.a<i.c.c.length;)(n=jz(Q1(i),10)).k==(aEt(),Ese)&&(lct(n,(zWt(),vme),ndt(o)),lct(n,jpe,ndt(a)),++a);++o}zEt(e)}function _Pt(t,e,n,i){var r,o,a,s,c,l;for(UR(s=new PS(n,i),jz(wxt(e,(VHt(),Qve)),8)),l=cbt(e.b,0);l.b!=l.d.c;)qR((c=jz(h3(l),86)).e,s),LV(t.b,c);for(a=cbt(e.a,0);a.b!=a.d.c;){for(r=cbt((o=jz(h3(a),188)).a,0);r.b!=r.d.c;)qR(jz(h3(r),8),s);LV(t.a,o)}}function CPt(t,e,n){var i,r,o;if(!(o=jHt((STt(),XMe),t.Tg(),e)))throw $b(new Rv(i6t+e.ne()+r6t));if(Zx(),!jz(o,66).Oj()&&!(o=Z1(j9(XMe,o))))throw $b(new Rv(i6t+e.ne()+r6t));r=jz((i=t.Yg(o))>=0?t._g(i,!0,!0):rIt(t,o,!0),153),jz(r,215).ml(e,n)}function APt(t,e){var n,i,r,o,a;for(n=new Mb,r=dtt(new OH(null,new d1(t,16)),new Aa),o=dtt(new OH(null,new d1(t,16)),new xa),a=C9($6(BY(xLt(Est(Vy(tie,1),zKt,833,0,[r,o])),new Ea))),i=1;i<a.length;i++)a[i]-a[i-1]>=2*e&&Gz(n,new kz(a[i-1]+e,a[i]-e));return n}function xPt(t,e,n){DAt(n,"Eades radial",1),n.n&&e&&w0(n,a2(e),($lt(),oIe)),t.d=jz(QBt(e,(dN(),Wye)),33),t.c=Vv(CN(QBt(e,(Uvt(),L_e)))),t.e=_wt(jz(QBt(e,O_e),293)),t.a=hgt(jz(QBt(e,R_e),426)),t.b=V_t(jz(QBt(e,I_e),340)),i_t(t),n.n&&e&&w0(n,a2(e),($lt(),oIe))}function EPt(t,e,n){var i,r,o,a,s;if(n)for(o=((i=new cU(n.a.length)).b-i.a)*i.c<0?(tE(),_Le):new UP(i);o.Ob();)(r=P2(n,jz(o.Pb(),19).a))&&(Bit(a=I3(t,(J_(),s=new yk,!!e&&$Pt(s,e),s),r),O2(r,V6t)),xAt(r,a),DSt(r,a),Lct(t,r,a))}function TPt(t){var e,n,i,r;if(!t.j){if(r=new Dc,null==(e=AMe).a.zc(t,e)){for(i=new DP(kZ(t));i.e!=i.i.gc();)pW(r,TPt(n=jz(vbt(i),26))),l8(r,n);e.a.Bc(t)}rut(r),t.j=new MI((jz(Wet(KX((KW(),QBe).o),11),18),r.i),r.g),x4(t).b&=-33}return t.j}function SPt(t){var e,n,i,r;if(null==t)return null;if(i=jzt(t,!0),r=L9t.length,bF(i.substr(i.length-r,r),L9t))if(4==(n=i.length)){if(h1(0,i.length),43==(e=i.charCodeAt(0)))return zPe;if(45==e)return $Pe}else if(3==n)return zPe;return new Lw(i)}function DPt(t){var e,n,i;return(n=t.l)&n-1||(i=t.m)&i-1||(e=t.h)&e-1||0==e&&0==i&&0==n?-1:0==e&&0==i&&0!=n?pit(n):0==e&&0!=i&&0==n?pit(i)+22:0!=e&&0==i&&0==n?pit(e)+44:-1}function IPt(t,e){var n,i,r,o;for(DAt(e,"Edge joining",1),n=zv(_N(wxt(t,(zWt(),Lbe)))),i=new Gf(t.b);i.a<i.c.c.length;)for(o=new C2(jz(Q1(i),29).a,0);o.b<o.d.gc();)xO(o.b<o.d.gc()),(r=jz(o.d.Xb(o.c=o.b++),10)).k==(aEt(),xse)&&(iqt(r,n),lK(o));zEt(e)}function BPt(t,e,n){var i;if(c2(t.b),EG(t.b,(Eft(),$Ce),(Sx(),VAe)),EG(t.b,zCe,e.g),EG(t.b,VCe,e.a),t.a=BHt(t.b,e),DAt(n,"Compaction by shrinking a tree",t.a.c.length),e.i.c.length>1)for(i=new Gf(t.a);i.a<i.c.c.length;)jz(Q1(i),51).pf(e,wot(n,1));zEt(n)}function MPt(t,e){var n,i,r,o,a;for(r=e.a&t.f,o=null,i=t.b[r];;i=i.b){if(i==e){o?o.b=e.b:t.b[r]=e.b;break}o=i}for(a=e.f&t.f,o=null,n=t.c[a];;n=n.d){if(n==e){o?o.d=e.d:t.c[a]=e.d;break}o=n}e.e?e.e.c=e.c:t.a=e.c,e.c?e.c.e=e.e:t.e=e.e,--t.i,++t.g}function PPt(t){var e,n,r,o,a,s,c,l,u,h;for(n=t.o,e=t.p,s=OKt,o=FYt,c=OKt,a=FYt,u=0;u<n;++u)for(h=0;h<e;++h)bkt(t,u,h)&&(s=i.Math.min(s,u),o=i.Math.max(o,u),c=i.Math.min(c,h),a=i.Math.max(a,h));return l=o-s+1,r=a-c+1,new WY(ndt(s),ndt(c),ndt(l),ndt(r))}function LPt(t,e){var n,i,r,o;for(xO((o=new C2(t,0)).b<o.d.gc()),n=jz(o.d.Xb(o.c=o.b++),140);o.b<o.d.gc();)xO(o.b<o.d.gc()),r=new bV((i=jz(o.d.Xb(o.c=o.b++),140)).c,n.d,e),xO(o.b>0),o.a.Xb(o.c=--o.b),wR(o,r),xO(o.b<o.d.gc()),o.d.Xb(o.c=o.b++),r.a=!1,n=i}function OPt(t){var e,n,i,r,o;for(i=jz(wxt(t,(lKt(),Nhe)),11),o=new Gf(t.j);o.a<o.c.c.length;){for(n=new Gf((r=jz(Q1(o),11)).g);n.a<n.c.c.length;)return CJ(jz(Q1(n),17),i),r;for(e=new Gf(r.e);e.a<e.c.c.length;)return AJ(jz(Q1(e),17),i),r}return null}function NPt(t,e,n){var r,o;Kut(r=uat(n.q.getTime()),0)<0?(o=KYt-fq(hpt(v9(r),KYt)))==KYt&&(o=0):o=fq(hpt(r,KYt)),1==e?PW(t,48+(o=i.Math.min((o+50)/100|0,9))&YYt):2==e?ytt(t,o=i.Math.min((o+5)/10|0,99),2):(ytt(t,o,3),e>3&&ytt(t,0,e-3))}function RPt(t){var e,n,i,r;return VD(wxt(t,(zWt(),sme)))===VD((aht(),pSe))?!t.e&&VD(wxt(t,Ope))!==VD((Rat(),khe)):(i=jz(wxt(t,Npe),292),r=zv(_N(wxt(t,$pe)))||VD(wxt(t,zpe))===VD((Dit(),sue)),e=jz(wxt(t,Lpe),19).a,n=t.a.c.length,!r&&i!=(Rat(),khe)&&(0==e||e>n))}function FPt(t){var e,n;for(n=0;n<t.c.length&&!(sH((u1(n,t.c.length),jz(t.c[n],113)))>0);n++);if(n>0&&n<t.c.length-1)return n;for(e=0;e<t.c.length&&!(sH((u1(e,t.c.length),jz(t.c[e],113)))>0);e++);return e>0&&n<t.c.length-1?e:t.c.length/2|0}function jPt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=6&&e){if(byt(t,e))throw $b(new Rv(f6t+NIt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?cyt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=Pbt(e,t,6,i)),(i=KN(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,6,e,e))}function $Pt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=9&&e){if(byt(t,e))throw $b(new Rv(f6t+URt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?uyt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=Pbt(e,t,9,i)),(i=YN(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,9,e,e))}function zPt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=3&&e){if(byt(t,e))throw $b(new Rv(f6t+hVt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Ayt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=Pbt(e,t,12,i)),(i=WN(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,3,e,e))}function VPt(t){var e,n,i,r,o;if(i=Syt(t),null==(o=t.j)&&i)return t.$j()?null:i.zj();if(iP(i,148)){if((n=i.Aj())&&(r=n.Nh())!=t.i){if((e=jz(i,148)).Ej())try{t.g=r.Kh(e,o)}catch(e){if(!iP(e=hst(e),78))throw $b(e);t.g=null}t.i=r}return t.g}return null}function HPt(t){var e;return Gz(e=new Mb,new PE(new PS(t.c,t.d),new PS(t.c+t.b,t.d))),Gz(e,new PE(new PS(t.c,t.d),new PS(t.c,t.d+t.a))),Gz(e,new PE(new PS(t.c+t.b,t.d+t.a),new PS(t.c+t.b,t.d))),Gz(e,new PE(new PS(t.c+t.b,t.d+t.a),new PS(t.c,t.d+t.a))),e}function qPt(t,e,n,i){var r,o,a;if(a=I_t(e,n),i.c[i.c.length]=e,-1==t.j[a.p]||2==t.j[a.p]||t.a[e.p])return i;for(t.j[a.p]=-1,o=new aU(ZP(lft(a).a.Kc(),new u));gBt(o);)if(!h4(r=jz(q4(o),17))&&(h4(r)||r.c.i.c!=r.d.i.c)&&r!=e)return qPt(t,r,a,i);return i}function UPt(t,e,n){var i,r;for(r=e.a.ec().Kc();r.Ob();)i=jz(r.Pb(),79),!jz(OW(t.b,i),266)&&(XQ(Ext(i))==XQ(Dxt(i))?tNt(t,i,n):Ext(i)==XQ(Dxt(i))?null==OW(t.c,i)&&null!=OW(t.b,Dxt(i))&&iUt(t,i,n,!1):null==OW(t.d,i)&&null!=OW(t.b,Ext(i))&&iUt(t,i,n,!0))}function GPt(t,e){var n,i,r,o,a,s,c;for(r=t.Kc();r.Ob();)for(i=jz(r.Pb(),10),EJ(s=new TEt,i),VSt(s,(vGt(),aDe)),lct(s,(lKt(),vde),(cL(),!0)),a=e.Kc();a.Ob();)o=jz(a.Pb(),10),EJ(c=new TEt,o),VSt(c,EDe),lct(c,vde,!0),lct(n=new dZ,vde,!0),AJ(n,s),CJ(n,c)}function WPt(t,e,n,i){var r,o,a,s;r=Ipt(t,e,n),o=Ipt(t,n,e),a=jz(OW(t.c,e),112),s=jz(OW(t.c,n),112),r<o?new HJ((S6(),Cve),a,s,o-r):o<r?new HJ((S6(),Cve),s,a,r-o):(0!=r||e.i&&n.i&&i[e.i.c][n.i.c])&&(new HJ((S6(),Cve),a,s,0),new HJ(Cve,s,a,0))}function KPt(t,e){var n,i,r,o,a,s;for(r=0,a=new Gf(e.a);a.a<a.c.c.length;)for(r+=(o=jz(Q1(a),10)).o.b+o.d.a+o.d.d+t.e,i=new aU(ZP(uft(o).a.Kc(),new u));gBt(i);)(n=jz(q4(i),17)).c.i.k==(aEt(),Tse)&&(r+=(s=jz(wxt(n.c.i,(lKt(),fde)),10)).o.b+s.d.a+s.d.d);return r}function YPt(t,e,n){var i,r,o,a,s,c,l;for(o=new Mb,Dzt(t,l=new YA,a=new YA,e),_Ut(t,l,a,e,n),c=new Gf(t);c.a<c.c.c.length;)for(r=new Gf((s=jz(Q1(c),112)).k);r.a<r.c.c.length;)i=jz(Q1(r),129),(!e||i.c==(S6(),_ve))&&s.g>i.b.g&&(o.c[o.c.length]=i);return o}function XPt(){XPt=I,LCe=new vS("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),PCe=new vS("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),NCe=new vS("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),OCe=new vS("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),RCe=new vS("WHOLE_DRAWING",4)}function ZPt(t,e){if(iP(e,239))return ldt(t,jz(e,33));if(iP(e,186))return Odt(t,jz(e,118));if(iP(e,354))return JY(t,jz(e,137));if(iP(e,352))return Z$t(t,jz(e,79));if(e)return null;throw $b(new Rv(q6t+Mxt(new Xv(Est(Vy(Ite,1),zKt,1,5,[e])))))}function QPt(t){var e,n,i,r,o,a,s;for(o=new YA,r=new Gf(t.d.a);r.a<r.c.c.length;)0==(i=jz(Q1(r),121)).b.a.c.length&&n4(o,i,o.c.b,o.c);if(o.b>1)for(e=DL((n=new zw,++t.b,n),t.d),s=cbt(o,0);s.b!=s.d.c;)a=jz(h3(s),121),ULt(rx(ix(ox(nx(new $w,1),0),e),a))}function JPt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=11&&e){if(byt(t,e))throw $b(new Rv(f6t+qRt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?xyt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=Pbt(e,t,10,i)),(i=HR(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,11,e,e))}function tLt(t){var e,n,i,r;for(i=new alt(new xf(t.b).a);i.b;)r=jz((n=tnt(i)).cd(),11),lct(e=jz(n.dd(),10),(lKt(),fde),r),lct(r,yde,e),lct(r,tde,(cL(),!0)),VSt(r,jz(wxt(e,Khe),61)),wxt(e,Khe),lct(r.i,(zWt(),tbe),(YCt(),WSe)),jz(wxt(mK(r.i),Zhe),21).Fc((dNt(),fhe))}function eLt(t,e,n){var i,r,o;if(i=0,r=0,t.c)for(o=new Gf(t.d.i.j);o.a<o.c.c.length;)i+=jz(Q1(o),11).e.c.length;else i=1;if(t.d)for(o=new Gf(t.c.i.j);o.a<o.c.c.length;)r+=jz(Q1(o),11).g.c.length;else r=1;return(n+e)/2+.4*EQ($V(r-i))*(n-e)}function nLt(t){var e,n;if(MCt(),t.Hc((vGt(),xDe)))throw $b(new Rv("Port sides must not contain UNDEFINED"));switch(t.gc()){case 1:return Cle;case 2:return e=t.Hc(aDe)&&t.Hc(EDe),n=t.Hc(sDe)&&t.Hc(ADe),e||n?Ele:xle;case 3:return Ale;case 4:return _le;default:return null}}function iLt(t,e,n){var i,r,o,a;for(DAt(n,"Breaking Point Removing",1),t.a=jz(wxt(e,(zWt(),Zpe)),218),r=new Gf(e.b);r.a<r.c.c.length;)for(a=new Gf(r0(jz(Q1(r),29).a));a.a<a.c.c.length;)Xtt(o=jz(Q1(a),10))&&!(i=jz(wxt(o,(lKt(),Ohe)),305)).d&&qGt(t,i);zEt(n)}function rLt(t,e,n){return yNt(),(!Oot(t,e)||!Oot(t,n))&&(wUt(new PS(t.c,t.d),new PS(t.c+t.b,t.d),e,n)||wUt(new PS(t.c+t.b,t.d),new PS(t.c+t.b,t.d+t.a),e,n)||wUt(new PS(t.c+t.b,t.d+t.a),new PS(t.c,t.d+t.a),e,n)||wUt(new PS(t.c,t.d+t.a),new PS(t.c,t.d),e,n))}function oLt(t,e){var n,i,r,o;if(!t.dc())for(n=0,i=t.gc();n<i;++n)if(null==(o=AN(t.Xb(n)))?null==e:bF(o.substr(0,3),"!##")?null!=e&&(r=e.length,!bF(o.substr(o.length-r,r),e)||o.length!=e.length+3)&&!bF(x9t,e):bF(o,E9t)&&!bF(x9t,e)||bF(o,e))return!0;return!1}function aLt(t,e,n,i){var r,o,a,s,c,l;for(a=t.j.c.length,c=P7(rre,iQt,306,a,0,1),s=0;s<a;s++)(o=jz(PH(t.j,s),11)).p=s,c[s]=lIt(wBt(o),n,i);for(KLt(t,c,n,e,i),l=new Pb,r=0;r<c.length;r++)c[r]&&WK(l,jz(PH(t.j,r),11),c[r]);l.f.c+l.g.c!=0&&(lct(t,(lKt(),Hhe),l),IEt(t,c))}function sLt(t,e,n){var i,r;for(i=new Gf(t.a.b);i.a<i.c.c.length;)if((r=l2(jz(Q1(i),57)))&&r.k==(aEt(),Cse))switch(jz(wxt(r,(lKt(),Khe)),61).g){case 4:r.n.a=e.a;break;case 2:r.n.a=n.a-(r.o.a+r.d.c);break;case 1:r.n.b=e.b;break;case 3:r.n.b=n.b-(r.o.b+r.d.a)}}function cLt(){cLt=I,Twe=new $T(YJt,0),_we=new $T("NIKOLOV",1),xwe=new $T("NIKOLOV_PIXEL",2),Cwe=new $T("NIKOLOV_IMPROVED",3),Awe=new $T("NIKOLOV_IMPROVED_PIXEL",4),ywe=new $T("DUMMYNODE_PERCENTAGE",5),Ewe=new $T("NODECOUNT_PERCENTAGE",6),Swe=new $T("NO_BOUNDARY",7)}function lLt(t,e,n){var i,r,o;if(!(r=jz(QBt(e,(xxt(),qxe)),19))&&(r=ndt(0)),!(o=jz(QBt(n,qxe),19))&&(o=ndt(0)),r.a>o.a)return-1;if(r.a<o.a)return 1;if(t.a){if(0!=(i=Edt(e.j,n.j)))return i;if(0!=(i=Edt(e.i,n.i)))return i}return Edt(e.g*e.f,n.g*n.f)}function uLt(t,e){var n,i,r,o,a,s,c,l,u,h;if(++t.e,e>(c=null==t.d?0:t.d.length)){for(u=t.d,t.d=P7(sBe,r8t,63,2*c+4,0,1),o=0;o<c;++o)if(l=u[o])for(i=l.g,h=l.i,s=0;s<h;++s)a=tR(t,(r=jz(i[s],133)).Sh()),!(n=t.d[a])&&(n=t.d[a]=t.uj()),n.Fc(r);return!0}return!1}function hLt(t,e,n){var i,r,o,a,s,c;if(o=(r=n).ak(),BOt(t.e,o)){if(o.hi())for(i=jz(t.g,119),a=0;a<t.i;++a)if(Pht(s=i[a],r)&&a!=e)throw $b(new Rv(o7t))}else for(c=oOt(t.e.Tg(),o),i=jz(t.g,119),a=0;a<t.i;++a)if(s=i[a],c.rl(s.ak()))throw $b(new Rv(S9t));cdt(t,e,n)}function dLt(t,e){var n,i,r,o,a,s;for(n=jz(wxt(e,(lKt(),Uhe)),21),a=jz(c6((NWt(),lse),n),21),s=jz(c6(pse,n),21),o=a.Kc();o.Ob();)if(i=jz(o.Pb(),21),!jz(c6(t.b,i),15).dc())return!1;for(r=s.Kc();r.Ob();)if(i=jz(r.Pb(),21),!jz(c6(t.b,i),15).dc())return!1;return!0}function fLt(t,e){var n,i,r;for(DAt(e,"Partition postprocessing",1),n=new Gf(t.b);n.a<n.c.c.length;)for(i=new Gf(jz(Q1(n),29).a);i.a<i.c.c.length;)for(r=new Gf(jz(Q1(i),10).j);r.a<r.c.c.length;)zv(_N(wxt(jz(Q1(r),11),(lKt(),vde))))&&DG(r);zEt(e)}function gLt(t,e){var n,i,r,o,a,s,c;if(1==t.a.c.length)return jEt(jz(PH(t.a,0),187),e);for(r=rht(t),a=0,s=t.d,i=r,c=t.d,o=(s-i)/2+i;i+1<s;){for(a=0,n=new Gf(t.a);n.a<n.c.c.length;)a+=rVt(jz(Q1(n),187),o,!1).a;a<e?(c=o,s=o):i=o,o=(s-i)/2+i}return c}function pLt(t){var e,n,i,r;return isNaN(t)?(U9(),pee):t<-0x8000000000000000?(U9(),fee):t>=0x8000000000000000?(U9(),dee):(i=!1,t<0&&(i=!0,t=-t),n=0,t>=DXt&&(t-=(n=EQ(t/DXt))*DXt),e=0,t>=SXt&&(t-=(e=EQ(t/SXt))*SXt),r=CM(EQ(t),e,n),i&&Dct(r),r)}function mLt(t,e){var n,i,r,o;for(n=!e||!t.u.Hc((hDt(),tDe)),o=0,r=new Gf(t.e.Cf());r.a<r.c.c.length;){if((i=jz(Q1(r),838)).Hf()==(vGt(),xDe))throw $b(new Rv("Label and node size calculator can only be used with ports that have port sides assigned."));i.vf(o++),Wut(t,i,n)}}function bLt(t,e){var n,i,r,o;return(i=e.Hh(t.a))&&(!i.b&&(i.b=new XO((pKt(),wMe),qMe,i)),null!=(n=AN(rpt(i.b,Z8t)))&&iP(o=-1==(r=n.lastIndexOf("#"))?oN(t,e.Aj(),n):0==r?C8(t,null,n.substr(1)):C8(t,n.substr(0,r),n.substr(r+1)),148))?jz(o,148):null}function wLt(t,e){var n,i,r,o;return(n=e.Hh(t.a))&&(!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),null!=(r=AN(rpt(n.b,v9t)))&&iP(o=-1==(i=r.lastIndexOf("#"))?oN(t,e.Aj(),r):0==i?C8(t,null,r.substr(1)):C8(t,r.substr(0,i),r.substr(i+1)),148))?jz(o,148):null}function kLt(t){var e,n,i,r,o;for(n=new Gf(t.a.a);n.a<n.c.c.length;){for((e=jz(Q1(n),307)).j=null,o=e.a.a.ec().Kc();o.Ob();)kI((i=jz(o.Pb(),57)).b),(!e.j||i.d.c<e.j.d.c)&&(e.j=i);for(r=e.a.a.ec().Kc();r.Ob();)(i=jz(r.Pb(),57)).b.a=i.d.c-e.j.d.c,i.b.b=i.d.d-e.j.d.d}return t}function vLt(t){var e,n,i,r,o;for(n=new Gf(t.a.a);n.a<n.c.c.length;){for((e=jz(Q1(n),189)).f=null,o=e.a.a.ec().Kc();o.Ob();)kI((i=jz(o.Pb(),81)).e),(!e.f||i.g.c<e.f.g.c)&&(e.f=i);for(r=e.a.a.ec().Kc();r.Ob();)(i=jz(r.Pb(),81)).e.a=i.g.c-e.f.g.c,i.e.b=i.g.d-e.f.g.d}return t}function yLt(t){var e,n,r;return n=jz(t.a,19).a,r=jz(t.b,19).a,n<(e=i.Math.max(i.Math.abs(n),i.Math.abs(r)))&&r==-e?new nD(ndt(n+1),ndt(r)):n==e&&r<e?new nD(ndt(n),ndt(r+1)):n>=-e&&r==e?new nD(ndt(n-1),ndt(r)):new nD(ndt(n),ndt(r-1))}function _Lt(){return hKt(),Est(Vy(ole,1),BYt,77,0,[nce,Jse,ice,kce,Fce,Cce,qce,Sce,Nce,gce,Mce,Tce,Rce,uce,Gce,Wse,Bce,$ce,vce,jce,Kce,Lce,Kse,Oce,Yce,Vce,Wce,yce,sce,_ce,wce,Uce,Zse,oce,xce,Xse,Ece,mce,hce,Dce,fce,tce,Qse,bce,dce,Ice,Hce,Yse,Pce,pce,Ace,cce,ace,zce,rce,lce,ece])}function CLt(t,e,n){t.d=0,t.b=0,e.k==(aEt(),Tse)&&n.k==Tse&&jz(wxt(e,(lKt(),fde)),10)==jz(wxt(n,fde),10)&&(A9(e).j==(vGt(),sDe)?VMt(t,e,n):VMt(t,n,e)),e.k==Tse&&n.k==xse?A9(e).j==(vGt(),sDe)?t.d=1:t.b=1:n.k==Tse&&e.k==xse&&(A9(n).j==(vGt(),sDe)?t.b=1:t.d=1),akt(t,e,n)}function ALt(t){var e,n,i,r,o;return o=IAt(t),null!=t.a&&DV(o,"category",t.a),!GC(new Ef(t.d))&&(net(o,"knownOptions",i=new xd),e=new tb(i),t4(new Ef(t.d),e)),!GC(t.g)&&(net(o,"supportedFeatures",r=new xd),n=new eb(r),t4(t.g,n)),o}function xLt(t){var e,n,i,r,o,a,s,c;for(e=336,n=0,r=new sR(t.length),s=0,c=(a=t).length;s<c;++s)Ydt(o=a[s]),yK(o),i=o.a,Gz(r.a,wW(i)),e&=i.qd(),n=Xlt(n,i.rd());return jz(jz(UG(new OH(null,VAt(new d1((GW(),Pgt(r.a)),16),new y,e,n)),new vd(t)),670),833)}function ELt(t,e){var n;t.d&&(e.c!=t.e.c||uot(t.e.b,e.b))&&(Gz(t.f,t.d),t.a=t.d.c+t.d.b,t.d=null,t.e=null),QI(e.b)?t.c=e:t.b=e,(e.b==(Ist(),Zae)&&!e.a||e.b==Qae&&e.a||e.b==Jae&&e.a||e.b==tse&&!e.a)&&t.c&&t.b&&(n=new qY(t.a,t.c.d,e.c-t.a,t.b.d-t.c.d),t.d=n,t.e=e)}function TLt(t){var e;if(Yk.call(this),this.i=new fs,this.g=t,this.f=jz(t.e&&t.e(),9).length,0==this.f)throw $b(new Rv("There must be at least one phase in the phase enumeration."));this.c=new YF(e=jz(W_(this.g),9),jz(AR(e,e.length),9),0),this.a=new j2,this.b=new Pb}function SLt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=7&&e){if(byt(t,e))throw $b(new Rv(f6t+rTt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?lyt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=jz(e,49).gh(t,1,PIe,i)),(i=Wq(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,7,e,e))}function DLt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=3&&e){if(byt(t,e))throw $b(new Rv(f6t+Kht(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?dyt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=jz(e,49).gh(t,0,FIe,i)),(i=Kq(t,e,i))&&i.Fi()}else 4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,3,e,e))}function ILt(t,e){var n,i,r,o,a,s,c,l,u;return BIt(),e.d>t.d&&(s=t,t=e,e=s),e.d<63?GOt(t,e):(l=H4(t,a=(-2&t.d)<<4),u=H4(e,a),i=azt(t,V4(l,a)),r=azt(e,V4(u,a)),c=ILt(l,u),n=ILt(i,r),o=V4(o=BVt(BVt(o=ILt(azt(l,i),azt(r,u)),c),n),a),BVt(BVt(c=V4(c,a<<1),o),n))}function BLt(t,e,n){var i,r,o,a,s;for(a=Mht(t,n),s=P7(Sse,o1t,10,e.length,0,1),i=0,o=a.Kc();o.Ob();)zv(_N(wxt(r=jz(o.Pb(),11),(lKt(),tde))))&&(s[i++]=jz(wxt(r,yde),10));if(i<e.length)throw $b(new Fv("Expected "+e.length+" hierarchical ports, but found only "+i+"."));return s}function MLt(t,e){var n,i,r,o,a,s;if(!t.tb){for(!t.rb&&(t.rb=new XU(t,jBe,t)),s=new UA((o=t.rb).i),r=new DP(o);r.e!=r.i.gc();)i=jz(vbt(r),138),(n=jz(null==(a=i.ne())?ySt(s.f,null,i):aft(s.g,a,i),138))&&(null==a?ySt(s.f,null,n):aft(s.g,a,n));t.tb=s}return jz(AQ(t.tb,e),138)}function PLt(t,e){var n,i,r,o,a;if((null==t.i&&V$t(t),t.i).length,!t.p){for(a=new UA(1+(3*t.g.i/2|0)),r=new rO(t.g);r.e!=r.i.gc();)i=jz(ybt(r),170),(n=jz(null==(o=i.ne())?ySt(a.f,null,i):aft(a.g,o,i),170))&&(null==o?ySt(a.f,null,n):aft(a.g,o,n));t.p=a}return jz(AQ(t.p,e),170)}function LLt(t,e,n,i,r){var o,a,s,c;for(fmt(i+EZ(n,n.$d()),r),JW(e,Mgt(n)),(o=n.f)&&LLt(t,e,o,"Caused by: ",!1),null==n.k&&(n.k=P7(Zte,cYt,78,0,0,1)),s=0,c=(a=n.k).length;s<c;++s)LLt(t,e,a[s],"Suppressed: ",!1);null!=console.groupEnd&&console.groupEnd.call(console)}function OLt(t,e,n,i){var r,o,a,s;for(a=(s=e.e).length,o=e.q._f(s,n?0:a-1,n),o|=pRt(t,s[n?0:a-1],n,i),r=n?1:a-2;n?r<a:r>=0;r+=n?1:-1)o|=e.c.Sf(s,r,n,i&&!zv(_N(wxt(e.j,(lKt(),Xhe))))&&!zv(_N(wxt(e.j,(lKt(),Tde))))),o|=e.q._f(s,r,n),o|=pRt(t,s[r],n,i);return _G(t.c,e),o}function NLt(t,e,n){var i,r,o,a,s,c,l,u;for(l=0,u=(c=T2(t.j)).length;l<u;++l){if(s=c[l],n==(oit(),$we)||n==Vwe)for(o=0,a=(r=Z0(s.g)).length;o<a;++o)DEt(e,i=r[o])&&tzt(i,!0);if(n==zwe||n==Vwe)for(o=0,a=(r=Z0(s.e)).length;o<a;++o)SEt(e,i=r[o])&&tzt(i,!0)}}function RLt(t){var e,n;switch(e=null,n=null,eCt(t).g){case 1:vGt(),e=aDe,n=EDe;break;case 2:vGt(),e=ADe,n=sDe;break;case 3:vGt(),e=EDe,n=aDe;break;case 4:vGt(),e=sDe,n=ADe}zd(t,jz(IL(SU(jz(c6(t.k,e),15).Oc(),Kle)),113)),$d(t,jz(IL(TU(jz(c6(t.k,n),15).Oc(),Kle)),113))}function FLt(t){var e,n,i,r,o,a;if((r=jz(PH(t.j,0),11)).e.c.length+r.g.c.length==0)t.n.a=0;else{for(a=0,i=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[new $g(r),new Vg(r)])));gBt(i);)a+=(n=jz(q4(i),11)).i.n.a+n.n.a+n.a.a;o=(e=jz(wxt(t,(zWt(),Qme)),8))?e.a:0,t.n.a=a/(r.e.c.length+r.g.c.length)-o}}function jLt(t,e){var n,i,r;for(i=new Gf(e.a);i.a<i.c.c.length;)n=jz(Q1(i),221),Bq(jz(n.b,65),UR(jM(jz(e.b,65).c),jz(e.b,65).a)),(r=Xjt(jz(e.b,65).b,jz(n.b,65).b))>1&&(t.a=!0),Mq(jz(n.b,65),qR(jM(jz(e.b,65).c),kP(UR(jM(jz(n.b,65).a),jz(e.b,65).a),r))),KJ(t,e),jLt(t,n)}function $Lt(t){var e,n,i,r,o,a;for(r=new Gf(t.a.a);r.a<r.c.c.length;)(n=jz(Q1(r),189)).e=0,n.d.a.$b();for(i=new Gf(t.a.a);i.a<i.c.c.length;)for(e=(n=jz(Q1(i),189)).a.a.ec().Kc();e.Ob();)for(a=jz(e.Pb(),81).f.Kc();a.Ob();)(o=jz(a.Pb(),81)).d!=n&&(_G(n.d,o),++o.d.e)}function zLt(t){var e,n,i,r,o,a,s,c;for(n=0,e=c=t.j.c.length,r=2*c,s=new Gf(t.j);s.a<s.c.c.length;)switch((a=jz(Q1(s),11)).j.g){case 2:case 4:a.p=-1;break;case 1:case 3:i=a.e.c.length,o=a.g.c.length,a.p=i>0&&o>0?e++:i>0?n++:o>0?r++:n++}AX(),bM(t.j,new fi)}function VLt(t){var e,n;n=null,e=jz(PH(t.g,0),17);do{if(BO(n=e.d.i,(lKt(),lde)))return jz(wxt(n,lde),11).i;if(n.k!=(aEt(),Ese)&&gBt(new aU(ZP(hft(n).a.Kc(),new u))))e=jz(q4(new aU(ZP(hft(n).a.Kc(),new u))),17);else if(n.k!=Ese)return null}while(n&&n.k!=(aEt(),Ese));return n}function HLt(t,e){var n,i,r,o,a,s,c,l,u;for(s=e.j,a=e.g,c=jz(PH(s,s.c.length-1),113),u1(0,s.c.length),l=Qkt(t,a,c,u=jz(s.c[0],113)),o=1;o<s.c.length;o++)u1(o-1,s.c.length),n=jz(s.c[o-1],113),u1(o,s.c.length),(i=Qkt(t,a,n,r=jz(s.c[o],113)))>l&&(c=n,u=r,l=i);e.a=u,e.c=c}function qLt(t,e){var n;if(!ZG(t.b,e.b))throw $b(new Fv("Invalid hitboxes for scanline constraint calculation."));(vst(e.b,jz(CR(t.b,e.b),57))||vst(e.b,jz(_R(t.b,e.b),57)))&&(IA(),e.b),t.a[e.b.f]=jz(kF(t.b,e.b),57),(n=jz(wF(t.b,e.b),57))&&(t.a[n.f]=e.b)}function ULt(t){if(!t.a.d||!t.a.e)throw $b(new Fv((yN($ie),$ie.k+" must have a source and target "+(yN(zie),zie.k+" specified."))));if(t.a.d==t.a.e)throw $b(new Fv("Network simplex does not support self-loops: "+t.a+" "+t.a.d+" "+t.a.e));return OL(t.a.d.g,t.a),OL(t.a.e.b,t.a),t.a}function GLt(t,e,n){var i,r,o,a,s,c,l;for(l=new fC(new Xp(t)),s=0,c=(a=Est(Vy(Vse,1),a1t,11,0,[e,n])).length;s<c;++s)for(o=a[s],Act(l.a,o,(cL(),mee)),r=new b6(o.b);wM(r.a)||wM(r.b);)(i=jz(wM(r.a)?Q1(r.a):Q1(r.b),17)).c==i.d||ZG(l,o==i.c?i.d:i.c);return wW(l),new JF(l)}function WLt(t,e,n){var i,r,o,a,s,c;if(i=0,0!=e.b&&0!=n.b){o=cbt(e,0),a=cbt(n,0),s=Vv(CN(h3(o))),c=Vv(CN(h3(a))),r=!0;do{if(s>c-t.b&&s<c+t.b)return-1;s>c-t.a&&s<c+t.a&&++i,s<=c&&o.b!=o.d.c?s=Vv(CN(h3(o))):c<=s&&a.b!=a.d.c?c=Vv(CN(h3(a))):r=!1}while(r)}return i}function KLt(t,e,n,i,r){var o,a,s,c;for(c=new YF(o=jz(W_(FDe),9),jz(AR(o,o.length),9),0),s=new Gf(t.j);s.a<s.c.c.length;)e[(a=jz(Q1(s),11)).p]&&($Gt(a,e[a.p],i),srt(c,a.j));r?(HCt(t,e,(vGt(),aDe),2*n,i),HCt(t,e,EDe,2*n,i)):(HCt(t,e,(vGt(),sDe),2*n,i),HCt(t,e,ADe,2*n,i))}function YLt(t){var e,n,i,r,o;if(o=new Mb,Det(t.b,new kg(o)),t.b.c=P7(Ite,zKt,1,0,5,1),0!=o.c.length){for(u1(0,o.c.length),e=jz(o.c[0],78),n=1,i=o.c.length;n<i;++n)u1(n,o.c.length),(r=jz(o.c[n],78))!=e&&HAt(e,r);if(iP(e,60))throw $b(jz(e,60));if(iP(e,289))throw $b(jz(e,289))}}function XLt(t,e){var n,i,r,o;for(t=null==t?qKt:(kK(t),t),n=new Ty,o=0,i=0;i<e.length&&-1!=(r=t.indexOf("%s",o));)aI(n,t.substr(o,r-o)),oI(n,e[i++]),o=r+2;if(aI(n,t.substr(o)),i<e.length){for(n.a+=" [",oI(n,e[i++]);i<e.length;)n.a+=jKt,oI(n,e[i++]);n.a+="]"}return n.a}function ZLt(t){var e,n,i,r;for(e=0,r=(i=t.length)-4,n=0;n<r;)h1(n+3,t.length),e=t.charCodeAt(n+3)+(h1(n+2,t.length),31*(t.charCodeAt(n+2)+(h1(n+1,t.length),31*(t.charCodeAt(n+1)+(h1(n,t.length),31*(t.charCodeAt(n)+31*e)))))),e|=0,n+=4;for(;n<i;)e=31*e+lY(t,n++);return e|=0}function QLt(t){var e;for(e=new aU(ZP(hft(t).a.Kc(),new u));gBt(e);)if(jz(q4(e),17).d.i.k!=(aEt(),Ase))throw $b(new ny(E1t+pvt(t)+"' has its layer constraint set to LAST, but has at least one outgoing edge that does not go to a LAST_SEPARATE node. That must not happen."))}function JLt(t,e,n,r){var o,a,s,c,l,h,d;for(c=0,l=new Gf(t.a);l.a<l.c.c.length;){for(s=0,a=new aU(ZP(uft(jz(Q1(l),10)).a.Kc(),new u));gBt(a);)h=g1((o=jz(q4(a),17)).c).b,d=g1(o.d).b,s=i.Math.max(s,i.Math.abs(d-h));c=i.Math.max(c,s)}return r*i.Math.min(1,e/n)*c}function tOt(t){var e;return e=new xy,256&t&&(e.a+="F"),128&t&&(e.a+="H"),512&t&&(e.a+="X"),2&t&&(e.a+="i"),8&t&&(e.a+="m"),4&t&&(e.a+="s"),32&t&&(e.a+="u"),64&t&&(e.a+="w"),16&t&&(e.a+="x"),t&v6t&&(e.a+=","),qv(e.a)}function eOt(t,e){var n,i,r;for(DAt(e,"Resize child graph to fit parent.",1),i=new Gf(t.b);i.a<i.c.c.length;)n=jz(Q1(i),29),pst(t.a,n.a),n.a.c=P7(Ite,zKt,1,0,5,1);for(r=new Gf(t.a);r.a<r.c.c.length;)xJ(jz(Q1(r),10),null);t.b.c=P7(Ite,zKt,1,0,5,1),$Ot(t),t.e&&xjt(t.e,t),zEt(e)}function nOt(t){var e,n,i,r,o,a,s;if(r=(i=t.b).e,o=BF(jz(wxt(i,(zWt(),tbe)),98)),n=!!r&&jz(wxt(r,(lKt(),Zhe)),21).Hc((dNt(),uhe)),!o&&!n)for(s=new Nf(new Sf(t.e).a.vc().Kc());s.a.Ob();)e=jz(s.a.Pb(),42),(a=jz(e.dd(),113)).a&&(EJ(a.d,null),a.c=!0,t.a=!0)}function iOt(t){var e,n,i,r,o,a,s,c,l,u,h,d;for(h=-1,d=0,l=0,u=(c=t).length;l<u;++l){for(a=0,s=(o=c[l]).length;a<s;++a)for(r=o[a],e=new pT(-1==h?t[0]:t[h],syt(r)),n=0;n<r.j.c.length;n++)for(i=n+1;i<r.j.c.length;i++)MU(e,jz(PH(r.j,n),11),jz(PH(r.j,i),11))>0&&++d;++h}return d}function rOt(t,e){var n,i,r,o,a;for(a=jz(wxt(e,(TBt(),Bye)),425),o=cbt(e.b,0);o.b!=o.d.c;)if(r=jz(h3(o),86),0==t.b[r.g]){switch(a.g){case 0:Ywt(t,r);break;case 1:zBt(t,r)}t.b[r.g]=2}for(i=cbt(t.a,0);i.b!=i.d.c;)kgt((n=jz(h3(i),188)).b.d,n,!0),kgt(n.c.b,n,!0);lct(e,(VHt(),uye),t.a)}function oOt(t,e){var n,i,r,o;return Zx(),e?e==(UHt(),OPe)||(e==bPe||e==pPe||e==mPe)&&t!=gPe?new rGt(t,e):((n=(i=jz(e,677)).pk())||(kY(j9((STt(),XMe),e)),n=i.pk()),!n.i&&(n.i=new Pb),!(r=jz(zD(DZ((o=n.i).f,t)),1942))&&WK(o,t,r=new rGt(t,e)),r):iPe}function aOt(t,e){var n,i,r,o,a,s,c,l;for(s=jz(wxt(t,(lKt(),fde)),11),c=Ict(Est(Vy(xxe,1),cYt,8,0,[s.i.n,s.n,s.a])).a,l=t.i.n.b,r=0,o=(i=Z0(t.e)).length;r<o;++r)CJ(n=i[r],s),lI(n.a,new PS(c,l)),e&&((a=jz(wxt(n,(zWt(),mme)),74))||(a=new kk,lct(n,mme,a)),LV(a,new PS(c,l)))}function sOt(t,e){var n,i,r,o,a,s,c,l;for(i=jz(wxt(t,(lKt(),fde)),11),c=Ict(Est(Vy(xxe,1),cYt,8,0,[i.i.n,i.n,i.a])).a,l=t.i.n.b,a=0,s=(o=Z0(t.g)).length;a<s;++a)AJ(r=o[a],i),cI(r.a,new PS(c,l)),e&&((n=jz(wxt(r,(zWt(),mme)),74))||(n=new kk,lct(r,mme,n)),LV(n,new PS(c,l)))}function cOt(t,e){var n,i,r,o,a;for(t.b=new Mb,t.d=jz(wxt(e,(lKt(),Ade)),230),t.e=i0(t.d),o=new YA,r=o6(Est(Vy(vse,1),ZJt,37,0,[e])),a=0;a<r.c.length;)u1(a,r.c.length),(i=jz(r.c[a],37)).p=a++,pst(r,(n=new Tqt(i,t.a,t.b)).b),Gz(t.b,n),n.s&&QG(cbt(o,0),n);return t.c=new Ow,o}function lOt(t,e){var n,i,r,o,a,s;for(a=jz(jz(c6(t.r,e),21),84).Kc();a.Ob();)(n=(o=jz(a.Pb(),111)).c?WV(o.c):0)>0?o.a?n>(s=o.b.rf().a)&&(r=(n-s)/2,o.d.b=r,o.d.c=r):o.d.c=t.s+n:$U(t.u)&&((i=FAt(o.b)).c<0&&(o.d.b=-i.c),i.c+i.b>o.b.rf().a&&(o.d.c=i.c+i.b-o.b.rf().a))}function uOt(t,e){var n,i;for(DAt(e,"Semi-Interactive Crossing Minimization Processor",1),n=!1,i=new Gf(t.b);i.a<i.c.c.length;)n|=null!=Bht(ket(DY(DY(new OH(null,new d1(jz(Q1(i),29).a,16)),new Xi),new Zi),new Qi),new Ji).a;n&&lct(t,(lKt(),rde),(cL(),!0)),zEt(e)}function hOt(t,e,n){var i,r,o;if(!(r=n)&&(r=new Uk),DAt(r,"Layout",t.a.c.length),zv(_N(wxt(e,(TBt(),yye)))))for(IA(),i=0;i<t.a.c.length;i++)i++,Q_(tlt(jz(PH(t.a,i),51)));for(o=new Gf(t.a);o.a<o.c.c.length;)jz(Q1(o),51).pf(e,wot(r,1));zEt(r)}function dOt(t){var e,n;if(e=jz(t.a,19).a,n=jz(t.b,19).a,e>=0){if(e==n)return new nD(ndt(-e-1),ndt(-e-1));if(e==-n)return new nD(ndt(-e),ndt(n+1))}return i.Math.abs(e)>i.Math.abs(n)?new nD(ndt(-e),ndt(e<0?n:n+1)):new nD(ndt(e+1),ndt(n))}function fOt(t){var e,n;n=jz(wxt(t,(zWt(),kme)),163),e=jz(wxt(t,(lKt(),ede)),303),n==(Cft(),Fde)?(lct(t,kme,zde),lct(t,ede,(H9(),Ehe))):n==$de?(lct(t,kme,zde),lct(t,ede,(H9(),Ahe))):e==(H9(),Ehe)?(lct(t,kme,Fde),lct(t,ede,xhe)):e==Ahe&&(lct(t,kme,$de),lct(t,ede,xhe))}function gOt(){gOt=I,vve=new la,mve=fH(new j2,(kxt(),Rae),(hKt(),vce)),kve=Gq(fH(new j2,Rae,Lce),jae,Pce),yve=smt(smt(Fx(Gq(fH(new j2,Oae,qce),jae,Hce),Fae),Vce),Uce),bve=Gq(fH(fH(fH(new j2,Nae,Cce),Fae,xce),Fae,Ece),jae,Ace),wve=Gq(fH(fH(new j2,Fae,Ece),Fae,oce),jae,rce)}function pOt(){pOt=I,Eve=fH(Gq(new j2,(kxt(),jae),(hKt(),cce)),Rae,vce),Ive=smt(smt(Fx(Gq(fH(new j2,Oae,qce),jae,Hce),Fae),Vce),Uce),Tve=Gq(fH(fH(fH(new j2,Nae,Cce),Fae,xce),Fae,Ece),jae,Ace),Dve=fH(fH(new j2,Rae,Lce),jae,Pce),Sve=Gq(fH(fH(new j2,Fae,Ece),Fae,oce),jae,rce)}function mOt(t,e,n,i,r){var o,a;(h4(e)||e.c.i.c!=e.d.i.c)&&Jit(Ict(Est(Vy(xxe,1),cYt,8,0,[r.i.n,r.n,r.a])),n)||h4(e)||(e.c==r?NO(e.a,0,new dB(n)):LV(e.a,new dB(n)),i&&!FA(t.a,n)&&((a=jz(wxt(e,(zWt(),mme)),74))||(a=new kk,lct(e,mme,a)),n4(a,o=new dB(n),a.c.b,a.c),_G(t.a,o)))}function bOt(t){var e;for(e=new aU(ZP(uft(t).a.Kc(),new u));gBt(e);)if(jz(q4(e),17).c.i.k!=(aEt(),Ase))throw $b(new ny(E1t+pvt(t)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function wOt(t,e,n){var i,r,o,a,s,c;if(0==(r=mft(254&t.Db)))t.Eb=n;else{if(1==r)a=P7(Ite,zKt,1,2,5,1),0==Nkt(t,e)?(a[0]=n,a[1]=t.Eb):(a[0]=t.Eb,a[1]=n);else for(a=P7(Ite,zKt,1,r+1,5,1),o=ent(t.Eb),i=2,s=0,c=0;i<=128;i<<=1)i==e?a[c++]=n:t.Db&i&&(a[c++]=o[s++]);t.Eb=a}t.Db|=e}function kOt(t,e,n){var r,o,a,s;for(this.b=new Mb,o=0,r=0,s=new Gf(t);s.a<s.c.c.length;)a=jz(Q1(s),167),n&&Rzt(a),Gz(this.b,a),o+=a.o,r+=a.p;this.b.c.length>0&&(o+=(a=jz(PH(this.b,0),167)).o,r+=a.p),o*=2,r*=2,e>1?o=EQ(i.Math.ceil(o*e)):r=EQ(i.Math.ceil(r/e)),this.a=new Vgt(o,r)}function vOt(t,e,n,r,o,a){var s,c,l,u,h,d,f,g,p,m;for(u=r,e.j&&e.o?(p=(f=jz(OW(t.f,e.A),57)).d.c+f.d.b,--u):p=e.a.c+e.a.b,h=o,n.q&&n.o?(l=(f=jz(OW(t.f,n.C),57)).d.c,++h):l=n.a.c,g=p+(c=(l-p)/i.Math.max(2,h-u)),d=u;d<h;++d)m=(s=jz(a.Xb(d),128)).a.b,s.a.c=g-m/2,g+=c}function yOt(t,e,n,i,r,o){var a,s,c,l,u,h;for(l=n.c.length,o&&(t.c=P7(SLe,lXt,25,e.length,15,1)),a=r?0:e.length-1;r?a<e.length:a>=0;a+=r?1:-1){for(s=e[a],c=i==(vGt(),aDe)?r?oft(s,i):eat(oft(s,i)):r?eat(oft(s,i)):oft(s,i),o&&(t.c[s.p]=c.gc()),h=c.Kc();h.Ob();)u=jz(h.Pb(),11),t.d[u.p]=l++;pst(n,c)}}function _Ot(t,e,n){var i,r,o,a,s,c,l,u;for(o=Vv(CN(t.b.Kc().Pb())),l=Vv(CN(Wat(e.b))),i=kP(jM(t.a),l-n),r=kP(jM(e.a),n-o),kP(u=qR(i,r),1/(l-o)),this.a=u,this.b=new Mb,s=!0,(a=t.b.Kc()).Pb();a.Ob();)c=Vv(CN(a.Pb())),s&&c-n>O3t&&(this.b.Fc(n),s=!1),this.b.Fc(c);s&&this.b.Fc(n)}function COt(t){var e,n,i,r;if(lFt(t,t.n),t.d.c.length>0){for(Qv(t.c);mBt(t,jz(Q1(new Gf(t.e.a)),121))<t.e.a.c.length;){for(r=(e=Nvt(t)).e.e-e.d.e-e.a,e.e.j&&(r=-r),i=new Gf(t.e.a);i.a<i.c.c.length;)(n=jz(Q1(i),121)).j&&(n.e+=r);Qv(t.c)}Qv(t.c),mDt(t,jz(Q1(new Gf(t.e.a)),121)),pqt(t)}}function AOt(t,e){var n,i,r,o,a;for(r=jz(c6(t.a,(MCt(),Cle)),15).Kc();r.Ob();)switch(i=jz(r.Pb(),101),n=jz(PH(i.j,0),113).d.j,bM(o=new JF(i.j),new Qr),e.g){case 1:PCt(t,o,n,(Trt(),Lle),1);break;case 0:PCt(t,new s1(o,0,a=FPt(o)),n,(Trt(),Lle),0),PCt(t,new s1(o,a,o.c.length),n,Lle,1)}}function xOt(t,e){var n,i;if(Pst(),n=_4(rit(),e.tg())){if(i=n.j,iP(t,239))return nJ(jz(t,33))?AL(i,(ibt(),sxe))||AL(i,cxe):AL(i,(ibt(),sxe));if(iP(t,352))return AL(i,(ibt(),oxe));if(iP(t,186))return AL(i,(ibt(),lxe));if(iP(t,354))return AL(i,(ibt(),axe))}return!0}function EOt(t,e,n){var i,r,o,a,s,c;if(o=(r=n).ak(),BOt(t.e,o)){if(o.hi())for(i=jz(t.g,119),a=0;a<t.i;++a)if(Pht(s=i[a],r)&&a!=e)throw $b(new Rv(o7t))}else for(c=oOt(t.e.Tg(),o),i=jz(t.g,119),a=0;a<t.i;++a)if(s=i[a],c.rl(s.ak())&&a!=e)throw $b(new Rv(S9t));return jz(swt(t,e,n),72)}function TOt(t,e){if(e instanceof Object)try{if(e.__java$exception=t,-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&$doc.documentMode<9)return;var n=t;Object.defineProperties(e,{cause:{get:function(){var t=n.Zd();return t&&t.Xd()}},suppressed:{get:function(){return n.Yd()}}})}catch(t){}}function SOt(t,e){var n,i,r,o,a;if(i=e>>5,e&=31,i>=t.d)return t.e<0?(DNt(),Xee):(DNt(),ene);if(o=t.d-i,YEt(r=P7(SLe,lXt,25,o+1,15,1),o,t.a,i,e),t.e<0){for(n=0;n<i&&0==t.a[n];n++);if(n<i||e>0&&t.a[n]<<32-e){for(n=0;n<o&&-1==r[n];n++)r[n]=0;n==o&&++o,++r[n]}}return U0(a=new uG(t.e,o,r)),a}function DOt(t){var e,n,i,r;return n=new Ig(r=GQ(t)),i=new Bg(r),pst(e=new Mb,(!t.d&&(t.d=new cF(NIe,t,8,5)),t.d)),pst(e,(!t.e&&(t.e=new cF(NIe,t,7,4)),t.e)),jz(x5(IY(DY(new OH(null,new d1(e,16)),n),i),P9(new X,new Z,new rt,new ot,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),Une),qne]))),21)}function IOt(t,e,n,i){var r,o,a,s,c;if(Zx(),s=jz(e,66).Oj(),BOt(t.e,e)){if(e.hi()&&U$t(t,e,i,iP(e,99)&&!!(jz(e,18).Bb&$Xt)))throw $b(new Rv(o7t))}else for(c=oOt(t.e.Tg(),e),r=jz(t.g,119),a=0;a<t.i;++a)if(o=r[a],c.rl(o.ak()))throw $b(new Rv(S9t));cdt(t,_Tt(t,e,n),s?jz(i,72):Z3(e,i))}function BOt(t,e){var n,i,r;return Zx(),!!e.$j()||-2==e.Zj()&&(e==(CIt(),cPe)||e==oPe||e==aPe||e==sPe||!(Igt(r=t.Tg(),e)>=0)&&(!(n=jHt((STt(),XMe),r,e))||((i=n.Zj())>1||-1==i)&&3!=LK(j9(XMe,n))))}function MOt(t,e,n,i){var r,o,a,s,c;return s=EAt(jz(Wet((!e.b&&(e.b=new cF(OIe,e,4,7)),e.b),0),82)),c=EAt(jz(Wet((!e.c&&(e.c=new cF(OIe,e,5,8)),e.c),0),82)),XQ(s)==XQ(c)||Tet(c,s)?null:(a=UQ(e))==n?i:(o=jz(OW(t.a,a),10))&&(r=o.e)?r:null}function POt(t,e){var n;switch(DAt(e,"Label side selection ("+(n=jz(wxt(t,(zWt(),Xpe)),276))+")",1),n.g){case 0:CBt(t,(Gvt(),vSe));break;case 1:CBt(t,(Gvt(),ySe));break;case 2:czt(t,(Gvt(),vSe));break;case 3:czt(t,(Gvt(),ySe));break;case 4:aNt(t,(Gvt(),vSe));break;case 5:aNt(t,(Gvt(),ySe))}zEt(e)}function LOt(t,e,n){var i,r,o,a,s;if((o=t[u_(n,t.length)])[0].k==(aEt(),Cse))for(r=l_(n,o.length),s=e.j,i=0;i<s.c.length;i++)u1(i,s.c.length),a=jz(s.c[i],11),(n?a.j==(vGt(),aDe):a.j==(vGt(),EDe))&&zv(_N(wxt(a,(lKt(),tde))))&&(i4(s,i,jz(wxt(o[r],(lKt(),fde)),11)),r+=n?1:-1)}function OOt(t,e){var n,i,r,o,a;a=new Mb,n=e;do{(o=jz(OW(t.b,n),128)).B=n.c,o.D=n.d,a.c[a.c.length]=o,n=jz(OW(t.k,n),17)}while(n);return u1(0,a.c.length),(i=jz(a.c[0],128)).j=!0,i.A=jz(i.d.a.ec().Kc().Pb(),17).c.i,(r=jz(PH(a,a.c.length-1),128)).q=!0,r.C=jz(r.d.a.ec().Kc().Pb(),17).d.i,a}function NOt(t){if(null==t.g)switch(t.p){case 0:t.g=lJ(t)?(cL(),bee):(cL(),mee);break;case 1:t.g=xtt(L3(t));break;case 2:t.g=ust(K1(t));break;case 3:t.g=SK(t);break;case 4:t.g=new Mf(TK(t));break;case 6:t.g=ymt(DK(t));break;case 5:t.g=ndt(cQ(t));break;case 7:t.g=idt(R3(t))}return t.g}function ROt(t){if(null==t.n)switch(t.p){case 0:t.n=uJ(t)?(cL(),bee):(cL(),mee);break;case 1:t.n=xtt(O3(t));break;case 2:t.n=ust(Y1(t));break;case 3:t.n=BK(t);break;case 4:t.n=new Mf(MK(t));break;case 6:t.n=ymt(IK(t));break;case 5:t.n=ndt(lQ(t));break;case 7:t.n=idt(N3(t))}return t.n}function FOt(t){var e,n,i,r,o,a;for(r=new Gf(t.a.a);r.a<r.c.c.length;)(n=jz(Q1(r),307)).g=0,n.i=0,n.e.a.$b();for(i=new Gf(t.a.a);i.a<i.c.c.length;)for(e=(n=jz(Q1(i),307)).a.a.ec().Kc();e.Ob();)for(a=jz(e.Pb(),57).c.Kc();a.Ob();)(o=jz(a.Pb(),57)).a!=n&&(_G(n.e,o),++o.a.g,++o.a.i)}function jOt(t,e){var n,i,r;if(!ZG(t.a,e.b))throw $b(new Fv("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=new Ff(new jR(new PL(new Rf(t.a.a).a).b));rE(i.a.a);)if(n=jz(bO(i.a).cd(),65),ect(e.b,n))P_(t.b.a,e.b,n),r=!0;else if(r)break}function $Ot(t){var e,n,r,o,a;o=jz(wxt(t,(zWt(),Fme)),21),a=jz(wxt(t,zme),21),e=new dB(n=new PS(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a)),o.Hc((wpt(),LDe))&&(r=jz(wxt(t,$me),8),a.Hc((JFt(),VDe))&&(r.a<=0&&(r.a=20),r.b<=0&&(r.b=20)),e.a=i.Math.max(n.a,r.a),e.b=i.Math.max(n.b,r.b)),Gzt(t,n,e)}function zOt(t,e){var n,i,r,o,a,s,c,l;r=e?new wo:new ko,o=!1;do{for(o=!1,a=(e?eat(t.b):t.b).Kc();a.Ob();)for(l=r0(jz(a.Pb(),29).a),e||new lv(l),c=new Gf(l);c.a<c.c.c.length;)s=jz(Q1(c),10),r.Mb(s)&&(i=s,n=jz(wxt(s,(lKt(),Ohe)),305),o=eRt(i,e?n.b:n.k,e,!1))}while(o)}function VOt(t,e,n){var i,r,o,a;for(DAt(n,"Longest path layering",1),t.a=e,a=t.a.a,t.b=P7(SLe,lXt,25,a.c.length,15,1),i=0,o=new Gf(a);o.a<o.c.c.length;)jz(Q1(o),10).p=i,t.b[i]=-1,++i;for(r=new Gf(a);r.a<r.c.c.length;)OMt(t,jz(Q1(r),10));a.c=P7(Ite,zKt,1,0,5,1),t.a=null,t.b=null,zEt(n)}function HOt(t,e){var n,i,r;e.a?(ZG(t.b,e.b),t.a[e.b.i]=jz(kF(t.b,e.b),81),(n=jz(wF(t.b,e.b),81))&&(t.a[n.i]=e.b)):(!!(i=jz(kF(t.b,e.b),81))&&i==t.a[e.b.i]&&!!i.d&&i.d!=e.b.d&&i.f.Fc(e.b),!!(r=jz(wF(t.b,e.b),81))&&t.a[r.i]==e.b&&!!r.d&&r.d!=e.b.d&&e.b.f.Fc(r),CL(t.b,e.b))}function qOt(t,e){var n,r,o,a,s,c;return a=t.d,(c=Vv(CN(wxt(t,(zWt(),rme)))))<0&&lct(t,rme,c=0),e.o.b=c,s=i.Math.floor(c/2),VSt(r=new TEt,(vGt(),EDe)),EJ(r,e),r.n.b=s,VSt(o=new TEt,aDe),EJ(o,e),o.n.b=s,CJ(t,r),Vat(n=new dZ,t),lct(n,mme,null),AJ(n,o),CJ(n,a),y$t(e,t,n),cSt(t,n),n}function UOt(t){var e,n;return n=jz(wxt(t,(lKt(),Zhe)),21),e=new j2,n.Hc((dNt(),hhe))&&(Zot(e,hve),Zot(e,fve)),(n.Hc(fhe)||zv(_N(wxt(t,(zWt(),ome)))))&&(Zot(e,fve),n.Hc(ghe)&&Zot(e,gve)),n.Hc(uhe)&&Zot(e,uve),n.Hc(mhe)&&Zot(e,pve),n.Hc(dhe)&&Zot(e,dve),n.Hc(she)&&Zot(e,cve),n.Hc(lhe)&&Zot(e,lve),e}function GOt(t,e){var n,i,r,o,a,s,c,l,u;return o=(n=t.d)+(i=e.d),a=t.e!=e.e?-1:1,2==o?(u=fq(c=rft(t0(t.a[0],UXt),t0(e.a[0],UXt))),0==(l=fq(vU(c,32)))?new U6(a,u):new uG(a,2,Est(Vy(SLe,1),lXt,25,15,[u,l]))):(Oht(t.a,n,e.a,i,r=P7(SLe,lXt,25,o,15,1)),U0(s=new uG(a,o,r)),s)}function WOt(t,e,n,i){var r,o;return e?0==(r=t.a.ue(n.d,e.d))?(i.d=pR(e,n.e),i.b=!0,e):(o=r<0?0:1,e.a[o]=WOt(t,e.a[o],n,i),Wv(e.a[o])&&(Wv(e.a[1-o])?(e.b=!0,e.a[0].b=!1,e.a[1].b=!1):Wv(e.a[o].a[o])?e=frt(e,1-o):Wv(e.a[o].a[1-o])&&(e=n2(e,1-o))),e):n}function KOt(t,e,n){var r,o,a,s;o=t.i,r=t.n,Y4(t,(Oet(),Vie),o.c+r.b,n),Y4(t,qie,o.c+o.b-r.c-n[2],n),s=o.b-r.b-r.c,n[0]>0&&(n[0]+=t.d,s-=n[0]),n[2]>0&&(n[2]+=t.d,s-=n[2]),a=i.Math.max(0,s),n[1]=i.Math.max(n[1],s),Y4(t,Hie,o.c+r.b+n[0]-(n[1]-s)/2,n),e==Hie&&(t.c.b=a,t.c.c=o.c+r.b+(a-s)/2)}function YOt(){this.c=P7(MLe,VXt,25,(vGt(),Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])).length,15,1),this.b=P7(MLe,VXt,25,Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe]).length,15,1),this.a=P7(MLe,VXt,25,Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe]).length,15,1),bE(this.c,NXt),bE(this.b,RXt),bE(this.a,RXt)}function XOt(t,e,n){var i,r,o,a;if(e<=n?(r=e,o=n):(r=n,o=e),i=0,null==t.b)t.b=P7(SLe,lXt,25,2,15,1),t.b[0]=r,t.b[1]=o,t.c=!0;else{if(i=t.b.length,t.b[i-1]+1==r)return void(t.b[i-1]=o);a=P7(SLe,lXt,25,i+2,15,1),oVt(t.b,0,a,0,i),t.b=a,t.b[i-1]>=r&&(t.c=!1,t.a=!1),t.b[i++]=r,t.b[i]=o,t.c||CMt(t)}}function ZOt(t,e,n){var i,r,o,a,s,c,l;for(l=e.d,t.a=new X6(l.c.length),t.c=new Pb,s=new Gf(l);s.a<s.c.c.length;)a=jz(Q1(s),101),o=new jat(null),Gz(t.a,o),WK(t.c,a,o);for(t.b=new Pb,bSt(t,e),i=0;i<l.c.length-1;i++)for(c=jz(PH(e.d,i),101),r=i+1;r<l.c.length;r++)WPt(t,c,jz(PH(e.d,r),101),n)}function QOt(t,e,n){var i,r,o,a,s,c;if(!c3(e)){for(DAt(c=wot(n,(iP(e,14)?jz(e,14).gc():F3(e.Kc()))/t.a|0),q3t,1),s=new Ia,a=0,o=e.Kc();o.Ob();)i=jz(o.Pb(),86),s=Wnt(Est(Vy(Lte,1),zKt,20,0,[s,new hm(i)])),a<i.f.b&&(a=i.f.b);for(r=e.Kc();r.Ob();)lct(i=jz(r.Pb(),86),(VHt(),oye),a);zEt(c),QOt(t,s,n)}}function JOt(t,e){var n,r,o,a,s,c,l;for(n=RXt,aEt(),c=Ese,o=new Gf(e.a);o.a<o.c.c.length;)(a=(r=jz(Q1(o),10)).k)!=Ese&&(null==(s=CN(wxt(r,(lKt(),pde))))?(n=i.Math.max(n,0),r.n.b=n+UL(t.a,a,c)):r.n.b=(kK(s),s)),l=UL(t.a,a,c),r.n.b<n+l+r.d.d&&(r.n.b=n+l+r.d.d),n=r.n.b+r.o.b+r.d.a,c=a}function tNt(t,e,n){var i,r,o;for(Vat(o=new _Bt(GWt(VEt(rNt(e,!1,!1)),Vv(CN(QBt(e,(_bt(),poe))))+t.a)),e),WK(t.b,e,o),n.c[n.c.length]=o,!e.n&&(e.n=new tG(VIe,e,1,7)),r=new DP(e.n);r.e!=r.i.gc();)i=ZRt(t,jz(vbt(r),137),!0,0,0),n.c[n.c.length]=i;return o}function eNt(t,e,n,i,r){var o,a,s;if(t.d&&t.d.lg(r),Owt(t,n,jz(r.Xb(0),33),!1))return!0;if(Owt(t,i,jz(r.Xb(r.gc()-1),33),!0))return!0;if(Pxt(t,r))return!0;for(s=r.Kc();s.Ob();)for(a=jz(s.Pb(),33),o=e.Kc();o.Ob();)if(FNt(t,a,jz(o.Pb(),33)))return!0;return!1}function nNt(t,e,n){var i,r,o,a,s,c,l,u,h;h=e.c.length;t:for(o=jz((l=t.Yg(n))>=0?t._g(l,!1,!0):rIt(t,n,!1),58).Kc();o.Ob();){for(r=jz(o.Pb(),56),u=0;u<h;++u)if(u1(u,e.c.length),c=(a=jz(e.c[u],72)).dd(),s=a.ak(),i=r.bh(s,!1),null==c?null!=i:!Pht(c,i))continue t;return r}return null}function iNt(t,e,n,i){var r,o,a,s;for(r=jz(OEt(e,(vGt(),EDe)).Kc().Pb(),11),o=jz(OEt(e,aDe).Kc().Pb(),11),s=new Gf(t.j);s.a<s.c.c.length;){for(a=jz(Q1(s),11);0!=a.e.c.length;)CJ(jz(PH(a.e,0),17),r);for(;0!=a.g.c.length;)AJ(jz(PH(a.g,0),17),o)}n||lct(e,(lKt(),cde),null),i||lct(e,(lKt(),lde),null)}function rNt(t,e,n){var i,r;if(0==(!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i)return Vst(t);if(i=jz(Wet((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a),0),202),e&&(cHt((!i.a&&(i.a=new IP(MIe,i,5)),i.a)),Snt(i,0),Int(i,0),Cnt(i,0),Dnt(i,0)),n)for(!t.a&&(t.a=new tG(RIe,t,6,6)),r=t.a;r.i>1;)uNt(r,r.i-1);return i}function oNt(t,e){var n,i,r,o,a,s,c;for(DAt(e,"Comment post-processing",1),o=new Gf(t.b);o.a<o.c.c.length;){for(r=jz(Q1(o),29),i=new Mb,s=new Gf(r.a);s.a<s.c.c.length;)a=jz(Q1(s),10),c=jz(wxt(a,(lKt(),Nde)),15),n=jz(wxt(a,Lhe),15),(c||n)&&(WUt(a,c,n),c&&pst(i,c),n&&pst(i,n));pst(r.a,i)}zEt(e)}function aNt(t,e){var n,i,r,o,a,s;for(n=new Bb,r=new Gf(t.b);r.a<r.c.c.length;){for(s=!0,i=0,a=new Gf(jz(Q1(r),29).a);a.a<a.c.c.length;)switch((o=jz(Q1(a),10)).k.g){case 4:++i;case 1:d3(n,o);break;case 0:sSt(o,e);default:n.b==n.c||mjt(n,i,s,!1,e),s=!1,i=0}n.b==n.c||mjt(n,i,s,!0,e)}}function sNt(t,e){var n,i,r,o,a,s;for(r=new Mb,n=0;n<=t.i;n++)(i=new $W(e)).p=t.i-n,r.c[r.c.length]=i;for(s=new Gf(t.o);s.a<s.c.c.length;)xJ(a=jz(Q1(s),10),jz(PH(r,t.i-t.f[a.p]),29));for(o=new Gf(r);o.a<o.c.c.length;)0==jz(Q1(o),29).a.c.length&&DG(o);e.b.c=P7(Ite,zKt,1,0,5,1),pst(e.b,r)}function cNt(t,e){var n,i,r,o,a,s;for(n=0,s=new Gf(e);s.a<s.c.c.length;){for(a=jz(Q1(s),11),Jlt(t.b,t.d[a.p]),r=new b6(a.b);wM(r.a)||wM(r.b);)(o=CC(t,a==(i=jz(wM(r.a)?Q1(r.a):Q1(r.b),17)).c?i.d:i.c))>t.d[a.p]&&(n+=Q5(t.b,o),f3(t.a,ndt(o)));for(;!Gv(t.a);)Ctt(t.b,jz(fG(t.a),19).a)}return n}function lNt(t,e,n){var i,r,o,a;for(o=(!e.a&&(e.a=new tG(HIe,e,10,11)),e.a).i,r=new DP((!e.a&&(e.a=new tG(HIe,e,10,11)),e.a));r.e!=r.i.gc();)0==(!(i=jz(vbt(r),33)).a&&(i.a=new tG(HIe,i,10,11)),i.a).i||(o+=lNt(t,i,!1));if(n)for(a=XQ(e);a;)o+=(!a.a&&(a.a=new tG(HIe,a,10,11)),a.a).i,a=XQ(a);return o}function uNt(t,e){var n,i,r,o;return t.ej()?(i=null,r=t.fj(),t.ij()&&(i=t.kj(t.pi(e),null)),n=t.Zi(4,o=Mvt(t,e),null,e,r),t.bj()&&null!=o?(i=t.dj(o,i))?(i.Ei(n),i.Fi()):t.$i(n):i?(i.Ei(n),i.Fi()):t.$i(n),o):(o=Mvt(t,e),t.bj()&&null!=o&&(i=t.dj(o,null))&&i.Fi(),o)}function hNt(t){var e,n,r,o,a,s,c,l,u,h;for(u=t.a,e=new Ow,l=0,r=new Gf(t.d);r.a<r.c.c.length;){for(h=0,Frt((n=jz(Q1(r),222)).b,new Bt),s=cbt(n.b,0);s.b!=s.d.c;)a=jz(h3(s),222),e.a._b(a)&&(o=n.c,h<(c=a.c).d+c.a+u&&h+o.a+u>c.d&&(h=c.d+c.a+u));n.c.d=h,e.a.zc(n,e),l=i.Math.max(l,n.c.d+n.c.a)}return l}function dNt(){dNt=I,che=new BT("COMMENTS",0),uhe=new BT("EXTERNAL_PORTS",1),hhe=new BT("HYPEREDGES",2),dhe=new BT("HYPERNODES",3),fhe=new BT("NON_FREE_PORTS",4),ghe=new BT("NORTH_SOUTH_PORTS",5),mhe=new BT(H1t,6),she=new BT("CENTER_LABELS",7),lhe=new BT("END_LABELS",8),phe=new BT("PARTITIONS",9)}function fNt(t){var e,n,i,r,o;for(r=new Mb,e=new IH((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a)),i=new aU(ZP(gPt(t).a.Kc(),new u));gBt(i);)iP(Wet((!(n=jz(q4(i),79)).b&&(n.b=new cF(OIe,n,4,7)),n.b),0),186)||(o=EAt(jz(Wet((!n.c&&(n.c=new cF(OIe,n,5,8)),n.c),0),82)),e.a._b(o)||(r.c[r.c.length]=o));return r}function gNt(t){var e,n,i,r,o;for(r=new Ow,e=new IH((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a)),i=new aU(ZP(gPt(t).a.Kc(),new u));gBt(i);)iP(Wet((!(n=jz(q4(i),79)).b&&(n.b=new cF(OIe,n,4,7)),n.b),0),186)||(o=EAt(jz(Wet((!n.c&&(n.c=new cF(OIe,n,5,8)),n.c),0),82)),e.a._b(o)||r.a.zc(o,r));return r}function pNt(t,e,n,i,r){return i<0?((i=qAt(t,r,Est(Vy(Yee,1),cYt,2,6,[XYt,ZYt,QYt,JYt,tXt,eXt,nXt,iXt,rXt,oXt,aXt,sXt]),e))<0&&(i=qAt(t,r,Est(Vy(Yee,1),cYt,2,6,["Jan","Feb","Mar","Apr",tXt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(i<0||(n.k=i,0))):i>0&&(n.k=i-1,!0)}function mNt(t,e,n,i,r){return i<0?((i=qAt(t,r,Est(Vy(Yee,1),cYt,2,6,[XYt,ZYt,QYt,JYt,tXt,eXt,nXt,iXt,rXt,oXt,aXt,sXt]),e))<0&&(i=qAt(t,r,Est(Vy(Yee,1),cYt,2,6,["Jan","Feb","Mar","Apr",tXt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e)),!(i<0||(n.k=i,0))):i>0&&(n.k=i-1,!0)}function bNt(t,e,n,i,r,o){var a,s,c;if(s=32,i<0){if(e[0]>=t.length)return!1;if(43!=(s=lY(t,e[0]))&&45!=s)return!1;if(++e[0],(i=UDt(t,e))<0)return!1;45==s&&(i=-i)}return 32==s&&e[0]-n==2&&2==r.b&&(a=(c=(new DA).q.getFullYear()-cXt+cXt-80)%100,o.a=i==a,i+=100*(c/100|0)+(i<a?100:0)),o.p=i,!0}function wNt(t,e){var n,r,o;XQ(t)&&(o=jz(wxt(e,(zWt(),Fme)),174),VD(QBt(t,tbe))===VD((YCt(),YSe))&&Xbt(t,tbe,KSe),Vx(),r=VUt(new Lv(XQ(t)),new XL(XQ(t)?new Lv(XQ(t)):null,t),!1,!0),srt(o,(wpt(),LDe)),(n=jz(wxt(e,$me),8)).a=i.Math.max(r.a,n.a),n.b=i.Math.max(r.b,n.b))}function kNt(t,e,n){var i,r,o,a,s,c;for(a=jz(wxt(t,(lKt(),Qhe)),15).Kc();a.Ob();){switch(o=jz(a.Pb(),10),jz(wxt(o,(zWt(),kme)),163).g){case 2:xJ(o,e);break;case 4:xJ(o,n)}for(r=new aU(ZP(lft(o).a.Kc(),new u));gBt(r);)(i=jz(q4(r),17)).c&&i.d||(s=!i.d,c=jz(wxt(i,bde),11),s?CJ(i,c):AJ(i,c))}}function vNt(){vNt=I,jle=new GY(wQt,0,(vGt(),sDe),sDe),Vle=new GY(vQt,1,ADe,ADe),Fle=new GY(kQt,2,aDe,aDe),Ule=new GY(yQt,3,EDe,EDe),zle=new GY("NORTH_WEST_CORNER",4,EDe,sDe),$le=new GY("NORTH_EAST_CORNER",5,sDe,aDe),qle=new GY("SOUTH_WEST_CORNER",6,ADe,EDe),Hle=new GY("SOUTH_EAST_CORNER",7,aDe,ADe)}function yNt(){yNt=I,Cxe=Est(Vy(ILe,1),jXt,25,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),i.Math.pow(2,-65)}function _Nt(t,e){var n,i,r,o,a;if(0==t.c.length)return new nD(ndt(0),ndt(0));for(n=(u1(0,t.c.length),jz(t.c[0],11)).j,a=0,o=e.g,i=e.g+1;a<t.c.length-1&&n.g<o;)n=(u1(++a,t.c.length),jz(t.c[a],11)).j;for(r=a;r<t.c.length-1&&n.g<i;)++r,n=(u1(a,t.c.length),jz(t.c[a],11)).j;return new nD(ndt(a),ndt(r))}function CNt(t,e,n){var r,o,a,s,c,l,u,h,d,f;for(a=e.c.length,u1(n,e.c.length),c=(s=jz(e.c[n],286)).a.o.a,d=s.c,f=0,u=s.c;u<=s.f;u++){if(c<=t.a[u])return u;for(h=t.a[u],l=null,o=n+1;o<a;o++)u1(o,e.c.length),(r=jz(e.c[o],286)).c<=u&&r.f>=u&&(l=r);l&&(h=i.Math.max(h,l.a.o.a)),h>f&&(d=u,f=h)}return d}function ANt(t,e,n){var i,r,o;if(t.e=n,t.d=0,t.b=0,t.f=1,t.i=e,!(16&~t.e)&&(t.i=mFt(t.i)),t.j=t.i.length,YWt(t),o=Kpt(t),t.d!=t.j)throw $b(new ry(vKt((oM(),f7t))));if(t.g){for(i=0;i<t.g.a.c.length;i++)if(r=jz(hK(t.g,i),584),t.f<=r.a)throw $b(new ry(vKt((oM(),g7t))));t.g.a.c=P7(Ite,zKt,1,0,5,1)}return o}function xNt(t,e){var n,i,r;if(null==e){for(!t.a&&(t.a=new tG(UBe,t,9,5)),i=new DP(t.a);i.e!=i.i.gc();)if(null==(null==(r=(n=jz(vbt(i),678)).c)?n.zb:r))return n}else for(!t.a&&(t.a=new tG(UBe,t,9,5)),i=new DP(t.a);i.e!=i.i.gc();)if(bF(e,null==(r=(n=jz(vbt(i),678)).c)?n.zb:r))return n;return null}function ENt(t,e){var n;switch(n=null,e.g){case 1:t.e.Xe((cKt(),tTe))&&(n=jz(t.e.We(tTe),249));break;case 3:t.e.Xe((cKt(),eTe))&&(n=jz(t.e.We(eTe),249));break;case 2:t.e.Xe((cKt(),JEe))&&(n=jz(t.e.We(JEe),249));break;case 4:t.e.Xe((cKt(),nTe))&&(n=jz(t.e.We(nTe),249))}return!n&&(n=jz(t.e.We((cKt(),ZEe)),249)),n}function TNt(t,e,n){var i,r,o,a,s,c;for(e.p=1,r=e.c,c=Lgt(e,(oit(),zwe)).Kc();c.Ob();)for(i=new Gf(jz(c.Pb(),11).g);i.a<i.c.c.length;)e!=(s=jz(Q1(i),17).d.i)&&s.c.p<=r.p&&((o=r.p+1)==n.b.c.length?((a=new $W(n)).p=o,Gz(n.b,a),xJ(s,a)):xJ(s,a=jz(PH(n.b,o),29)),TNt(t,s,n))}function SNt(t,e,n){var r,o,a,s,c,l;for(o=n,a=0,c=new Gf(e);c.a<c.c.c.length;)Xbt(s=jz(Q1(c),33),(Uvt(),B_e),ndt(o++)),l=fNt(s),r=i.Math.atan2(s.j+s.f/2,s.i+s.g/2),(r+=r<0?Q3t:0)<.7853981633974483||r>m5t?bM(l,t.b):r<=m5t&&r>b5t?bM(l,t.d):r<=b5t&&r>w5t?bM(l,t.c):r<=w5t&&bM(l,t.a),a=SNt(t,l,a);return o}function DNt(){var t;for(DNt=I,Zee=new U6(1,1),Jee=new U6(1,10),ene=new U6(0,0),Xee=new U6(-1,1),Qee=Est(Vy(sne,1),cYt,91,0,[ene,Zee,new U6(1,2),new U6(1,3),new U6(1,4),new U6(1,5),new U6(1,6),new U6(1,7),new U6(1,8),new U6(1,9),Jee]),tne=P7(sne,cYt,91,32,0,1),t=0;t<tne.length;t++)tne[t]=Jmt(wU(1,t))}function INt(t,e,n,i,r,o){var a,s,c,l;for(s=!vC(DY(t.Oc(),new rg(new Qn))).sd((fx(),Jne)),a=t,o==(jht(),$Te)&&(a=iP(a,152)?a6(jz(a,152)):iP(a,131)?jz(a,131).a:iP(a,54)?new lv(a):new EA(a)),l=a.Kc();l.Ob();)(c=jz(l.Pb(),70)).n.a=e.a,c.n.b=s?e.b+(i.b-c.o.b)/2:r?e.b:e.b+i.b-c.o.b,e.a+=c.o.a+n}function BNt(t,e,n,i){var r,o,a,s,c;for(r=(i.c+i.a)/2,wX(e.j),LV(e.j,r),wX(n.e),LV(n.e,r),c=new H_,a=new Gf(t.f);a.a<a.c.c.length;)N_t(c,e,s=jz(Q1(a),129).a),N_t(c,n,s);for(o=new Gf(t.k);o.a<o.c.c.length;)N_t(c,e,s=jz(Q1(o),129).b),N_t(c,n,s);return c.b+=2,c.a+=BX(e,t.q),c.a+=BX(t.q,n),c}function MNt(t,e,n){var i,r,o,a,s;if(!c3(e)){for(DAt(s=wot(n,(iP(e,14)?jz(e,14).gc():F3(e.Kc()))/t.a|0),q3t,1),a=new Ma,o=null,r=e.Kc();r.Ob();)i=jz(r.Pb(),86),a=Wnt(Est(Vy(Lte,1),zKt,20,0,[a,new hm(i)])),o&&(lct(o,(VHt(),hye),i),lct(i,iye,o),V7(i)==V7(o)&&(lct(o,dye,i),lct(i,rye,o))),o=i;zEt(s),MNt(t,a,n)}}function PNt(t){var e,n,i,r,o,a,s;for(n=t.i,e=t.n,s=n.d,t.f==(V9(),nre)?s+=(n.a-t.e.b)/2:t.f==ere&&(s+=n.a-t.e.b),r=new Gf(t.d);r.a<r.c.c.length;){switch(a=(i=jz(Q1(r),181)).rf(),(o=new V_).b=s,s+=a.b+t.a,t.b.g){case 0:o.a=n.c+e.b;break;case 1:o.a=n.c+e.b+(n.b-a.a)/2;break;case 2:o.a=n.c+n.b-e.c-a.a}i.tf(o)}}function LNt(t){var e,n,i,r,o,a,s;for(n=t.i,e=t.n,s=n.c,t.b==(X8(),Kie)?s+=(n.b-t.e.a)/2:t.b==Xie&&(s+=n.b-t.e.a),r=new Gf(t.d);r.a<r.c.c.length;){switch(a=(i=jz(Q1(r),181)).rf(),(o=new V_).a=s,s+=a.a+t.a,t.f.g){case 0:o.b=n.d+e.d;break;case 1:o.b=n.d+e.d+(n.a-a.b)/2;break;case 2:o.b=n.d+n.a-e.a-a.b}i.tf(o)}}function ONt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;l=n.a.c,a=n.a.c+n.a.b,d=(o=jz(OW(n.c,e),459)).f,f=o.a,s=new PS(l,d),u=new PS(a,f),r=l,n.p||(r+=t.c),c=new PS(r+=n.F+n.v*t.b,d),h=new PS(r,f),Jnt(e.a,Est(Vy(xxe,1),cYt,8,0,[s,c])),n.d.a.gc()>1&&(i=new PS(r,n.b),LV(e.a,i)),Jnt(e.a,Est(Vy(xxe,1),cYt,8,0,[h,u]))}function NNt(t){Mx(t,new AAt(m_(d_(p_(g_(new ms,F4t),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new Zs))),o2(t,F4t,YQt,BDe),o2(t,F4t,bJt,15),o2(t,F4t,kJt,ndt(0)),o2(t,F4t,KQt,gJt)}function RNt(){var t,e,n,i,r,o;for(RNt=I,WPe=P7(BLe,b6t,25,255,15,1),KPe=P7(TLe,WYt,25,16,15,1),e=0;e<255;e++)WPe[e]=-1;for(n=57;n>=48;n--)WPe[n]=n-48<<24>>24;for(i=70;i>=65;i--)WPe[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)WPe[r]=r-97+10<<24>>24;for(o=0;o<10;o++)KPe[o]=48+o&YYt;for(t=10;t<=15;t++)KPe[t]=65+t-10&YYt}function FNt(t,e,n){var i,r,o,a,s,c,l,u;return s=e.i-t.g/2,c=n.i-t.g/2,l=e.j-t.g/2,u=n.j-t.g/2,o=e.g+t.g/2,a=n.g+t.g/2,i=e.f+t.g/2,r=n.f+t.g/2,s<c+a&&c<s&&l<u+r&&u<l||c<s+o&&s<c&&u<l+i&&l<u||s<c+a&&c<s&&l<u&&u<l+i||c<s+o&&s<c&&l<u+r&&u<l}function jNt(t){var e,n,r,o,a;o=jz(wxt(t,(zWt(),Fme)),21),a=jz(wxt(t,zme),21),e=new dB(n=new PS(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a)),o.Hc((wpt(),LDe))&&(r=jz(wxt(t,$me),8),a.Hc((JFt(),VDe))&&(r.a<=0&&(r.a=20),r.b<=0&&(r.b=20)),e.a=i.Math.max(n.a,r.a),e.b=i.Math.max(n.b,r.b)),zv(_N(wxt(t,jme)))||Uzt(t,n,e)}function $Nt(t,e){var n,i,r,o;for(o=oft(e,(vGt(),ADe)).Kc();o.Ob();)i=jz(o.Pb(),11),(n=jz(wxt(i,(lKt(),yde)),10))&&ULt(rx(ix(ox(nx(new $w,0),.1),t.i[e.p].d),t.i[n.p].a));for(r=oft(e,sDe).Kc();r.Ob();)i=jz(r.Pb(),11),(n=jz(wxt(i,(lKt(),yde)),10))&&ULt(rx(ix(ox(nx(new $w,0),.1),t.i[n.p].d),t.i[e.p].a))}function zNt(t){var e,n,i,r,o;if(!t.c){if(o=new Cc,null==(e=AMe).a.zc(t,e)){for(i=new DP(r5(t));i.e!=i.i.gc();)iP(r=h$t(n=jz(vbt(i),87)),88)&&pW(o,zNt(jz(r,26))),l8(o,n);e.a.Bc(t),e.a.gc()}Bgt(o),rut(o),t.c=new MI((jz(Wet(KX((KW(),QBe).o),15),18),o.i),o.g),x4(t).b&=-33}return t.c}function VNt(t){var e;if(10!=t.c)throw $b(new ry(vKt((oM(),p7t))));switch(e=t.a){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw $b(new ry(vKt((oM(),U7t))))}return e}function HNt(t){var e,n,i,r;if(0==t.l&&0==t.m&&0==t.h)return"0";if(t.h==TXt&&0==t.m&&0==t.l)return"-9223372036854775808";if(t.h>>19)return"-"+HNt(oct(t));for(n=t,i="";0!=n.l||0!=n.m||0!=n.h;){if(n=IHt(n,F4(IXt),!0),e=""+_C(hee),0!=n.l||0!=n.m||0!=n.h)for(r=9-e.length;r>0;r--)e="0"+e;i=e+i}return i}function qNt(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var t="__proto__",e=Object.create(null);return void 0===e[t]&&0==Object.getOwnPropertyNames(e).length&&(e[t]=42,42===e[t]&&0!=Object.getOwnPropertyNames(e).length)}function UNt(t){var e,n,i,r,o,a,s;for(e=!1,n=0,r=new Gf(t.d.b);r.a<r.c.c.length;)for((i=jz(Q1(r),29)).p=n++,a=new Gf(i.a);a.a<a.c.c.length;)o=jz(Q1(a),10),!e&&!c3(lft(o))&&(e=!0);s=yq((jht(),jTe),Est(Vy(GTe,1),BYt,103,0,[RTe,FTe])),e||(srt(s,$Te),srt(s,NTe)),t.a=new het(s),IG(t.f),IG(t.b),IG(t.e),IG(t.g)}function GNt(t,e,n){var i,r,o,a,s,c,l,u,h;for(i=n.c,r=n.d,s=g1(e.c),c=g1(e.d),i==e.c?(s=hPt(t,s,r),c=cxt(e.d)):(s=cxt(e.c),c=hPt(t,c,r)),n4(l=new N_(e.a),s,l.a,l.a.a),n4(l,c,l.c.b,l.c),a=e.c==i,h=new Xw,o=0;o<l.b-1;++o)u=new nD(jz(Obt(l,o),8),jz(Obt(l,o+1),8)),a&&0==o||!a&&o==l.b-2?h.b=u:Gz(h.a,u);return h}function WNt(t,e){var n,i,r,o;if(0!=(o=t.j.g-e.j.g))return o;if(n=jz(wxt(t,(zWt(),ebe)),19),i=jz(wxt(e,ebe),19),n&&i&&0!=(r=n.a-i.a))return r;switch(t.j.g){case 1:return Edt(t.n.a,e.n.a);case 2:return Edt(t.n.b,e.n.b);case 3:return Edt(e.n.a,t.n.a);case 4:return Edt(e.n.b,t.n.b);default:throw $b(new Fv(i1t))}}function KNt(t,e,n,r){var o,a,s,c;if(F3((zj(),new aU(ZP(lft(e).a.Kc(),new u))))>=t.a)return-1;if(!eAt(e,n))return-1;if(c3(jz(r.Kb(e),20)))return 1;for(o=0,s=jz(r.Kb(e),20).Kc();s.Ob();){if(-1==(c=KNt(t,(a=jz(s.Pb(),17)).c.i==e?a.d.i:a.c.i,n,r)))return-1;if((o=i.Math.max(o,c))>t.c-1)return-1}return o+1}function YNt(t,e){var n,i,r,o,a,s;if(VD(e)===VD(t))return!0;if(!iP(e,15))return!1;if(i=jz(e,15),s=t.gc(),i.gc()!=s)return!1;if(a=i.Kc(),t.ni()){for(n=0;n<s;++n)if(r=t.ki(n),o=a.Pb(),null==r?null!=o:!Pht(r,o))return!1}else for(n=0;n<s;++n)if(r=t.ki(n),o=a.Pb(),VD(r)!==VD(o))return!1;return!0}function XNt(t,e){var n,i,r,o,a,s;if(t.f>0)if(t.qj(),null!=e){for(o=0;o<t.d.length;++o)if(n=t.d[o])for(i=jz(n.g,367),s=n.i,a=0;a<s;++a)if(Pht(e,(r=i[a]).dd()))return!0}else for(o=0;o<t.d.length;++o)if(n=t.d[o])for(i=jz(n.g,367),s=n.i,a=0;a<s;++a)if(r=i[a],VD(e)===VD(r.dd()))return!0;return!1}function ZNt(t,e,n){var i,r,o,a;DAt(n,"Orthogonally routing hierarchical port edges",1),t.a=0,Pqt(e,i=UVt(e)),YHt(t,e,i),uGt(e),r=jz(wxt(e,(zWt(),tbe)),98),TUt((u1(0,(o=e.b).c.length),jz(o.c[0],29)),r,e),TUt(jz(PH(o,o.c.length-1),29),r,e),Czt((u1(0,(a=e.b).c.length),jz(a.c[0],29))),Czt(jz(PH(a,a.c.length-1),29)),zEt(n)}function QNt(t){switch(t){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t-48<<24>>24;case 97:case 98:case 99:case 100:case 101:case 102:return t-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return t-65+10<<24>>24;default:throw $b(new Cy("Invalid hexadecimal"))}}function JNt(t,e,n){var i,r,o,a;for(DAt(n,"Processor order nodes",2),t.a=Vv(CN(wxt(e,(TBt(),Pye)))),r=new YA,a=cbt(e.b,0);a.b!=a.d.c;)zv(_N(wxt(o=jz(h3(a),86),(VHt(),fye))))&&n4(r,o,r.c.b,r.c);xO(0!=r.b),RVt(t,i=jz(r.a.a.c,86)),!n.b&&Vit(n,1),$Rt(t,i,0-Vv(CN(wxt(i,(VHt(),oye))))/2,0),!n.b&&Vit(n,1),zEt(n)}function tRt(){tRt=I,Oie=new $E("SPIRAL",0),Iie=new $E("LINE_BY_LINE",1),Bie=new $E("MANHATTAN",2),Die=new $E("JITTER",3),Pie=new $E("QUADRANTS_LINE_BY_LINE",4),Lie=new $E("QUADRANTS_MANHATTAN",5),Mie=new $E("QUADRANTS_JITTER",6),Sie=new $E("COMBINE_LINE_BY_LINE_MANHATTAN",7),Tie=new $E("COMBINE_JITTER_MANHATTAN",8)}function eRt(t,e,n,i){var r,o,a,s,c,l;for(c=P_t(t,n),l=P_t(e,n),r=!1;c&&l&&(i||wvt(c,l,n));)a=P_t(c,n),s=P_t(l,n),D9(e),D9(t),o=c.c,iqt(c,!1),iqt(l,!1),n?(Yvt(e,l.p,o),e.p=l.p,Yvt(t,c.p+1,o),t.p=c.p):(Yvt(t,c.p,o),t.p=c.p,Yvt(e,l.p+1,o),e.p=l.p),xJ(c,null),xJ(l,null),c=a,l=s,r=!0;return r}function nRt(t,e,n,i){var r,o,a,s,c;for(r=!1,o=!1,s=new Gf(i.j);s.a<s.c.c.length;)VD(wxt(a=jz(Q1(s),11),(lKt(),fde)))===VD(n)&&(0==a.g.c.length?0==a.e.c.length||(r=!0):o=!0);return c=0,r&&r^o?c=n.j==(vGt(),sDe)?-t.e[i.c.p][i.p]:e-t.e[i.c.p][i.p]:o&&r^o?c=t.e[i.c.p][i.p]+1:r&&o&&(c=n.j==(vGt(),sDe)?0:e/2),c}function iRt(t,e,n,i,r,o,a,s){var c,l,u;for(c=0,null!=e&&(c^=bwt(e.toLowerCase())),null!=n&&(c^=bwt(n)),null!=i&&(c^=bwt(i)),null!=a&&(c^=bwt(a)),null!=s&&(c^=bwt(s)),l=0,u=o.length;l<u;l++)c^=bwt(o[l]);t?c|=256:c&=-257,r?c|=16:c&=-17,this.f=c,this.i=null==e?null:(kK(e),e),this.a=n,this.d=i,this.j=o,this.g=a,this.e=s}function rRt(t,e,n){var i,r;switch(r=null,e.g){case 1:pot(),r=Mse;break;case 2:pot(),r=Lse}switch(i=null,n.g){case 1:pot(),i=Pse;break;case 2:pot(),i=Bse;break;case 3:pot(),i=Ose;break;case 4:pot(),i=Nse}return r&&i?Nz(t.j,new jh(new Xv(Est(Vy(Mte,1),zKt,169,0,[jz(wW(r),169),jz(wW(i),169)])))):(AX(),AX(),cne)}function oRt(t){var e,n,i;switch(e=jz(wxt(t,(zWt(),$me)),8),lct(t,$me,new PS(e.b,e.a)),jz(wxt(t,kpe),248).g){case 1:lct(t,kpe,(fwt(),Bxe));break;case 2:lct(t,kpe,(fwt(),Txe));break;case 3:lct(t,kpe,(fwt(),Dxe));break;case 4:lct(t,kpe,(fwt(),Ixe))}(t.q?t.q:(AX(),AX(),lne))._b(sbe)&&(i=(n=jz(wxt(t,sbe),8)).a,n.a=n.b,n.b=i)}function aRt(t,e,n,i,r,o){if(this.b=n,this.d=r,t>=e.length)throw $b(new Dv("Greedy SwitchDecider: Free layer not in graph."));this.c=e[t],this.e=new KF(i),krt(this.e,this.c,(vGt(),EDe)),this.i=new KF(i),krt(this.i,this.c,aDe),this.f=new uq(this.c),this.a=!o&&r.i&&!r.s&&this.c[0].k==(aEt(),Cse),this.a&&pTt(this,t,e.length)}function sRt(t,e){var n,i,r,o,a,s;o=!t.B.Hc((JFt(),$De)),a=t.B.Hc(HDe),t.a=new zgt(a,o,t.c),t.n&&kX(t.a.n,t.n),vv(t.g,(Oet(),Hie),t.a),e||((i=new Smt(1,o,t.c)).n.a=t.k,bq(t.p,(vGt(),sDe),i),(r=new Smt(1,o,t.c)).n.d=t.k,bq(t.p,ADe,r),(s=new Smt(0,o,t.c)).n.c=t.k,bq(t.p,EDe,s),(n=new Smt(0,o,t.c)).n.b=t.k,bq(t.p,aDe,n))}function cRt(t){var e,n,i;switch((e=jz(wxt(t.d,(zWt(),Zpe)),218)).g){case 2:n=AWt(t);break;case 3:i=new Mb,XA(DY(IY(dtt(dtt(new OH(null,new d1(t.d.b,16)),new Ir),new Br),new Mr),new br),new Ep(i)),n=i;break;default:throw $b(new Fv("Compaction not supported for "+e+" edges."))}pHt(t,n),t4(new Ef(t.g),new Ap(t))}function lRt(t,e){var n;return n=new Qt,e&&Vat(n,jz(OW(t.a,PIe),94)),iP(e,470)&&Vat(n,jz(OW(t.a,LIe),94)),iP(e,354)?(Vat(n,jz(OW(t.a,VIe),94)),n):(iP(e,82)&&Vat(n,jz(OW(t.a,OIe),94)),iP(e,239)?(Vat(n,jz(OW(t.a,HIe),94)),n):iP(e,186)?(Vat(n,jz(OW(t.a,qIe),94)),n):(iP(e,352)&&Vat(n,jz(OW(t.a,NIe),94)),n))}function uRt(){uRt=I,Zoe=new UB((cKt(),pTe),ndt(1)),iae=new UB(BTe,80),nae=new UB(ATe,5),Foe=new UB(iEe,gJt),Qoe=new UB(mTe,ndt(1)),eae=new UB(kTe,(cL(),!0)),Koe=new GB(50),Woe=new UB(UEe,Koe),$oe=EEe,Yoe=oTe,joe=new UB(fEe,!1),Goe=qEe,Uoe=zEe,qoe=NEe,Hoe=LEe,Xoe=lTe,yEt(),Voe=Toe,rae=Moe,zoe=Eoe,Joe=Doe,tae=Boe}function hRt(t){var e,n,i,r,o,a,s;for(s=new m4,a=new Gf(t.a);a.a<a.c.c.length;)if((o=jz(Q1(a),10)).k!=(aEt(),Cse))for(FBt(s,o,new V_),r=new aU(ZP(hft(o).a.Kc(),new u));gBt(r);)if((i=jz(q4(r),17)).c.i.k!=Cse&&i.d.i.k!=Cse)for(n=cbt(i.a,0);n.b!=n.d.c;)X_t(s,new fT((e=jz(h3(n),8)).a,e.b));return s}function dRt(){dRt=I,OAe=new ob(R5t),Sx(),PAe=new II(V5t,LAe=VAe),Mst(),BAe=new II(F5t,MAe=GAe),BEt(),DAe=new II(j5t,IAe=nAe),xAe=new II($5t,null),I6(),TAe=new II(z5t,SAe=ZCe),Ex(),vAe=new II(H5t,yAe=UCe),_Ae=new II(q5t,(cL(),!1)),CAe=new II(U5t,ndt(64)),AAe=new II(G5t,!0),EAe=QCe}function fRt(t){var e,n,i,r,o;if(null==t.a)if(t.a=P7(DLe,QZt,25,t.c.b.c.length,16,1),t.a[0]=!1,BO(t.c,(zWt(),qbe)))for(n=jz(wxt(t.c,qbe),15).Kc();n.Ob();)(e=jz(n.Pb(),19).a)>0&&e<t.a.length&&(t.a[e]=!1);else for((o=new Gf(t.c.b)).a<o.c.c.length&&Q1(o),i=1;o.a<o.c.c.length;)r=jz(Q1(o),29),t.a[i++]=UMt(r)}function gRt(t,e){var n,i;switch(i=t.b,e){case 1:t.b|=1,t.b|=4,t.b|=8;break;case 2:t.b|=2,t.b|=4,t.b|=8;break;case 4:t.b|=1,t.b|=2,t.b|=4,t.b|=8;break;case 3:t.b|=16,t.b|=8;break;case 0:t.b|=32,t.b|=16,t.b|=8,t.b|=1,t.b|=2,t.b|=4}if(t.b!=i&&t.c)for(n=new DP(t.c);n.e!=n.i.gc();)ISt(x4(jz(vbt(n),473)),e)}function pRt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f;for(r=!1,s=0,c=(a=e).length;s<c;++s)o=a[s],zv((cL(),!!o.e))&&!jz(PH(t.b,o.e.p),214).s&&(r|=(l=o.e,(h=(u=jz(PH(t.b,l.p),214)).e)[d=l_(n,h.length)][0].k==(aEt(),Cse)?h[d]=BLt(o,h[d],n?(vGt(),EDe):(vGt(),aDe)):u.c.Tf(h,n),f=OLt(t,u,n,i),LOt(u.e,u.o,n),f));return r}function mRt(t,e){var n,i,r,o,a;for(o=(!e.a&&(e.a=new tG(HIe,e,10,11)),e.a).i,r=new DP((!e.a&&(e.a=new tG(HIe,e,10,11)),e.a));r.e!=r.i.gc();)VD(QBt(i=jz(vbt(r),33),(cKt(),yEe)))!==VD((aht(),bSe))&&((a=jz(QBt(e,bTe),149))==(n=jz(QBt(i,bTe),149))||a&&v4(a,n))&&0!=(!i.a&&(i.a=new tG(HIe,i,10,11)),i.a).i&&(o+=mRt(t,i));return o}function bRt(t){var e,n,i,r,o,a,s;for(i=0,s=0,a=new Gf(t.d);a.a<a.c.c.length;)o=jz(Q1(a),101),r=jz(x5(DY(new OH(null,new d1(o.j,16)),new Wr),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15),n=null,i<=s?(vGt(),n=sDe,i+=r.gc()):s<i&&(vGt(),n=ADe,s+=r.gc()),e=n,XA(IY(r.Oc(),new Vr),new Dp(e))}function wRt(t){var e,n,i,r,o,a,s,c;for(t.b=new bIt(new Xv((vGt(),Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe]))),new Xv((Trt(),Est(Vy(Gle,1),BYt,361,0,[Ole,Lle,Ple])))),s=0,c=(a=Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])).length;s<c;++s)for(o=a[s],i=0,r=(n=Est(Vy(Gle,1),BYt,361,0,[Ole,Lle,Ple])).length;i<r;++i)e=n[i],W_t(t.b,o,e,new Mb)}function kRt(t,e){var n,i,r,o,a,s,c,l,u,h;if(a=jz(jz(c6(t.r,e),21),84),s=t.u.Hc((hDt(),nDe)),n=t.u.Hc(JSe),i=t.u.Hc(QSe),l=t.u.Hc(iDe),h=t.B.Hc((JFt(),KDe)),u=!n&&!i&&(l||2==a.gc()),lOt(t,e),r=null,c=null,s){for(c=r=jz((o=a.Kc()).Pb(),111);o.Ob();)c=jz(o.Pb(),111);r.d.b=0,c.d.c=0,u&&!r.a&&(r.d.c=0)}h&&(OAt(a),s&&(r.d.b=0,c.d.c=0))}function vRt(t,e){var n,i,r,o,a,s,c,l,u,h;if(a=jz(jz(c6(t.r,e),21),84),s=t.u.Hc((hDt(),nDe)),n=t.u.Hc(JSe),i=t.u.Hc(QSe),c=t.u.Hc(iDe),h=t.B.Hc((JFt(),KDe)),l=!n&&!i&&(c||2==a.gc()),Kjt(t,e),u=null,r=null,s){for(r=u=jz((o=a.Kc()).Pb(),111);o.Ob();)r=jz(o.Pb(),111);u.d.d=0,r.d.a=0,l&&!u.a&&(u.d.a=0)}h&&(NAt(a),s&&(u.d.d=0,r.d.a=0))}function yRt(t,e,n){var i,r,o,a,s;if(i=e.k,e.p>=0)return!1;if(e.p=n.b,Gz(n.e,e),i==(aEt(),xse)||i==Tse)for(r=new Gf(e.j);r.a<r.c.c.length;)for(s=new Hg(new Gf(new Vg(jz(Q1(r),11)).a.g));wM(s.a);)if(a=(o=jz(Q1(s.a),17).d.i).k,e.c!=o.c&&(a==xse||a==Tse)&&yRt(t,o,n))return!0;return!0}function _Rt(t){var e;return 64&t.Db?RIt(t):((e=new lL(RIt(t))).a+=" (changeable: ",wC(e,!!(t.Bb&v6t)),e.a+=", volatile: ",wC(e,!!(t.Bb&A8t)),e.a+=", transient: ",wC(e,!!(t.Bb&FXt)),e.a+=", defaultValueLiteral: ",iI(e,t.j),e.a+=", unsettable: ",wC(e,!!(t.Bb&C8t)),e.a+=", derived: ",wC(e,!!(t.Bb&lYt)),e.a+=")",e.a)}function CRt(t){var e,n,i,r,o,a,s,c,l,u;for(n=PPt(t.d),o=(r=jz(wxt(t.b,(_bt(),moe)),116)).b+r.c,a=r.d+r.a,c=n.d.a*t.e+o,s=n.b.a*t.f+a,Id(t.b,new PS(c,s)),u=new Gf(t.g);u.a<u.c.c.length;)e=qR(FO(new PS((l=jz(Q1(u),562)).g-n.a.a,l.i-n.c.a),l.a,l.b),kP(jO(jM(WB(l.e)),l.d*l.a,l.c*l.b),-.5)),i=KB(l.e),e_(l.e,UR(e,i))}function ARt(t,e,n,i){var r,o,a,s,c;for(c=P7(MLe,cYt,104,(vGt(),Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])).length,0,2),a=0,s=(o=Est(Vy(FDe,1),XJt,61,0,[xDe,sDe,aDe,ADe,EDe])).length;a<s;++a)c[(r=o[a]).g]=P7(MLe,VXt,25,t.c[r.g],15,1);return $yt(c,t,sDe),$yt(c,t,ADe),Lkt(c,t,sDe,e,n,i),Lkt(c,t,aDe,e,n,i),Lkt(c,t,ADe,e,n,i),Lkt(c,t,EDe,e,n,i),c}function xRt(t,e,n){if(cG(t.a,e)){if(FA(jz(OW(t.a,e),53),n))return 1}else WK(t.a,e,new Ow);if(cG(t.a,n)){if(FA(jz(OW(t.a,n),53),e))return-1}else WK(t.a,n,new Ow);if(cG(t.b,e)){if(FA(jz(OW(t.b,e),53),n))return-1}else WK(t.b,e,new Ow);if(cG(t.b,n)){if(FA(jz(OW(t.b,n),53),e))return 1}else WK(t.b,n,new Ow);return 0}function ERt(t,e,n,i){var r,o,a,s,c,l;if(null==n)for(r=jz(t.g,119),s=0;s<t.i;++s)if((a=r[s]).ak()==e)return Fbt(t,a,i);return Zx(),o=jz(e,66).Oj()?jz(n,72):Z3(e,n),bB(t.e)?(l=!opt(t,e),i=Xgt(t,o,i),c=e.$j()?BZ(t,3,e,null,n,mzt(t,e,n,iP(e,99)&&!!(jz(e,18).Bb&$Xt)),l):BZ(t,1,e,e.zj(),n,-1,l),i?i.Ei(c):i=c):i=Xgt(t,o,i),i}function TRt(t){var e,n,r,o,a,s;t.q!=(YCt(),GSe)&&t.q!=USe&&(o=t.f.n.d+UV(jz(aY(t.b,(vGt(),sDe)),124))+t.c,e=t.f.n.a+UV(jz(aY(t.b,ADe),124))+t.c,r=jz(aY(t.b,aDe),124),s=jz(aY(t.b,EDe),124),a=i.Math.max(0,r.n.d-o),a=i.Math.max(a,s.n.d-o),n=i.Math.max(0,r.n.a-e),n=i.Math.max(n,s.n.a-e),r.n.d=a,s.n.d=a,r.n.a=n,s.n.a=n)}function SRt(t,e){var n,i,r,o,a,s,c;for(DAt(e,"Restoring reversed edges",1),a=new Gf(t.b);a.a<a.c.c.length;)for(s=new Gf(jz(Q1(a),29).a);s.a<s.c.c.length;)for(c=new Gf(jz(Q1(s),10).j);c.a<c.c.c.length;)for(r=0,o=(i=Z0(jz(Q1(c),11).g)).length;r<o;++r)zv(_N(wxt(n=i[r],(lKt(),Ede))))&&tzt(n,!1);zEt(e)}function DRt(){this.b=new m5,this.d=new m5,this.e=new m5,this.c=new m5,this.a=new Pb,this.f=new Pb,PQ(xxe,new vs,new ys),PQ(Mxe,new Ms,new Ps),PQ(yse,new Ls,new Os),PQ(Rse,new Rs,new Fs),PQ(cIe,new js,new $s),PQ(bne,new _s,new Cs),PQ(Tne,new As,new xs),PQ(vne,new Es,new Ts),PQ(yne,new Ss,new Ds),PQ(jne,new Is,new Bs)}function IRt(t){var e,n,i,r,o,a;return o=0,(e=Syt(t)).Bj()&&(o|=4),t.Bb&C8t&&(o|=2),iP(t,99)?(r=Twt(n=jz(t,18)),n.Bb&l6t&&(o|=32),r&&(hW(fJ(r)),o|=8,((a=r.t)>1||-1==a)&&(o|=16),r.Bb&l6t&&(o|=64)),n.Bb&$Xt&&(o|=A8t),o|=v6t):iP(e,457)?o|=512:(i=e.Bj())&&1&i.i&&(o|=256),512&t.Bb&&(o|=128),o}function BRt(t,e){var n,i,r,o,a;for(t=null==t?qKt:(kK(t),t),r=0;r<e.length;r++)e[r]=nPt(e[r]);for(n=new Ty,a=0,i=0;i<e.length&&-1!=(o=t.indexOf("%s",a));)n.a+=""+lO(null==t?qKt:(kK(t),t),a,o),oI(n,e[i++]),a=o+2;if(V0(n,t,a,t.length),i<e.length){for(n.a+=" [",oI(n,e[i++]);i<e.length;)n.a+=jKt,oI(n,e[i++]);n.a+="]"}return n.a}function MRt(t){var e,n,i,r,o;for(o=new X6(t.a.c.length),r=new Gf(t.a);r.a<r.c.c.length;){switch(i=jz(Q1(r),10),e=null,(n=jz(wxt(i,(zWt(),kme)),163)).g){case 1:case 2:Zst(),e=Iue;break;case 3:case 4:Zst(),e=Sue}e?(lct(i,(lKt(),Vhe),(Zst(),Iue)),e==Sue?NLt(i,n,(oit(),$we)):e==Iue&&NLt(i,n,(oit(),zwe))):o.c[o.c.length]=i}return o}function PRt(t,e){var n,i,r,o,a,s,c;for(n=0,c=new Gf(e);c.a<c.c.c.length;){for(s=jz(Q1(c),11),Jlt(t.b,t.d[s.p]),a=0,r=new b6(s.b);wM(r.a)||wM(r.b);)EK(i=jz(wM(r.a)?Q1(r.a):Q1(r.b),17))?(o=CC(t,s==i.c?i.d:i.c))>t.d[s.p]&&(n+=Q5(t.b,o),f3(t.a,ndt(o))):++a;for(n+=t.b.d*a;!Gv(t.a);)Ctt(t.b,jz(fG(t.a),19).a)}return n}function LRt(t,e){var n;return t.f==rPe?(n=LK(j9((STt(),XMe),e)),t.e?4==n&&e!=(CIt(),cPe)&&e!=(CIt(),oPe)&&e!=(CIt(),aPe)&&e!=(CIt(),sPe):2==n):!(!t.d||!(t.d.Hc(e)||t.d.Hc(Z1(j9((STt(),XMe),e)))||t.d.Hc(jHt((STt(),XMe),t.b,e))))||!(!t.f||!oLt((STt(),t.f),vY(j9(XMe,e))))&&(n=LK(j9(XMe,e)),t.e?4==n:2==n)}function ORt(t,e,n,r){var o,a,s,c,l,u,h,d;return l=(s=jz(QBt(n,(cKt(),gTe)),8)).a,h=s.b+t,(o=i.Math.atan2(h,l))<0&&(o+=Q3t),(o+=e)>Q3t&&(o-=Q3t),u=(c=jz(QBt(r,gTe),8)).a,d=c.b+t,(a=i.Math.atan2(d,u))<0&&(a+=Q3t),(a+=e)>Q3t&&(a-=Q3t),cM(),iit(1e-10),i.Math.abs(o-a)<=1e-10||o==a||isNaN(o)&&isNaN(a)?0:o<a?-1:o>a?1:HI(isNaN(o),isNaN(a))}function NRt(t){var e,n,i,r,o,a,s;for(s=new Pb,i=new Gf(t.a.b);i.a<i.c.c.length;)WK(s,e=jz(Q1(i),57),new Mb);for(r=new Gf(t.a.b);r.a<r.c.c.length;)for((e=jz(Q1(r),57)).i=RXt,a=e.c.Kc();a.Ob();)o=jz(a.Pb(),57),jz(zD(DZ(s.f,o)),15).Fc(e);for(n=new Gf(t.a.b);n.a<n.c.c.length;)(e=jz(Q1(n),57)).c.$b(),e.c=jz(zD(DZ(s.f,e)),15);FOt(t)}function RRt(t){var e,n,i,r,o,a,s;for(s=new Pb,i=new Gf(t.a.b);i.a<i.c.c.length;)WK(s,e=jz(Q1(i),81),new Mb);for(r=new Gf(t.a.b);r.a<r.c.c.length;)for((e=jz(Q1(r),81)).o=RXt,a=e.f.Kc();a.Ob();)o=jz(a.Pb(),81),jz(zD(DZ(s.f,o)),15).Fc(e);for(n=new Gf(t.a.b);n.a<n.c.c.length;)(e=jz(Q1(n),81)).f.$b(),e.f=jz(zD(DZ(s.f,e)),15);$Lt(t)}function FRt(t,e,n,i){var r,o;for(Hyt(t,e,n,i),Md(e,t.j-e.j+n),Pd(e,t.k-e.k+i),o=new Gf(e.f);o.a<o.c.c.length;)switch((r=jz(Q1(o),324)).a.g){case 0:fct(t,e.g+r.b.a,0,e.g+r.c.a,e.i-1);break;case 1:fct(t,e.g+e.o,e.i+r.b.a,t.o-1,e.i+r.c.a);break;case 2:fct(t,e.g+r.b.a,e.i+e.p,e.g+r.c.a,t.p-1);break;default:fct(t,0,e.i+r.b.a,e.g-1,e.i+r.c.a)}}function jRt(t,e,n,i,r){var o,a;try{if(e>=t.o)throw $b(new Aw);a=e>>5,o=wU(1,fq(wU(31&e,1))),t.n[n][a]=r?e0(t.n[n][a],o):t0(t.n[n][a],oV(o)),o=wU(o,1),t.n[n][a]=i?e0(t.n[n][a],o):t0(t.n[n][a],oV(o))}catch(i){throw iP(i=hst(i),320)?$b(new Dv(AQt+t.o+"*"+t.p+xQt+e+jKt+n+EQt)):$b(i)}}function $Rt(t,e,n,r){var o,a;e&&(o=Vv(CN(wxt(e,(VHt(),lye))))+r,a=n+Vv(CN(wxt(e,oye)))/2,lct(e,gye,ndt(fq(uat(i.Math.round(o))))),lct(e,pye,ndt(fq(uat(i.Math.round(a))))),0==e.d.b||$Rt(t,jz(eP(new dm(cbt(new hm(e).a.d,0))),86),n+Vv(CN(wxt(e,oye)))+t.a,r+Vv(CN(wxt(e,aye)))),null!=wxt(e,dye)&&$Rt(t,jz(wxt(e,dye),86),n,r))}function zRt(t,e){var n,r,o,a,s,c,l,u,h,d,f;for(o=2*Vv(CN(wxt(l=mK(e.a),(zWt(),_be)))),h=Vv(CN(wxt(l,Dbe))),u=i.Math.max(o,h),a=P7(MLe,VXt,25,e.f-e.c+1,15,1),r=-u,n=0,c=e.b.Kc();c.Ob();)s=jz(c.Pb(),10),r+=t.a[s.c.p]+u,a[n++]=r;for(r+=t.a[e.a.c.p]+u,a[n++]=r,f=new Gf(e.e);f.a<f.c.c.length;)d=jz(Q1(f),10),r+=t.a[d.c.p]+u,a[n++]=r;return a}function VRt(t,e,n,i){var r,o,a,s,c,l,u,h;for(h=new fC(new Yp(t)),s=0,c=(a=Est(Vy(Sse,1),o1t,10,0,[e,n])).length;s<c;++s)for(u=Mht(a[s],i).Kc();u.Ob();)for(o=new b6((l=jz(u.Pb(),11)).b);wM(o.a)||wM(o.b);)h4(r=jz(wM(o.a)?Q1(o.a):Q1(o.b),17))||(Act(h.a,l,(cL(),mee)),EK(r)&&ZG(h,l==r.c?r.d:r.c));return wW(h),new JF(h)}function HRt(t,e){var n,i,r,o;if(0!=(o=jz(QBt(t,(cKt(),dTe)),61).g-jz(QBt(e,dTe),61).g))return o;if(n=jz(QBt(t,sTe),19),i=jz(QBt(e,sTe),19),n&&i&&0!=(r=n.a-i.a))return r;switch(jz(QBt(t,dTe),61).g){case 1:return Edt(t.i,e.i);case 2:return Edt(t.j,e.j);case 3:return Edt(e.i,t.i);case 4:return Edt(e.j,t.j);default:throw $b(new Fv(i1t))}}function qRt(t){var e,n,i;return 64&t.Db?wEt(t):(e=new uL(J4t),(n=t.k)?aI(aI((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new tG(VIe,t,1,7)),t.n.i>0&&(!(i=(!t.n&&(t.n=new tG(VIe,t,1,7)),jz(Wet(t.n,0),137)).a)||aI(aI((e.a+=' "',e),i),'"'))),aI(kC(aI(kC(aI(kC(aI(kC((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function URt(t){var e,n,i;return 64&t.Db?wEt(t):(e=new uL(t6t),(n=t.k)?aI(aI((e.a+=' "',e),n),'"'):(!t.n&&(t.n=new tG(VIe,t,1,7)),t.n.i>0&&(!(i=(!t.n&&(t.n=new tG(VIe,t,1,7)),jz(Wet(t.n,0),137)).a)||aI(aI((e.a+=' "',e),i),'"'))),aI(kC(aI(kC(aI(kC(aI(kC((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function GRt(t,e){var n,i,r,o,a,s;if(null==e||0==e.length)return null;if(!(r=jz(AQ(t.a,e),149))){for(i=new Nf(new Sf(t.b).a.vc().Kc());i.a.Ob();)if(o=jz(i.a.Pb(),42),a=(n=jz(o.dd(),149)).c,s=e.length,bF(a.substr(a.length-s,s),e)&&(e.length==a.length||46==lY(a,a.length-e.length-1))){if(r)return null;r=n}r&&bJ(t.a,e,r)}return r}function WRt(t,e){var n,i,r;return n=new Lt,(i=jz(x5(IY(new OH(null,new d1(t.f,16)),n),P9(new X,new Z,new rt,new ot,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),Une),qne]))),21).gc())<(r=jz(x5(IY(new OH(null,new d1(e.f,16)),n),P9(new X,new Z,new rt,new ot,Est(Vy(Qne,1),BYt,132,0,[Une,qne]))),21).gc())?-1:i==r?0:1}function KRt(t){var e,n,i;BO(t,(zWt(),Ime))&&((i=jz(wxt(t,Ime),21)).dc()||(n=new YF(e=jz(W_(VSe),9),jz(AR(e,e.length),9),0),i.Hc((JBt(),ISe))?srt(n,ISe):srt(n,BSe),i.Hc(SSe)||srt(n,SSe),i.Hc(TSe)?srt(n,LSe):i.Hc(ESe)?srt(n,PSe):i.Hc(DSe)&&srt(n,MSe),i.Hc(LSe)?srt(n,TSe):i.Hc(PSe)?srt(n,ESe):i.Hc(MSe)&&srt(n,DSe),lct(t,Ime,n)))}function YRt(t){var e,n,i,r,o,a,s;for(r=jz(wxt(t,(lKt(),nde)),10),u1(0,(i=t.j).c.length),n=jz(i.c[0],11),a=new Gf(r.j);a.a<a.c.c.length;)if(VD(o=jz(Q1(a),11))===VD(wxt(n,fde))){o.j==(vGt(),sDe)&&t.p>r.p?(VSt(o,ADe),o.d&&(s=o.o.b,e=o.a.b,o.a.b=s-e)):o.j==ADe&&r.p>t.p&&(VSt(o,sDe),o.d&&(s=o.o.b,e=o.a.b,o.a.b=-(s-e)));break}return r}function XRt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g;if(o=n,n<i)for(f=new jat(t.p),g=new jat(t.p),jrt(f.e,t.e),f.q=t.q,f.r=g,nW(f),jrt(g.j,t.j),g.r=f,nW(g),h=jz((d=new nD(f,g)).a,112),u=jz(d.b,112),u1(o,e.c.length),a=BNt(t,h,u,r=jz(e.c[o],329)),l=n+1;l<=i;l++)u1(l,e.c.length),Kbt(s=jz(e.c[l],329),c=BNt(t,h,u,s),r,a)&&(r=s,a=c);return o}function ZRt(t,e,n,i,r){var o,a,s,c,l,u,h;if(!(iP(e,239)||iP(e,354)||iP(e,186)))throw $b(new Rv("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return a=t.a/2,c=e.i+i-a,u=e.j+r-a,l=c+e.g+t.a,h=u+e.f+t.a,LV(o=new kk,new PS(c,u)),LV(o,new PS(c,h)),LV(o,new PS(l,h)),LV(o,new PS(l,u)),Vat(s=new _Bt(o),e),n&&WK(t.b,e,s),s}function QRt(t,e,n){var i,r,o,a,s,c,l,u;for(o=new PS(e,n),l=new Gf(t.a);l.a<l.c.c.length;)for(qR((c=jz(Q1(l),10)).n,o),u=new Gf(c.j);u.a<u.c.c.length;)for(r=new Gf(jz(Q1(u),11).g);r.a<r.c.c.length;)for(Qet((i=jz(Q1(r),17)).a,o),(a=jz(wxt(i,(zWt(),mme)),74))&&Qet(a,o),s=new Gf(i.b);s.a<s.c.c.length;)qR(jz(Q1(s),70).n,o)}function JRt(t,e,n){var i,r,o,a,s,c,l,u;for(o=new PS(e,n),l=new Gf(t.a);l.a<l.c.c.length;)for(qR((c=jz(Q1(l),10)).n,o),u=new Gf(c.j);u.a<u.c.c.length;)for(r=new Gf(jz(Q1(u),11).g);r.a<r.c.c.length;)for(Qet((i=jz(Q1(r),17)).a,o),(a=jz(wxt(i,(zWt(),mme)),74))&&Qet(a,o),s=new Gf(i.b);s.a<s.c.c.length;)qR(jz(Q1(s),70).n,o)}function tFt(t){if(0==(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b).i)throw $b(new iy("Edges must have a source."));if(0==(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c).i)throw $b(new iy("Edges must have a target."));if(!t.b&&(t.b=new cF(OIe,t,4,7)),!(t.b.i<=1&&(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c.i<=1)))throw $b(new iy("Hyperedges are not supported."))}function eFt(t,e){var n,i,r,o,a,s,c,l,u,h;for(h=0,f3(o=new Bb,e);o.b!=o.c;)for(c=jz(fG(o),214),l=0,u=jz(wxt(e.j,(zWt(),Bpe)),339),a=Vv(CN(wxt(e.j,Tpe))),s=Vv(CN(wxt(e.j,Spe))),u!=(wct(),Mwe)&&(l+=a*xMt(c.e,u),l+=s*iOt(c.e)),h+=cvt(c.d,c.e)+l,r=new Gf(c.b);r.a<r.c.c.length;)i=jz(Q1(r),37),(n=jz(PH(t.b,i.p),214)).s||(h+=JTt(t,n));return h}function nFt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m;for(c=f=e.length,h1(0,e.length),45==e.charCodeAt(0)?(h=-1,d=1,--f):(h=1,d=0),r=f/(o=(aVt(),rne)[10])|0,0!=(m=f%o)&&++r,s=P7(SLe,lXt,25,r,15,1),n=ine[8],a=0,g=d+(0==m?o:m),p=d;p<c;g=(p=g)+o)i=hjt(e.substr(p,g-p),FYt,OKt),BIt(),l=gwt(s,s,a,n),l+=Ugt(s,a,i),s[a++]=l;u=a,t.e=h,t.d=u,t.a=s,U0(t)}function iFt(t,e,n,i,r,o,a){if(t.c=i.qf().a,t.d=i.qf().b,r&&(t.c+=r.qf().a,t.d+=r.qf().b),t.b=e.rf().a,t.a=e.rf().b,r)switch(r.Hf().g){case 0:case 2:t.c+=r.rf().a+a+o.a+a;break;case 4:t.c-=a+o.a+a+e.rf().a;break;case 1:t.c+=r.rf().a+a,t.d-=a+o.b+a+e.rf().b;break;case 3:t.c+=r.rf().a+a,t.d+=r.rf().b+a+o.b+a}else n?t.c-=a+e.rf().a:t.c+=i.rf().a+a}function rFt(t,e){var n,i;for(this.b=new Mb,this.e=new Mb,this.a=t,this.d=e,Hbt(this),mpt(this),this.b.dc()?this.c=t.c.p:this.c=jz(this.b.Xb(0),10).c.p,0==this.e.c.length?this.f=t.c.p:this.f=jz(PH(this.e,this.e.c.length-1),10).c.p,i=jz(wxt(t,(lKt(),xde)),15).Kc();i.Ob();)if(BO(n=jz(i.Pb(),70),(zWt(),Wpe))){this.d=jz(wxt(n,Wpe),227);break}}function oFt(t,e,n){var i,r,o,a,s,c,l,u;for(i=jz(OW(t.a,e),53),o=jz(OW(t.a,n),53),r=jz(OW(t.e,e),53),a=jz(OW(t.e,n),53),i.a.zc(n,i),a.a.zc(e,a),u=o.a.ec().Kc();u.Ob();)l=jz(u.Pb(),10),i.a.zc(l,i),_G(jz(OW(t.e,l),53),e),jrt(jz(OW(t.e,l),53),r);for(c=r.a.ec().Kc();c.Ob();)s=jz(c.Pb(),10),a.a.zc(s,a),_G(jz(OW(t.a,s),53),n),jrt(jz(OW(t.a,s),53),o)}function aFt(t,e,n){var i,r,o,a,s,c,l,u;for(i=jz(OW(t.a,e),53),o=jz(OW(t.a,n),53),r=jz(OW(t.b,e),53),a=jz(OW(t.b,n),53),i.a.zc(n,i),a.a.zc(e,a),u=o.a.ec().Kc();u.Ob();)l=jz(u.Pb(),10),i.a.zc(l,i),_G(jz(OW(t.b,l),53),e),jrt(jz(OW(t.b,l),53),r);for(c=r.a.ec().Kc();c.Ob();)s=jz(c.Pb(),10),a.a.zc(s,a),_G(jz(OW(t.a,s),53),n),jrt(jz(OW(t.a,s),53),o)}function sFt(t,e){var n,i,r;switch(DAt(e,"Breaking Point Insertion",1),i=new ABt(t),jz(wxt(t,(zWt(),jbe)),337).g){case 2:r=new xo;case 0:r=new po;break;default:r=new Eo}if(n=r.Vf(t,i),zv(_N(wxt(t,zbe)))&&(n=OHt(t,n)),!r.Wf()&&BO(t,Ube))switch(jz(wxt(t,Ube),338).g){case 2:n=GSt(i,n);break;case 1:n=RAt(i,n)}n.dc()||tWt(t,n),zEt(e)}function cFt(t,e,n){var i,r,o,a,s,c,l;if(l=e,Bit(c=K3(t,B3(n),l),O2(l,V6t)),a=M2(l,M6t),KSt((i=new aD(t,c)).a,i.b,a),s=M2(l,P6t),YSt((r=new sD(t,c)).a,r.b,s),0==(!c.b&&(c.b=new cF(OIe,c,4,7)),c.b).i||0==(!c.c&&(c.c=new cF(OIe,c,5,8)),c.c).i)throw o=O2(l,V6t),$b(new ty(G6t+o+W6t));return xAt(l,c),cWt(t,l,c),Lct(t,l,c)}function lFt(t,e){var n,r,o,a,s,c,l;for(o=P7(SLe,lXt,25,t.e.a.c.length,15,1),s=new Gf(t.e.a);s.a<s.c.c.length;)o[(a=jz(Q1(s),121)).d]+=a.b.a.c.length;for(c=Hz(e);0!=c.b;)for(r=B8(new Gf((a=jz(0==c.b?null:(xO(0!=c.b),Iet(c,c.a.a)),121)).g.a));r.Ob();)(l=(n=jz(r.Pb(),213)).e).e=i.Math.max(l.e,a.e+n.a),--o[l.d],0==o[l.d]&&n4(c,l,c.c.b,c.c)}function uFt(t){var e,n,r,o,a,s,c,l,u,h,d;for(n=FYt,o=OKt,c=new Gf(t.e.a);c.a<c.c.c.length;)a=jz(Q1(c),121),o=i.Math.min(o,a.e),n=i.Math.max(n,a.e);for(e=P7(SLe,lXt,25,n-o+1,15,1),s=new Gf(t.e.a);s.a<s.c.c.length;)(a=jz(Q1(s),121)).e-=o,++e[a.e];if(r=0,null!=t.k)for(h=0,d=(u=t.k).length;h<d&&(l=u[h],e[r++]+=l,e.length!=r);++h);return e}function hFt(t){switch(t.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return jz(ROt(t),19).a==t.o;case 1:case 2:if(-2==t.o)return!1;switch(t.p){case 0:case 1:case 2:case 6:case 5:case 7:return KD(t.k,t.f);case 3:case 4:return t.j==t.e;default:return null==t.n?null==t.g:Pht(t.n,t.g)}default:return!1}}function dFt(t){Mx(t,new AAt(m_(d_(p_(g_(new ms,R4t),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new Xs))),o2(t,R4t,YQt,fSe),o2(t,R4t,p3t,wbt(gSe)),o2(t,R4t,p4t,wbt(cSe)),o2(t,R4t,EJt,wbt(lSe)),o2(t,R4t,$Jt,wbt(hSe)),o2(t,R4t,X2t,wbt(uSe))}function fFt(t,e,n){var i,r,o,a;if(i=fq(rft(xYt,nY(fq(rft(null==e?0:Jct(e),EYt)),15))),a=fq(rft(xYt,nY(fq(rft(null==n?0:Jct(n),EYt)),15))),(o=Zrt(t,e,i))&&a==o.f&&dK(n,o.i))return n;if(Qrt(t,n,a))throw $b(new Rv("value already present: "+n));return r=new zK(e,i,n,a),o?(MPt(t,o),XSt(t,r,o),o.e=null,o.c=null,o.i):(XSt(t,r,null),Vyt(t),null)}function gFt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;l=n.a.c,a=n.a.c+n.a.b,d=(o=jz(OW(n.c,e),459)).f,f=o.a,s=o.b?new PS(a,d):new PS(l,d),u=o.c?new PS(l,f):new PS(a,f),r=l,n.p||(r+=t.c),c=new PS(r+=n.F+n.v*t.b,d),h=new PS(r,f),Jnt(e.a,Est(Vy(xxe,1),cYt,8,0,[s,c])),n.d.a.gc()>1&&(i=new PS(r,n.b),LV(e.a,i)),Jnt(e.a,Est(Vy(xxe,1),cYt,8,0,[h,u]))}function pFt(t,e,n){var i,r,o,a,s,c;if(e){if(n<=-1){if(iP(i=eet(e.Tg(),-1-n),99))return jz(i,18);for(s=0,c=(a=jz(e.ah(i),153)).gc();s<c;++s)if(VD(a.jl(s))===VD(t)&&iP(r=a.il(s),99)&&(o=jz(r,18)).Bb&l6t)return o;throw $b(new Fv("The containment feature could not be located"))}return Twt(jz(eet(t.Tg(),n),18))}return null}function mFt(t){var e,n,i,r,o;for(i=t.length,e=new xy,o=0;o<i;)if(9!=(n=lY(t,o++))&&10!=n&&12!=n&&13!=n&&32!=n)if(35!=n)92==n&&o<i?35==(h1(o,t.length),r=t.charCodeAt(o))||9==r||10==r||12==r||13==r||32==r?(MW(e,r&YYt),++o):(e.a+="\\",MW(e,r&YYt),++o):MW(e,n&YYt);else for(;o<i&&13!=(n=lY(t,o++))&&10!=n;);return e.a}function bFt(t,e){var n,i,r;for(i=new Gf(e);i.a<i.c.c.length;)if(n=jz(Q1(i),33),ZDt(t.a,n,n),ZDt(t.b,n,n),0!=(r=fNt(n)).c.length)for(t.d&&t.d.lg(r),ZDt(t.a,n,(u1(0,r.c.length),jz(r.c[0],33))),ZDt(t.b,n,jz(PH(r,r.c.length-1),33));0!=Ost(r).c.length;)r=Ost(r),t.d&&t.d.lg(r),ZDt(t.a,n,(u1(0,r.c.length),jz(r.c[0],33))),ZDt(t.b,n,jz(PH(r,r.c.length-1),33))}function wFt(t){var e,n,i,r,o,a,s,c,l,u;for(n=0,s=new Gf(t.d);s.a<s.c.c.length;)(a=jz(Q1(s),101)).i&&(a.i.c=n++);for(e=kH(DLe,[cYt,QZt],[177,25],16,[n,n],2),u=t.d,r=0;r<u.c.length;r++)if(u1(r,u.c.length),(c=jz(u.c[r],101)).i)for(o=r+1;o<u.c.length;o++)u1(o,u.c.length),(l=jz(u.c[o],101)).i&&(i=ixt(c,l),e[c.i.c][l.i.c]=i,e[l.i.c][c.i.c]=i);return e}function kFt(t,e,n,i){var r,o,a;return a=new wA(e,n),t.a?i?(++(r=jz(OW(t.b,e),283)).a,a.d=i.d,a.e=i.e,a.b=i,a.c=i,i.e?i.e.c=a:jz(OW(t.b,e),283).b=a,i.d?i.d.b=a:t.a=a,i.d=a,i.e=a):(t.e.b=a,a.d=t.e,t.e=a,(r=jz(OW(t.b,e),283))?(++r.a,(o=r.c).c=a,a.e=o,r.c=a):(WK(t.b,e,r=new sZ(a)),++t.c)):(t.a=t.e=a,WK(t.b,e,new sZ(a)),++t.c),++t.d,a}function vFt(t,e){var n,i,r,o,a,s,c,l;for(n=new RegExp(e,"g"),c=P7(Yee,cYt,2,0,6,1),i=0,l=t,o=null;;){if(null==(s=n.exec(l))||""==l){c[i]=l;break}a=s.index,c[i]=l.substr(0,a),l=lO(l,a+s[0].length,l.length),n.lastIndex=0,o==l&&(c[i]=l.substr(0,1),l=l.substr(1)),o=l,++i}if(t.length>0){for(r=c.length;r>0&&""==c[r-1];)--r;r<c.length&&(c.length=r)}return c}function yFt(t,e){var n,i,r,o,a,s,c,l;for(s=null,r=!1,o=0,c=r5((l=kZ(e)).a).i;o<c;++o)(n=yFt(t,jz(eqt(l,o,iP(a=jz(Wet(r5(l.a),o),87).c,88)?jz(a,26):(pKt(),dMe)),26))).dc()||(s?(r||(r=!0,s=new nq(s)),s.Gc(n)):s=n);return(i=LDt(t,e)).dc()?s||(AX(),AX(),cne):s?(r||(s=new nq(s)),s.Gc(i),s):i}function _Ft(t,e){var n,i,r,o,a,s,c,l;for(s=null,i=!1,o=0,c=r5((l=kZ(e)).a).i;o<c;++o)(n=_Ft(t,jz(eqt(l,o,iP(a=jz(Wet(r5(l.a),o),87).c,88)?jz(a,26):(pKt(),dMe)),26))).dc()||(s?(i||(i=!0,s=new nq(s)),s.Gc(n)):s=n);return(r=KIt(t,e)).dc()?s||(AX(),AX(),cne):s?(i||(s=new nq(s)),s.Gc(r),s):r}function CFt(t,e,n){var i,r,o,a,s,c;if(iP(e,72))return Fbt(t,e,n);for(s=null,o=null,i=jz(t.g,119),a=0;a<t.i;++a)if(Pht(e,(r=i[a]).dd())&&iP(o=r.ak(),99)&&jz(o,18).Bb&l6t){s=r;break}return s&&(bB(t.e)&&(c=o.$j()?BZ(t,4,o,e,null,mzt(t,o,e,iP(o,99)&&!!(jz(o,18).Bb&$Xt)),!0):BZ(t,o.Kj()?2:1,o,e,o.zj(),-1,!0),n?n.Ei(c):n=c),n=CFt(t,s,n)),n}function AFt(t){var e,n,r,o;r=t.o,zN(),t.A.dc()||Pht(t.A,Ire)?o=r.a:(o=xDt(t.f),t.A.Hc((wpt(),ODe))&&!t.B.Hc((JFt(),UDe))&&(o=i.Math.max(o,xDt(jz(aY(t.p,(vGt(),sDe)),244))),o=i.Math.max(o,xDt(jz(aY(t.p,ADe),244)))),(e=sat(t))&&(o=i.Math.max(o,e.a))),zv(_N(t.e.yf().We((cKt(),FEe))))?r.a=i.Math.max(r.a,o):r.a=o,(n=t.f.i).c=0,n.b=o,F$t(t.f)}function xFt(t,e){var n,i,r,o,a,s,c,l,u;if((n=e.Hh(t.a))&&null!=(c=AN(rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),"memberTypes")))){for(l=new Mb,a=0,s=(o=vFt(c,"\\w")).length;a<s;++a)iP(u=-1==(i=(r=o[a]).lastIndexOf("#"))?oN(t,e.Aj(),r):0==i?C8(t,null,r.substr(1)):C8(t,r.substr(0,i),r.substr(i+1)),148)&&Gz(l,jz(u,148));return l}return AX(),AX(),cne}function EFt(t,e,n){var i,r,o,a,s,c,l,u;for(DAt(n,oJt,1),t.bf(e),o=0;t.df(o);){for(u=new Gf(e.e);u.a<u.c.c.length;)for(c=jz(Q1(u),144),s=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[e.e,e.d,e.b])));gBt(s);)(a=jz(q4(s),357))!=c&&(r=t.af(a,c))&&qR(c.a,r);for(l=new Gf(e.e);l.a<l.c.c.length;)WEt(i=(c=jz(Q1(l),144)).a,-t.d,-t.d,t.d,t.d),qR(c.d,i),kI(i);t.cf(),++o}zEt(n)}function TFt(t,e,n){var i,r,o,a;if(a=oOt(t.e.Tg(),e),i=jz(t.g,119),Zx(),jz(e,66).Oj()){for(o=0;o<t.i;++o)if(r=i[o],a.rl(r.ak())&&Pht(r,n))return uNt(t,o),!0}else if(null!=n){for(o=0;o<t.i;++o)if(r=i[o],a.rl(r.ak())&&Pht(n,r.dd()))return uNt(t,o),!0}else for(o=0;o<t.i;++o)if(r=i[o],a.rl(r.ak())&&null==r.dd())return uNt(t,o),!0;return!1}function SFt(t,e){var n,i,r,o,a;for(null==t.c||t.c.length<e.c.length?t.c=P7(DLe,QZt,25,e.c.length,16,1):Qv(t.c),t.a=new Mb,i=0,a=new Gf(e);a.a<a.c.c.length;)(r=jz(Q1(a),10)).p=i++;for(n=new YA,o=new Gf(e);o.a<o.c.c.length;)r=jz(Q1(o),10),t.c[r.p]||(lDt(t,r),0==n.b||(xO(0!=n.b),jz(n.a.a.c,15)).gc()<t.a.c.length?cI(n,t.a):lI(n,t.a),t.a=new Mb);return n}function DFt(t,e,n,i){var r,o,a,s,c,l,u;for(Ent(a=jz(Wet(e,0),33),0),Tnt(a,0),(c=new Mb).c[c.c.length]=a,s=a,o=new tH(t.a,a.g,a.f,(XPt(),RCe)),l=1;l<e.i;l++)Ent(u=jz(Wet(e,l),33),(r=oHt(t,Jzt(t,LCe,u,s,o,c,n),Jzt(t,PCe,u,s,o,c,n),Jzt(t,NCe,u,s,o,c,n),Jzt(t,OCe,u,s,o,c,n),u,s,i)).d),Tnt(u,r.e),rf(r,RCe),o=r,s=u,c.c[c.c.length]=u;return o}function IFt(t){Mx(t,new AAt(m_(d_(p_(g_(new ms,Y5t),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new is))),o2(t,Y5t,R5t,wbt(zAe)),o2(t,Y5t,YQt,jAe),o2(t,Y5t,bJt,8),o2(t,Y5t,V5t,wbt($Ae)),o2(t,Y5t,U5t,wbt(RAe)),o2(t,Y5t,G5t,wbt(FAe)),o2(t,Y5t,G2t,(cL(),!1))}function BFt(t,e,n,i){var r,o,a,s,c,l,u,h;for(a=RO(e.c,n,i),u=new Gf(e.a);u.a<u.c.c.length;){for(qR((l=jz(Q1(u),10)).n,a),h=new Gf(l.j);h.a<h.c.c.length;)for(o=new Gf(jz(Q1(h),11).g);o.a<o.c.c.length;)for(Qet((r=jz(Q1(o),17)).a,a),(s=jz(wxt(r,(zWt(),mme)),74))&&Qet(s,a),c=new Gf(r.b);c.a<c.c.c.length;)qR(jz(Q1(c),70).n,a);Gz(t.a,l),l.a=t}}function MFt(t,e){var n,i,r,o;if(DAt(e,"Node and Port Label Placement and Node Sizing",1),OB((gx(),new $Y(t,!0,!0,new Yn))),jz(wxt(t,(lKt(),Zhe)),21).Hc((dNt(),uhe)))for(i=(r=jz(wxt(t,(zWt(),ibe)),21)).Hc((hDt(),eDe)),o=zv(_N(wxt(t,rbe))),n=new Gf(t.b);n.a<n.c.c.length;)XA(DY(new OH(null,new d1(jz(Q1(n),29).a,16)),new Xn),new Nj(r,i,o));zEt(e)}function PFt(t,e){var n,i,r,o,a,s;if((n=e.Hh(t.a))&&null!=(s=AN(rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),J6t))))switch(r=bL(s,XAt(35)),i=e.Hj(),-1==r?(a=rU(t,Uet(i)),o=s):0==r?(a=null,o=s.substr(1)):(a=s.substr(0,r),o=s.substr(r+1)),LK(j9(t,e))){case 2:case 3:return Oct(t,i,a,o);case 0:case 4:case 5:case 6:return Nct(t,i,a,o)}return null}function LFt(t,e,n){var i,r,o,a,s;if(Zx(),a=jz(e,66).Oj(),BOt(t.e,e)){if(e.hi()&&U$t(t,e,n,iP(e,99)&&!!(jz(e,18).Bb&$Xt)))return!1}else for(s=oOt(t.e.Tg(),e),i=jz(t.g,119),o=0;o<t.i;++o)if(r=i[o],s.rl(r.ak()))return!(a?Pht(r,n):null==n?null==r.dd():Pht(n,r.dd()))&&(jz(swt(t,o,a?jz(n,72):Z3(e,n)),72),!0);return l8(t,a?jz(n,72):Z3(e,n))}function OFt(t){var e,n,i,r,o;if(t.d)throw $b(new Fv((yN(Yae),IZt+Yae.k+BZt)));for(t.c==(jht(),jTe)&&AUt(t,RTe),e=new Gf(t.a.a);e.a<e.c.c.length;)jz(Q1(e),189).e=0;for(r=new Gf(t.a.b);r.a<r.c.c.length;)for((i=jz(Q1(r),81)).o=RXt,n=i.f.Kc();n.Ob();)++jz(n.Pb(),81).d.e;for(HUt(t),o=new Gf(t.a.b);o.a<o.c.c.length;)jz(Q1(o),81).k=!0;return t}function NFt(t,e){var n,i,r,o,a,s,c,l;for(s=new mTt(t),n4(n=new YA,e,n.c.b,n.c);0!=n.b;){for((i=jz(0==n.b?null:(xO(0!=n.b),Iet(n,n.a.a)),113)).d.p=1,a=new Gf(i.e);a.a<a.c.c.length;)yAt(s,r=jz(Q1(a),409)),0==(l=r.d).d.p&&n4(n,l,n.c.b,n.c);for(o=new Gf(i.b);o.a<o.c.c.length;)yAt(s,r=jz(Q1(o),409)),0==(c=r.c).d.p&&n4(n,c,n.c.b,n.c)}return s}function RFt(t){var e,n,i,r,o;if(1!=(i=Vv(CN(QBt(t,(cKt(),wTe))))))for(CB(t,i*t.g,i*t.f),n=UI(Rz((!t.c&&(t.c=new tG(qIe,t,9,9)),t.c),new Vs)),o=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[(!t.n&&(t.n=new tG(VIe,t,1,7)),t.n),(!t.c&&(t.c=new tG(qIe,t,9,9)),t.c),n])));gBt(o);)(r=jz(q4(o),470)).Gg(i*r.Dg(),i*r.Eg()),r.Fg(i*r.Cg(),i*r.Bg()),(e=jz(r.We(iTe),8))&&(e.a*=i,e.b*=i)}function FFt(t,e,n,i,r){var o,a,s,c,l,u;for(o=new Gf(t.b);o.a<o.c.c.length;)for(l=0,u=(c=Q0(jz(Q1(o),29).a)).length;l<u;++l)switch(jz(wxt(s=c[l],(zWt(),kme)),163).g){case 1:bOt(s),xJ(s,e),hwt(s,!0,i);break;case 3:QLt(s),xJ(s,n),hwt(s,!1,r)}for(a=new C2(t.b,0);a.b<a.d.gc();)0==(xO(a.b<a.d.gc()),jz(a.d.Xb(a.c=a.b++),29)).a.c.length&&lK(a)}function jFt(t,e){var n,i,r,o,a,s,c;if((n=e.Hh(t.a))&&null!=(c=AN(rpt((!n.b&&(n.b=new XO((pKt(),wMe),qMe,n)),n.b),A9t)))){for(i=new Mb,a=0,s=(o=vFt(c,"\\w")).length;a<s;++a)bF(r=o[a],"##other")?Gz(i,"!##"+rU(t,Uet(e.Hj()))):bF(r,"##local")?i.c[i.c.length]=null:bF(r,_9t)?Gz(i,rU(t,Uet(e.Hj()))):i.c[i.c.length]=r;return i}return AX(),AX(),cne}function $Ft(t,e){var n,i,r;return n=new Gt,(i=1==(i=jz(x5(IY(new OH(null,new d1(t.f,16)),n),P9(new X,new Z,new rt,new ot,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),Une),qne]))),21).gc())?1:0)<(r=1==(r=jz(x5(IY(new OH(null,new d1(e.f,16)),n),P9(new X,new Z,new rt,new ot,Est(Vy(Qne,1),BYt,132,0,[Une,qne]))),21).gc())?1:0)?-1:i==r?0:1}function zFt(t){var e,n,i,r,o,a,s,c,l,u,h,d;for(r=zv(_N(wxt(s=t.i,(zWt(),dme)))),u=0,i=0,l=new Gf(t.g);l.a<l.c.c.length;)o=(a=h4(c=jz(Q1(l),17)))&&r&&zv(_N(wxt(c,fme))),d=c.d.i,a&&o?++i:a&&!o?++u:mK(d).e==s?++i:++u;for(n=new Gf(t.e);n.a<n.c.c.length;)o=(a=h4(e=jz(Q1(n),17)))&&r&&zv(_N(wxt(e,fme))),h=e.c.i,a&&o?++u:a&&!o?++i:mK(h).e==s?++u:++i;return u-i}function VFt(t,e,n,i){this.e=t,this.k=jz(wxt(t,(lKt(),Dde)),304),this.g=P7(Sse,o1t,10,e,0,1),this.b=P7(Eee,cYt,333,e,7,1),this.a=P7(Sse,o1t,10,e,0,1),this.d=P7(Eee,cYt,333,e,7,1),this.j=P7(Sse,o1t,10,e,0,1),this.i=P7(Eee,cYt,333,e,7,1),this.p=P7(Eee,cYt,333,e,7,1),this.n=P7(vee,cYt,476,e,8,1),wE(this.n,(cL(),!1)),this.f=P7(vee,cYt,476,e,8,1),wE(this.f,!0),this.o=n,this.c=i}function HFt(t,e){var n,i,r;if(!e.dc())if(jz(e.Xb(0),286).d==(BTt(),Qle))Iyt(t,e);else for(i=e.Kc();i.Ob();){switch((n=jz(i.Pb(),286)).d.g){case 5:lTt(t,n,Kft(t,n));break;case 0:lTt(t,n,(r=(n.f-n.c+1-1)/2|0,n.c+r));break;case 4:lTt(t,n,Itt(t,n));break;case 2:Rgt(n),lTt(t,n,BCt(n)?n.c:n.f);break;case 1:Rgt(n),lTt(t,n,BCt(n)?n.f:n.c)}lxt(n.a)}}function qFt(t,e){var n,i,r,o,a;if(!e.e){for(e.e=!0,i=e.d.a.ec().Kc();i.Ob();)n=jz(i.Pb(),17),e.o&&e.d.a.gc()<=1?(a=new PS((o=e.a.c)+(e.a.c+e.a.b-o)/2,e.b),LV(jz(e.d.a.ec().Kc().Pb(),17).a,a)):(r=jz(OW(e.c,n),459)).b||r.c?gFt(t,n,e):t.d==(Ult(),nke)&&(r.d||r.e)&&MIt(t,e)&&e.d.a.gc()<=1?gUt(n,e):ONt(t,n,e);e.k&&t4(e.d,new An)}}function UFt(t,e,n,r,o,a){var s,c,l,u,h,d,f,g,p,m,b,w,k;for(c=(r+o)/2+a,m=n*i.Math.cos(c),b=n*i.Math.sin(c),w=m-e.g/2,k=b-e.f/2,Ent(e,w),Tnt(e,k),d=t.a.jg(e),(p=2*i.Math.acos(n/n+t.c))<o-r?(f=p/d,s=(r+o-p)/2):(f=(o-r)/d,s=r),g=fNt(e),t.e&&(t.e.kg(t.d),t.e.lg(g)),u=new Gf(g);u.a<u.c.c.length;)l=jz(Q1(u),33),h=t.a.jg(l),UFt(t,l,n+t.c,s,s+f*h,a),s+=f*h}function GFt(t,e,n){var i;switch(i=n.q.getMonth(),e){case 5:aI(t,Est(Vy(Yee,1),cYt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[i]);break;case 4:aI(t,Est(Vy(Yee,1),cYt,2,6,[XYt,ZYt,QYt,JYt,tXt,eXt,nXt,iXt,rXt,oXt,aXt,sXt])[i]);break;case 3:aI(t,Est(Vy(Yee,1),cYt,2,6,["Jan","Feb","Mar","Apr",tXt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[i]);break;default:ytt(t,i+1,e)}}function WFt(t,e){var n,i,r,o;if(DAt(e,"Network simplex",1),t.e.a.c.length<1)zEt(e);else{for(r=new Gf(t.e.a);r.a<r.c.c.length;)jz(Q1(r),121).e=0;for((o=t.e.a.c.length>=40)&&_$t(t),$Vt(t),COt(t),n=kdt(t),i=0;n&&i<t.f;)ejt(t,n,eMt(t,n)),n=kdt(t),++i;o&&tAt(t),t.a?mMt(t,uFt(t)):uFt(t),t.b=null,t.d=null,t.p=null,t.c=null,t.g=null,t.i=null,t.n=null,t.o=null,zEt(e)}}function KFt(t,e,n,i){var r,o,a,s,c,l,u,h;for(UR(s=new PS(n,i),jz(wxt(e,(Art(),aae)),8)),h=new Gf(e.e);h.a<h.c.c.length;)qR((u=jz(Q1(h),144)).d,s),Gz(t.e,u);for(a=new Gf(e.c);a.a<a.c.c.length;){for(r=new Gf((o=jz(Q1(a),282)).a);r.a<r.c.c.length;)qR(jz(Q1(r),559).d,s);Gz(t.c,o)}for(l=new Gf(e.d);l.a<l.c.c.length;)qR((c=jz(Q1(l),447)).d,s),Gz(t.d,c)}function YFt(t,e){var n,i,r,o,a,s,c,l;for(c=new Gf(e.j);c.a<c.c.c.length;)for(r=new b6((s=jz(Q1(c),11)).b);wM(r.a)||wM(r.b);)e!=(o=(n=(i=jz(wM(r.a)?Q1(r.a):Q1(r.b),17)).c==s?i.d:i.c).i)&&((l=jz(wxt(i,(zWt(),lbe)),19).a)<0&&(l=0),a=o.p,0==t.b[a]&&(i.d==n?(t.a[a]-=l+1,t.a[a]<=0&&t.c[a]>0&&LV(t.f,o)):(t.c[a]-=l+1,t.c[a]<=0&&t.a[a]>0&&LV(t.e,o))))}function XFt(t){var e,n,i,r,o,a,s;for(o=new fC(jz(wW(new Nt),62)),s=RXt,n=new Gf(t.d);n.a<n.c.c.length;){for(s=(e=jz(Q1(n),222)).c.c;0!=o.a.c&&(a=jz(CG(z8(o.a)),222)).c.c+a.c.b<s;)IQ(o.a,a);for(r=new Ff(new jR(new PL(new Rf(o.a).a).b));rE(r.a.a);)LV((i=jz(bO(r.a).cd(),222)).b,e),LV(e.b,i);Act(o.a,e,(cL(),mee))}}function ZFt(t,e,n){var i,r,o,a,s,c,l,u,h;for(o=new X6(e.c.length),l=new Gf(e);l.a<l.c.c.length;)a=jz(Q1(l),10),Gz(o,t.b[a.c.p][a.p]);for(wHt(t,o,n),h=null;h=eUt(o);)izt(t,jz(h.a,233),jz(h.b,233),o);for(e.c=P7(Ite,zKt,1,0,5,1),r=new Gf(o);r.a<r.c.c.length;)for(c=0,u=(s=(i=jz(Q1(r),233)).d).length;c<u;++c)a=s[c],e.c[e.c.length]=a,t.a[a.c.p][a.p].a=uP(i.g,i.d[0]).a}function QFt(t,e){var n,i,r,o;if(0<(iP(t,14)?jz(t,14).gc():F3(t.Kc()))){if(1<(r=e)){for(--r,o=new wa,i=t.Kc();i.Ob();)n=jz(i.Pb(),86),o=Wnt(Est(Vy(Lte,1),zKt,20,0,[o,new hm(n)]));return QFt(o,r)}if(r<0){for(o=new ka,i=t.Kc();i.Ob();)n=jz(i.Pb(),86),o=Wnt(Est(Vy(Lte,1),zKt,20,0,[o,new hm(n)]));if(0<(iP(o,14)?jz(o,14).gc():F3(o.Kc())))return QFt(o,r)}}return jz(eP(t.Kc()),86)}function JFt(){JFt=I,VDe=new KS("DEFAULT_MINIMUM_SIZE",0),qDe=new KS("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),zDe=new KS("COMPUTE_PADDING",2),UDe=new KS("OUTSIDE_NODE_LABELS_OVERHANG",3),GDe=new KS("PORTS_OVERHANG",4),KDe=new KS("UNIFORM_PORT_SPACING",5),WDe=new KS("SPACE_EFFICIENT_PORT_LABELS",6),HDe=new KS("FORCE_TABULAR_NODE_LABELS",7),$De=new KS("ASYMMETRICAL",8)}function tjt(t,e){var n,i,r,o,a,s,c,l;if(e){if(n=(o=e.Tg())?Uet(o).Nh().Jh(o):null){for(Zmt(t,e,n),c=0,l=(null==(r=e.Tg()).i&&V$t(r),r.i).length;c<l;++c)null==r.i&&V$t(r),i=r.i,(s=c>=0&&c<i.length?i[c]:null).Ij()&&!s.Jj()&&(iP(s,322)?Jbt(t,jz(s,34),e,n):(a=jz(s,18)).Bb&l6t&&cCt(t,a,e,n));e.kh()&&jz(n,49).vh(jz(e,49).qh())}return n}return null}function ejt(t,e,n){var i,r,o;if(!e.f)throw $b(new Rv("Given leave edge is no tree edge."));if(n.f)throw $b(new Rv("Given enter edge is a tree edge already."));for(e.f=!1,tP(t.p,e),n.f=!0,_G(t.p,n),i=n.e.e-n.d.e-n.a,jSt(t,n.e,e)||(i=-i),o=new Gf(t.e.a);o.a<o.c.c.length;)jSt(t,r=jz(Q1(o),121),e)||(r.e+=i);t.j=1,Qv(t.c),mDt(t,jz(Q1(new Gf(t.e.a)),121)),pqt(t)}function njt(t,e){var n,i,r,o,a,s;if((s=jz(wxt(e,(zWt(),tbe)),98))==(YCt(),GSe)||s==USe)for(r=new PS(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b,a=new Gf(t.a);a.a<a.c.c.length;)(o=jz(Q1(a),10)).k==(aEt(),Cse)&&((n=jz(wxt(o,(lKt(),Khe)),61))!=(vGt(),aDe)&&n!=EDe||(i=Vv(CN(wxt(o,_de))),s==GSe&&(i*=r),o.n.b=i-jz(wxt(o,Qme),8).b,Zat(o,!1,!0)))}function ijt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f;if(Xet(t,e,n),o=e[n],f=i?(vGt(),EDe):(vGt(),aDe),bP(e.length,n,i)){for(V6(t,r=e[i?n-1:n+1],i?(oit(),zwe):(oit(),$we)),u=0,d=(c=o).length;u<d;++u)Lwt(t,a=c[u],f);for(V6(t,o,i?(oit(),$we):(oit(),zwe)),l=0,h=(s=r).length;l<h;++l)(a=s[l]).e||Lwt(t,a,Cdt(f))}else for(l=0,h=(s=o).length;l<h;++l)Lwt(t,a=s[l],f);return!1}function rjt(t,e,n,i){var r,o,a,s,c;s=oft(e,n),(n==(vGt(),ADe)||n==EDe)&&(s=iP(s,152)?a6(jz(s,152)):iP(s,131)?jz(s,131).a:iP(s,54)?new lv(s):new EA(s)),a=!1;do{for(r=!1,o=0;o<s.gc()-1;o++)$xt(t,jz(s.Xb(o),11),jz(s.Xb(o+1),11),i)&&(a=!0,k0(t.a,jz(s.Xb(o),11),jz(s.Xb(o+1),11)),c=jz(s.Xb(o+1),11),s._c(o+1,jz(s.Xb(o),11)),s._c(o,c),r=!0)}while(r);return a}function ojt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g;if(!bB(t.e))return jz(XDt(t,e,n),72);if(e!=n&&(a=(f=(r=jz(t.g,119))[n]).ak(),BOt(t.e,a))){for(g=oOt(t.e.Tg(),a),c=-1,s=-1,i=0,l=0,h=e>n?e:n;l<=h;++l)l==n?s=i++:(o=r[l],u=g.rl(o.ak()),l==e&&(c=l!=h||u?i:i-1),u&&++i);return d=jz(Sdt(t,e,n),72),s!=c&&Bw(t,new v8(t.e,7,a,ndt(s),f.dd(),c)),d}return jz(Sdt(t,e,n),72)}function ajt(t,e){var n,i,r,o,a,s;for(DAt(e,"Port order processing",1),s=jz(wxt(t,(zWt(),abe)),421),n=new Gf(t.b);n.a<n.c.c.length;)for(r=new Gf(jz(Q1(n),29).a);r.a<r.c.c.length;)i=jz(Q1(r),10),o=jz(wxt(i,tbe),98),a=i.j,o==(YCt(),qSe)||o==GSe||o==USe?(AX(),bM(a,sle)):o!=KSe&&o!=YSe&&(AX(),bM(a,lle),Mwt(a),s==(q9(),Rwe)&&bM(a,cle)),i.i=!0,eDt(i);zEt(e)}function sjt(t){var e,n,r,o,a,s,c,l;for(l=new Pb,e=new Fw,s=t.Kc();s.Ob();)o=jz(s.Pb(),10),c=DL(ax(new zw,o),e),ySt(l.f,o,c);for(a=t.Kc();a.Ob();)for(r=new aU(ZP(hft(o=jz(a.Pb(),10)).a.Kc(),new u));gBt(r);)h4(n=jz(q4(r),17))||ULt(rx(ix(nx(ox(new $w,i.Math.max(1,jz(wxt(n,(zWt(),ube)),19).a)),1),jz(OW(l,n.c.i),121)),jz(OW(l,n.d.i),121)));return e}function cjt(){cjt=I,hve=fH(new j2,(kxt(),Fae),(hKt(),mce)),fve=fH(new j2,Rae,vce),gve=Gq(fH(new j2,Rae,Lce),jae,Pce),uve=Gq(fH(fH(new j2,Rae,uce),Fae,hce),jae,dce),pve=smt(smt(Fx(Gq(fH(new j2,Oae,qce),jae,Hce),Fae),Vce),Uce),dve=Gq(new j2,jae,bce),cve=Gq(fH(fH(fH(new j2,Nae,Cce),Fae,xce),Fae,Ece),jae,Ace),lve=Gq(fH(fH(new j2,Fae,Ece),Fae,oce),jae,rce)}function ljt(t,e,n,i,r,o){var a,s,c,l,u,h;for(a=hEt(e,c=yct(e)-yct(t)),s=CM(0,0,0);c>=0&&(!Tvt(t,a)||(c<22?s.l|=1<<c:c<44?s.m|=1<<c-22:s.h|=1<<c-44,0!=t.l||0!=t.m||0!=t.h));)l=a.m,u=a.h,h=a.l,a.h=u>>>1,a.m=l>>>1|(1&u)<<21,a.l=h>>>1|(1&l)<<21,--c;return n&&Dct(s),o&&(i?(hee=oct(t),r&&(hee=lst(hee,(U9(),gee)))):hee=CM(t.l,t.m,t.h)),s}function ujt(t,e){var n,i,r,o,a,s,c,l,u,h;for(l=t.e[e.c.p][e.p]+1,c=e.c.a.c.length+1,s=new Gf(t.a);s.a<s.c.c.length;){for(a=jz(Q1(s),11),h=0,o=0,r=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[new $g(a),new Vg(a)])));gBt(r);)(i=jz(q4(r),11)).i.c==e.c&&(h+=hP(t,i.i)+1,++o);n=h/o,(u=a.j)==(vGt(),aDe)?t.f[a.p]=n<l?t.c-n:t.b+(c-n):u==EDe&&(t.f[a.p]=n<l?t.b+n:t.c-(c-n))}}function hjt(t,e,n){var i,r,o,a;if(null==t)throw $b(new Cy(qKt));for(i=(o=t.length)>0&&(h1(0,t.length),45==t.charCodeAt(0)||(h1(0,t.length),43==t.charCodeAt(0)))?1:0;i<o;i++)if(-1==emt((h1(i,t.length),t.charCodeAt(i))))throw $b(new Cy(OXt+t+'"'));if(r=(a=parseInt(t,10))<e,isNaN(a))throw $b(new Cy(OXt+t+'"'));if(r||a>n)throw $b(new Cy(OXt+t+'"'));return a}function djt(t){var e,n,r,o,a,s;for(a=new YA,o=new Gf(t.a);o.a<o.c.c.length;)Gd(r=jz(Q1(o),112),r.f.c.length),Wd(r,r.k.c.length),0==r.i&&(r.o=0,n4(a,r,a.c.b,a.c));for(;0!=a.b;)for(n=(r=jz(0==a.b?null:(xO(0!=a.b),Iet(a,a.a.a)),112)).o+1,e=new Gf(r.f);e.a<e.c.c.length;)Kd(s=jz(Q1(e),129).a,i.Math.max(s.o,n)),Wd(s,s.i-1),0==s.i&&n4(a,s,a.c.b,a.c)}function fjt(t){var e,n,i,r,o,a,s,c;for(a=new Gf(t);a.a<a.c.c.length;){for(o=jz(Q1(a),79),s=(i=EAt(jz(Wet((!o.b&&(o.b=new cF(OIe,o,4,7)),o.b),0),82))).i,c=i.j,EB(r=jz(Wet((!o.a&&(o.a=new tG(RIe,o,6,6)),o.a),0),202),r.j+s,r.k+c),xB(r,r.b+s,r.c+c),n=new DP((!r.a&&(r.a=new IP(MIe,r,5)),r.a));n.e!=n.i.gc();)_B(e=jz(vbt(n),469),e.a+s,e.b+c);Xrt(jz(QBt(o,(cKt(),SEe)),74),s,c)}}function gjt(t){switch(t){case 100:return wKt(cte,!0);case 68:return wKt(cte,!1);case 119:return wKt(lte,!0);case 87:return wKt(lte,!1);case 115:return wKt(ute,!0);case 83:return wKt(ute,!1);case 99:return wKt(hte,!0);case 67:return wKt(hte,!1);case 105:return wKt(dte,!0);case 73:return wKt(dte,!1);default:throw $b(new fv(ste+t.toString(16)))}}function pjt(t){var e,n,r,o,a;switch(o=jz(PH(t.a,0),10),e=new Bwt(t),Gz(t.a,e),e.o.a=i.Math.max(1,o.o.a),e.o.b=i.Math.max(1,o.o.b),e.n.a=o.n.a,e.n.b=o.n.b,jz(wxt(o,(lKt(),Khe)),61).g){case 4:e.n.a+=2;break;case 1:e.n.b+=2;break;case 2:e.n.a-=2;break;case 3:e.n.b-=2}return EJ(r=new TEt,e),AJ(n=new dZ,a=jz(PH(o.j,0),11)),CJ(n,r),qR(kI(r.n),a.n),qR(kI(r.a),a.a),e}function mjt(t,e,n,i,r){n&&(!i||(t.c-t.b&t.a.length-1)>1)&&1==e&&jz(t.a[t.b],10).k==(aEt(),Ase)?l$t(jz(t.a[t.b],10),(Gvt(),vSe)):i&&(!n||(t.c-t.b&t.a.length-1)>1)&&1==e&&jz(t.a[t.c-1&t.a.length-1],10).k==(aEt(),Ase)?l$t(jz(t.a[t.c-1&t.a.length-1],10),(Gvt(),ySe)):2==(t.c-t.b&t.a.length-1)?(l$t(jz(_ct(t),10),(Gvt(),vSe)),l$t(jz(_ct(t),10),ySe)):cPt(t,r),a5(t)}function bjt(t,e,n){var r,o,a,s,c;for(a=0,o=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));o.e!=o.i.gc();)s="",0==(!(r=jz(vbt(o),33)).n&&(r.n=new tG(VIe,r,1,7)),r.n).i||(s=jz(Wet((!r.n&&(r.n=new tG(VIe,r,1,7)),r.n),0),137).a),Vat(c=new rlt(a++,e,s),r),lct(c,(VHt(),sye),r),c.e.b=r.j+r.f/2,c.f.a=i.Math.max(r.g,1),c.e.a=r.i+r.g/2,c.f.b=i.Math.max(r.f,1),LV(e.b,c),ySt(n.f,r,c)}function wjt(t){var e,n,i,r,o;i=jz(wxt(t,(lKt(),fde)),33),o=jz(QBt(i,(zWt(),Fme)),174).Hc((wpt(),RDe)),t.e||(r=jz(wxt(t,Zhe),21),e=new PS(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),r.Hc((dNt(),uhe))?(Xbt(i,tbe,(YCt(),USe)),RGt(i,e.a,e.b,!1,!0)):zv(_N(QBt(i,jme)))||RGt(i,e.a,e.b,!0,!0)),Xbt(i,Fme,o?Jdt(RDe):new YF(n=jz(W_(YDe),9),jz(AR(n,n.length),9),0))}function kjt(t,e,n){var i,r,o,a;if(e[0]>=t.length)return n.o=0,!0;switch(lY(t,e[0])){case 43:r=1;break;case 45:r=-1;break;default:return n.o=0,!0}if(++e[0],o=e[0],0==(a=UDt(t,e))&&e[0]==o)return!1;if(e[0]<t.length&&58==lY(t,e[0])){if(i=60*a,++e[0],o=e[0],0==(a=UDt(t,e))&&e[0]==o)return!1;i+=a}else(i=a)<24&&e[0]-o<=2?i*=60:i=i%100+60*(i/100|0);return i*=r,n.o=-i,!0}function vjt(t){var e,n,i,r,o,a,s;for(r=new Mb,i=new aU(ZP(hft(t.b).a.Kc(),new u));gBt(i);)h4(n=jz(q4(i),17))&&Gz(r,new v6(n,m8(t,n.c),m8(t,n.d)));for(s=new Nf(new Sf(t.e).a.vc().Kc());s.a.Ob();)e=jz(s.a.Pb(),42),(o=jz(e.dd(),113)).d.p=0;for(a=new Nf(new Sf(t.e).a.vc().Kc());a.a.Ob();)e=jz(a.a.Pb(),42),0==(o=jz(e.dd(),113)).d.p&&Gz(t.d,NFt(t,o))}function yjt(t){var e,n,i,r,o;for(o=GQ(t),r=new DP((!t.e&&(t.e=new cF(NIe,t,7,4)),t.e));r.e!=r.i.gc();)if(i=jz(vbt(r),79),!Tet(EAt(jz(Wet((!i.c&&(i.c=new cF(OIe,i,5,8)),i.c),0),82)),o))return!0;for(n=new DP((!t.d&&(t.d=new cF(NIe,t,8,5)),t.d));n.e!=n.i.gc();)if(e=jz(vbt(n),79),!Tet(EAt(jz(Wet((!e.b&&(e.b=new cF(OIe,e,4,7)),e.b),0),82)),o))return!0;return!1}function _jt(t){var e,n,r,o,a,s,c,l;for(l=new kk,c=null,n=jz(h3(e=cbt(t,0)),8),o=jz(h3(e),8);e.b!=e.d.c;)c=n,n=o,o=jz(h3(e),8),a=iet(UR(new PS(c.a,c.b),n)),s=iet(UR(new PS(o.a,o.b),n)),r=10,r=i.Math.min(r,i.Math.abs(a.a+a.b)/2),r=i.Math.min(r,i.Math.abs(s.a+s.b)/2),a.a=$V(a.a)*r,a.b=$V(a.b)*r,s.a=$V(s.a)*r,s.b=$V(s.b)*r,LV(l,qR(a,n)),LV(l,qR(s,n));return l}function Cjt(t,e,n,i){var r,o,a,s,c;return a=t.eh(),r=null,(c=t.Zg())?!e||pFt(t,e,n).Bb&$Xt?c=null:(i=Fbt(c.Vk(),t,i),t.uh(null),r=e.fh()):(a&&(c=a.fh()),e&&(r=e.fh())),c!=r&&c&&c.Zk(t),s=t.Vg(),t.Rg(e,n),c!=r&&r&&r.Yk(t),t.Lg()&&t.Mg()&&(a&&s>=0&&s!=n&&(o=new QU(t,1,s,a,null),i?i.Ei(o):i=o),n>=0&&(o=new QU(t,1,n,s==n?a:null,e),i?i.Ei(o):i=o)),i}function Ajt(t){var e,n,i;if(null==t.b){if(i=new Ay,null!=t.i&&(iI(i,t.i),i.a+=":"),256&t.f){for(256&t.f&&null!=t.a&&(nX(t.i)||(i.a+="//"),iI(i,t.a)),null!=t.d&&(i.a+="/",iI(i,t.d)),16&t.f&&(i.a+="/"),e=0,n=t.j.length;e<n;e++)0!=e&&(i.a+="/"),iI(i,t.j[e]);null!=t.g&&(i.a+="?",iI(i,t.g))}else iI(i,t.a);null!=t.e&&(i.a+="#",iI(i,t.e)),t.b=i.a}return t.b}function xjt(t,e){var n,i,r,o,a,s;for(r=new Gf(e.a);r.a<r.c.c.length;)iP(o=wxt(i=jz(Q1(r),10),(lKt(),fde)),11)&&(s=k$t(e,i,(a=jz(o,11)).o.a,a.o.b),a.n.a=s.a,a.n.b=s.b,VSt(a,jz(wxt(i,Khe),61)));n=new PS(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),jz(wxt(e,(lKt(),Zhe)),21).Hc((dNt(),uhe))?(lct(t,(zWt(),tbe),(YCt(),USe)),jz(wxt(mK(t),Zhe),21).Fc(fhe),dqt(t,n,!1)):dqt(t,n,!0)}function Ejt(t,e,n){var i,r,o,a,s;DAt(n,"Minimize Crossings "+t.a,1),i=0==e.b.c.length||!vC(DY(new OH(null,new d1(e.b,16)),new rg(new Mo))).sd((fx(),Jne)),s=1==e.b.c.length&&1==jz(PH(e.b,0),29).a.c.length,o=VD(wxt(e,(zWt(),sme)))===VD((aht(),pSe)),i||s&&!o||(xlt(r=cOt(t,e),(a=jz(Obt(r,0),214)).c.Rf()?a.c.Lf()?new qp(t):new Up(t):new Hp(t)),oht(t)),zEt(n)}function Tjt(t,e,n,i){var r,o,a,s;if(s=fq(rft(xYt,nY(fq(rft(null==e?0:Jct(e),EYt)),15))),r=fq(rft(xYt,nY(fq(rft(null==n?0:Jct(n),EYt)),15))),a=Qrt(t,e,s),o=Zrt(t,n,r),a&&r==a.a&&dK(n,a.g))return n;if(o&&!i)throw $b(new Rv("key already present: "+n));return a&&MPt(t,a),o&&MPt(t,o),XSt(t,new zK(n,r,e,s),o),o&&(o.e=null,o.c=null),a&&(a.e=null,a.c=null),Vyt(t),a?a.g:null}function Sjt(t,e,n){var i,r,o,a,s;for(o=0;o<e;o++){for(i=0,s=o+1;s<e;s++)i=ift(ift(rft(t0(t[o],UXt),t0(t[s],UXt)),t0(n[o+s],UXt)),t0(fq(i),UXt)),n[o+s]=fq(i),i=vU(i,32);n[o+e]=fq(i)}for(Jrt(n,n,e<<1),i=0,r=0,a=0;r<e;++r,a++)i=ift(ift(rft(t0(t[r],UXt),t0(t[r],UXt)),t0(n[a],UXt)),t0(fq(i),UXt)),n[a]=fq(i),i=ift(i=vU(i,32),t0(n[++a],UXt)),n[a]=fq(i),i=vU(i,32);return n}function Djt(t,e,n){var r,o,a,s,c,l,u,h;if(!c3(e)){for(l=Vv(CN(ept(n.c,(zWt(),Mbe)))),!(u=jz(ept(n.c,Bbe),142))&&(u=new uk),r=n.a,o=null,c=e.Kc();c.Ob();)s=jz(c.Pb(),11),h=0,o?(h=l,h+=o.o.b):h=u.d,a=DL(ax(new zw,s),t.f),WK(t.k,s,a),ULt(rx(ix(nx(ox(new $w,0),EQ(i.Math.ceil(h))),r),a)),o=s,r=a;ULt(rx(ix(nx(ox(new $w,0),EQ(i.Math.ceil(u.a+o.o.b))),r),n.d))}}function Ijt(t,e,n,i,r,o,a,s){var c,l,u;return u=!1,l=o-n.s,c=n.t-e.f+rVt(n,l,!1).a,!(i.g+s>l)&&(c+s+rVt(i,l,!1).a<=e.b&&(p8(n,o-n.s),n.c=!0,p8(i,o-n.s),Cwt(i,n.s,n.t+n.d+s),i.k=!0,Lot(n.q,i),u=!0,r&&(tit(e,i),i.j=e,t.c.length>a&&(Cyt((u1(a,t.c.length),jz(t.c[a],200)),i),0==(u1(a,t.c.length),jz(t.c[a],200)).a.c.length&&s6(t,a)))),u)}function Bjt(t,e){var n,i,r,o,a;if(DAt(e,"Partition midprocessing",1),r=new pQ,XA(DY(new OH(null,new d1(t.a,16)),new pi),new up(r)),0!=r.d){for(a=jz(x5(r1(new OH(null,(r.i||(r.i=new $P(r,r.c))).Nc())),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15),n=jz((i=a.Kc()).Pb(),19);i.Ob();)o=jz(i.Pb(),19),GPt(jz(c6(r,n),21),jz(c6(r,o),21)),n=o;zEt(e)}}function Mjt(t,e,n){var i,r,o,a,s;if(0==e.p){for(e.p=1,(r=n)||(r=new nD(new Mb,new YF(i=jz(W_(FDe),9),jz(AR(i,i.length),9),0))),jz(r.a,15).Fc(e),e.k==(aEt(),Cse)&&jz(r.b,21).Fc(jz(wxt(e,(lKt(),Khe)),61)),a=new Gf(e.j);a.a<a.c.c.length;)for(o=jz(Q1(a),11),s=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[new $g(o),new Vg(o)])));gBt(s);)Mjt(t,jz(q4(s),11).i,r);return r}return null}function Pjt(t,e){var n,i,r,o,a;if(t.Ab)if(t.Ab){if((a=t.Ab.i)>0)if(r=jz(t.Ab.g,1934),null==e){for(o=0;o<a;++o)if(null==(n=r[o]).d)return n}else for(o=0;o<a;++o)if(bF(e,(n=r[o]).d))return n}else if(null==e){for(i=new DP(t.Ab);i.e!=i.i.gc();)if(null==(n=jz(vbt(i),590)).d)return n}else for(i=new DP(t.Ab);i.e!=i.i.gc();)if(bF(e,(n=jz(vbt(i),590)).d))return n;return null}function Ljt(t,e){var n,i,r,o,a,s,c;if(null==(c=_N(wxt(e,(TBt(),Mye))))||(kK(c),c)){for(OIt(t,e),r=new Mb,s=cbt(e.b,0);s.b!=s.d.c;)(n=LTt(t,jz(h3(s),86),null))&&(Vat(n,e),r.c[r.c.length]=n);if(t.a=null,t.b=null,r.c.length>1)for(i=new Gf(r);i.a<i.c.c.length;)for(o=0,a=cbt((n=jz(Q1(i),135)).b,0);a.b!=a.d.c;)jz(h3(a),86).g=o++;return r}return o6(Est(Vy(Vve,1),tJt,135,0,[e]))}function Ojt(t,e,n,i,r){var o,a,s,c,l,u,h,d,f,g,p,m,b;rrt(f=D3(t,Vst(e),r),O2(r,V6t)),p=L2(g=r,U6t),rEt(new Bm(f).a,p),m=L2(g,"endPoint"),iEt(new Om(f).a,m),b=M2(g,O6t),xCt(new Fm(f).a,b),h=O2(r,R6t),zR((o=new cD(t,f)).a,o.b,h),d=O2(r,N6t),VR((a=new lD(t,f)).a,a.b,d),l=M2(r,j6t),jvt((s=new uD(n,f)).b,s.a,l),u=M2(r,F6t),$vt((c=new hD(i,f)).b,c.a,u)}function Njt(t,e,n){var i,r,o,a,s;switch(s=null,e.g){case 1:for(r=new Gf(t.j);r.a<r.c.c.length;)if(zv(_N(wxt(i=jz(Q1(r),11),(lKt(),Jhe)))))return i;lct(s=new TEt,(lKt(),Jhe),(cL(),!0));break;case 2:for(a=new Gf(t.j);a.a<a.c.c.length;)if(zv(_N(wxt(o=jz(Q1(a),11),(lKt(),kde)))))return o;lct(s=new TEt,(lKt(),kde),(cL(),!0))}return s&&(EJ(s,t),VSt(s,n),kwt(s.n,t.o,n)),s}function Rjt(t,e){var n,r,o,a,s,c;for(c=-1,s=new YA,r=new b6(t.b);wM(r.a)||wM(r.b);){for(n=jz(wM(r.a)?Q1(r.a):Q1(r.b),17),c=i.Math.max(c,Vv(CN(wxt(n,(zWt(),rme))))),n.c==t?XA(DY(new OH(null,new d1(n.b,16)),new hn),new Qg(s)):XA(DY(new OH(null,new d1(n.b,16)),new dn),new Jg(s)),a=cbt(s,0);a.b!=a.d.c;)BO(o=jz(h3(a),70),(lKt(),qhe))||lct(o,qhe,n);pst(e,s),wX(s)}return c}function Fjt(t,e,n,i,r){var o,a,s,c;Fd(o=new Bwt(t),(aEt(),Tse)),lct(o,(zWt(),tbe),(YCt(),USe)),lct(o,(lKt(),fde),e.c.i),lct(a=new TEt,fde,e.c),VSt(a,r),EJ(a,o),lct(e.c,yde,o),Fd(s=new Bwt(t),Tse),lct(s,tbe,USe),lct(s,fde,e.d.i),lct(c=new TEt,fde,e.d),VSt(c,r),EJ(c,s),lct(e.d,yde,s),AJ(e,a),CJ(e,c),BJ(0,n.c.length),CE(n.c,0,o),i.c[i.c.length]=s,lct(o,jhe,ndt(1)),lct(s,jhe,ndt(1))}function jjt(t,e,n,r,o){var a,s,c,l,u;c=o?r.b:r.a,FA(t.a,r)||(u=c>n.s&&c<n.c,l=!1,0!=n.e.b&&0!=n.j.b&&(l|=i.Math.abs(c-Vv(CN(gO(n.e))))<hJt&&i.Math.abs(c-Vv(CN(gO(n.j))))<hJt,l|=i.Math.abs(c-Vv(CN(pO(n.e))))<hJt&&i.Math.abs(c-Vv(CN(pO(n.j))))<hJt),(u||l)&&((s=jz(wxt(e,(zWt(),mme)),74))||(s=new kk,lct(e,mme,s)),n4(s,a=new dB(r),s.c.b,s.c),_G(t.a,a)))}function $jt(t,e,n,i){var r,o,a,s,c,l,u;if(WDt(t,e,n,i))return!0;for(a=new Gf(e.f);a.a<a.c.c.length;){switch(o=jz(Q1(a),324),s=!1,l=(c=t.j-e.j+n)+e.o,r=(u=t.k-e.k+i)+e.p,o.a.g){case 0:s=Dlt(t,c+o.b.a,0,c+o.c.a,u-1);break;case 1:s=Dlt(t,l,u+o.b.a,t.o-1,u+o.c.a);break;case 2:s=Dlt(t,c+o.b.a,r,c+o.c.a,t.p-1);break;default:s=Dlt(t,0,u+o.b.a,c-1,u+o.c.a)}if(s)return!0}return!1}function zjt(t,e){var n,i,r,o,a,s,c,l;for(o=new Gf(e.b);o.a<o.c.c.length;)for(c=new Gf(jz(Q1(o),29).a);c.a<c.c.c.length;){for(s=jz(Q1(c),10),l=new Mb,a=0,i=new aU(ZP(uft(s).a.Kc(),new u));gBt(i);)h4(n=jz(q4(i),17))||!h4(n)&&n.c.i.c==n.d.i.c||((r=jz(wxt(n,(zWt(),hbe)),19).a)>a&&(a=r,l.c=P7(Ite,zKt,1,0,5,1)),r==a&&Gz(l,new nD(n.c.i,n)));AX(),bM(l,t.c),kq(t.b,s.p,l)}}function Vjt(t,e){var n,i,r,o,a,s,c,l;for(o=new Gf(e.b);o.a<o.c.c.length;)for(c=new Gf(jz(Q1(o),29).a);c.a<c.c.c.length;){for(s=jz(Q1(c),10),l=new Mb,a=0,i=new aU(ZP(hft(s).a.Kc(),new u));gBt(i);)h4(n=jz(q4(i),17))||!h4(n)&&n.c.i.c==n.d.i.c||((r=jz(wxt(n,(zWt(),hbe)),19).a)>a&&(a=r,l.c=P7(Ite,zKt,1,0,5,1)),r==a&&Gz(l,new nD(n.d.i,n)));AX(),bM(l,t.c),kq(t.f,s.p,l)}}function Hjt(t){Mx(t,new AAt(m_(d_(p_(g_(new ms,h4t),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new Ns))),o2(t,h4t,YQt,Hxe),o2(t,h4t,bJt,15),o2(t,h4t,mJt,ndt(0)),o2(t,h4t,I5t,wbt(Rxe)),o2(t,h4t,EJt,wbt(jxe)),o2(t,h4t,xJt,wbt(zxe)),o2(t,h4t,KQt,u4t),o2(t,h4t,yJt,wbt(Fxe)),o2(t,h4t,$Jt,wbt($xe)),o2(t,h4t,d4t,wbt(Oxe)),o2(t,h4t,a3t,wbt(Nxe))}function qjt(t,e){var n,i,r,o,a,s,c,l,u;if(a=(r=t.i).o.a,o=r.o.b,a<=0&&o<=0)return vGt(),xDe;switch(l=t.n.a,u=t.n.b,s=t.o.a,n=t.o.b,e.g){case 2:case 1:if(l<0)return vGt(),EDe;if(l+s>a)return vGt(),aDe;break;case 4:case 3:if(u<0)return vGt(),sDe;if(u+n>o)return vGt(),ADe}return(c=(l+s/2)/a)+(i=(u+n/2)/o)<=1&&c-i<=0?(vGt(),EDe):c+i>=1&&c-i>=0?(vGt(),aDe):i<.5?(vGt(),sDe):(vGt(),ADe)}function Ujt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f;for(n=!1,c=Vv(CN(wxt(e,(zWt(),Sbe)))),d=RYt*c,r=new Gf(e.b);r.a<r.c.c.length;)for(i=jz(Q1(r),29),o=jz(Q1(s=new Gf(i.a)),10),l=dG(t.a[o.p]);s.a<s.c.c.length;)a=jz(Q1(s),10),l!=(u=dG(t.a[a.p]))&&(h=NM(t.b,o,a),o.n.b+o.o.b+o.d.a+l.a+h>a.n.b-a.d.d+u.a+d&&(f=l.g+u.g,u.a=(u.g*u.a+l.g*l.a)/f,u.g=f,l.f=u,n=!0)),o=a,l=u;return n}function Gjt(t,e,n,i,r,o,a){var s,c,l,u,h;for(h=new hB,c=e.Kc();c.Ob();)for(u=new Gf(jz(c.Pb(),839).wf());u.a<u.c.c.length;)VD((l=jz(Q1(u),181)).We((cKt(),gEe)))===VD((Net(),UTe))&&(iFt(h,l,!1,i,r,o,a),TTt(t,h));for(s=n.Kc();s.Ob();)for(u=new Gf(jz(s.Pb(),839).wf());u.a<u.c.c.length;)VD((l=jz(Q1(u),181)).We((cKt(),gEe)))===VD((Net(),qTe))&&(iFt(h,l,!0,i,r,o,a),TTt(t,h))}function Wjt(t,e,n){var i,r,o,a,s,c,l;for(a=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));a.e!=a.i.gc();)for(r=new aU(ZP(gPt(o=jz(vbt(a),33)).a.Kc(),new u));gBt(r);)JIt(i=jz(q4(r),79))||JIt(i)||YDt(i)||(c=jz(zD(DZ(n.f,o)),86),l=jz(OW(n,EAt(jz(Wet((!i.c&&(i.c=new cF(OIe,i,5,8)),i.c),0),82))),86),c&&l&&(lct(s=new qX(c,l),(VHt(),sye),i),Vat(s,i),LV(c.d,s),LV(l.b,s),LV(e.a,s)))}function Kjt(t,e){var n,r,o,a,s,c,l;for(c=jz(jz(c6(t.r,e),21),84).Kc();c.Ob();)(r=(s=jz(c.Pb(),111)).c?GV(s.c):0)>0?s.a?r>(l=s.b.rf().b)&&(t.v||1==s.c.d.c.length?(a=(r-l)/2,s.d.d=a,s.d.a=a):(n=(jz(PH(s.c.d,0),181).rf().b-l)/2,s.d.d=i.Math.max(0,n),s.d.a=r-n-l)):s.d.a=t.t+r:$U(t.u)&&((o=FAt(s.b)).d<0&&(s.d.d=-o.d),o.d+o.a>s.b.rf().b&&(s.d.a=o.d+o.a-s.b.rf().b))}function Yjt(t,e){var n;switch(mtt(t)){case 6:return UD(e);case 7:return qD(e);case 8:return HD(e);case 3:return Array.isArray(e)&&!((n=mtt(e))>=14&&n<=16);case 11:return null!=e&&typeof e===LKt;case 12:return null!=e&&(typeof e===IKt||typeof e==LKt);case 0:return Ybt(e,t.__elementTypeId$);case 2:return LG(e)&&!(e.im===D);case 1:return LG(e)&&!(e.im===D)||Ybt(e,t.__elementTypeId$);default:return!0}}function Xjt(t,e){var n,r,o,a;return r=i.Math.min(i.Math.abs(t.c-(e.c+e.b)),i.Math.abs(t.c+t.b-e.c)),a=i.Math.min(i.Math.abs(t.d-(e.d+e.a)),i.Math.abs(t.d+t.a-e.d)),(n=i.Math.abs(t.c+t.b/2-(e.c+e.b/2)))>t.b/2+e.b/2||(o=i.Math.abs(t.d+t.a/2-(e.d+e.a/2)))>t.a/2+e.a/2?1:0==n&&0==o?0:0==n?a/o+1:0==o?r/n+1:i.Math.min(r/n,a/o)+1}function Zjt(t,e){var n,r,o,a,s,c;return(o=nit(t))==(c=nit(e))?t.e==e.e&&t.a<54&&e.a<54?t.f<e.f?-1:t.f>e.f?1:0:(r=t.e-e.e,(n=(t.d>0?t.d:i.Math.floor((t.a-1)*qXt)+1)-(e.d>0?e.d:i.Math.floor((e.a-1)*qXt)+1))>r+1?o:n<r-1?-o:(!t.c&&(t.c=kut(t.f)),a=t.c,!e.c&&(e.c=kut(e.f)),s=e.c,r<0?a=Mtt(a,vzt(-r)):r>0&&(s=Mtt(s,vzt(r))),tmt(a,s))):o<c?-1:1}function Qjt(t,e){var n,i,r,o,a,s,c;for(o=0,s=0,c=0,r=new Gf(t.f.e);r.a<r.c.c.length;)e!=(i=jz(Q1(r),144))&&(o+=a=t.i[e.b][i.b],(n=G7(e.d,i.d))>0&&t.d!=(z9(),Dae)&&(s+=a*(i.d.a+t.a[e.b][i.b]*(e.d.a-i.d.a)/n)),n>0&&t.d!=(z9(),Tae)&&(c+=a*(i.d.b+t.a[e.b][i.b]*(e.d.b-i.d.b)/n)));switch(t.d.g){case 1:return new PS(s/o,e.d.b);case 2:return new PS(e.d.a,c/o);default:return new PS(s/o,c/o)}}function Jjt(t,e){var n,i,r,o;if(qlt(),o=jz(wxt(t.i,(zWt(),tbe)),98),0!=t.j.g-e.j.g||o!=(YCt(),qSe)&&o!=GSe&&o!=USe)return 0;if(o==(YCt(),qSe)&&(n=jz(wxt(t,ebe),19),i=jz(wxt(e,ebe),19),n&&i&&0!=(r=n.a-i.a)))return r;switch(t.j.g){case 1:return Edt(t.n.a,e.n.a);case 2:return Edt(t.n.b,e.n.b);case 3:return Edt(e.n.a,t.n.a);case 4:return Edt(e.n.b,t.n.b);default:throw $b(new Fv(i1t))}}function t$t(t){var e,n,i,r,o;for(Gz(o=new X6((!t.a&&(t.a=new IP(MIe,t,5)),t.a).i+2),new PS(t.j,t.k)),XA(new OH(null,(!t.a&&(t.a=new IP(MIe,t,5)),new d1(t.a,16))),new Tm(o)),Gz(o,new PS(t.b,t.c)),e=1;e<o.c.length-1;)u1(e-1,o.c.length),n=jz(o.c[e-1],8),u1(e,o.c.length),i=jz(o.c[e],8),u1(e+1,o.c.length),r=jz(o.c[e+1],8),n.a==i.a&&i.a==r.a||n.b==i.b&&i.b==r.b?s6(o,e):++e;return o}function e$t(t,e){var n,i,r,o,a,s,c;for(n=SL(ex(JA(tx(new Gw,e),new gZ(e.e)),gle),t.a),0==e.j.c.length||W8(jz(PH(e.j,0),57).a,n),c=new Lb,WK(t.e,n,c),a=new Ow,s=new Ow,o=new Gf(e.k);o.a<o.c.c.length;)_G(a,(r=jz(Q1(o),17)).c),_G(s,r.d);(i=a.a.gc()-s.a.gc())<0?(Ust(c,!0,(jht(),RTe)),Ust(c,!1,FTe)):i>0&&(Ust(c,!1,(jht(),RTe)),Ust(c,!0,FTe)),Det(e.g,new sT(t,n)),WK(t.g,e,n)}function n$t(){var t;for(n$t=I,Mee=Est(Vy(SLe,1),lXt,25,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),Pee=P7(SLe,lXt,25,37,15,1),Lee=Est(Vy(SLe,1),lXt,25,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),Oee=P7(ILe,jXt,25,37,14,1),t=2;t<=36;t++)Pee[t]=EQ(i.Math.pow(t,Mee[t])),Oee[t]=D_t(dYt,Pee[t])}function i$t(t){var e;if(1!=(!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i)throw $b(new Rv($4t+(!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i));return e=new kk,dst(jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82))&&jrt(e,qWt(t,dst(jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82)),!1)),dst(jz(Wet((!t.c&&(t.c=new cF(OIe,t,5,8)),t.c),0),82))&&jrt(e,qWt(t,dst(jz(Wet((!t.c&&(t.c=new cF(OIe,t,5,8)),t.c),0),82)),!0)),e}function r$t(t,e){var n,i,r;for(r=!1,i=new aU(ZP((e.d?t.a.c==(gQ(),Jke)?uft(e.b):hft(e.b):t.a.c==(gQ(),Qke)?uft(e.b):hft(e.b)).a.Kc(),new u));gBt(i);)if(n=jz(q4(i),17),(zv(t.a.f[t.a.g[e.b.p].p])||h4(n)||n.c.i.c!=n.d.i.c)&&!zv(t.a.n[t.a.g[e.b.p].p])&&!zv(t.a.n[t.a.g[e.b.p].p])&&(r=!0,FA(t.b,t.a.g[Mkt(n,e.b).p])))return e.c=!0,e.a=n,e;return e.c=r,e.a=null,e}function o$t(t,e,n,i,r){var o,a,s,c,l,u,h;for(AX(),bM(t,new Ks),s=new C2(t,0),h=new Mb,o=0;s.b<s.d.gc();)xO(s.b<s.d.gc()),a=jz(s.d.Xb(s.c=s.b++),157),0!=h.c.length&&eq(a)*tq(a)>2*o?(u=new Het(h),l=eq(a)/tq(a),c=kWt(u,e,new hk,n,i,r,l),qR(kI(u.e),c),h.c=P7(Ite,zKt,1,0,5,1),o=0,h.c[h.c.length]=u,h.c[h.c.length]=a,o=eq(u)*tq(u)+eq(a)*tq(a)):(h.c[h.c.length]=a,o+=eq(a)*tq(a));return h}function a$t(t,e,n){var i,r,o,a,s,c,l;if(0==(i=n.gc()))return!1;if(t.ej())if(c=t.fj(),vgt(t,e,n),a=1==i?t.Zi(3,null,n.Kc().Pb(),e,c):t.Zi(5,null,n,e,c),t.bj()){for(s=i<100?null:new F_(i),o=e+i,r=e;r<o;++r)l=t.Oi(r),s=t.cj(l,s);s?(s.Ei(a),s.Fi()):t.$i(a)}else t.$i(a);else if(vgt(t,e,n),t.bj()){for(s=i<100?null:new F_(i),o=e+i,r=e;r<o;++r)s=t.cj(t.Oi(r),s);s&&s.Fi()}return!0}function s$t(t,e,n){var i,r,o,a;return t.ej()?(r=null,o=t.fj(),i=t.Zi(1,a=t.Ui(e,t.oi(e,n)),n,e,o),t.bj()&&!(t.ni()&&a?Pht(a,n):VD(a)===VD(n))?(a&&(r=t.dj(a,r)),(r=t.cj(n,r))?(r.Ei(i),r.Fi()):t.$i(i)):r?(r.Ei(i),r.Fi()):t.$i(i),a):(a=t.Ui(e,t.oi(e,n)),t.bj()&&!(t.ni()&&a?Pht(a,n):VD(a)===VD(n))&&(r=null,a&&(r=t.dj(a,null)),(r=t.cj(n,r))&&r.Fi()),a)}function c$t(t,e){var n,r,o,a,s,c,l,u;if(t.e=e,t.f=jz(wxt(e,(Art(),cae)),230),GAt(e),t.d=i.Math.max(16*e.e.c.length+e.c.c.length,256),!zv(_N(wxt(e,(uRt(),$oe)))))for(u=t.e.e.c.length,c=new Gf(e.e);c.a<c.c.c.length;)(l=jz(Q1(c),144).d).a=Sq(t.f)*u,l.b=Sq(t.f)*u;for(n=e.b,a=new Gf(e.c);a.a<a.c.c.length;)if(o=jz(Q1(a),282),(r=jz(wxt(o,tae),19).a)>0){for(s=0;s<r;s++)Gz(n,new cW(o));$St(o)}}function l$t(t,e){var n,r,o,a,s;if(t.k==(aEt(),Ase)&&(n=vC(DY(jz(wxt(t,(lKt(),xde)),15).Oc(),new rg(new ri))).sd((fx(),Jne))?e:(Gvt(),_Se),lct(t,ode,n),n!=(Gvt(),ySe)))for(r=jz(wxt(t,fde),17),s=Vv(CN(wxt(r,(zWt(),rme)))),a=0,n==vSe?a=t.o.b-i.Math.ceil(s/2):n==_Se&&(t.o.b-=Vv(CN(wxt(mK(t),vbe))),a=(t.o.b-i.Math.ceil(s))/2),o=new Gf(t.j);o.a<o.c.c.length;)jz(Q1(o),11).n.b=a}function u$t(){u$t=I,Xx(),yLe=new Ru,Est(Vy(SMe,2),cYt,368,0,[Est(Vy(SMe,1),yte,592,0,[new qC(q9t)])]),Est(Vy(SMe,2),cYt,368,0,[Est(Vy(SMe,1),yte,592,0,[new qC(U9t)])]),Est(Vy(SMe,2),cYt,368,0,[Est(Vy(SMe,1),yte,592,0,[new qC(G9t)]),Est(Vy(SMe,1),yte,592,0,[new qC(U9t)])]),new IB("-1"),Est(Vy(SMe,2),cYt,368,0,[Est(Vy(SMe,1),yte,592,0,[new qC("\\c+")])]),new IB("0"),new IB("0"),new IB("1"),new IB("0"),new IB(nte)}function h$t(t){var e,n;return t.c&&t.c.kh()&&(n=jz(t.c,49),t.c=jz(tht(t,n),138),t.c!=n&&(4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,9,2,n,t.c)),iP(t.Cb,399)?t.Db>>16==-15&&t.Cb.nh()&&I9(new k8(t.Cb,9,13,n,t.c,awt($9(jz(t.Cb,59)),t))):iP(t.Cb,88)&&t.Db>>16==-23&&t.Cb.nh()&&(iP(e=t.c,88)||(pKt(),e=dMe),iP(n,88)||(pKt(),n=dMe),I9(new k8(t.Cb,9,10,n,e,awt(r5(jz(t.Cb,26)),t)))))),t.c}function d$t(t,e){var n,i,r,o,a,s,c,l;for(DAt(e,"Hypernodes processing",1),i=new Gf(t.b);i.a<i.c.c.length;)for(a=new Gf(jz(Q1(i),29).a);a.a<a.c.c.length;)if(zv(_N(wxt(o=jz(Q1(a),10),(zWt(),hme))))&&o.j.c.length<=2){for(l=0,c=0,n=0,r=0,s=new Gf(o.j);s.a<s.c.c.length;)switch(jz(Q1(s),11).j.g){case 1:++l;break;case 2:++c;break;case 3:++n;break;case 4:++r}0==l&&0==n&&yWt(t,o,r<=c)}zEt(e)}function f$t(t,e){var n,i,r,o,a,s,c,l,u;for(DAt(e,"Layer constraint edge reversal",1),a=new Gf(t.b);a.a<a.c.c.length;){for(o=jz(Q1(a),29),u=-1,n=new Mb,l=Q0(o.a),r=0;r<l.length;r++)i=jz(wxt(l[r],(lKt(),ede)),303),-1==u?i!=(H9(),Ehe)&&(u=r):i==(H9(),Ehe)&&(xJ(l[r],null),Yvt(l[r],u++,o)),i==(H9(),Ahe)&&Gz(n,l[r]);for(c=new Gf(n);c.a<c.c.c.length;)xJ(s=jz(Q1(c),10),null),xJ(s,o)}zEt(e)}function g$t(t,e,n){var i,r,o,a,s,c,l,u;for(DAt(n,"Hyperedge merging",1),LBt(t,e),s=new C2(e.b,0);s.b<s.d.gc();)if(xO(s.b<s.d.gc()),0!=(l=jz(s.d.Xb(s.c=s.b++),29).a).c.length)for(i=null,r=null,o=null,a=null,c=0;c<l.c.length;c++)u1(c,l.c.length),(r=(i=jz(l.c[c],10)).k)==(aEt(),xse)&&a==xse&&(u=lVt(i,o)).a&&(iNt(i,o,u.b,u.c),u1(c,l.c.length),xC(l.c,c,1),--c,i=o,r=a),o=i,a=r;zEt(n)}function p$t(t,e){var n,i,r;i=0!=zMt(t.d,1),!zv(_N(wxt(e.j,(lKt(),Xhe))))&&!zv(_N(wxt(e.j,Tde)))||VD(wxt(e.j,(zWt(),Bpe)))===VD((wct(),Mwe))?e.c.Tf(e.e,i):i=zv(_N(wxt(e.j,Xhe))),OLt(t,e,i,!0),zv(_N(wxt(e.j,Tde)))&&lct(e.j,Tde,(cL(),!1)),zv(_N(wxt(e.j,Xhe)))&&(lct(e.j,Xhe,(cL(),!1)),lct(e.j,Tde,!0)),n=eFt(t,e);do{if(Brt(t),0==n)return 0;r=n,OLt(t,e,i=!i,!1),n=eFt(t,e)}while(r>n);return r}function m$t(t,e){var n,i,r;i=0!=zMt(t.d,1),!zv(_N(wxt(e.j,(lKt(),Xhe))))&&!zv(_N(wxt(e.j,Tde)))||VD(wxt(e.j,(zWt(),Bpe)))===VD((wct(),Mwe))?e.c.Tf(e.e,i):i=zv(_N(wxt(e.j,Xhe))),OLt(t,e,i,!0),zv(_N(wxt(e.j,Tde)))&&lct(e.j,Tde,(cL(),!1)),zv(_N(wxt(e.j,Xhe)))&&(lct(e.j,Xhe,(cL(),!1)),lct(e.j,Tde,!0)),n=JTt(t,e);do{if(Brt(t),0==n)return 0;r=n,OLt(t,e,i=!i,!1),n=JTt(t,e)}while(r>n);return r}function b$t(t,e,n){var i,r,o,a,s,c,l;if(e==n)return!0;if(e=dBt(t,e),n=dBt(t,n),i=Vwt(e)){if((c=Vwt(n))!=i)return!!c&&(a=i.Dj())==c.Dj()&&null!=a;if(!e.d&&(e.d=new IP(GBe,e,1)),r=(o=e.d).i,!n.d&&(n.d=new IP(GBe,n,1)),r==(l=n.d).i)for(s=0;s<r;++s)if(!b$t(t,jz(Wet(o,s),87),jz(Wet(l,s),87)))return!1;return!0}return e.e==n.e}function w$t(t,e,n,i){var r,o,a,s,c,l,u,h;if(BOt(t.e,e)){for(h=oOt(t.e.Tg(),e),o=jz(t.g,119),u=null,c=-1,s=-1,r=0,l=0;l<t.i;++l)a=o[l],h.rl(a.ak())&&(r==n&&(c=l),r==i&&(s=l,u=a.dd()),++r);if(-1==c)throw $b(new Dv(a7t+n+s7t+r));if(-1==s)throw $b(new Dv(c7t+i+s7t+r));return Sdt(t,c,s),bB(t.e)&&Bw(t,BZ(t,7,e,ndt(i),u,n,!0)),u}throw $b(new Rv("The feature must be many-valued to support move"))}function k$t(t,e,n,i){var r,o,a,s,c;switch((c=new dB(e.n)).a+=e.o.a/2,c.b+=e.o.b/2,s=Vv(CN(wxt(e,(zWt(),Jme)))),o=t.f,a=t.d,r=t.c,jz(wxt(e,(lKt(),Khe)),61).g){case 1:c.a+=a.b+r.a-n/2,c.b=-i-s,e.n.b=-(a.d+s+r.b);break;case 2:c.a=o.a+a.b+a.c+s,c.b+=a.d+r.b-i/2,e.n.a=o.a+a.c+s-r.a;break;case 3:c.a+=a.b+r.a-n/2,c.b=o.b+a.d+a.a+s,e.n.b=o.b+a.a+s-r.b;break;case 4:c.a=-n-s,c.b+=a.d+r.b-i/2,e.n.a=-(a.b+s+r.a)}return c}function v$t(t){var e,n,i,r,o,a;return Vat(i=new wit,t),VD(wxt(i,(zWt(),qpe)))===VD((jht(),jTe))&&lct(i,qpe,Wdt(i)),null==wxt(i,(E6(),_xe))&&(a=jz(Bxt(t),160),lct(i,_xe,eI(a.We(_xe)))),lct(i,(lKt(),fde),t),lct(i,Zhe,new YF(e=jz(W_(_he),9),jz(AR(e,e.length),9),0)),r=EUt((XQ(t)&&(Vx(),new Lv(XQ(t))),Vx(),new XL(XQ(t)?new Lv(XQ(t)):null,t)),FTe),o=jz(wxt(i,Hme),116),tJ(n=i.d,o),tJ(n,r),i}function y$t(t,e,n){var i,r;i=e.c.i,r=n.d.i,i.k==(aEt(),xse)?(lct(t,(lKt(),cde),jz(wxt(i,cde),11)),lct(t,lde,jz(wxt(i,lde),11)),lct(t,sde,_N(wxt(i,sde)))):i.k==Ase?(lct(t,(lKt(),cde),jz(wxt(i,cde),11)),lct(t,lde,jz(wxt(i,lde),11)),lct(t,sde,(cL(),!0))):r.k==Ase?(lct(t,(lKt(),cde),jz(wxt(r,cde),11)),lct(t,lde,jz(wxt(r,lde),11)),lct(t,sde,(cL(),!0))):(lct(t,(lKt(),cde),e.c),lct(t,lde,n.d))}function _$t(t){var e,n,i,r,o,a,s;for(t.o=new Bb,i=new YA,a=new Gf(t.e.a);a.a<a.c.c.length;)1==vft(o=jz(Q1(a),121)).c.length&&n4(i,o,i.c.b,i.c);for(;0!=i.b;)0!=vft(o=jz(0==i.b?null:(xO(0!=i.b),Iet(i,i.a.a)),121)).c.length&&(e=jz(PH(vft(o),0),213),n=o.g.a.c.length>0,s=Pft(e,o),NL(n?s.b:s.g,e),1==vft(s).c.length&&n4(i,s,i.c.b,i.c),r=new nD(o,e),f3(t.o,r),w9(t.e.a,o))}function C$t(t,e){var n,r,o,a;return r=i.Math.abs(zU(t.b).a-zU(e.b).a),a=i.Math.abs(zU(t.b).b-zU(e.b).b),n=1,o=1,r>t.b.b/2+e.b.b/2&&(n=1-i.Math.min(i.Math.abs(t.b.c-(e.b.c+e.b.b)),i.Math.abs(t.b.c+t.b.b-e.b.c))/r),a>t.b.a/2+e.b.a/2&&(o=1-i.Math.min(i.Math.abs(t.b.d-(e.b.d+e.b.a)),i.Math.abs(t.b.d+t.b.a-e.b.d))/a),(1-i.Math.min(n,o))*i.Math.sqrt(r*r+a*a)}function A$t(t){var e,n,i;for(JUt(t,t.e,t.f,(fQ(),Bve),!0,t.c,t.i),JUt(t,t.e,t.f,Bve,!1,t.c,t.i),JUt(t,t.e,t.f,Mve,!0,t.c,t.i),JUt(t,t.e,t.f,Mve,!1,t.c,t.i),S$t(t,t.c,t.e,t.f,t.i),n=new C2(t.i,0);n.b<n.d.gc();)for(xO(n.b<n.d.gc()),e=jz(n.d.Xb(n.c=n.b++),128),i=new C2(t.i,n.b);i.b<i.d.gc();)xO(i.b<i.d.gc()),PHt(e,jz(i.d.Xb(i.c=i.b++),128));SWt(t.i,jz(wxt(t.d,(lKt(),Ade)),230)),Hqt(t.i)}function x$t(t,e){var n,i;if(null!=e)if(i=nvt(t)){if(!(1&i.i))return Qx(),!(n=jz(OW(mBe,i),55))||n.wj(e);if(i==DLe)return HD(e);if(i==SLe)return iP(e,19);if(i==PLe)return iP(e,155);if(i==BLe)return iP(e,217);if(i==TLe)return iP(e,172);if(i==MLe)return qD(e);if(i==LLe)return iP(e,184);if(i==ILe)return iP(e,162)}else if(iP(e,56))return t.uk(jz(e,56));return!1}function E$t(){var t,e,n,i,r,o,a,s,c;for(E$t=I,UPe=P7(BLe,b6t,25,255,15,1),GPe=P7(TLe,WYt,25,64,15,1),e=0;e<255;e++)UPe[e]=-1;for(n=90;n>=65;n--)UPe[n]=n-65<<24>>24;for(i=122;i>=97;i--)UPe[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)UPe[r]=r-48+52<<24>>24;for(UPe[43]=62,UPe[47]=63,o=0;o<=25;o++)GPe[o]=65+o&YYt;for(a=26,c=0;a<=51;++a,c++)GPe[a]=97+c&YYt;for(t=52,s=0;t<=61;++t,s++)GPe[t]=48+s&YYt;GPe[62]=43,GPe[63]=47}function T$t(t,e){var n,r,o,a,s,c,l,u,h,d,f;if(t.dc())return new V_;for(l=0,h=0,r=t.Kc();r.Ob();)o=jz(r.Pb(),37).f,l=i.Math.max(l,o.a),h+=o.a*o.b;for(l=i.Math.max(l,i.Math.sqrt(h)*Vv(CN(wxt(jz(t.Kc().Pb(),37),(zWt(),ype))))),d=0,f=0,c=0,n=e,s=t.Kc();s.Ob();)d+(u=(a=jz(s.Pb(),37)).f).a>l&&(d=0,f+=c+e,c=0),QRt(a,d,f),n=i.Math.max(n,d+u.a),c=i.Math.max(c,u.b),d+=u.a+e;return new PS(n+e,f+c+e)}function S$t(t,e,n,i,r){var o,a,s,c,l,u,h;for(a=new Gf(e);a.a<a.c.c.length;){if(c=(o=jz(Q1(a),17)).c,n.a._b(c))fQ(),l=Bve;else{if(!i.a._b(c))throw $b(new Rv("Source port must be in one of the port sets."));fQ(),l=Mve}if(u=o.d,n.a._b(u))fQ(),h=Bve;else{if(!i.a._b(u))throw $b(new Rv("Target port must be in one of the port sets."));fQ(),h=Mve}s=new tSt(o,l,h),WK(t.b,o,s),r.c[r.c.length]=s}}function D$t(t,e){var n,i,r,o,a,s,c;if(!GQ(t))throw $b(new Fv(j4t));if(o=(i=GQ(t)).g,r=i.f,o<=0&&r<=0)return vGt(),xDe;switch(s=t.i,c=t.j,e.g){case 2:case 1:if(s<0)return vGt(),EDe;if(s+t.g>o)return vGt(),aDe;break;case 4:case 3:if(c<0)return vGt(),sDe;if(c+t.f>r)return vGt(),ADe}return(a=(s+t.g/2)/o)+(n=(c+t.f/2)/r)<=1&&a-n<=0?(vGt(),EDe):a+n>=1&&a-n>=0?(vGt(),aDe):n<.5?(vGt(),sDe):(vGt(),ADe)}function I$t(t,e,n,i,r){var o,a;if(o=ift(t0(e[0],UXt),t0(i[0],UXt)),t[0]=fq(o),o=kU(o,32),n>=r){for(a=1;a<r;a++)o=ift(o,ift(t0(e[a],UXt),t0(i[a],UXt))),t[a]=fq(o),o=kU(o,32);for(;a<n;a++)o=ift(o,t0(e[a],UXt)),t[a]=fq(o),o=kU(o,32)}else{for(a=1;a<n;a++)o=ift(o,ift(t0(e[a],UXt),t0(i[a],UXt))),t[a]=fq(o),o=kU(o,32);for(;a<r;a++)o=ift(o,t0(i[a],UXt)),t[a]=fq(o),o=kU(o,32)}0!=Kut(o,0)&&(t[a]=fq(o))}function B$t(t){var e,n,i,r,o,a;if(fKt(),4!=t.e&&5!=t.e)throw $b(new Rv("Token#complementRanges(): must be RANGE: "+t.e));for(CMt(o=t),VVt(o),i=o.b.length+2,0==o.b[0]&&(i-=2),(n=o.b[o.b.length-1])==ate&&(i-=2),(r=new C0(4)).b=P7(SLe,lXt,25,i,15,1),a=0,o.b[0]>0&&(r.b[a++]=0,r.b[a++]=o.b[0]-1),e=1;e<o.b.length-2;e+=2)r.b[a++]=o.b[e]+1,r.b[a++]=o.b[e+1]-1;return n!=ate&&(r.b[a++]=n+1,r.b[a]=ate),r.a=!0,r}function M$t(t,e,n){var i,r,o,a,s,c,l,u;if(0==(i=n.gc()))return!1;if(t.ej())if(l=t.fj(),$At(t,e,n),a=1==i?t.Zi(3,null,n.Kc().Pb(),e,l):t.Zi(5,null,n,e,l),t.bj()){for(s=i<100?null:new F_(i),o=e+i,r=e;r<o;++r)u=t.g[r],s=t.cj(u,s),s=t.jj(u,s);s?(s.Ei(a),s.Fi()):t.$i(a)}else t.$i(a);else if($At(t,e,n),t.bj()){for(s=i<100?null:new F_(i),o=e+i,r=e;r<o;++r)c=t.g[r],s=t.cj(c,s);s&&s.Fi()}return!0}function P$t(t,e,n,i){var r,o,a,s,c;for(a=new Gf(t.k);a.a<a.c.c.length;)r=jz(Q1(a),129),i&&r.c!=(S6(),_ve)||(c=r.b).g<0&&r.d>0&&(Gd(c,c.d-r.d),r.c==(S6(),_ve)&&qd(c,c.a-r.d),c.d<=0&&c.i>0&&n4(e,c,e.c.b,e.c));for(o=new Gf(t.f);o.a<o.c.c.length;)r=jz(Q1(o),129),i&&r.c!=(S6(),_ve)||(s=r.a).g<0&&r.d>0&&(Wd(s,s.i-r.d),r.c==(S6(),_ve)&&Ud(s,s.b-r.d),s.i<=0&&s.d>0&&n4(n,s,n.c.b,n.c))}function L$t(t,e,n){var i,r,o,a,s,c,l,u;for(DAt(n,"Processor compute fanout",1),IG(t.b),IG(t.a),s=null,o=cbt(e.b,0);!s&&o.b!=o.d.c;)zv(_N(wxt(l=jz(h3(o),86),(VHt(),fye))))&&(s=l);for(n4(c=new YA,s,c.c.b,c.c),yGt(t,c),u=cbt(e.b,0);u.b!=u.d.c;)a=AN(wxt(l=jz(h3(u),86),(VHt(),nye))),r=null!=AQ(t.b,a)?jz(AQ(t.b,a),19).a:0,lct(l,eye,ndt(r)),i=1+(null!=AQ(t.a,a)?jz(AQ(t.a,a),19).a:0),lct(l,Jve,ndt(i));zEt(n)}function O$t(t,e,n,i,r){var o,a,s,c,l,u,h,d,f;for(h=kCt(t,n),s=0;s<e;s++){for(wR(r,n),d=new Mb,xO(i.b<i.d.gc()),f=jz(i.d.Xb(i.c=i.b++),407),l=h+s;l<t.b;l++)a=f,xO(i.b<i.d.gc()),Gz(d,new _Ot(a,f=jz(i.d.Xb(i.c=i.b++),407),n));for(u=h+s;u<t.b;u++)xO(i.b>0),i.a.Xb(i.c=--i.b),u>h+s&&lK(i);for(o=new Gf(d);o.a<o.c.c.length;)wR(i,jz(Q1(o),407));if(s<e-1)for(c=h+s;c<t.b;c++)xO(i.b>0),i.a.Xb(i.c=--i.b)}}function N$t(){var t,e,n,i,r,o;if(fKt(),xLe)return xLe;for(cVt(t=new C0(4),QGt(mte,!0)),Wqt(t,QGt("M",!0)),Wqt(t,QGt("C",!0)),o=new C0(4),i=0;i<11;i++)XOt(o,i,i);return cVt(e=new C0(4),QGt("M",!0)),XOt(e,4448,4607),XOt(e,65438,65439),tHt(r=new nM(2),t),tHt(r,aLe),(n=new nM(2)).$l(gq(o,QGt("L",!0))),n.$l(e),n=new qG(r,n=new c5(3,n)),xLe=n}function R$t(t){var e,n;if(!Xot(e=AN(QBt(t,(cKt(),tEe))),t)&&!x7(t,bTe)&&(0!=(!t.a&&(t.a=new tG(HIe,t,10,11)),t.a).i||zv(_N(QBt(t,AEe))))){if(null!=e&&0!=Nxt(e).length)throw pUt(t,n=aI(aI(new uL("Layout algorithm '"),e),"' not found for ")),$b(new ny(n.a));if(!Xot(f1t,t))throw pUt(t,n=aI(aI(new uL("Unable to load default layout algorithm "),f1t)," for unconfigured node ")),$b(new ny(n.a))}}function F$t(t){var e,n,r,o,a,s,c,l,u,h,d,f,g;if(n=t.i,e=t.n,0==t.b)for(g=n.c+e.b,f=n.b-e.b-e.c,l=0,h=(s=t.a).length;l<h;++l)qq(o=s[l],g,f);else r=Wwt(t,!1),qq(t.a[0],n.c+e.b,r[0]),qq(t.a[2],n.c+n.b-e.c-r[2],r[2]),d=n.b-e.b-e.c,r[0]>0&&(d-=r[0]+t.c,r[0]+=t.c),r[2]>0&&(d-=r[2]+t.c),r[1]=i.Math.max(r[1],d),qq(t.a[1],n.c+e.b+r[0]-(r[1]-d)/2,r[1]);for(c=0,u=(a=t.a).length;c<u;++c)iP(o=a[c],326)&&jz(o,326).Te()}function j$t(t){var e,n,i,r,o,a,s,c,l,u,h;for((h=new sa).d=0,a=new Gf(t.b);a.a<a.c.c.length;)o=jz(Q1(a),29),h.d+=o.a.c.length;for(i=0,r=0,h.a=P7(SLe,lXt,25,t.b.c.length,15,1),l=0,u=0,h.e=P7(SLe,lXt,25,h.d,15,1),n=new Gf(t.b);n.a<n.c.c.length;)for((e=jz(Q1(n),29)).p=i++,h.a[e.p]=r++,u=0,c=new Gf(e.a);c.a<c.c.c.length;)(s=jz(Q1(c),10)).p=l++,h.e[s.p]=u++;return h.c=new lm(h),h.b=sO(h.d),zjt(h,t),h.f=sO(h.d),Vjt(h,t),h}function $$t(t,e){var n,r,o;for(o=jz(PH(t.n,t.n.c.length-1),211).d,t.p=i.Math.min(t.p,e.g),t.r=i.Math.max(t.r,o),t.g=i.Math.max(t.g,e.g+(1==t.b.c.length?0:t.i)),t.o=i.Math.min(t.o,e.f),t.e+=e.f+(1==t.b.c.length?0:t.i),t.f=i.Math.max(t.f,e.f),r=t.n.c.length>0?(t.n.c.length-1)*t.i:0,n=new Gf(t.n);n.a<n.c.c.length;)r+=jz(Q1(n),211).a;t.d=r,t.a=t.e/t.b.c.length-t.i*((t.b.c.length-1)/t.b.c.length),kvt(t.j)}function z$t(t,e){var n,i,r,o,a,s,c,l,u;if(null==(l=_N(wxt(e,(uRt(),eae))))||(kK(l),l)){for(u=P7(DLe,QZt,25,e.e.c.length,16,1),a=vIt(e),r=new YA,c=new Gf(e.e);c.a<c.c.c.length;)(n=XMt(t,jz(Q1(c),144),null,null,u,a))&&(Vat(n,e),n4(r,n,r.c.b,r.c));if(r.b>1)for(i=cbt(r,0);i.b!=i.d.c;)for(o=0,s=new Gf((n=jz(h3(i),231)).e);s.a<s.c.c.length;)jz(Q1(s),144).b=o++;return r}return o6(Est(Vy(Noe,1),tJt,231,0,[e]))}function V$t(t){var e,n,i,r,o;if(!t.g){if(o=new Ac,null==(e=AMe).a.zc(t,e)){for(n=new DP(kZ(t));n.e!=n.i.gc();)pW(o,V$t(jz(vbt(n),26)));e.a.Bc(t),e.a.gc()}for(i=o.i,!t.s&&(t.s=new tG(RBe,t,21,17)),r=new DP(t.s);r.e!=r.i.gc();++i)of(jz(vbt(r),449),i);pW(o,(!t.s&&(t.s=new tG(RBe,t,21,17)),t.s)),rut(o),t.g=new gct(t,o),t.i=jz(o.g,247),null==t.i&&(t.i=EMe),t.p=null,x4(t).b&=-5}return t.g}function H$t(t){var e,n,r,o,a,s,c,l,u,h,d,f,g;if(r=t.i,n=t.n,0==t.b)e=Gwt(t,!1),Uq(t.a[0],r.d+n.d,e[0]),Uq(t.a[2],r.d+r.a-n.a-e[2],e[2]),d=r.a-n.d-n.a,e[0]>0&&(e[0]+=t.c,d-=e[0]),e[2]>0&&(d-=e[2]+t.c),e[1]=i.Math.max(e[1],d),Uq(t.a[1],r.d+n.d+e[0]-(e[1]-d)/2,e[1]);else for(g=r.d+n.d,f=r.a-n.d-n.a,l=0,h=(s=t.a).length;l<h;++l)Uq(o=s[l],g,f);for(c=0,u=(a=t.a).length;c<u;++c)iP(o=a[c],326)&&jz(o,326).Ue()}function q$t(t){var e,n,i,r,o,a,s,c,l;for(l=P7(SLe,lXt,25,t.b.c.length+1,15,1),c=new Ow,i=0,o=new Gf(t.b);o.a<o.c.c.length;){for(r=jz(Q1(o),29),l[i++]=c.a.gc(),s=new Gf(r.a);s.a<s.c.c.length;)for(n=new aU(ZP(hft(jz(Q1(s),10)).a.Kc(),new u));gBt(n);)e=jz(q4(n),17),c.a.zc(e,c);for(a=new Gf(r.a);a.a<a.c.c.length;)for(n=new aU(ZP(uft(jz(Q1(a),10)).a.Kc(),new u));gBt(n);)e=jz(q4(n),17),c.a.Bc(e)}return l}function U$t(t,e,n,i){var r,o,a,s,c;if(c=oOt(t.e.Tg(),e),r=jz(t.g,119),Zx(),jz(e,66).Oj()){for(a=0;a<t.i;++a)if(o=r[a],c.rl(o.ak())&&Pht(o,n))return!0}else if(null!=n){for(s=0;s<t.i;++s)if(o=r[s],c.rl(o.ak())&&Pht(n,o.dd()))return!0;if(i)for(a=0;a<t.i;++a)if(o=r[a],c.rl(o.ak())&&VD(n)===VD(cN(t,jz(o.dd(),56))))return!0}else for(a=0;a<t.i;++a)if(o=r[a],c.rl(o.ak())&&null==o.dd())return!1;return!1}function G$t(t,e,n,i){var r,o,a,s,c,l;if(l=oOt(t.e.Tg(),e),a=jz(t.g,119),BOt(t.e,e)){if(e.hi()&&(o=mzt(t,e,i,iP(e,99)&&!!(jz(e,18).Bb&$Xt)))>=0&&o!=n)throw $b(new Rv(o7t));for(r=0,c=0;c<t.i;++c)if(s=a[c],l.rl(s.ak())){if(r==n)return jz(swt(t,c,(Zx(),jz(e,66).Oj()?jz(i,72):Z3(e,i))),72);++r}throw $b(new Dv(e8t+n+s7t+r))}for(c=0;c<t.i;++c)if(s=a[c],l.rl(s.ak()))return Zx(),jz(e,66).Oj()?s:s.dd();return null}function W$t(t,e,n,r){var o,a,s,c;for(c=n,s=new Gf(e.a);s.a<s.c.c.length;){if(a=jz(Q1(s),221),o=jz(a.b,65),Sft(t.b.c,o.b.c+o.b.b)<=0&&Sft(o.b.c,t.b.c+t.b.b)<=0&&Sft(t.b.d,o.b.d+o.b.a)<=0&&Sft(o.b.d,t.b.d+t.b.a)<=0){if(0==Sft(o.b.c,t.b.c+t.b.b)&&r.a<0||0==Sft(o.b.c+o.b.b,t.b.c)&&r.a>0||0==Sft(o.b.d,t.b.d+t.b.a)&&r.b<0||0==Sft(o.b.d+o.b.a,t.b.d)&&r.b>0){c=0;break}}else c=i.Math.min(c,zSt(t,o,r));c=i.Math.min(c,W$t(t,a,c,r))}return c}function K$t(t,e){var n,i,r,o,a,s;if(t.b<2)throw $b(new Rv("The vector chain must contain at least a source and a target point."));for(xO(0!=t.b),EB(e,(i=jz(t.a.a.c,8)).a,i.b),s=new iO((!e.a&&(e.a=new IP(MIe,e,5)),e.a)),o=cbt(t,1);o.a<t.b-1;)a=jz(h3(o),8),s.e!=s.i.gc()?n=jz(vbt(s),469):(J_(),spt(s,n=new oc)),_B(n,a.a,a.b);for(;s.e!=s.i.gc();)vbt(s),Y_t(s);xO(0!=t.b),xB(e,(r=jz(t.c.b.c,8)).a,r.b)}function Y$t(t,e){var n,i,r,o,a,s,c,l;for(n=0,i=new Gf((u1(0,t.c.length),jz(t.c[0],101)).g.b.j);i.a<i.c.c.length;)jz(Q1(i),11).p=n++;for(e==(vGt(),sDe)?bM(t,new to):bM(t,new eo),a=0,l=t.c.length-1;a<l;)u1(a,t.c.length),o=jz(t.c[a],101),u1(l,t.c.length),c=jz(t.c[l],101),r=e==sDe?o.c:o.a,s=e==sDe?c.a:c.c,hG(o,e,(Dst(),wle),r),hG(c,e,ble,s),++a,--l;a==l&&hG((u1(a,t.c.length),jz(t.c[a],101)),e,(Dst(),mle),null)}function X$t(t,e,n){var i,r,o,a,s,c,l,u,h,d;return u=t.a.i+t.a.g/2,h=t.a.i+t.a.g/2,a=new PS(e.i+e.g/2,e.j+e.f/2),(c=jz(QBt(e,(cKt(),gTe)),8)).a=c.a+u,c.b=c.b+h,r=(a.b-c.b)/(a.a-c.a),i=a.b-r*a.a,s=new PS(n.i+n.g/2,n.j+n.f/2),(l=jz(QBt(n,gTe),8)).a=l.a+u,l.b=l.b+h,o=(s.b-l.b)/(s.a-l.a),d=(i-(s.b-o*s.a))/(o-r),!(c.a<d&&a.a<d||d<c.a&&d<a.a||l.a<d&&s.a<d||d<l.a&&d<s.a)}function Z$t(t,e){var n,i,r,o,a,s;if(!(a=jz(OW(t.c,e),183)))throw $b(new ty("Edge did not exist in input."));return i=Ypt(a),!GC((!e.a&&(e.a=new tG(RIe,e,6,6)),e.a))&&(n=new Cz(t,i,s=new xd),dI((!e.a&&(e.a=new tG(RIe,e,6,6)),e.a),n),net(a,L6t,s)),x7(e,(cKt(),SEe))&&!(!(r=jz(QBt(e,SEe),74))||pK(r))&&(t4(r,new Km(o=new xd)),net(a,"junctionPoints",o)),DV(a,"container",UQ(e).k),null}function Q$t(t,e,n){var i,r,o,a,s,c;this.a=t,this.b=e,this.c=n,this.e=o6(Est(Vy(oie,1),zKt,168,0,[new PE(t,e),new PE(e,n),new PE(n,t)])),this.f=o6(Est(Vy(xxe,1),cYt,8,0,[t,e,n])),this.d=(i=UR(jM(this.b),this.a),r=UR(jM(this.c),this.a),o=UR(jM(this.c),this.b),a=i.a*(this.a.a+this.b.a)+i.b*(this.a.b+this.b.b),s=r.a*(this.a.a+this.c.a)+r.b*(this.a.b+this.c.b),c=2*(i.a*o.b-i.b*o.a),new PS((r.b*a-i.b*s)/c,(i.a*s-r.a*a)/c))}function J$t(t,e,n,i){var r,o,a,s,c,l,u,h,d;if(h=new VW(t.p),net(e,t7t,h),n&&!(t.f?nZ(t.f):null).a.dc())for(net(e,"logs",l=new xd),s=0,d=new zf((t.f?nZ(t.f):null).b.Kc());d.b.Ob();)u=new VW(AN(d.b.Pb())),ftt(l,s),n5(l,s,u),++s;if(i&&net(e,"executionTime",new Cd(t.q)),!nZ(t.a).a.dc())for(a=new xd,net(e,I6t,a),s=0,o=new zf(nZ(t.a).b.Kc());o.b.Ob();)r=jz(o.b.Pb(),1949),c=new pv,ftt(a,s),n5(a,s,c),J$t(r,c,n,i),++s}function tzt(t,e){var n,i,r,o,a,s;for(o=t.c,a=t.d,AJ(t,null),CJ(t,null),e&&zv(_N(wxt(a,(lKt(),Jhe))))?AJ(t,Njt(a.i,(oit(),zwe),(vGt(),aDe))):AJ(t,a),e&&zv(_N(wxt(o,(lKt(),kde))))?CJ(t,Njt(o.i,(oit(),$we),(vGt(),EDe))):CJ(t,o),i=new Gf(t.b);i.a<i.c.c.length;)n=jz(Q1(i),70),(r=jz(wxt(n,(zWt(),Ype)),272))==(Net(),UTe)?lct(n,Ype,qTe):r==qTe&&lct(n,Ype,UTe);s=zv(_N(wxt(t,(lKt(),Ede)))),lct(t,Ede,(cL(),!s)),t.a=Zct(t.a)}function ezt(t,e,n){var r,o,a,s,c;for(r=0,a=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));a.e!=a.i.gc();)s="",0==(!(o=jz(vbt(a),33)).n&&(o.n=new tG(VIe,o,1,7)),o.n).i||(s=jz(Wet((!o.n&&(o.n=new tG(VIe,o,1,7)),o.n),0),137).a),Vat(c=new zW(s),o),lct(c,(Art(),sae),o),c.b=r++,c.d.a=o.i+o.g/2,c.d.b=o.j+o.f/2,c.e.a=i.Math.max(o.g,1),c.e.b=i.Math.max(o.f,1),Gz(e.e,c),ySt(n.f,o,c),jz(QBt(o,(uRt(),Yoe)),98),YCt()}function nzt(t,e){var n,r,o,a,s,c,l,u,h,d,f;n=DL(new zw,t.f),c=t.i[e.c.i.p],d=t.i[e.d.i.p],s=e.c,h=e.d,a=s.a.b,u=h.a.b,c.b||(a+=s.n.b),d.b||(u+=h.n.b),l=EQ(i.Math.max(0,a-u)),o=EQ(i.Math.max(0,u-a)),f=i.Math.max(1,jz(wxt(e,(zWt(),hbe)),19).a)*U3(e.c.i.k,e.d.i.k),r=new QT(ULt(rx(ix(nx(ox(new $w,f),o),n),jz(OW(t.k,e.c),121))),ULt(rx(ix(nx(ox(new $w,f),l),n),jz(OW(t.k,e.d),121)))),t.c[e.p]=r}function izt(t,e,n,i){var r,o,a,s,c,l;for(a=new aqt(t,e,n),c=new C2(i,0),r=!1;c.b<c.d.gc();)xO(c.b<c.d.gc()),(s=jz(c.d.Xb(c.c=c.b++),233))==e||s==n?lK(c):!r&&Vv(uP(s.g,s.d[0]).a)>Vv(uP(a.g,a.d[0]).a)?(xO(c.b>0),c.a.Xb(c.c=--c.b),wR(c,a),r=!0):s.e&&s.e.gc()>0&&(o=(!s.e&&(s.e=new Mb),s.e).Mc(e),l=(!s.e&&(s.e=new Mb),s.e).Mc(n),(o||l)&&((!s.e&&(s.e=new Mb),s.e).Fc(a),++a.c));r||(i.c[i.c.length]=a)}function rzt(t){var e,n,i;if(mB(jz(wxt(t,(zWt(),tbe)),98)))for(n=new Gf(t.j);n.a<n.c.c.length;)(e=jz(Q1(n),11)).j==(vGt(),xDe)&&((i=jz(wxt(e,(lKt(),yde)),10))?VSt(e,jz(wxt(i,Khe),61)):e.e.c.length-e.g.c.length<0?VSt(e,aDe):VSt(e,EDe));else{for(n=new Gf(t.j);n.a<n.c.c.length;)e=jz(Q1(n),11),(i=jz(wxt(e,(lKt(),yde)),10))?VSt(e,jz(wxt(i,Khe),61)):e.e.c.length-e.g.c.length<0?VSt(e,(vGt(),aDe)):VSt(e,(vGt(),EDe));lct(t,tbe,(YCt(),WSe))}}function ozt(t){var e,n;switch(t){case 91:case 93:case 45:case 94:case 44:case 92:n="\\"+String.fromCharCode(t&YYt);break;case 12:n="\\f";break;case 10:n="\\n";break;case 13:n="\\r";break;case 9:n="\\t";break;case 27:n="\\e";break;default:n=t<32?"\\x"+lO(e="0"+(t>>>0).toString(16),e.length-2,e.length):t>=$Xt?"\\v"+lO(e="0"+(t>>>0).toString(16),e.length-6,e.length):""+String.fromCharCode(t&YYt)}return n}function azt(t,e){var n,i,r,o,a,s,c,l,u,h;if(a=t.e,0==(c=e.e))return t;if(0==a)return 0==e.e?e:new uG(-e.e,e.d,e.a);if((o=t.d)+(s=e.d)==2)return n=t0(t.a[0],UXt),i=t0(e.a[0],UXt),a<0&&(n=v9(n)),c<0&&(i=v9(i)),Jmt(nft(n,i));if(-1==(r=o!=s?o>s?1:-1:Alt(t.a,e.a,o)))h=-c,u=a==c?f6(e.a,s,t.a,o):M7(e.a,s,t.a,o);else if(h=a,a==c){if(0==r)return DNt(),ene;u=f6(t.a,o,e.a,s)}else u=M7(t.a,o,e.a,s);return U0(l=new uG(h,u.length,u)),l}function szt(t){var e,n,i,r,o,a;for(this.e=new Mb,this.a=new Mb,n=t.b-1;n<3;n++)NO(t,0,jz(Obt(t,0),8));if(t.b<4)throw $b(new Rv("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,SMt(this,t.b+this.b-1),a=new Mb,o=new Gf(this.e),e=0;e<this.b-1;e++)Gz(a,CN(Q1(o)));for(r=cbt(t,0);r.b!=r.d.c;)i=jz(h3(r),8),Gz(a,CN(Q1(o))),Gz(this.a,new dQ(i,a)),u1(0,a.c.length),a.c.splice(0,1)}function czt(t,e){var n,i,r,o,a,s,c;for(r=new Gf(t.b);r.a<r.c.c.length;)for(a=new Gf(jz(Q1(r),29).a);a.a<a.c.c.length;)for((o=jz(Q1(a),10)).k==(aEt(),Ase)&&(s=jz(q4(new aU(ZP(uft(o).a.Kc(),new u))),17),c=jz(q4(new aU(ZP(hft(o).a.Kc(),new u))),17),l$t(o,zv(_N(wxt(s,(lKt(),Ede))))&&zv(_N(wxt(c,Ede)))?Gst(e):e)),i=new aU(ZP(hft(o).a.Kc(),new u));gBt(i);)bst(n=jz(q4(i),17),zv(_N(wxt(n,(lKt(),Ede))))?Gst(e):e)}function lzt(t,e,n,i,r){var o,a;if(n.f>=e.o&&n.f<=e.f||.5*e.a<=n.f&&1.5*e.a>=n.f){if((o=jz(PH(e.n,e.n.c.length-1),211)).e+o.d+n.g+r<=i&&(jz(PH(e.n,e.n.c.length-1),211).f-t.f+n.f<=t.b||1==t.a.c.length))return kft(e,n),!0;if(e.s+n.g<=i&&(e.t+e.d+n.f+r<=t.b||1==t.a.c.length))return Gz(e.b,n),a=jz(PH(e.n,e.n.c.length-1),211),Gz(e.n,new OQ(e.s,a.f+a.a+e.i,e.i)),ckt(jz(PH(e.n,e.n.c.length-1),211),n),$$t(e,n),!0}return!1}function uzt(t,e,n){var i,r,o,a;return t.ej()?(r=null,o=t.fj(),i=t.Zi(1,a=att(t,e,n),n,e,o),t.bj()&&!(t.ni()&&null!=a?Pht(a,n):VD(a)===VD(n))?(null!=a&&(r=t.dj(a,r)),r=t.cj(n,r),t.ij()&&(r=t.lj(a,n,r)),r?(r.Ei(i),r.Fi()):t.$i(i)):(t.ij()&&(r=t.lj(a,n,r)),r?(r.Ei(i),r.Fi()):t.$i(i)),a):(a=att(t,e,n),t.bj()&&!(t.ni()&&null!=a?Pht(a,n):VD(a)===VD(n))&&(r=null,null!=a&&(r=t.dj(a,null)),(r=t.cj(n,r))&&r.Fi()),a)}function hzt(t,e){var n,r,o,a,s,c,l;e%=24,t.q.getHours()!=e&&((n=new i.Date(t.q.getTime())).setDate(n.getDate()+1),(s=t.q.getTimezoneOffset()-n.getTimezoneOffset())>0&&(c=s/60|0,l=s%60,r=t.q.getDate(),t.q.getHours()+c>=24&&++r,o=new i.Date(t.q.getFullYear(),t.q.getMonth(),r,e+c,t.q.getMinutes()+l,t.q.getSeconds(),t.q.getMilliseconds()),t.q.setTime(o.getTime()))),a=t.q.getTime(),t.q.setTime(a+36e5),t.q.getHours()!=e&&t.q.setTime(a)}function dzt(t,e){var n,i,r,o;if(DAt(e,"Path-Like Graph Wrapping",1),0!=t.b.c.length)if(null==(r=new ABt(t)).i&&(r.i=Wrt(r,new _o)),n=Vv(r.i)*r.f/(null==r.i&&(r.i=Wrt(r,new _o)),Vv(r.i)),r.b>n)zEt(e);else{switch(jz(wxt(t,(zWt(),jbe)),337).g){case 2:o=new xo;break;case 0:o=new po;break;default:o=new Eo}if(i=o.Vf(t,r),!o.Wf())switch(jz(wxt(t,Ube),338).g){case 2:i=GSt(r,i);break;case 1:i=RAt(r,i)}nHt(t,r,i),zEt(e)}else zEt(e)}function fzt(t,e){var n,i,r,o;if(l1(t.d,t.e),t.c.a.$b(),0!=Vv(CN(wxt(e.j,(zWt(),Tpe))))||0!=Vv(CN(wxt(e.j,Tpe))))for(n=QQt,VD(wxt(e.j,Bpe))!==VD((wct(),Mwe))&&lct(e.j,(lKt(),Xhe),(cL(),!0)),o=jz(wxt(e.j,Pbe),19).a,r=0;r<o&&!((i=p$t(t,e))<n&&(n=i,Mrt(t),0==n));r++);else for(n=OKt,VD(wxt(e.j,Bpe))!==VD((wct(),Mwe))&&lct(e.j,(lKt(),Xhe),(cL(),!0)),o=jz(wxt(e.j,Pbe),19).a,r=0;r<o&&!((i=m$t(t,e))<n&&(n=i,Mrt(t),0==n));r++);}function gzt(t,e){var n,i,r,o,a,s;for(r=new Mb,o=0,n=0,a=0;o<e.c.length-1&&n<t.gc();){for(i=jz(t.Xb(n),19).a+a;(u1(o+1,e.c.length),jz(e.c[o+1],19)).a<i;)++o;for(s=0,i-(u1(o,e.c.length),jz(e.c[o],19)).a>(u1(o+1,e.c.length),jz(e.c[o+1],19)).a-i&&++s,Gz(r,(u1(o+s,e.c.length),jz(e.c[o+s],19))),a+=(u1(o+s,e.c.length),jz(e.c[o+s],19)).a-i,++n;n<t.gc()&&jz(t.Xb(n),19).a+a<=(u1(o+s,e.c.length),jz(e.c[o+s],19)).a;)++n;o+=1+s}return r}function pzt(t){var e,n,i,r,o;if(!t.d){if(o=new Tc,null==(e=AMe).a.zc(t,e)){for(n=new DP(kZ(t));n.e!=n.i.gc();)pW(o,pzt(jz(vbt(n),26)));e.a.Bc(t),e.a.gc()}for(r=o.i,!t.q&&(t.q=new tG(WBe,t,11,10)),i=new DP(t.q);i.e!=i.i.gc();++r)jz(vbt(i),399);pW(o,(!t.q&&(t.q=new tG(WBe,t,11,10)),t.q)),rut(o),t.d=new MI((jz(Wet(KX((KW(),QBe).o),9),18),o.i),o.g),t.e=jz(o.g,673),null==t.e&&(t.e=xMe),x4(t).b&=-17}return t.d}function mzt(t,e,n,i){var r,o,a,s,c,l;if(l=oOt(t.e.Tg(),e),c=0,r=jz(t.g,119),Zx(),jz(e,66).Oj()){for(a=0;a<t.i;++a)if(o=r[a],l.rl(o.ak())){if(Pht(o,n))return c;++c}}else if(null!=n){for(s=0;s<t.i;++s)if(o=r[s],l.rl(o.ak())){if(Pht(n,o.dd()))return c;++c}if(i)for(c=0,a=0;a<t.i;++a)if(o=r[a],l.rl(o.ak())){if(VD(n)===VD(cN(t,jz(o.dd(),56))))return c;++c}}else for(a=0;a<t.i;++a)if(o=r[a],l.rl(o.ak())){if(null==o.dd())return c;++c}return-1}function bzt(t,e,n,i,r){var o,a,s,c,l,u,h,d,f;for(AX(),bM(t,new Gs),a=Hz(t),f=new Mb,d=new Mb,s=null,c=0;0!=a.b;)o=jz(0==a.b?null:(xO(0!=a.b),Iet(a,a.a.a)),157),!s||eq(s)*tq(s)/2<eq(o)*tq(o)?(s=o,f.c[f.c.length]=o):(c+=eq(o)*tq(o),d.c[d.c.length]=o,d.c.length>1&&(c>eq(s)*tq(s)/2||0==a.b)&&(h=new Het(d),u=eq(s)/tq(s),l=kWt(h,e,new hk,n,i,r,u),qR(kI(h.e),l),s=h,f.c[f.c.length]=h,c=0,d.c=P7(Ite,zKt,1,0,5,1)));return pst(f,d),f}function wzt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p;if(n.mh(e)&&(u=(f=e)?jz(i,49).xh(f):null))if(p=n.bh(e,t.a),(g=e.t)>1||-1==g)if(h=jz(p,69),d=jz(u,69),h.dc())d.$b();else for(a=!!Twt(e),o=0,s=t.a?h.Kc():h.Zh();s.Ob();)l=jz(s.Pb(),56),(r=jz(utt(t,l),56))?(a?-1==(c=d.Xc(r))?d.Xh(o,r):o!=c&&d.ji(o,r):d.Xh(o,r),++o):t.b&&!a&&(d.Xh(o,l),++o);else null==p?u.Wb(null):null==(r=utt(t,p))?t.b&&!Twt(e)&&u.Wb(p):u.Wb(r)}function kzt(t,e){var n,r,o,a,s,c,l,h;for(n=new Pn,o=new aU(ZP(uft(e).a.Kc(),new u));gBt(o);)if(!h4(r=jz(q4(o),17))&&eAt(c=r.c.i,Use)){if(-1==(h=KNt(t,c,Use,qse)))continue;n.b=i.Math.max(n.b,h),!n.a&&(n.a=new Mb),Gz(n.a,c)}for(s=new aU(ZP(hft(e).a.Kc(),new u));gBt(s);)if(!h4(a=jz(q4(s),17))&&eAt(l=a.d.i,qse)){if(-1==(h=KNt(t,l,qse,Use)))continue;n.d=i.Math.max(n.d,h),!n.c&&(n.c=new Mb),Gz(n.c,l)}return n}function vzt(t){var e,n,i,r;if(BIt(),e=EQ(t),t<ane.length)return ane[e];if(t<=50)return aIt((DNt(),Jee),e);if(t<=KYt)return V4(aIt(one[1],e),e);if(t>1e6)throw $b(new Sv("power of ten too big"));if(t<=OKt)return V4(aIt(one[1],e),e);for(r=i=aIt(one[1],OKt),n=uat(t-OKt),e=EQ(t%OKt);Kut(n,OKt)>0;)r=Mtt(r,i),n=nft(n,OKt);for(r=V4(r=Mtt(r,aIt(one[1],e)),OKt),n=uat(t-OKt);Kut(n,OKt)>0;)r=V4(r,OKt),n=nft(n,OKt);return r=V4(r,e)}function yzt(t,e){var n,i,r,o,a,s,c,l;for(DAt(e,"Hierarchical port dummy size processing",1),s=new Mb,l=new Mb,n=2*Vv(CN(wxt(t,(zWt(),kbe)))),r=new Gf(t.b);r.a<r.c.c.length;){for(i=jz(Q1(r),29),s.c=P7(Ite,zKt,1,0,5,1),l.c=P7(Ite,zKt,1,0,5,1),a=new Gf(i.a);a.a<a.c.c.length;)(o=jz(Q1(a),10)).k==(aEt(),Cse)&&((c=jz(wxt(o,(lKt(),Khe)),61))==(vGt(),sDe)?s.c[s.c.length]=o:c==ADe&&(l.c[l.c.length]=o));zIt(s,!0,n),zIt(l,!1,n)}zEt(e)}function _zt(t,e){var n,i,r,o,a;DAt(e,"Layer constraint postprocessing",1),0!=(a=t.b).c.length&&(u1(0,a.c.length),FFt(t,jz(a.c[0],29),jz(PH(a,a.c.length-1),29),n=new $W(t),r=new $W(t)),0==n.a.c.length||(BJ(0,a.c.length),CE(a.c,0,n)),0==r.a.c.length||(a.c[a.c.length]=r)),BO(t,(lKt(),Qhe))&&(kNt(t,i=new $W(t),o=new $W(t)),0==i.a.c.length||(BJ(0,a.c.length),CE(a.c,0,i)),0==o.a.c.length||(a.c[a.c.length]=o)),zEt(e)}function Czt(t){var e,n,i,r,o,a,s,c;for(a=new Gf(t.a);a.a<a.c.c.length;)if((o=jz(Q1(a),10)).k==(aEt(),Cse)&&((r=jz(wxt(o,(lKt(),Khe)),61))==(vGt(),aDe)||r==EDe))for(i=new aU(ZP(lft(o).a.Kc(),new u));gBt(i);)0!=(e=(n=jz(q4(i),17)).a).b&&((s=n.c).i==o&&(xO(0!=e.b),jz(e.a.a.c,8).b=Ict(Est(Vy(xxe,1),cYt,8,0,[s.i.n,s.n,s.a])).b),(c=n.d).i==o&&(xO(0!=e.b),jz(e.c.b.c,8).b=Ict(Est(Vy(xxe,1),cYt,8,0,[c.i.n,c.n,c.a])).b))}function Azt(t,e){var n,i,r,o,a,s,c;for(DAt(e,"Sort By Input Model "+wxt(t,(zWt(),Bpe)),1),r=0,i=new Gf(t.b);i.a<i.c.c.length;){for(n=jz(Q1(i),29),c=0==r?0:r-1,s=jz(PH(t.b,c),29),a=new Gf(n.a);a.a<a.c.c.length;)VD(wxt(o=jz(Q1(a),10),tbe))!==VD((YCt(),qSe))&&VD(wxt(o,tbe))!==VD(USe)&&(AX(),bM(o.j,new S9(s,syt(o))),SV(e,"Node "+o+" ports: "+o.j));AX(),bM(n.a,new Hrt(s,jz(wxt(t,Bpe),339),jz(wxt(t,Dpe),378))),SV(e,"Layer "+r+": "+n),++r}zEt(e)}function xzt(t,e){var n,i,r;if(r=v$t(e),XA(new OH(null,(!e.c&&(e.c=new tG(qIe,e,9,9)),new d1(e.c,16))),new qg(r)),aUt(e,i=jz(wxt(r,(lKt(),Zhe)),21)),i.Hc((dNt(),uhe)))for(n=new DP((!e.c&&(e.c=new tG(qIe,e,9,9)),e.c));n.e!=n.i.gc();)YUt(t,e,r,jz(vbt(n),118));return 0!=jz(QBt(e,(zWt(),Fme)),174).gc()&&wNt(e,r),zv(_N(wxt(r,Ume)))&&i.Fc(phe),BO(r,gbe)&&Cv(new agt(Vv(CN(wxt(r,gbe)))),r),VD(QBt(e,sme))===VD((aht(),pSe))?rKt(t,e,r):eWt(t,e,r),r}function Ezt(t,e,n,r){var o,a,s;if(this.j=new Mb,this.k=new Mb,this.b=new Mb,this.c=new Mb,this.e=new hB,this.i=new kk,this.f=new Lb,this.d=new Mb,this.g=new Mb,Gz(this.b,t),Gz(this.b,e),this.e.c=i.Math.min(t.a,e.a),this.e.d=i.Math.min(t.b,e.b),this.e.b=i.Math.abs(t.a-e.a),this.e.a=i.Math.abs(t.b-e.b),o=jz(wxt(r,(zWt(),mme)),74))for(s=cbt(o,0);s.b!=s.d.c;)ont((a=jz(h3(s),8)).a,t.a)&&LV(this.i,a);n&&Gz(this.j,n),Gz(this.k,r)}function Tzt(t,e,n){var i,r,o,a,s,c,l,u,h,d;for(u=new UU(new Pg(n)),mG(s=P7(DLe,QZt,25,t.f.e.c.length,16,1),s.length),n[e.b]=0,l=new Gf(t.f.e);l.a<l.c.c.length;)(c=jz(Q1(l),144)).b!=e.b&&(n[c.b]=OKt),F7(ext(u,c));for(;0!=u.b.c.length;)for(s[(h=jz(btt(u),144)).b]=!0,o=mL(new bA(t.b,h),0);o.c;)s[(d=Bkt(r=jz(yJ(o),282),h)).b]||(a=BO(r,(iyt(),pae))?Vv(CN(wxt(r,pae))):t.c,(i=n[h.b]+a)<n[d.b]&&(n[d.b]=i,crt(u,d),F7(ext(u,d))))}function Szt(t,e,n){var i,r,o,a,s,c,l,u,h;for(r=!0,a=new Gf(t.b);a.a<a.c.c.length;){for(o=jz(Q1(a),29),l=RXt,u=null,c=new Gf(o.a);c.a<c.c.c.length;){if(s=jz(Q1(c),10),h=Vv(e.p[s.p])+Vv(e.d[s.p])-s.d.d,i=Vv(e.p[s.p])+Vv(e.d[s.p])+s.o.b+s.d.a,!(h>l&&i>l)){r=!1,n.n&&SV(n,"bk node placement breaks on "+s+" which should have been after "+u);break}u=s,l=Vv(e.p[s.p])+Vv(e.d[s.p])+s.o.b+s.d.a}if(!r)break}return n.n&&SV(n,e+" is feasible: "+r),r}function Dzt(t,e,n,i){var r,o,a,s,c,l,u;for(s=-1,u=new Gf(t);u.a<u.c.c.length;)(l=jz(Q1(u),112)).g=s--,a=r=fq(y2(MY(DY(new OH(null,new d1(l.f,16)),new ua),new ha)).d),c=o=fq(y2(MY(DY(new OH(null,new d1(l.k,16)),new da),new fa)).d),i||(a=fq(y2(MY(new OH(null,new d1(l.f,16)),new ga)).d),c=fq(y2(MY(new OH(null,new d1(l.k,16)),new pa)).d)),l.d=a,l.a=r,l.i=c,l.b=o,0==c?n4(n,l,n.c.b,n.c):0==a&&n4(e,l,e.c.b,e.c)}function Izt(t,e,n,i){var r,o,a,s,c,l,u;if(n.d.i!=e.i){for(Fd(r=new Bwt(t),(aEt(),xse)),lct(r,(lKt(),fde),n),lct(r,(zWt(),tbe),(YCt(),USe)),i.c[i.c.length]=r,EJ(a=new TEt,r),VSt(a,(vGt(),EDe)),EJ(s=new TEt,r),VSt(s,aDe),u=n.d,CJ(n,a),Vat(o=new dZ,n),lct(o,mme,null),AJ(o,s),CJ(o,u),l=new C2(n.b,0);l.b<l.d.gc();)xO(l.b<l.d.gc()),VD(wxt(c=jz(l.d.Xb(l.c=l.b++),70),Ype))===VD((Net(),qTe))&&(lct(c,qhe,n),lK(l),Gz(o.b,c));kBt(r,a,s)}}function Bzt(t,e,n,i){var r,o,a,s,c,l;if(n.c.i!=e.i)for(Fd(r=new Bwt(t),(aEt(),xse)),lct(r,(lKt(),fde),n),lct(r,(zWt(),tbe),(YCt(),USe)),i.c[i.c.length]=r,EJ(a=new TEt,r),VSt(a,(vGt(),EDe)),EJ(s=new TEt,r),VSt(s,aDe),CJ(n,a),Vat(o=new dZ,n),lct(o,mme,null),AJ(o,s),CJ(o,e),kBt(r,a,s),l=new C2(n.b,0);l.b<l.d.gc();)xO(l.b<l.d.gc()),c=jz(l.d.Xb(l.c=l.b++),70),jz(wxt(c,Ype),272)==(Net(),qTe)&&(BO(c,qhe)||lct(c,qhe,n),lK(l),Gz(o.b,c))}function Mzt(t,e,n,r,o){var a,s,c,l,u,h,d,f,g,p,m,b,w,k;for(d=new Mb,b=A5(r),m=e*t.a,g=0,a=new Ow,s=new Ow,c=new Mb,w=0,k=0,f=0,p=0,u=0,h=0;0!=b.a.gc();)(l=tft(b,o,s))&&(b.a.Bc(l),c.c[c.c.length]=l,a.a.zc(l,a),g=t.f[l.p],w+=t.e[l.p]-g*t.b,k+=t.c[l.p]*t.b,h+=g*t.b,p+=t.e[l.p]),(!l||0==b.a.gc()||w>=m&&t.e[l.p]>g*t.b||k>=n*m)&&(d.c[d.c.length]=c,c=new Mb,jrt(s,a),a.a.$b(),u-=h,f=i.Math.max(f,u*t.b+p),u+=k,w=k,k=0,h=0,p=0);return new nD(f,d)}function Pzt(t){var e,n,i,r,o,a,s,c,l,u,h,d;for(n=new Nf(new Sf(t.c.b).a.vc().Kc());n.a.Ob();)s=jz(n.a.Pb(),42),null==(r=(e=jz(s.dd(),149)).a)&&(r=""),!(i=RN(t.c,r))&&0==r.length&&(i=kht(t)),i&&!kgt(i.c,e,!1)&&LV(i.c,e);for(a=cbt(t.a,0);a.b!=a.d.c;)o=jz(h3(a),478),l=_4(t.c,o.a),d=_4(t.c,o.b),l&&d&&LV(l.c,new nD(d,o.c));for(wX(t.a),h=cbt(t.b,0);h.b!=h.d.c;)u=jz(h3(h),478),e=NN(t.c,u.a),c=_4(t.c,u.b),e&&c&&Lx(e,c,u.c);wX(t.b)}function Lzt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;o=new Ad(t),f4((a=new gyt).g),f4(a.j),IG(a.b),f4(a.d),f4(a.i),IG(a.k),IG(a.c),IG(a.e),f=dDt(a,o,null),DMt(a,o),r=f,e&&(s=eVt(l=new Ad(e)),bEt(r,Est(Vy(QAe,1),zKt,527,0,[s]))),d=!1,h=!1,n&&(l=new Ad(n),h7t in l.a&&(d=HQ(l,h7t).ge().a),d7t in l.a&&(h=HQ(l,d7t).ge().a)),u=I_(jnt(new Uk,d),h),$Et(new us,r,u),h7t in o.a&&net(o,h7t,null),(d||h)&&(J$t(u,c=new pv,d,h),net(o,h7t,c)),i=new Um(a),Uct(new SB(r),i)}function Ozt(t,e,n){var i,r,o,a,s,c,l,u,h;for(a=new Xyt,l=Est(Vy(SLe,1),lXt,25,15,[0]),r=-1,o=0,i=0,c=0;c<t.b.c.length;++c){if(!((u=jz(PH(t.b,c),434)).b>0)){if(r=-1,32==lY(u.c,0)){if(h=l[0],wtt(e,l),l[0]>h)continue}else if(IZ(e,u.c,l[0])){l[0]+=u.c.length;continue}return 0}if(r<0&&u.a&&(r=c,o=l[0],i=0),r>=0){if(s=u.b,c==r&&0==(s-=i++))return 0;if(!MGt(e,l,u,s,a)){c=r-1,l[0]=o;continue}}else if(r=-1,!MGt(e,l,u,0,a))return 0}return gGt(a,n)?l[0]:0}function Nzt(t){var e,n,i,r,o,a;if(!t.f){if(a=new xc,o=new xc,null==(e=AMe).a.zc(t,e)){for(r=new DP(kZ(t));r.e!=r.i.gc();)pW(a,Nzt(jz(vbt(r),26)));e.a.Bc(t),e.a.gc()}for(!t.s&&(t.s=new tG(RBe,t,21,17)),i=new DP(t.s);i.e!=i.i.gc();)iP(n=jz(vbt(i),170),99)&&l8(o,jz(n,18));rut(o),t.r=new _V(t,(jz(Wet(KX((KW(),QBe).o),6),18),o.i),o.g),pW(a,t.r),rut(a),t.f=new MI((jz(Wet(KX(QBe.o),5),18),a.i),a.g),x4(t).b&=-3}return t.f}function Rzt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g;for(a=t.o,i=P7(SLe,lXt,25,a,15,1),r=P7(SLe,lXt,25,a,15,1),n=t.p,e=P7(SLe,lXt,25,n,15,1),o=P7(SLe,lXt,25,n,15,1),l=0;l<a;l++){for(h=0;h<n&&!bkt(t,l,h);)++h;i[l]=h}for(u=0;u<a;u++){for(h=n-1;h>=0&&!bkt(t,u,h);)--h;r[u]=h}for(f=0;f<n;f++){for(s=0;s<a&&!bkt(t,s,f);)++s;e[f]=s}for(g=0;g<n;g++){for(s=a-1;s>=0&&!bkt(t,s,g);)--s;o[g]=s}for(c=0;c<a;c++)for(d=0;d<n;d++)c<o[d]&&c>e[d]&&d<r[c]&&d>i[c]&&jRt(t,c,d,!1,!0)}function Fzt(t){var e,n,i,r,o,a,s,c;n=zv(_N(wxt(t,(uRt(),joe)))),o=t.a.c.d,s=t.a.d.d,n?(a=kP(UR(new PS(s.a,s.b),o),.5),c=kP(jM(t.e),.5),e=UR(qR(new PS(o.a,o.b),a),c),$O(t.d,e)):(r=Vv(CN(wxt(t.a,nae))),i=t.d,o.a>=s.a?o.b>=s.b?(i.a=s.a+(o.a-s.a)/2+r,i.b=s.b+(o.b-s.b)/2-r-t.e.b):(i.a=s.a+(o.a-s.a)/2+r,i.b=o.b+(s.b-o.b)/2+r):o.b>=s.b?(i.a=o.a+(s.a-o.a)/2+r,i.b=s.b+(o.b-s.b)/2+r):(i.a=o.a+(s.a-o.a)/2+r,i.b=o.b+(s.b-o.b)/2-r-t.e.b))}function jzt(t,e){var n,i,r,o,a,s,c;if(null==t)return null;if(0==(o=t.length))return"";for(c=P7(TLe,WYt,25,o,15,1),R7(0,o,t.length),R7(0,o,c.length),YG(t,0,o,c,0),n=null,s=e,r=0,a=0;r<o;r++)i=c[r],_Kt(),i<=32&&2&YPe[i]?s?(!n&&(n=new lL(t)),rZ(n,r-a++)):(s=e,32!=i&&(!n&&(n=new lL(t)),sY(n,r-a,r-a+1,String.fromCharCode(32)))):s=!1;return s?n?(o=n.a.length)>0?lO(n.a,0,o-1):"":t.substr(0,o-1):n?n.a:t}function $zt(t){Mx(t,new AAt(m_(d_(p_(g_(new ms,UQt),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new oe))),o2(t,UQt,GQt,wbt(yoe)),o2(t,UQt,WQt,wbt(poe)),o2(t,UQt,KQt,wbt(uoe)),o2(t,UQt,YQt,wbt(moe)),o2(t,UQt,GZt,wbt(koe)),o2(t,UQt,WZt,wbt(woe)),o2(t,UQt,UZt,wbt(voe)),o2(t,UQt,KZt,wbt(boe)),o2(t,UQt,$Qt,wbt(doe)),o2(t,UQt,zQt,wbt(hoe)),o2(t,UQt,VQt,wbt(foe)),o2(t,UQt,HQt,wbt(goe))}function zzt(t,e,n,i){var r,o,a,s,c,l,u;if(Fd(o=new Bwt(t),(aEt(),Tse)),lct(o,(zWt(),tbe),(YCt(),USe)),r=0,e){for(lct(a=new TEt,(lKt(),fde),e),lct(o,fde,e.i),VSt(a,(vGt(),EDe)),EJ(a,o),l=0,u=(c=Z0(e.e)).length;l<u;++l)CJ(c[l],a);lct(e,yde,o),++r}if(n){for(s=new TEt,lct(o,(lKt(),fde),n.i),lct(s,fde,n),VSt(s,(vGt(),aDe)),EJ(s,o),l=0,u=(c=Z0(n.g)).length;l<u;++l)AJ(c[l],s);lct(n,yde,o),++r}return lct(o,(lKt(),jhe),ndt(r)),i.c[i.c.length]=o,o}function Vzt(){Vzt=I,SIe=Est(Vy(TLe,1),WYt,25,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),DIe=new RegExp("[ \t\n\r\f]+");try{TIe=Est(Vy(PMe,1),zKt,2015,0,[new mb((sM(),cpt("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",lR((ly(),ly(),iee))))),new mb(cpt("yyyy-MM-dd'T'HH:mm:ss'.'SSS",lR(iee))),new mb(cpt("yyyy-MM-dd'T'HH:mm:ss",lR(iee))),new mb(cpt("yyyy-MM-dd'T'HH:mm",lR(iee))),new mb(cpt("yyyy-MM-dd",lR(iee)))])}catch(t){if(!iP(t=hst(t),78))throw $b(t)}}function Hzt(t){var e,n,r,o;if(r=VWt((!t.c&&(t.c=kut(t.f)),t.c),0),0==t.e||0==t.a&&-1!=t.f&&t.e<0)return r;if(e=nit(t)<0?1:0,n=t.e,r.length,i.Math.abs(EQ(t.e)),o=new Ty,1==e&&(o.a+="-"),t.e>0)if((n-=r.length-e)>=0){for(o.a+="0.";n>Vee.length;n-=Vee.length)MH(o,Vee);gR(o,Vee,EQ(n)),aI(o,r.substr(e))}else aI(o,lO(r,e,EQ(n=e-n))),o.a+=".",aI(o,QD(r,EQ(n)));else{for(aI(o,r.substr(e));n<-Vee.length;n+=Vee.length)MH(o,Vee);gR(o,Vee,EQ(-n))}return o.a}function qzt(t,e,n,r){var o,a,s,c,l,u,h,d,f;return u=(l=UR(new PS(n.a,n.b),t)).a*e.b-l.b*e.a,h=e.a*r.b-e.b*r.a,d=(l.a*r.b-l.b*r.a)/h,f=u/h,0==h?0==u?(a=G7(t,o=qR(new PS(n.a,n.b),kP(new PS(r.a,r.b),.5))),s=G7(qR(new PS(t.a,t.b),e),o),c=.5*i.Math.sqrt(r.a*r.a+r.b*r.b),a<s&&a<=c?new PS(t.a,t.b):s<=c?qR(new PS(t.a,t.b),e):null):null:d>=0&&d<=1&&f>=0&&f<=1?qR(new PS(t.a,t.b),kP(new PS(e.a,e.b),d)):null}function Uzt(t,e,n){var i,r,o,a,s;if(i=jz(wxt(t,(zWt(),Mpe)),21),n.a>e.a&&(i.Hc((fCt(),Gxe))?t.c.a+=(n.a-e.a)/2:i.Hc(Kxe)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(i.Hc((fCt(),Xxe))?t.c.b+=(n.b-e.b)/2:i.Hc(Yxe)&&(t.c.b+=n.b-e.b)),jz(wxt(t,(lKt(),Zhe)),21).Hc((dNt(),uhe))&&(n.a>e.a||n.b>e.b))for(s=new Gf(t.a);s.a<s.c.c.length;)(a=jz(Q1(s),10)).k==(aEt(),Cse)&&((r=jz(wxt(a,Khe),61))==(vGt(),aDe)?a.n.a+=n.a-e.a:r==ADe&&(a.n.b+=n.b-e.b));o=t.d,t.f.a=n.a-o.b-o.c,t.f.b=n.b-o.d-o.a}function Gzt(t,e,n){var i,r,o,a,s;if(i=jz(wxt(t,(zWt(),Mpe)),21),n.a>e.a&&(i.Hc((fCt(),Gxe))?t.c.a+=(n.a-e.a)/2:i.Hc(Kxe)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(i.Hc((fCt(),Xxe))?t.c.b+=(n.b-e.b)/2:i.Hc(Yxe)&&(t.c.b+=n.b-e.b)),jz(wxt(t,(lKt(),Zhe)),21).Hc((dNt(),uhe))&&(n.a>e.a||n.b>e.b))for(a=new Gf(t.a);a.a<a.c.c.length;)(o=jz(Q1(a),10)).k==(aEt(),Cse)&&((r=jz(wxt(o,Khe),61))==(vGt(),aDe)?o.n.a+=n.a-e.a:r==ADe&&(o.n.b+=n.b-e.b));s=t.d,t.f.a=n.a-s.b-s.c,t.f.b=n.b-s.d-s.a}function Wzt(t){var e,n,r,o,a,s,c,l,u,h;for(l=new Tf(new Ef(LIt(t)).a.vc().Kc());l.a.Ob();){for(r=jz(l.a.Pb(),42),u=0,h=0,u=(c=jz(r.cd(),10)).d.d,h=c.o.b+c.d.a,t.d[c.p]=0,e=c;(o=t.a[e.p])!=c;)n=Amt(e,o),s=0,s=t.c==(gQ(),Qke)?n.d.n.b+n.d.a.b-n.c.n.b-n.c.a.b:n.c.n.b+n.c.a.b-n.d.n.b-n.d.a.b,a=Vv(t.d[e.p])+s,t.d[o.p]=a,u=i.Math.max(u,o.d.d-a),h=i.Math.max(h,a+o.o.b+o.d.a),e=o;e=c;do{t.d[e.p]=Vv(t.d[e.p])+u,e=t.a[e.p]}while(e!=c);t.b[c.p]=u+h}}function Kzt(t){var e,n,r,o,a,s,c,l,u,h,d;for(t.b=!1,h=NXt,c=RXt,d=NXt,l=RXt,n=t.e.a.ec().Kc();n.Ob();)for(r=(e=jz(n.Pb(),266)).a,h=i.Math.min(h,r.c),c=i.Math.max(c,r.c+r.b),d=i.Math.min(d,r.d),l=i.Math.max(l,r.d+r.a),a=new Gf(e.c);a.a<a.c.c.length;)(o=jz(Q1(a),395)).a.a?(s=(u=r.d+o.b.b)+o.c,d=i.Math.min(d,u),l=i.Math.max(l,s)):(s=(u=r.c+o.b.a)+o.c,h=i.Math.min(h,u),c=i.Math.max(c,s));t.a=new PS(c-h,l-d),t.c=new PS(h+t.d.a,d+t.d.b)}function Yzt(t,e,n){var i,r,o,a,s,c,l,u;for(u=new Mb,o=0,tit(l=new P0(0,n),new olt(0,0,l,n)),r=0,c=new DP(t);c.e!=c.i.gc();)s=jz(vbt(c),33),i=jz(PH(l.a,l.a.c.length-1),187),r+s.g+(0==jz(PH(l.a,0),187).b.c.length?0:n)>e&&(r=0,o+=l.b+n,u.c[u.c.length]=l,tit(l=new P0(o,n),i=new olt(0,l.f,l,n)),r=0),0==i.b.c.length||s.f>=i.o&&s.f<=i.f||.5*i.a<=s.f&&1.5*i.a>=s.f?kft(i,s):(tit(l,a=new olt(i.s+i.r+n,l.f,l,n)),kft(a,s)),r=s.i+s.g;return u.c[u.c.length]=l,u}function Xzt(t){var e,n,i,r,o,a;if(!t.a){if(t.o=null,a=new gb(t),e=new Ec,null==(n=AMe).a.zc(t,n)){for(o=new DP(kZ(t));o.e!=o.i.gc();)pW(a,Xzt(jz(vbt(o),26)));n.a.Bc(t),n.a.gc()}for(!t.s&&(t.s=new tG(RBe,t,21,17)),r=new DP(t.s);r.e!=r.i.gc();)iP(i=jz(vbt(r),170),322)&&l8(e,jz(i,34));rut(e),t.k=new yV(t,(jz(Wet(KX((KW(),QBe).o),7),18),e.i),e.g),pW(a,t.k),rut(a),t.a=new MI((jz(Wet(KX(QBe.o),4),18),a.i),a.g),x4(t).b&=-2}return t.a}function Zzt(t,e,n,i,r,o,a){var s,c,l,u,h;return u=!1,s=gLt(n.q,e.f+e.b-n.q.f),!((h=r-(n.q.e+s-a))<i.g)&&(c=o==t.c.length-1&&h>=(u1(o,t.c.length),jz(t.c[o],200)).e,!((l=rVt(i,h,!1).a)>e.b&&!c)&&((c||l<=e.b)&&(c&&l>e.b?(n.d=l,p8(n,jEt(n,l))):(oCt(n.q,s),n.c=!0),p8(i,r-(n.s+n.r)),Cwt(i,n.q.e+n.q.d,e.f),tit(e,i),t.c.length>o&&(Cyt((u1(o,t.c.length),jz(t.c[o],200)),i),0==(u1(o,t.c.length),jz(t.c[o],200)).a.c.length&&s6(t,o)),u=!0),u))}function Qzt(t,e,n,i){var r,o,a,s,c,l,u;if(u=oOt(t.e.Tg(),e),r=0,o=jz(t.g,119),c=null,Zx(),jz(e,66).Oj()){for(s=0;s<t.i;++s)if(a=o[s],u.rl(a.ak())){if(Pht(a,n)){c=a;break}++r}}else if(null!=n){for(s=0;s<t.i;++s)if(a=o[s],u.rl(a.ak())){if(Pht(n,a.dd())){c=a;break}++r}}else for(s=0;s<t.i;++s)if(a=o[s],u.rl(a.ak())){if(null==a.dd()){c=a;break}++r}return c&&(bB(t.e)&&(l=e.$j()?new h5(t.e,4,e,n,null,r,!0):BZ(t,e.Kj()?2:1,e,n,e.zj(),-1,!0),i?i.Ei(l):i=l),i=CFt(t,c,i)),i}function Jzt(t,e,n,r,o,a,s){var c,l,u,h,d,f,g,p;switch(g=0,p=0,l=o.c,c=o.b,h=n.f,f=n.g,e.g){case 0:g=r.i+r.g+s,p=t.c?pAt(g,a,r,s):r.j,d=i.Math.max(l,g+f),u=i.Math.max(c,p+h);break;case 1:p=r.j+r.f+s,g=t.c?gAt(p,a,r,s):r.i,d=i.Math.max(l,g+f),u=i.Math.max(c,p+h);break;case 2:g=l+s,p=0,d=l+s+f,u=i.Math.max(c,h);break;case 3:g=0,p=c+s,d=i.Math.max(l,f),u=c+s+h;break;default:throw $b(new Rv("IllegalPlacementOption."))}return new ogt(t.a,d,u,e,g,p)}function tVt(t){var e,n,r,o,a,s,c,l,u,h,d,f;if(c=t.d,d=jz(wxt(t,(lKt(),Nde)),15),e=jz(wxt(t,Lhe),15),d||e){if(a=Vv(CN(ept(t,(zWt(),pbe)))),s=Vv(CN(ept(t,mbe))),f=0,d){for(u=0,o=d.Kc();o.Ob();)r=jz(o.Pb(),10),u=i.Math.max(u,r.o.b),f+=r.o.a;f+=a*(d.gc()-1),c.d+=u+s}if(n=0,e){for(u=0,o=e.Kc();o.Ob();)r=jz(o.Pb(),10),u=i.Math.max(u,r.o.b),n+=r.o.a;n+=a*(e.gc()-1),c.a+=u+s}(l=i.Math.max(f,n))>t.o.a&&(h=(l-t.o.a)/2,c.b=i.Math.max(c.b,h),c.c=i.Math.max(c.c,h))}}function eVt(t){var e,n,i,r,o,a;for(iB(r=new O0,(Pst(),XAe)),i=new Af(new Xv(new _A(t,yrt(t,P7(Yee,cYt,2,0,6,1))).b));i.b<i.d.gc();)xO(i.b<i.d.gc()),n=AN(i.d.Xb(i.c=i.b++)),(o=mqt(lBe,n))&&null!=(a=QHt(o,(e=HQ(t,n)).je()?e.je().a:e.ge()?""+e.ge().a:e.he()?""+e.he().a:e.Ib()))&&((AL(o.j,(ibt(),sxe))||AL(o.j,cxe))&&cct(Ytt(r,HIe),o,a),AL(o.j,oxe)&&cct(Ytt(r,NIe),o,a),AL(o.j,lxe)&&cct(Ytt(r,qIe),o,a),AL(o.j,axe)&&cct(Ytt(r,VIe),o,a));return r}function nVt(t,e,n,i){var r,o,a,s,c,l;if(c=oOt(t.e.Tg(),e),o=jz(t.g,119),BOt(t.e,e)){for(r=0,s=0;s<t.i;++s)if(a=o[s],c.rl(a.ak())){if(r==n)return Zx(),jz(e,66).Oj()?a:(null!=(l=a.dd())&&i&&iP(e,99)&&jz(e,18).Bb&$Xt&&(l=jDt(t,e,s,r,l)),l);++r}throw $b(new Dv(e8t+n+s7t+r))}for(r=0,s=0;s<t.i;++s){if(a=o[s],c.rl(a.ak()))return Zx(),jz(e,66).Oj()?a:(null!=(l=a.dd())&&i&&iP(e,99)&&jz(e,18).Bb&$Xt&&(l=jDt(t,e,s,r,l)),l);++r}return e.zj()}function iVt(t,e,n){var i,r,o,a,s,c,l,u;if(r=jz(t.g,119),BOt(t.e,e))return Zx(),jz(e,66).Oj()?new uH(e,t):new PD(e,t);for(l=oOt(t.e.Tg(),e),i=0,s=0;s<t.i;++s){if(a=(o=r[s]).ak(),l.rl(a)){if(Zx(),jz(e,66).Oj())return o;if(a==(CIt(),cPe)||a==oPe){for(c=new uL($ft(o.dd()));++s<t.i;)((a=(o=r[s]).ak())==cPe||a==oPe)&&aI(c,$ft(o.dd()));return gF(jz(e.Yj(),148),c.a)}return null!=(u=o.dd())&&n&&iP(e,99)&&jz(e,18).Bb&$Xt&&(u=jDt(t,e,s,i,u)),u}++i}return e.zj()}function rVt(t,e,n){var r,o,a,s,c,l,u,h,d,f;for(a=0,s=t.t,o=0,r=0,l=0,f=0,d=0,n&&(t.n.c=P7(Ite,zKt,1,0,5,1),Gz(t.n,new OQ(t.s,t.t,t.i))),c=0,h=new Gf(t.b);h.a<h.c.c.length;)a+(u=jz(Q1(h),33)).g+(c>0?t.i:0)>e&&l>0&&(a=0,s+=l+t.i,o=i.Math.max(o,f),r+=l+t.i,l=0,f=0,n&&(++d,Gz(t.n,new OQ(t.s,s,t.i))),c=0),f+=u.g+(c>0?t.i:0),l=i.Math.max(l,u.f),n&&ckt(jz(PH(t.n,d),211),u),a+=u.g+(c>0?t.i:0),++c;return o=i.Math.max(o,f),r+=l,n&&(t.r=o,t.d=r,kvt(t.j)),new qY(t.s,t.t,o,r)}function oVt(t,e,n,i,r){var o,a,s,c,l,u,h,d,f;if(IA(),AG(t,"src"),AG(n,"dest"),d=tlt(t),c=tlt(n),pV(!!(4&d.i),"srcType is not an array"),pV(!!(4&c.i),"destType is not an array"),h=d.c,a=c.c,pV(1&h.i?h==a:!(1&a.i),"Array types don't match"),f=t.length,l=n.length,e<0||i<0||r<0||e+r>f||i+r>l)throw $b(new lw);if(1&h.i||d==c)r>0&&FSt(t,e,n,i,r,!0);else if(u=ent(t),o=ent(n),VD(t)===VD(n)&&e<i)for(e+=r,s=i+r;s-- >i;)IW(o,s,u[--e]);else for(s=i+r;i<s;)IW(o,i++,u[e++])}function aVt(){aVt=I,ine=Est(Vy(SLe,1),lXt,25,15,[FYt,1162261467,DYt,1220703125,362797056,1977326743,DYt,387420489,IXt,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,DYt,1291467969,1544804416,1838265625,60466176]),rne=Est(Vy(SLe,1),lXt,25,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function sVt(t){var e,n,i,r,o,a,s;for(i=new Gf(t.b);i.a<i.c.c.length;)for(o=new Gf(r0(jz(Q1(i),29).a));o.a<o.c.c.length;)if(Ztt(r=jz(Q1(o),10))&&!(n=jz(wxt(r,(lKt(),Ohe)),305)).g&&n.d)for(e=n,s=n.d;s;)eRt(s.i,s.k,!1,!0),D9(e.a),D9(s.i),D9(s.k),D9(s.b),CJ(s.c,e.c.d),CJ(e.c,null),xJ(e.a,null),xJ(s.i,null),xJ(s.k,null),xJ(s.b,null),(a=new m3(e.i,s.a,e.e,s.j,s.f)).k=e.k,a.n=e.n,a.b=e.b,a.c=s.c,a.g=e.g,a.d=s.d,lct(e.i,Ohe,a),lct(s.a,Ohe,a),s=s.d,e=a}function cVt(t,e){var n,i,r,o,a;if(a=jz(e,136),CMt(t),CMt(a),null!=a.b){if(t.c=!0,null==t.b)return t.b=P7(SLe,lXt,25,a.b.length,15,1),void oVt(a.b,0,t.b,0,a.b.length);for(o=P7(SLe,lXt,25,t.b.length+a.b.length,15,1),n=0,i=0,r=0;n<t.b.length||i<a.b.length;)n>=t.b.length?(o[r++]=a.b[i++],o[r++]=a.b[i++]):i>=a.b.length?(o[r++]=t.b[n++],o[r++]=t.b[n++]):a.b[i]<t.b[n]||a.b[i]===t.b[n]&&a.b[i+1]<t.b[n+1]?(o[r++]=a.b[i++],o[r++]=a.b[i++]):(o[r++]=t.b[n++],o[r++]=t.b[n++]);t.b=o}}function lVt(t,e){var n,i,r,o,a,s,c,l,u,h;return n=zv(_N(wxt(t,(lKt(),sde)))),s=zv(_N(wxt(e,sde))),i=jz(wxt(t,cde),11),c=jz(wxt(e,cde),11),r=jz(wxt(t,lde),11),l=jz(wxt(e,lde),11),u=!!i&&i==c,h=!!r&&r==l,n||s?(o=(!zv(_N(wxt(t,sde)))||zv(_N(wxt(t,ade))))&&(!zv(_N(wxt(e,sde)))||zv(_N(wxt(e,ade)))),a=!(zv(_N(wxt(t,sde)))&&zv(_N(wxt(t,ade)))||zv(_N(wxt(e,sde)))&&zv(_N(wxt(e,ade)))),new Oj(u&&o||h&&a,u,h)):new Oj(jz(Q1(new Gf(t.j)),11).p==jz(Q1(new Gf(e.j)),11).p,u,h)}function uVt(t){var e,n,r,o,a,s,c,l;for(r=0,n=0,l=new YA,e=0,c=new Gf(t.n);c.a<c.c.c.length;)0==(s=jz(Q1(c),211)).c.c.length?n4(l,s,l.c.b,l.c):(r=i.Math.max(r,s.d),n+=s.a+(e>0?t.i:0)),++e;for(Jft(t.n,l),t.d=n,t.r=r,t.g=0,t.f=0,t.e=0,t.o=NXt,t.p=NXt,a=new Gf(t.b);a.a<a.c.c.length;)o=jz(Q1(a),33),t.p=i.Math.min(t.p,o.g),t.g=i.Math.max(t.g,o.g),t.f=i.Math.max(t.f,o.f),t.o=i.Math.min(t.o,o.f),t.e+=o.f+t.i;t.a=t.e/t.b.c.length-t.i*((t.b.c.length-1)/t.b.c.length),kvt(t.j)}function hVt(t){var e,n,i,r;return 64&t.Db?Xdt(t):(e=new uL(K4t),(i=t.k)?aI(aI((e.a+=' "',e),i),'"'):(!t.n&&(t.n=new tG(VIe,t,1,7)),t.n.i>0&&(!(r=(!t.n&&(t.n=new tG(VIe,t,1,7)),jz(Wet(t.n,0),137)).a)||aI(aI((e.a+=' "',e),r),'"'))),!t.b&&(t.b=new cF(OIe,t,4,7)),n=!(t.b.i<=1&&(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c.i<=1)),e.a+=n?" [":" ",aI(e,XP(new by,new DP(t.b))),n&&(e.a+="]"),e.a+=e1t,n&&(e.a+="["),aI(e,XP(new by,new DP(t.c))),n&&(e.a+="]"),e.a)}function dVt(t,e){var n,i,r,o,a,s,c;if(t.a){if(c=null,null!=(s=t.a.ne())?e.a+=""+s:null!=(a=t.a.Dj())&&(-1!=(o=VI(a,XAt(91)))?(c=a.substr(o),e.a+=""+lO(null==a?qKt:(kK(a),a),0,o)):e.a+=""+a),t.d&&0!=t.d.i){for(r=!0,e.a+="<",i=new DP(t.d);i.e!=i.i.gc();)n=jz(vbt(i),87),r?r=!1:e.a+=jKt,dVt(n,e);e.a+=">"}null!=c&&(e.a+=""+c)}else t.e?null!=(s=t.e.zb)&&(e.a+=""+s):(e.a+="?",t.b?(e.a+=" super ",dVt(t.b,e)):t.f&&(e.a+=" extends ",dVt(t.f,e)))}function fVt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x;for(v=t.c,y=e.c,n=y9(v.a,t,0),i=y9(y.a,e,0),w=jz(Lgt(t,(oit(),$we)).Kc().Pb(),11),A=jz(Lgt(t,zwe).Kc().Pb(),11),k=jz(Lgt(e,$we).Kc().Pb(),11),x=jz(Lgt(e,zwe).Kc().Pb(),11),m=Z0(w.e),_=Z0(A.g),b=Z0(k.e),C=Z0(x.g),Yvt(t,i,y),l=0,f=(o=b).length;l<f;++l)CJ(o[l],w);for(u=0,g=(a=C).length;u<g;++u)AJ(a[u],A);for(Yvt(e,n,v),h=0,p=(s=m).length;h<p;++h)CJ(s[h],k);for(c=0,d=(r=_).length;c<d;++c)AJ(r[c],x)}function gVt(t,e,n,i){var r,o,a,s,c,l;if(o=Wdt(i),!zv(_N(wxt(i,(zWt(),Tme))))&&!zv(_N(wxt(t,hme)))||mB(jz(wxt(t,tbe),98)))switch(EJ(s=new TEt,t),e?((l=s.n).a=e.a-t.n.a,l.b=e.b-t.n.b,WEt(l,0,0,t.o.a,t.o.b),VSt(s,qjt(s,o))):(r=lgt(o),VSt(s,n==(oit(),zwe)?r:Cdt(r))),a=jz(wxt(i,(lKt(),Zhe)),21),c=s.j,o.g){case 2:case 1:(c==(vGt(),sDe)||c==ADe)&&a.Fc((dNt(),ghe));break;case 4:case 3:(c==(vGt(),aDe)||c==EDe)&&a.Fc((dNt(),ghe))}else r=lgt(o),s=Njt(t,n,n==(oit(),zwe)?r:Cdt(r));return s}function pVt(t,e,n){var r,o,a,s,c,l,u;return i.Math.abs(e.s-e.c)<hJt||i.Math.abs(n.s-n.c)<hJt?0:(r=WLt(t,e.j,n.e),o=WLt(t,n.j,e.e),a=0,-1==r||-1==o?(-1==r&&(new HJ((S6(),_ve),n,e,1),++a),-1==o&&(new HJ((S6(),_ve),e,n,1),++a)):(s=Cht(e.j,n.s,n.c),s+=Cht(n.e,e.s,e.c),c=Cht(n.j,e.s,e.c),(l=r+16*s)<(u=o+16*(c+=Cht(e.e,n.s,n.c)))?new HJ((S6(),Cve),e,n,u-l):l>u?new HJ((S6(),Cve),n,e,l-u):l>0&&u>0&&(new HJ((S6(),Cve),e,n,0),new HJ(Cve,n,e,0))),a)}function mVt(t,e){var n,r,o,a,s;for(s=new alt(new xf(t.f.b).a);s.b;){if(o=jz((a=tnt(s)).cd(),594),1==e){if(o.gf()!=(jht(),$Te)&&o.gf()!=NTe)continue}else if(o.gf()!=(jht(),RTe)&&o.gf()!=FTe)continue;switch(r=jz(jz(a.dd(),46).b,81),n=jz(jz(a.dd(),46).a,189).c,o.gf().g){case 2:r.g.c=t.e.a,r.g.b=i.Math.max(1,r.g.b+n);break;case 1:r.g.c=r.g.c+n,r.g.b=i.Math.max(1,r.g.b-n);break;case 4:r.g.d=t.e.b,r.g.a=i.Math.max(1,r.g.a+n);break;case 3:r.g.d=r.g.d+n,r.g.a=i.Math.max(1,r.g.a-n)}}}function bVt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m;for(c=P7(SLe,lXt,25,e.b.c.length,15,1),u=P7(Ise,BYt,267,e.b.c.length,0,1),l=P7(Sse,o1t,10,e.b.c.length,0,1),f=0,g=(d=t.a).length;f<g;++f){for(m=0,s=new Gf((h=d[f]).e);s.a<s.c.c.length;)++c[r=JI((o=jz(Q1(s),10)).c)],p=Vv(CN(wxt(e,(zWt(),wbe)))),c[r]>0&&l[r]&&(p=NM(t.b,l[r],o)),m=i.Math.max(m,o.c.c.b+p);for(a=new Gf(h.e);a.a<a.c.c.length;)(o=jz(Q1(a),10)).n.b=m+o.d.d,(n=o.c).c.b=m+o.d.d+o.o.b+o.d.a,u[y9(n.b.b,n,0)]=o.k,l[y9(n.b.b,n,0)]=o}}function wVt(t,e){var n,i,r,o,a,s,c,l,h,d,f;for(i=new aU(ZP(gPt(e).a.Kc(),new u));gBt(i);)iP(Wet((!(n=jz(q4(i),79)).b&&(n.b=new cF(OIe,n,4,7)),n.b),0),186)||(c=EAt(jz(Wet((!n.c&&(n.c=new cF(OIe,n,5,8)),n.c),0),82)),JIt(n)||(a=e.i+e.g/2,s=e.j+e.f/2,h=c.i+c.g/2,d=c.j+c.f/2,(f=new V_).a=h-a,f.b=d-s,Uyt(o=new PS(f.a,f.b),e.g,e.f),f.a-=o.a,f.b-=o.b,a=h-f.a,s=d-f.b,Uyt(l=new PS(f.a,f.b),c.g,c.f),f.a-=l.a,f.b-=l.b,h=a+f.a,d=s+f.b,Snt(r=rNt(n,!0,!0),a),Int(r,s),Cnt(r,h),Dnt(r,d),wVt(t,c)))}function kVt(t){Mx(t,new AAt(m_(d_(p_(g_(new ms,N5t),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new ns))),o2(t,N5t,R5t,wbt(kAe)),o2(t,N5t,F5t,wbt(mAe)),o2(t,N5t,j5t,wbt(pAe)),o2(t,N5t,$5t,wbt(fAe)),o2(t,N5t,z5t,wbt(gAe)),o2(t,N5t,YQt,dAe),o2(t,N5t,bJt,8),o2(t,N5t,V5t,wbt(wAe)),o2(t,N5t,H5t,wbt(cAe)),o2(t,N5t,q5t,wbt(lAe)),o2(t,N5t,G2t,(cL(),!1))}function vVt(t,e){var n,r,o,a,s,c,l,u,h,d;for(DAt(e,"Simple node placement",1),d=jz(wxt(t,(lKt(),Dde)),304),c=0,a=new Gf(t.b);a.a<a.c.c.length;){for((s=(r=jz(Q1(a),29)).c).b=0,n=null,u=new Gf(r.a);u.a<u.c.c.length;)l=jz(Q1(u),10),n&&(s.b+=Spt(l,n,d.c)),s.b+=l.d.d+l.o.b+l.d.a,n=l;c=i.Math.max(c,s.b)}for(o=new Gf(t.b);o.a<o.c.c.length;)for(h=(c-(s=(r=jz(Q1(o),29)).c).b)/2,n=null,u=new Gf(r.a);u.a<u.c.c.length;)l=jz(Q1(u),10),n&&(h+=Spt(l,n,d.c)),h+=l.d.d,l.n.b=h,h+=l.o.b+l.d.a,n=l;zEt(e)}function yVt(t,e,n,i){var r,o,a,s,c,l,u,h;if(0==i.gc())return!1;if(Zx(),a=(c=jz(e,66).Oj())?i:new pet(i.gc()),BOt(t.e,e)){if(e.hi())for(u=i.Kc();u.Ob();)U$t(t,e,l=u.Pb(),iP(e,99)&&!!(jz(e,18).Bb&$Xt))||(o=Z3(e,l),a.Fc(o));else if(!c)for(u=i.Kc();u.Ob();)o=Z3(e,l=u.Pb()),a.Fc(o)}else{for(h=oOt(t.e.Tg(),e),r=jz(t.g,119),s=0;s<t.i;++s)if(o=r[s],h.rl(o.ak()))throw $b(new Rv(S9t));if(i.gc()>1)throw $b(new Rv(S9t));c||(o=Z3(e,i.Kc().Pb()),a.Fc(o))}return sct(t,_Tt(t,e,n),a)}function _Vt(t,e){var n,i,r,o;for(Yet(e.b.j),XA(IY(new OH(null,new d1(e.d,16)),new oo),new ao),o=new Gf(e.d);o.a<o.c.c.length;){switch((r=jz(Q1(o),101)).e.g){case 0:n=jz(PH(r.j,0),113).d.j,zd(r,jz(IL(SU(jz(c6(r.k,n),15).Oc(),Kle)),113)),$d(r,jz(IL(TU(jz(c6(r.k,n),15).Oc(),Kle)),113));break;case 1:i=zvt(r),zd(r,jz(IL(SU(jz(c6(r.k,i[0]),15).Oc(),Kle)),113)),$d(r,jz(IL(TU(jz(c6(r.k,i[1]),15).Oc(),Kle)),113));break;case 2:KTt(t,r);break;case 3:RLt(r);break;case 4:HLt(t,r)}Ket(r)}t.a=null}function CVt(t,e,n){var i,r,o,a,s,c,l,u;return i=t.a.o==(aJ(),ive)?NXt:RXt,!(s=r$t(t,new rS(e,n))).a&&s.c?(LV(t.d,s),i):s.a?(r=s.a.c,c=s.a.d,n?(l=t.a.c==(gQ(),Jke)?c:r,o=t.a.c==Jke?r:c,a=t.a.g[o.i.p],u=Vv(t.a.p[a.p])+Vv(t.a.d[o.i.p])+o.n.b+o.a.b-Vv(t.a.d[l.i.p])-l.n.b-l.a.b):(l=t.a.c==(gQ(),Qke)?c:r,o=t.a.c==Qke?r:c,u=Vv(t.a.p[t.a.g[o.i.p].p])+Vv(t.a.d[o.i.p])+o.n.b+o.a.b-Vv(t.a.d[l.i.p])-l.n.b-l.a.b),t.a.n[t.a.g[r.i.p].p]=(cL(),!0),t.a.n[t.a.g[c.i.p].p]=!0,u):i}function AVt(t,e,n){var i,r,o,a,s,c,l;if(BOt(t.e,e))Zx(),IIt((s=jz(e,66).Oj()?new uH(e,t):new PD(e,t)).c,s.b),ZM(s,jz(n,14));else{for(l=oOt(t.e.Tg(),e),i=jz(t.g,119),o=0;o<t.i;++o)if(r=i[o].ak(),l.rl(r)){if(r==(CIt(),cPe)||r==oPe){for(a=o,(c=Dwt(t,e,n))?uNt(t,o):++o;o<t.i;)(r=i[o].ak())==cPe||r==oPe?uNt(t,o):++o;c||jz(swt(t,a,Z3(e,n)),72)}else Dwt(t,e,n)?uNt(t,o):jz(swt(t,o,(Zx(),jz(e,66).Oj()?jz(n,72):Z3(e,n))),72);return}Dwt(t,e,n)||l8(t,(Zx(),jz(e,66).Oj()?jz(n,72):Z3(e,n)))}}function xVt(t,e,n){var i,r,o,a,s,c,l,u;return Pht(n,t.b)||(t.b=n,o=new Zt,a=jz(x5(IY(new OH(null,new d1(n.f,16)),o),P9(new X,new Z,new rt,new ot,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),Une),qne]))),21),t.e=!0,t.f=!0,t.c=!0,t.d=!0,r=a.Hc((zbt(),jre)),i=a.Hc($re),r&&!i&&(t.f=!1),!r&&i&&(t.d=!1),r=a.Hc(Fre),i=a.Hc(zre),r&&!i&&(t.c=!1),!r&&i&&(t.e=!1)),u=jz(t.a.Ce(e,n),46),c=jz(u.a,19).a,l=jz(u.b,19).a,s=!1,c<0?t.c||(s=!0):t.e||(s=!0),l<0?t.d||(s=!0):t.f||(s=!0),s?xVt(t,u,n):u}function EVt(t){var e,n,r,o;o=t.o,zN(),t.A.dc()||Pht(t.A,Ire)?e=o.b:(e=ADt(t.f),t.A.Hc((wpt(),ODe))&&!t.B.Hc((JFt(),UDe))&&(e=i.Math.max(e,ADt(jz(aY(t.p,(vGt(),aDe)),244))),e=i.Math.max(e,ADt(jz(aY(t.p,EDe),244)))),(n=sat(t))&&(e=i.Math.max(e,n.b)),t.A.Hc(NDe)&&(t.q!=(YCt(),GSe)&&t.q!=USe||(e=i.Math.max(e,UV(jz(aY(t.b,(vGt(),aDe)),124))),e=i.Math.max(e,UV(jz(aY(t.b,EDe),124)))))),zv(_N(t.e.yf().We((cKt(),FEe))))?o.b=i.Math.max(o.b,e):o.b=e,(r=t.f.i).d=0,r.a=e,H$t(t.f)}function TVt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f;for(u=0;u<e.length;u++){for(a=t.Kc();a.Ob();)jz(a.Pb(),225).Of(u,e);for(h=0;h<e[u].length;h++){for(s=t.Kc();s.Ob();)jz(s.Pb(),225).Pf(u,h,e);for(f=e[u][h].j,d=0;d<f.c.length;d++){for(c=t.Kc();c.Ob();)jz(c.Pb(),225).Qf(u,h,d,e);for(u1(d,f.c.length),n=0,r=new b6(jz(f.c[d],11).b);wM(r.a)||wM(r.b);)for(i=jz(wM(r.a)?Q1(r.a):Q1(r.b),17),l=t.Kc();l.Ob();)jz(l.Pb(),225).Nf(u,h,d,n++,i,e)}}}for(o=t.Kc();o.Ob();)jz(o.Pb(),225).Mf()}function SVt(t,e){var n,i,r,o,a;for(t.b=Vv(CN(wxt(e,(zWt(),kbe)))),t.c=Vv(CN(wxt(e,_be))),t.d=jz(wxt(e,nme),336),t.a=jz(wxt(e,xpe),275),ukt(e),r=(o=jz(x5(DY(DY(dtt(dtt(new OH(null,new d1(e.b,16)),new vn),new yn),new _n),new Cn),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15)).Kc();r.Ob();)n=jz(r.Pb(),17),jz(wxt(n,(lKt(),Mde)),15).Jc(new tp(t)),lct(n,Mde,null);for(i=o.Kc();i.Ob();)n=jz(i.Pb(),17),a=jz(wxt(n,(lKt(),Pde)),17),jWt(t,jz(wxt(n,Ide),15),a),lct(n,Ide,null)}function DVt(t){t.b=null,t.a=null,t.o=null,t.q=null,t.v=null,t.w=null,t.B=null,t.p=null,t.Q=null,t.R=null,t.S=null,t.T=null,t.U=null,t.V=null,t.W=null,t.bb=null,t.eb=null,t.ab=null,t.H=null,t.db=null,t.c=null,t.d=null,t.f=null,t.n=null,t.r=null,t.s=null,t.u=null,t.G=null,t.J=null,t.e=null,t.j=null,t.i=null,t.g=null,t.k=null,t.t=null,t.F=null,t.I=null,t.L=null,t.M=null,t.O=null,t.P=null,t.$=null,t.N=null,t.Z=null,t.cb=null,t.K=null,t.D=null,t.A=null,t.C=null,t._=null,t.fb=null,t.X=null,t.Y=null,t.gb=!1,t.hb=!1}function IVt(t){var e,n,i,r,o;if(t.k!=(aEt(),Ese))return!1;if(t.j.c.length<=1)return!1;if(jz(wxt(t,(zWt(),tbe)),98)==(YCt(),USe))return!1;if(dwt(),(i=(t.q?t.q:(AX(),AX(),lne))._b(Ome)?jz(wxt(t,Ome),197):jz(wxt(mK(t),Nme),197))==uwe)return!1;if(i!=lwe&&i!=cwe){if(r=Vv(CN(ept(t,Mbe))),!(e=jz(wxt(t,Bbe),142))&&(e=new $R(r,r,r,r)),o=oft(t,(vGt(),EDe)),e.d+e.a+(o.gc()-1)*r>t.o.b)return!1;if(n=oft(t,aDe),e.d+e.a+(n.gc()-1)*r>t.o.b)return!1}return!0}function BVt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g;if(a=t.e,c=e.e,0==a)return e;if(0==c)return t;if((o=t.d)+(s=e.d)==2)return n=t0(t.a[0],UXt),i=t0(e.a[0],UXt),a==c?(g=fq(u=ift(n,i)),0==(f=fq(vU(u,32)))?new U6(a,g):new uG(a,2,Est(Vy(SLe,1),lXt,25,15,[g,f]))):Jmt(a<0?nft(i,n):nft(n,i));if(a==c)d=a,h=o>=s?M7(t.a,o,e.a,s):M7(e.a,s,t.a,o);else{if(0==(r=o!=s?o>s?1:-1:Alt(t.a,e.a,o)))return DNt(),ene;1==r?(d=a,h=f6(t.a,o,e.a,s)):(d=c,h=f6(e.a,s,t.a,o))}return U0(l=new uG(d,h.length,h)),l}function MVt(t,e,n,r,o,a,s){var c,l,u,h,d,f,g;return d=zv(_N(wxt(e,(zWt(),Sme)))),f=null,a==(oit(),$we)&&r.c.i==n?f=r.c:a==zwe&&r.d.i==n&&(f=r.d),(u=s)&&d&&!f?(Gz(u.e,r),g=i.Math.max(Vv(CN(wxt(u.d,rme))),Vv(CN(wxt(r,rme)))),lct(u.d,rme,g)):(vGt(),h=xDe,f?h=f.j:mB(jz(wxt(n,tbe),98))&&(h=a==$we?EDe:aDe),l=LVt(t,e,n,a,h,r),c=G4((mK(n),r)),a==$we?(AJ(c,jz(PH(l.j,0),11)),CJ(c,o)):(AJ(c,o),CJ(c,jz(PH(l.j,0),11))),u=new qht(r,c,l,jz(wxt(l,(lKt(),fde)),11),a,!f)),ZDt(t.a,r,new Bj(u.d,e,a)),u}function PVt(t,e){var n,i,r,o,a,s,c,l,u,h;if(u=null,t.d&&(u=jz(AQ(t.d,e),138)),!u){if(h=(o=t.a.Mh()).i,!t.d||MA(t.d)!=h){for(c=new Pb,t.d&&Cot(c,t.d),s=l=c.f.c+c.g.c;s<h;++s)i=jz(Wet(o,s),138),(n=jz(null==(r=Tht(t.e,i).ne())?ySt(c.f,null,i):aft(c.g,r,i),138))&&n!=i&&(null==r?ySt(c.f,null,n):aft(c.g,r,n));if(c.f.c+c.g.c!=h)for(a=0;a<l;++a)i=jz(Wet(o,a),138),(n=jz(null==(r=Tht(t.e,i).ne())?ySt(c.f,null,i):aft(c.g,r,i),138))&&n!=i&&(null==r?ySt(c.f,null,n):aft(c.g,r,n));t.d=c}u=jz(AQ(t.d,e),138)}return u}function LVt(t,e,n,i,r,o){var a,s,c,l,u,h;return a=null,l=i==(oit(),$we)?o.c:o.d,c=Wdt(e),l.i==n?(a=jz(OW(t.b,l),10))||(lct(a=dWt(l,jz(wxt(n,(zWt(),tbe)),98),r,zFt(l),null,l.n,l.o,c,e),(lKt(),fde),l),WK(t.b,l,a)):(s=ICt(a=dWt((u=new Qt,h=Vv(CN(wxt(e,(zWt(),wbe))))/2,cct(u,Jme,h),u),jz(wxt(n,tbe),98),r,i==$we?-1:1,null,new V_,new PS(0,0),c,e),n,i),lct(a,(lKt(),fde),s),WK(t.b,s,a)),jz(wxt(e,(lKt(),Zhe)),21).Fc((dNt(),uhe)),mB(jz(wxt(e,(zWt(),tbe)),98))?lct(e,tbe,(YCt(),WSe)):lct(e,tbe,(YCt(),KSe)),a}function OVt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p;DAt(e,"Orthogonal edge routing",1),l=Vv(CN(wxt(t,(zWt(),Dbe)))),n=Vv(CN(wxt(t,kbe))),i=Vv(CN(wxt(t,_be))),d=new lW(0,n),p=0,a=new C2(t.b,0),s=null,u=null,c=null,h=null;do{h=(u=a.b<a.d.gc()?(xO(a.b<a.d.gc()),jz(a.d.Xb(a.c=a.b++),29)):null)?u.a:null,s&&(CHt(s,p),p+=s.c.a),g=Iqt(d,t,c,h,s?p+i:p),r=!s||WD(c,(gOt(),vve)),o=!u||WD(h,(gOt(),vve)),g>0?(f=(g-1)*n,s&&(f+=i),u&&(f+=i),f<l&&!r&&!o&&(f=l),p+=f):!r&&!o&&(p+=l),s=u,c=h}while(u);t.f.a=p,zEt(e)}function NVt(){var t;NVt=I,vBe=new Ak,wBe=P7(Yee,cYt,2,0,6,1),CBe=e0($st(33,58),$st(1,26)),ABe=e0($st(97,122),$st(65,90)),xBe=$st(48,57),yBe=e0(CBe,0),_Be=e0(ABe,xBe),EBe=e0(e0(0,$st(1,6)),$st(33,38)),TBe=e0(e0(xBe,$st(65,70)),$st(97,102)),MBe=e0(yBe,gbt("-_.!~*'()")),PBe=e0(_Be,Ggt("-_.!~*'()")),gbt(a8t),Ggt(a8t),e0(MBe,gbt(";:@&=+$,")),e0(PBe,Ggt(";:@&=+$,")),SBe=gbt(":/?#"),DBe=Ggt(":/?#"),IBe=gbt("/?#"),BBe=Ggt("/?#"),(t=new Ow).a.zc("jar",t),t.a.zc("zip",t),t.a.zc("archive",t),AX(),kBe=new Dy(t)}function RVt(t,e){var n,i,r,o,a;if(lct(e,(VHt(),aye),0),r=jz(wxt(e,rye),86),0==e.d.b)r?(a=Vv(CN(wxt(r,lye)))+t.a+y4(r,e),lct(e,lye,a)):lct(e,lye,0);else{for(n=new dm(cbt(new hm(e).a.d,0));yC(n.a);)RVt(t,jz(h3(n.a),188).c);i=jz(eP(new dm(cbt(new hm(e).a.d,0))),86),o=(Vv(CN(wxt(jz(_L(new dm(cbt(new hm(e).a.d,0))),86),lye)))+Vv(CN(wxt(i,lye))))/2,r?(a=Vv(CN(wxt(r,lye)))+t.a+y4(r,e),lct(e,lye,a),lct(e,aye,Vv(CN(wxt(e,lye)))-o),Sqt(t,e)):lct(e,lye,o)}}function FVt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f;s=0,f=0,c=_Q(t.f,t.f.length),o=t.d,a=t.i,i=t.a,r=t.b;do{for(d=0,l=new Gf(t.p);l.a<l.c.c.length;)h=Dqt(t,jz(Q1(l),10)),n=!0,(t.q==(cLt(),_we)||t.q==xwe)&&(n=zv(_N(h.b))),jz(h.a,19).a<0&&n?(++d,c=_Q(t.f,t.f.length),t.d=t.d+jz(h.a,19).a,f+=o-t.d,o=t.d+jz(h.a,19).a,a=t.i,i=r0(t.a),r=r0(t.b)):(t.f=_Q(c,c.length),t.d=o,t.a=(wW(i),i?new JF(i):$z(new Gf(i))),t.b=(wW(r),r?new JF(r):$z(new Gf(r))),t.i=a);++s,u=0!=d&&zv(_N(e.Kb(new nD(ndt(f),ndt(s)))))}while(u)}function jVt(t,e,n,r){var o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;return a=t.f,d=e.f,s=a==(XPt(),PCe)||a==OCe,c=a==LCe||a==NCe,f=d==LCe||d==NCe,l=a==LCe||a==PCe,g=d==LCe||d==PCe,!s||d!=PCe&&d!=OCe?c&&f?t.f==NCe?t:e:l&&g?(a==LCe?(h=t,u=e):(h=e,u=t),p=n.j+n.f,m=h.e+r.f,b=i.Math.max(p,m)-i.Math.min(n.j,h.e),o=(h.d+r.g-n.i)*b,w=n.i+n.g,k=u.d+r.g,o<=(i.Math.max(w,k)-i.Math.min(n.i,u.d))*(u.e+r.f-n.j)?t.f==LCe?t:e:t.f==PCe?t:e):t:t.f==OCe?t:e}function $Vt(t){var e,n,i,r,o,a,s,c,l,u;for(l=t.e.a.c.length,o=new Gf(t.e.a);o.a<o.c.c.length;)jz(Q1(o),121).j=!1;for(t.i=P7(SLe,lXt,25,l,15,1),t.g=P7(SLe,lXt,25,l,15,1),t.n=new Mb,r=0,u=new Mb,s=new Gf(t.e.a);s.a<s.c.c.length;)(a=jz(Q1(s),121)).d=r++,0==a.b.a.c.length&&Gz(t.n,a),pst(u,a.g);for(e=0,i=new Gf(u);i.a<i.c.c.length;)(n=jz(Q1(i),213)).c=e++,n.f=!1;c=u.c.length,null==t.b||t.b.length<c?(t.b=P7(MLe,VXt,25,c,15,1),t.c=P7(DLe,QZt,25,c,16,1)):Qv(t.c),t.d=u,t.p=new BL(tet(t.d.c.length)),t.j=1}function zVt(t,e){var n,i,r,o,a,s,c,l,u;if(!(e.e.c.length<=1)){for(t.f=e,t.d=jz(wxt(t.f,(iyt(),mae)),379),t.g=jz(wxt(t.f,vae),19).a,t.e=Vv(CN(wxt(t.f,bae))),t.c=Vv(CN(wxt(t.f,pae))),iW(t.b),r=new Gf(t.f.c);r.a<r.c.c.length;)i=jz(Q1(r),282),kFt(t.b,i.c,i,null),kFt(t.b,i.d,i,null);for(s=t.f.e.c.length,t.a=kH(MLe,[cYt,VXt],[104,25],15,[s,s],2),l=new Gf(t.f.e);l.a<l.c.c.length;)Tzt(t,c=jz(Q1(l),144),t.a[c.b]);for(t.i=kH(MLe,[cYt,VXt],[104,25],15,[s,s],2),o=0;o<s;++o)for(a=0;a<s;++a)u=1/((n=t.a[o][a])*n),t.i[o][a]=u}}function VVt(t){var e,n,i,r;if(!(null==t.b||t.b.length<=2||t.a)){for(e=0,r=0;r<t.b.length;){for(e!=r?(t.b[e]=t.b[r++],t.b[e+1]=t.b[r++]):r+=2,n=t.b[e+1];r<t.b.length&&!(n+1<t.b[r]);)if(n+1==t.b[r])t.b[e+1]=t.b[r+1],n=t.b[e+1],r+=2;else if(n>=t.b[r+1])r+=2;else{if(!(n<t.b[r+1]))throw $b(new fv("Token#compactRanges(): Internel Error: ["+t.b[e]+","+t.b[e+1]+"] ["+t.b[r]+","+t.b[r+1]+"]"));t.b[e+1]=t.b[r+1],n=t.b[e+1],r+=2}e+=2}e!=t.b.length&&(i=P7(SLe,lXt,25,e,15,1),oVt(t.b,0,i,0,e),t.b=i),t.a=!0}}function HVt(t,e){var n,i,r,o,a,s,c;for(a=gU(t.a).Kc();a.Ob();){if((o=jz(a.Pb(),17)).b.c.length>0)for(i=new JF(jz(c6(t.a,o),21)),AX(),bM(i,new Rg(e)),r=new C2(o.b,0);r.b<r.d.gc();){switch(xO(r.b<r.d.gc()),n=jz(r.d.Xb(r.c=r.b++),70),s=-1,jz(wxt(n,(zWt(),Ype)),272).g){case 1:s=i.c.length-1;break;case 0:s=Z_t(i);break;case 2:s=0}-1!=s&&(u1(s,i.c.length),Gz((c=jz(i.c[s],243)).b.b,n),jz(wxt(mK(c.b.c.i),(lKt(),Zhe)),21).Fc((dNt(),lhe)),jz(wxt(mK(c.b.c.i),Zhe),21).Fc(she),lK(r),lct(n,mde,o))}AJ(o,null),CJ(o,null)}}function qVt(t,e){var n,i,r,o;return n=new Ft,1==(r=2==(r=(i=jz(x5(IY(new OH(null,new d1(t.f,16)),n),P9(new X,new Z,new rt,new ot,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),Une),qne]))),21)).gc())?1:0)&&KD(hpt(jz(x5(DY(i.Lc(),new jt),Wot(ymt(0),new nt)),162).a,2),0)&&(r=0),1==(o=2==(o=(i=jz(x5(IY(new OH(null,new d1(e.f,16)),n),P9(new X,new Z,new rt,new ot,Est(Vy(Qne,1),BYt,132,0,[Une,qne]))),21)).gc())?1:0)&&KD(hpt(jz(x5(DY(i.Lc(),new $t),Wot(ymt(0),new nt)),162).a,2),0)&&(o=0),r<o?-1:r==o?0:1}function UVt(t){var e,n,i,r,o,a,s,c,l,u,h;if(c=new Mb,!BO(t,(lKt(),Ghe)))return c;for(i=jz(wxt(t,Ghe),15).Kc();i.Ob();)gHt(e=jz(i.Pb(),10),t),c.c[c.c.length]=e;for(r=new Gf(t.b);r.a<r.c.c.length;)for(a=new Gf(jz(Q1(r),29).a);a.a<a.c.c.length;)(o=jz(Q1(a),10)).k==(aEt(),Cse)&&(s=jz(wxt(o,Whe),10))&&(EJ(l=new TEt,o),VSt(l,jz(wxt(o,Khe),61)),u=jz(PH(s.j,0),11),AJ(h=new dZ,l),CJ(h,u));for(n=new Gf(c);n.a<n.c.c.length;)xJ(e=jz(Q1(n),10),jz(PH(t.b,t.b.c.length-1),29));return c}function GVt(t){var e,n,i,r,o,a,s,c,l,u,h,d;for(o=zv(_N(QBt(e=GQ(t),(zWt(),dme)))),u=0,r=0,l=new DP((!t.e&&(t.e=new cF(NIe,t,7,4)),t.e));l.e!=l.i.gc();)a=(s=YDt(c=jz(vbt(l),79)))&&o&&zv(_N(QBt(c,fme))),d=EAt(jz(Wet((!c.c&&(c.c=new cF(OIe,c,5,8)),c.c),0),82)),s&&a?++r:s&&!a?++u:XQ(d)==e||d==e?++r:++u;for(i=new DP((!t.d&&(t.d=new cF(NIe,t,8,5)),t.d));i.e!=i.i.gc();)a=(s=YDt(n=jz(vbt(i),79)))&&o&&zv(_N(QBt(n,fme))),h=EAt(jz(Wet((!n.b&&(n.b=new cF(OIe,n,4,7)),n.b),0),82)),s&&a?++u:s&&!a?++r:XQ(h)==e||h==e?++u:++r;return u-r}function WVt(t,e){var n,i,r,o,a,s,c,l,u;if(DAt(e,"Edge splitting",1),t.b.c.length<=2)zEt(e);else{for(xO((o=new C2(t.b,0)).b<o.d.gc()),a=jz(o.d.Xb(o.c=o.b++),29);o.b<o.d.gc();)for(r=a,xO(o.b<o.d.gc()),a=jz(o.d.Xb(o.c=o.b++),29),s=new Gf(r.a);s.a<s.c.c.length;)for(c=new Gf(jz(Q1(s),10).j);c.a<c.c.c.length;)for(i=new Gf(jz(Q1(c),11).g);i.a<i.c.c.length;)(l=(n=jz(Q1(i),17)).d.i.c)!=r&&l!=a&&qOt(n,(Fd(u=new Bwt(t),(aEt(),xse)),lct(u,(lKt(),fde),n),lct(u,(zWt(),tbe),(YCt(),USe)),xJ(u,a),u));zEt(e)}}function KVt(t,e){var n,i,r,o,a,s,c,l,u;if((a=null!=e.p&&!e.b)||DAt(e,oJt,1),o=1/(n=jz(wxt(t,(lKt(),Cde)),15)).gc(),e.n)for(SV(e,"ELK Layered uses the following "+n.gc()+" modules:"),u=0,l=n.Kc();l.Ob();)SV(e," Slot "+(u<10?"0":"")+u+++": "+Q_(tlt(jz(l.Pb(),51))));for(c=n.Kc();c.Ob();)jz(c.Pb(),51).pf(t,wot(e,o));for(r=new Gf(t.b);r.a<r.c.c.length;)i=jz(Q1(r),29),pst(t.a,i.a),i.a.c=P7(Ite,zKt,1,0,5,1);for(s=new Gf(t.a);s.a<s.c.c.length;)xJ(jz(Q1(s),10),null);t.b.c=P7(Ite,zKt,1,0,5,1),a||zEt(e)}function YVt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;r=Vv(CN(wxt(e,(zWt(),Lme)))),d=4,o=3,_=20/(y=jz(wxt(e,Pbe),19).a),f=!1,l=0,s=OKt;do{for(a=1!=l,h=0!=l,C=0,w=0,v=(m=t.a).length;w<v;++w)(g=m[w]).f=null,$Ut(t,g,a,h,r),C+=i.Math.abs(g.a);do{c=Ujt(t,e)}while(c);for(b=0,k=(p=t.a).length;b<k;++b)if(0!=(n=dG(g=p[b]).a))for(u=new Gf(g.e);u.a<u.c.c.length;)jz(Q1(u),10).n.b+=n;0==l||1==l?--d<=0&&(C<s||-d>y)?(l=2,s=OKt):0==l?(l=1,s=C):(l=0,s=C):(f=C>=s||s-C<_,s=C,f&&--o)}while(!(f&&o<=0))}function XVt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g;for(g=new Pb,o=t.a.ec().Kc();o.Ob();)WK(g,i=jz(o.Pb(),168),n.Je(i));for(wW(t),bM(a=t?new JF(t):$z(t.a.ec().Kc()),new yg(g)),s=A5(a),c=new EM(e),ySt((f=new Pb).f,e,c);0!=s.a.gc();){for(l=null,u=null,h=null,r=s.a.ec().Kc();r.Ob();)if(i=jz(r.Pb(),168),Vv(CN(zD(DZ(g.f,i))))<=NXt){if(cG(f,i.a)&&!cG(f,i.b)){u=i.b,h=i.a,l=i;break}if(cG(f,i.b)&&!cG(f,i.a)){u=i.a,h=i.b,l=i;break}}if(!l)break;d=new EM(u),Gz(jz(zD(DZ(f.f,h)),221).a,d),ySt(f.f,u,d),s.a.Bc(l)}return c}function ZVt(t,e,n){var i,r,o,a,s,c,l,u;for(DAt(n,"Depth-first cycle removal",1),c=(l=e.a).c.length,t.c=new Mb,t.d=P7(DLe,QZt,25,c,16,1),t.a=P7(DLe,QZt,25,c,16,1),t.b=new Mb,o=0,s=new Gf(l);s.a<s.c.c.length;)(a=jz(Q1(s),10)).p=o,c3(uft(a))&&Gz(t.c,a),++o;for(u=new Gf(t.c);u.a<u.c.c.length;)HTt(t,jz(Q1(u),10));for(r=0;r<c;r++)t.d[r]||(u1(r,l.c.length),HTt(t,jz(l.c[r],10)));for(i=new Gf(t.b);i.a<i.c.c.length;)tzt(jz(Q1(i),17),!0),lct(e,(lKt(),zhe),(cL(),!0));t.c=null,t.d=null,t.a=null,t.b=null,zEt(n)}function QVt(t,e){var n,i,r,o,a,s,c;for(t.a.c=P7(Ite,zKt,1,0,5,1),i=cbt(e.b,0);i.b!=i.d.c;)0==(n=jz(h3(i),86)).b.b&&(lct(n,(VHt(),fye),(cL(),!0)),Gz(t.a,n));switch(t.a.c.length){case 0:lct(r=new rlt(0,e,"DUMMY_ROOT"),(VHt(),fye),(cL(),!0)),lct(r,tye,!0),LV(e.b,r);break;case 1:break;default:for(o=new rlt(0,e,"SUPER_ROOT"),s=new Gf(t.a);s.a<s.c.c.length;)lct(c=new qX(o,a=jz(Q1(s),86)),(VHt(),tye),(cL(),!0)),LV(o.a.a,c),LV(o.d,c),LV(a.b,c),lct(a,fye,!1);lct(o,(VHt(),fye),(cL(),!0)),lct(o,tye,!0),LV(e.b,o)}}function JVt(t,e){var n,r,o,a,s,c;return yNt(),a=e.c-(t.c+t.b),o=t.c-(e.c+e.b),s=t.d-(e.d+e.a),n=e.d-(t.d+t.a),r=i.Math.max(o,a),c=i.Math.max(s,n),cM(),iit(I3t),(i.Math.abs(r)<=I3t||0==r||isNaN(r)&&isNaN(0)?0:r<0?-1:r>0?1:HI(isNaN(r),isNaN(0)))>=0^(iit(I3t),(i.Math.abs(c)<=I3t||0==c||isNaN(c)&&isNaN(0)?0:c<0?-1:c>0?1:HI(isNaN(c),isNaN(0)))>=0)?i.Math.max(c,r):(iit(I3t),(i.Math.abs(r)<=I3t||0==r||isNaN(r)&&isNaN(0)?0:r<0?-1:r>0?1:HI(isNaN(r),isNaN(0)))>0?i.Math.sqrt(c*c+r*r):-i.Math.sqrt(c*c+r*r))}function tHt(t,e){var n,i,r,o,a;if(e)if(!t.a&&(t.a=new Rw),2!=t.e)if(1!=e.e)0!=(a=t.a.a.c.length)?0!=(o=jz(hK(t.a,a-1),117)).e&&10!=o.e||0!=e.e&&10!=e.e?Ew(t.a,e):(0==e.e||e.bm().length,0==o.e?(n=new xy,(i=o._l())>=$Xt?iI(n,Gdt(i)):MW(n,i&YYt),o=new mQ(10,null,0),kG(t.a,o,a-1)):(o.bm().length,iI(n=new xy,o.bm())),0==e.e?(i=e._l())>=$Xt?iI(n,Gdt(i)):MW(n,i&YYt):iI(n,e.bm()),jz(o,521).b=n.a):Ew(t.a,e);else for(r=0;r<e.em();r++)tHt(t,e.am(r));else Ew(t.a,e)}function eHt(t){var e,n,i,r,o;return null!=t.g?t.g:t.a<32?(t.g=OGt(uat(t.f),EQ(t.e)),t.g):(r=VWt((!t.c&&(t.c=kut(t.f)),t.c),0),0==t.e?r:(e=(!t.c&&(t.c=kut(t.f)),t.c).e<0?2:1,n=r.length,i=-t.e+n-e,(o=new Ey).a+=""+r,t.e>0&&i>=-6?i>=0?kJ(o,n-EQ(t.e),String.fromCharCode(46)):(o.a=lO(o.a,0,e-1)+"0."+QD(o.a,e-1),kJ(o,e+1,$pt(Vee,0,-EQ(i)-1))):(n-e>=1&&(kJ(o,e,String.fromCharCode(46)),++n),kJ(o,n,String.fromCharCode(69)),i>0&&kJ(o,++n,String.fromCharCode(43)),kJ(o,++n,""+mU(uat(i)))),t.g=o.a,t.g))}function nHt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;if(!n.dc()){for(a=0,u=0,d=jz((i=n.Kc()).Pb(),19).a;a<e.f;){if(a==d&&(u=0,d=i.Ob()?jz(i.Pb(),19).a:e.f+1),a!=u)for(f=jz(PH(t.b,a),29),h=jz(PH(t.b,u),29),l=new Gf(r0(f.a));l.a<l.c.c.length;)if(Yvt(c=jz(Q1(l),10),h.a.c.length,h),0==u)for(o=new Gf(r0(uft(c)));o.a<o.c.c.length;)tzt(r=jz(Q1(o),17),!0),lct(t,(lKt(),zhe),(cL(),!0)),nqt(t,r,1);++u,++a}for(s=new C2(t.b,0);s.b<s.d.gc();)xO(s.b<s.d.gc()),0==jz(s.d.Xb(s.c=s.b++),29).a.c.length&&lK(s)}}function iHt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;for(u=(a=e.b).o,c=a.d,i=Vv(CN(pbt(a,(zWt(),wbe)))),r=Vv(CN(pbt(a,vbe))),l=Vv(CN(pbt(a,Ibe))),nV(s=new lk,c.d,c.c,c.a,c.b),d=ARt(e,i,r,l),b=new Gf(e.d);b.a<b.c.c.length;){for(g=(m=jz(Q1(b),101)).f.a.ec().Kc();g.Ob();)o=(f=jz(g.Pb(),409)).a,h=_At(f),w=new kk,dAt(f,f.c,d,w),jxt(f,h,d,w),dAt(f,f.d,d,w),n=w,n=t.Uf(f,h,n),wX(o.a),jrt(o.a,n),XA(new OH(null,new d1(n,16)),new dT(u,s));(p=m.i)&&(oAt(m,p,d,r),mmt(u,s,k=new dB(p.g)),qR(k,p.j),mmt(u,s,k))}nV(c,s.d,s.c,s.a,s.b)}function rHt(t,e,n){var i,r,o;if((r=jz(wxt(e,(zWt(),xpe)),275))!=(Zxt(),ihe)){switch(DAt(n,"Horizontal Compaction",1),t.a=e,Wy(i=new kIt(((o=new T9).d=e,o.c=jz(wxt(o.d,Zpe),218),UNt(o),xqt(o),cRt(o),o.a)),t.b),1===jz(wxt(e,Ape),422).g?Gy(i,new prt(t.a)):Gy(i,(EX(),lie)),r.g){case 1:TMt(i);break;case 2:TMt(CUt(i,(jht(),FTe)));break;case 3:TMt(qy(CUt(TMt(i),(jht(),FTe)),new mr));break;case 4:TMt(qy(CUt(TMt(i),(jht(),FTe)),new kp(o)));break;case 5:TMt(Uy(i,dle))}CUt(i,(jht(),RTe)),i.e=!0,MUt(o),zEt(n)}}function oHt(t,e,n,i,r,o,a,s){var c,l,u,h;switch(c=o6(Est(Vy(FCe,1),zKt,220,0,[e,n,i,r])),h=null,t.b.g){case 1:h=o6(Est(Vy(J_e,1),zKt,526,0,[new Ja,new Za,new Qa]));break;case 0:h=o6(Est(Vy(J_e,1),zKt,526,0,[new Qa,new Za,new Ja]));break;case 2:h=o6(Est(Vy(J_e,1),zKt,526,0,[new Za,new Ja,new Qa]))}for(u=new Gf(h);u.a<u.c.c.length;)l=jz(Q1(u),526),c.c.length>1&&(c=l.mg(c,t.a,s));return 1==c.c.length?jz(PH(c,c.c.length-1),220):2==c.c.length?jVt((u1(0,c.c.length),jz(c.c[0],220)),(u1(1,c.c.length),jz(c.c[1],220)),a,o):null}function aHt(t){var e,n,r,o,a,s;for(Det(t.a,new Jt),n=new Gf(t.a);n.a<n.c.c.length;)e=jz(Q1(n),221),r=UR(jM(jz(t.b,65).c),jz(e.b,65).c),toe?(s=jz(t.b,65).b,a=jz(e.b,65).b,i.Math.abs(r.a)>=i.Math.abs(r.b)?(r.b=0,a.d+a.a>s.d&&a.d<s.d+s.a&&MV(r,i.Math.max(s.c-(a.c+a.b),a.c-(s.c+s.b)))):(r.a=0,a.c+a.b>s.c&&a.c<s.c+s.b&&MV(r,i.Math.max(s.d-(a.d+a.a),a.d-(s.d+s.a))))):MV(r,C$t(jz(t.b,65),jz(e.b,65))),o=i.Math.sqrt(r.a*r.a+r.b*r.b),MV(r,o=zCt(Gre,e,o,r)),Bq(jz(e.b,65),r),Det(e.a,new Dg(r)),jz(Gre.b,65),N7(Gre,Wre,e)}function sHt(t){var e,n,r,o,a,s,c,l,h,d,f,g;for(t.f=new Fw,c=0,r=0,o=new Gf(t.e.b);o.a<o.c.c.length;)for(s=new Gf(jz(Q1(o),29).a);s.a<s.c.c.length;){for((a=jz(Q1(s),10)).p=c++,n=new aU(ZP(hft(a).a.Kc(),new u));gBt(n);)jz(q4(n),17).p=r++;for(e=IVt(a),d=new Gf(a.j);d.a<d.c.c.length;)h=jz(Q1(d),11),e&&(g=h.a.b)!=i.Math.floor(g)&&(l=g-v2(uat(i.Math.round(g))),h.a.b-=l),(f=h.n.b+h.a.b)!=i.Math.floor(f)&&(l=f-v2(uat(i.Math.round(f))),h.n.b-=l)}t.g=c,t.b=r,t.i=P7(tve,zKt,401,c,0,1),t.c=P7(Xke,zKt,649,r,0,1),t.d.a.$b()}function cHt(t){var e,n,i,r,o,a,s,c,l;if(t.ej())if(c=t.fj(),t.i>0){if(e=new LD(t.i,t.g),o=(n=t.i)<100?null:new F_(n),t.ij())for(i=0;i<t.i;++i)a=t.g[i],o=t.kj(a,o);if(r6(t),r=1==n?t.Zi(4,Wet(e,0),null,0,c):t.Zi(6,e,null,-1,c),t.bj()){for(i=new rO(e);i.e!=i.i.gc();)o=t.dj(ybt(i),o);o?(o.Ei(r),o.Fi()):t.$i(r)}else o?(o.Ei(r),o.Fi()):t.$i(r)}else r6(t),t.$i(t.Zi(6,(AX(),cne),null,-1,c));else if(t.bj())if(t.i>0){for(s=t.g,l=t.i,r6(t),o=l<100?null:new F_(l),i=0;i<l;++i)a=s[i],o=t.dj(a,o);o&&o.Fi()}else r6(t);else r6(t)}function lHt(t,e,n){var r,o,a,s,c,l,u,h,d;for(Fat(this),n==(fQ(),Bve)?_G(this.r,t):_G(this.w,t),h=NXt,u=RXt,s=e.a.ec().Kc();s.Ob();)o=jz(s.Pb(),46),c=jz(o.a,455),(l=(r=jz(o.b,17)).c)==t&&(l=r.d),_G(c==Bve?this.r:this.w,l),d=(vGt(),wDe).Hc(l.j)?Vv(CN(wxt(l,(lKt(),Bde)))):Ict(Est(Vy(xxe,1),cYt,8,0,[l.i.n,l.n,l.a])).b,h=i.Math.min(h,d),u=i.Math.max(u,d);for(Gxt(this,(vGt(),wDe).Hc(t.j)?Vv(CN(wxt(t,(lKt(),Bde)))):Ict(Est(Vy(xxe,1),cYt,8,0,[t.i.n,t.n,t.a])).b,h,u),a=e.a.ec().Kc();a.Ob();)o=jz(a.Pb(),46),tTt(this,jz(o.b,17));this.o=!1}function uHt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;return n=8191&t.l,i=t.l>>13|(15&t.m)<<9,r=t.m>>4&8191,o=t.m>>17|(255&t.h)<<5,a=(1048320&t.h)>>8,m=i*(s=8191&e.l),b=r*s,w=o*s,k=a*s,0!=(c=e.l>>13|(15&e.m)<<9)&&(m+=n*c,b+=i*c,w+=r*c,k+=o*c),0!=(l=e.m>>4&8191)&&(b+=n*l,w+=i*l,k+=r*l),0!=(u=e.m>>17|(255&e.h)<<5)&&(w+=n*u,k+=i*u),0!=(h=(1048320&e.h)>>8)&&(k+=n*h),f=((p=n*s)>>22)+(m>>9)+((262143&b)<<4)+((31&w)<<17),g=(b>>18)+(w>>5)+((4095&k)<<8),g+=(f+=(d=(p&xXt)+((511&m)<<13))>>22)>>22,CM(d&=xXt,f&=xXt,g&=EXt)}function hHt(t){var e,n,r,o,a,s,c;if(0!=(c=jz(PH(t.j,0),11)).g.c.length&&0!=c.e.c.length)throw $b(new Fv("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(0!=c.g.c.length){for(a=NXt,n=new Gf(c.g);n.a<n.c.c.length;)e=jz(Q1(n),17),r=jz(wxt(s=e.d.i,(zWt(),Eme)),142),a=i.Math.min(a,s.n.a-r.b);return new $h(wW(a))}if(0!=c.e.c.length){for(o=RXt,n=new Gf(c.e);n.a<n.c.c.length;)e=jz(Q1(n),17),r=jz(wxt(s=e.c.i,(zWt(),Eme)),142),o=i.Math.max(o,s.n.a+s.o.a+r.c);return new $h(wW(o))}return ev(),ev(),Dte}function dHt(t,e){var n,i,r,o,a,s;if(t.Fk()){if(t.i>4){if(!t.wj(e))return!1;if(t.rk()){if(s=(n=(i=jz(e,49)).Ug())==t.e&&(t.Dk()?i.Og(i.Vg(),t.zk())==t.Ak():-1-i.Vg()==t.aj()),t.Ek()&&!s&&!n&&i.Zg())for(r=0;r<t.i;++r)if(VD(t.Gk(jz(t.g[r],56)))===VD(e))return!0;return s}if(t.Dk()&&!t.Ck()){if(VD(o=jz(e,56).ah(Twt(jz(t.ak(),18))))===VD(t.e))return!0;if(null==o||!jz(o,56).kh())return!1}}if(a=x_t(t,e),t.Ek()&&!a)for(r=0;r<t.i;++r)if(VD(i=t.Gk(jz(t.g[r],56)))===VD(e))return!0;return a}return x_t(t,e)}function fHt(t,e){var n,i,r,o,a,s,c,l,u,h,d;for(u=new Mb,d=new Ow,a=e.b,r=0;r<a.c.length;r++){for(l=(u1(r,a.c.length),jz(a.c[r],29)).a,u.c=P7(Ite,zKt,1,0,5,1),o=0;o<l.c.length;o++)(s=t.a[r][o]).p=o,s.k==(aEt(),Tse)&&(u.c[u.c.length]=s),i4(jz(PH(e.b,r),29).a,o,s),s.j.c=P7(Ite,zKt,1,0,5,1),pst(s.j,jz(jz(PH(t.b,r),15).Xb(o),14)),BF(jz(wxt(s,(zWt(),tbe)),98))||lct(s,tbe,(YCt(),qSe));for(i=new Gf(u);i.a<i.c.c.length;)h=YRt(n=jz(Q1(i),10)),d.a.zc(h,d),d.a.zc(n,d)}for(c=d.a.ec().Kc();c.Ob();)s=jz(c.Pb(),10),AX(),bM(s.j,(qlt(),sle)),s.i=!0,eDt(s)}function gHt(t,e){var n,i,r,o,a,s,c,l,u,h;if(u=jz(wxt(t,(lKt(),Khe)),61),i=jz(PH(t.j,0),11),u==(vGt(),sDe)?VSt(i,ADe):u==ADe&&VSt(i,sDe),jz(wxt(e,(zWt(),Fme)),174).Hc((wpt(),RDe))){if(c=Vv(CN(wxt(t,Ebe))),l=Vv(CN(wxt(t,Tbe))),a=Vv(CN(wxt(t,Abe))),(s=jz(wxt(e,ibe),21)).Hc((hDt(),tDe)))for(n=l,h=t.o.a/2-i.n.a,o=new Gf(i.f);o.a<o.c.c.length;)(r=jz(Q1(o),70)).n.b=n,r.n.a=h-r.o.a/2,n+=r.o.b+a;else if(s.Hc(nDe))for(o=new Gf(i.f);o.a<o.c.c.length;)(r=jz(Q1(o),70)).n.a=c+t.o.a-i.n.a;l0(new xg((gx(),new $Y(e,!1,!1,new je))),new Rj(null,t,!1))}}function pHt(t,e){var n,r,o,a,s,c,l;if(0!=e.c.length){for(AX(),wq(e.c,e.c.length,null),r=jz(Q1(o=new Gf(e)),145);o.a<o.c.c.length;)n=jz(Q1(o),145),!ont(r.e.c,n.e.c)||Rpt(jN(r.e).b,n.e.d)||Rpt(jN(n.e).b,r.e.d)?(e$t(t,r),r=n):(pst(r.k,n.k),pst(r.b,n.b),pst(r.c,n.c),jrt(r.i,n.i),pst(r.d,n.d),pst(r.j,n.j),a=i.Math.min(r.e.c,n.e.c),s=i.Math.min(r.e.d,n.e.d),c=i.Math.max(r.e.c+r.e.b,n.e.c+n.e.b)-a,l=i.Math.max(r.e.d+r.e.a,n.e.d+n.e.a)-s,PV(r.e,a,s,c,l),J1(r.f,n.f),!r.a&&(r.a=n.a),pst(r.g,n.g),Gz(r.g,n));e$t(t,r)}}function mHt(t,e,n,i){var r,o,a,s,c,l;if((s=t.j)==(vGt(),xDe)&&e!=(YCt(),KSe)&&e!=(YCt(),YSe)&&(VSt(t,s=qjt(t,n)),!(t.q?t.q:(AX(),AX(),lne))._b((zWt(),Jme))&&s!=xDe&&(0!=t.n.a||0!=t.n.b)&&lct(t,Jme,yyt(t,s))),e==(YCt(),GSe)){switch(l=0,s.g){case 1:case 3:(o=t.i.o.a)>0&&(l=t.n.a/o);break;case 2:case 4:(r=t.i.o.b)>0&&(l=t.n.b/r)}lct(t,(lKt(),_de),l)}if(c=t.o,a=t.a,i)a.a=i.a,a.b=i.b,t.d=!0;else if(e!=KSe&&e!=YSe&&s!=xDe)switch(s.g){case 1:a.a=c.a/2;break;case 2:a.a=c.a,a.b=c.b/2;break;case 3:a.a=c.a/2,a.b=c.b;break;case 4:a.b=c.b/2}else a.a=c.a/2,a.b=c.b/2}function bHt(t){var e,n,i,r,o,a,s,c,l,u;if(t.ej())if(u=t.Vi(),c=t.fj(),u>0)if(e=new yot(t.Gi()),o=(n=u)<100?null:new F_(n),XN(t,n,e.g),r=1==n?t.Zi(4,Wet(e,0),null,0,c):t.Zi(6,e,null,-1,c),t.bj()){for(i=new DP(e);i.e!=i.i.gc();)o=t.dj(vbt(i),o);o?(o.Ei(r),o.Fi()):t.$i(r)}else o?(o.Ei(r),o.Fi()):t.$i(r);else XN(t,t.Vi(),t.Wi()),t.$i(t.Zi(6,(AX(),cne),null,-1,c));else if(t.bj())if((u=t.Vi())>0){for(s=t.Wi(),l=u,XN(t,u,s),o=l<100?null:new F_(l),i=0;i<l;++i)a=s[i],o=t.dj(a,o);o&&o.Fi()}else XN(t,t.Vi(),t.Wi());else XN(t,t.Vi(),t.Wi())}function wHt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;for(s=new Gf(e);s.a<s.c.c.length;)(o=jz(Q1(s),233)).e=null,o.c=0;for(c=null,a=new Gf(e);a.a<a.c.c.length;)if(h=(o=jz(Q1(a),233)).d[0],!n||h.k==(aEt(),Ese)){for(f=jz(wxt(h,(lKt(),ide)),15).Kc();f.Ob();)d=jz(f.Pb(),10),n&&d.k!=(aEt(),Ese)||((!o.e&&(o.e=new Mb),o.e).Fc(t.b[d.c.p][d.p]),++t.b[d.c.p][d.p].c);if(!n&&h.k==(aEt(),Ese)){if(c)for(u=jz(c6(t.d,c),21).Kc();u.Ob();)for(l=jz(u.Pb(),10),r=jz(c6(t.d,h),21).Kc();r.Ob();)i=jz(r.Pb(),10),qz(t.b[l.c.p][l.p]).Fc(t.b[i.c.p][i.p]),++t.b[i.c.p][i.p].c;c=h}}}function kHt(t,e){var n,i,r,o,a,s,c;for(n=0,c=new Mb,o=new Gf(e);o.a<o.c.c.length;){switch(r=jz(Q1(o),11),Jlt(t.b,t.d[r.p]),c.c=P7(Ite,zKt,1,0,5,1),r.i.k.g){case 0:Det(jz(wxt(r,(lKt(),yde)),10).j,new Zp(c));break;case 1:AM(Yct(DY(new OH(null,new d1(r.i.j,16)),new Qp(r))),new Jp(c));break;case 3:Gz(c,new nD(jz(wxt(r,(lKt(),fde)),11),ndt(r.e.c.length+r.g.c.length)))}for(s=new Gf(c);s.a<s.c.c.length;)a=jz(Q1(s),46),(i=CC(t,jz(a.a,11)))>t.d[r.p]&&(n+=Q5(t.b,i)*jz(a.b,19).a,f3(t.a,ndt(i)));for(;!Gv(t.a);)Ctt(t.b,jz(fG(t.a),19).a)}return n}function vHt(t,e,n,r){var o,a,s,c,l,u,h,d,f,g;for((h=new dB(jz(QBt(t,(xxt(),$xe)),8))).a=i.Math.max(h.a-n.b-n.c,0),h.b=i.Math.max(h.b-n.d-n.a,0),(null==(o=CN(QBt(t,Lxe)))||(kK(o),o<=0))&&(o=1.3),s=new Mb,d=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));d.e!=d.i.gc();)a=new HO(jz(vbt(d),33)),s.c[s.c.length]=a;switch(jz(QBt(t,Oxe),311).g){case 3:g=o$t(s,e,h.a,h.b,(l=r,kK(o),l));break;case 1:g=bzt(s,e,h.a,h.b,(u=r,kK(o),u));break;default:g=AHt(s,e,h.a,h.b,(c=r,kK(o),c))}RGt(t,(f=kWt(new Het(g),e,n,h.a,h.b,r,(kK(o),o))).a,f.b,!1,!0)}function yHt(t,e){var n,i,r,o;o=new JF((n=e.b).j),r=0,(i=n.j).c=P7(Ite,zKt,1,0,5,1),tW(jz(pat(t.b,(vGt(),sDe),(Trt(),Ole)),15),n),r=Zkt(o,r,new Or,i),tW(jz(pat(t.b,sDe,Lle),15),n),r=Zkt(o,r,new Lr,i),tW(jz(pat(t.b,sDe,Ple),15),n),tW(jz(pat(t.b,aDe,Ole),15),n),tW(jz(pat(t.b,aDe,Lle),15),n),r=Zkt(o,r,new Nr,i),tW(jz(pat(t.b,aDe,Ple),15),n),tW(jz(pat(t.b,ADe,Ole),15),n),r=Zkt(o,r,new Rr,i),tW(jz(pat(t.b,ADe,Lle),15),n),r=Zkt(o,r,new Fr,i),tW(jz(pat(t.b,ADe,Ple),15),n),tW(jz(pat(t.b,EDe,Ole),15),n),r=Zkt(o,r,new Xr,i),tW(jz(pat(t.b,EDe,Lle),15),n),tW(jz(pat(t.b,EDe,Ple),15),n)}function _Ht(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m;for(DAt(e,"Layer size calculation",1),h=NXt,u=RXt,o=!1,c=new Gf(t.b);c.a<c.c.c.length;)if((l=(s=jz(Q1(c),29)).c).a=0,l.b=0,0!=s.a.c.length){for(o=!0,f=new Gf(s.a);f.a<f.c.c.length;)p=(d=jz(Q1(f),10)).o,g=d.d,l.a=i.Math.max(l.a,p.a+g.b+g.c);m=(r=jz(PH(s.a,0),10)).n.b-r.d.d,r.k==(aEt(),Cse)&&(m-=jz(wxt(t,(zWt(),Bbe)),142).d),n=(a=jz(PH(s.a,s.a.c.length-1),10)).n.b+a.o.b+a.d.a,a.k==Cse&&(n+=jz(wxt(t,(zWt(),Bbe)),142).a),l.b=n-m,h=i.Math.min(h,m),u=i.Math.max(u,n)}o||(h=0,u=0),t.f.b=u-h,t.c.b-=h,zEt(e)}function CHt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b;for(o=0,a=0,l=new Gf(t.a);l.a<l.c.c.length;)s=jz(Q1(l),10),o=i.Math.max(o,s.d.b),a=i.Math.max(a,s.d.c);for(c=new Gf(t.a);c.a<c.c.c.length;){switch(s=jz(Q1(c),10),jz(wxt(s,(zWt(),kpe)),248).g){case 1:g=0;break;case 2:g=1;break;case 5:g=.5;break;default:for(n=0,h=0,f=new Gf(s.j);f.a<f.c.c.length;)0==(d=jz(Q1(f),11)).e.c.length||++n,0==d.g.c.length||++h;g=n+h==0?.5:h/(n+h)}m=t.c,u=s.o.a,b=(m.a-u)*g,g>.5?b-=2*a*(g-.5):g<.5&&(b+=2*o*(.5-g)),b<(r=s.d.b)&&(b=r),p=s.d.c,b>m.a-p-u&&(b=m.a-p-u),s.n.a=e+b}}function AHt(t,e,n,i,r){var o,a,s,c,l,u,h,d,f;for(s=P7(MLe,VXt,25,t.c.length,15,1),nyt(d=new UU(new Ws),t),l=0,f=new Mb;0!=d.b.c.length;)if(a=jz(0==d.b.c.length?null:PH(d.b,0),157),l>1&&eq(a)*tq(a)/2>s[0]){for(o=0;o<f.c.length-1&&eq(a)*tq(a)/2>s[o];)++o;h=new Het(new s1(f,0,o+1)),u=eq(a)/tq(a),c=kWt(h,e,new hk,n,i,r,u),qR(kI(h.e),c),F7(ext(d,h)),nyt(d,new s1(f,o+1,f.c.length)),f.c=P7(Ite,zKt,1,0,5,1),l=0,vq(s,s.length,0)}else null!=(0==d.b.c.length?null:PH(d.b,0))&&lrt(d,0),l>0&&(s[l]=s[l-1]),s[l]+=eq(a)*tq(a),++l,f.c[f.c.length]=a;return f}function xHt(t){var e,n,i;if((n=jz(wxt(t,(zWt(),kme)),163))==(Cft(),Fde)){for(e=new aU(ZP(uft(t).a.Kc(),new u));gBt(e);)if(!U4(jz(q4(e),17)))throw $b(new ny(E1t+pvt(t)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(n==$de)for(i=new aU(ZP(hft(t).a.Kc(),new u));gBt(i);)if(!U4(jz(q4(i),17)))throw $b(new ny(E1t+pvt(t)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}function EHt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f;for(DAt(e,"Label dummy removal",1),i=Vv(CN(wxt(t,(zWt(),vbe)))),r=Vv(CN(wxt(t,Abe))),c=jz(wxt(t,qpe),103),s=new Gf(t.b);s.a<s.c.c.length;)for(u=new C2(jz(Q1(s),29).a,0);u.b<u.d.gc();)xO(u.b<u.d.gc()),(l=jz(u.d.Xb(u.c=u.b++),10)).k==(aEt(),Ase)&&(h=jz(wxt(l,(lKt(),fde)),17),f=Vv(CN(wxt(h,rme))),a=VD(wxt(l,ode))===VD((Gvt(),ySe)),n=new dB(l.n),a&&(n.b+=f+i),o=new PS(l.o.a,l.o.b-f-i),d=jz(wxt(l,xde),15),c==(jht(),$Te)||c==NTe?INt(d,n,r,o,a,c):Vut(d,n,r,o),pst(h.b,d),iqt(l,VD(wxt(t,Zpe))===VD((Aft(),YTe))),lK(u));zEt(e)}function THt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v;for(s=new Mb,r=new Gf(e.a);r.a<r.c.c.length;)for(a=new Gf(jz(Q1(r),10).j);a.a<a.c.c.length;){for(l=null,k=0,v=(w=Z0((o=jz(Q1(a),11)).g)).length;k<v;++k)fat((b=w[k]).d.i,n)||((m=MVt(t,e,n,b,b.c,(oit(),zwe),l))!=l&&(s.c[s.c.length]=m),m.c&&(l=m));for(c=null,g=0,p=(f=Z0(o.e)).length;g<p;++g)fat((d=f[g]).c.i,n)||((m=MVt(t,e,n,d,d.d,(oit(),$we),c))!=c&&(s.c[s.c.length]=m),m.c&&(c=m))}for(h=new Gf(s);h.a<h.c.c.length;)u=jz(Q1(h),441),-1!=y9(e.a,u.a,0)||Gz(e.a,u.a),u.c&&(i.c[i.c.length]=u)}function SHt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g;for(DAt(n,"Interactive cycle breaking",1),u=new Mb,d=new Gf(e.a);d.a<d.c.c.length;)for((h=jz(Q1(d),10)).p=1,f=j_t(h).a,l=Lgt(h,(oit(),zwe)).Kc();l.Ob();)for(o=new Gf(jz(l.Pb(),11).g);o.a<o.c.c.length;)(g=(i=jz(Q1(o),17)).d.i)!=h&&j_t(g).a<f&&(u.c[u.c.length]=i);for(a=new Gf(u);a.a<a.c.c.length;)tzt(i=jz(Q1(a),17),!0);for(u.c=P7(Ite,zKt,1,0,5,1),c=new Gf(e.a);c.a<c.c.c.length;)(s=jz(Q1(c),10)).p>0&&hTt(t,s,u);for(r=new Gf(u);r.a<r.c.c.length;)tzt(i=jz(Q1(r),17),!0);u.c=P7(Ite,zKt,1,0,5,1),zEt(n)}function DHt(t,e){var n,i,r,o,a,s,c,l,u;return l="",0==e.length?t.de(GYt,qYt,-1,-1):(bF((u=Nxt(e)).substr(0,3),"at ")&&(u=u.substr(3)),-1==(a=(u=u.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(a=u.indexOf("@"))?(l=u,u=""):(l=Nxt(u.substr(a+1)),u=Nxt(u.substr(0,a))):(n=u.indexOf(")",a),l=u.substr(a+1,n-(a+1)),u=Nxt(u.substr(0,a))),-1!=(a=VI(u,XAt(46)))&&(u=u.substr(a+1)),(0==u.length||bF(u,"Anonymous function"))&&(u=qYt),s=bL(l,XAt(58)),r=CF(l,XAt(58),s-1),c=-1,i=-1,o=GYt,-1!=s&&-1!=r&&(o=l.substr(0,r),c=cO(l.substr(r+1,s-(r+1))),i=cO(l.substr(s+1))),t.de(o,u,c,i))}function IHt(t,e,n){var i,r,o,a,s,c;if(0==e.l&&0==e.m&&0==e.h)throw $b(new Sv("divide by zero"));if(0==t.l&&0==t.m&&0==t.h)return n&&(hee=CM(0,0,0)),CM(0,0,0);if(e.h==TXt&&0==e.m&&0==e.l)return jft(t,n);if(c=!1,e.h>>19&&(e=oct(e),c=!c),a=DPt(e),o=!1,r=!1,i=!1,t.h==TXt&&0==t.m&&0==t.l){if(r=!0,o=!0,-1!=a)return s=yBt(t,a),c&&Dct(s),n&&(hee=CM(0,0,0)),s;t=GI((U9(),dee)),i=!0,c=!c}else t.h>>19&&(o=!0,t=oct(t),i=!0,c=!c);return-1!=a?$ct(t,a,c,o,n):Ryt(t,e)<0?(n&&(hee=o?oct(t):CM(t.l,t.m,t.h)),CM(0,0,0)):ljt(i?t:CM(t.l,t.m,t.h),e,c,o,r,n)}function BHt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g;if(t.e&&t.c.c<t.f)throw $b(new Fv("Expected "+t.f+" phases to be configured; only found "+t.c.c));for(u=jz(W_(t.g),9),f=sO(t.f),s=0,l=(o=u).length;s<l;++s)(h=jz(L9(t,(i=o[s]).g),246))?Gz(f,jz(sgt(t,h),123)):f.c[f.c.length]=null;for(g=new j2,XA(DY(IY(DY(new OH(null,new d1(f,16)),new hs),new ym(e)),new ds),new _m(g)),Zot(g,t.a),n=new Mb,a=0,c=(r=u).length;a<c;++a)pst(n,_st(t,XX(jz(L9(g,(i=r[a]).g),20)))),(d=jz(PH(f,i.g),123))&&(n.c[n.c.length]=d);return pst(n,_st(t,XX(jz(L9(g,u[u.length-1].g+1),20)))),n}function MHt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g;for(DAt(n,"Model order cycle breaking",1),t.a=0,t.b=0,d=new Mb,u=e.a.c.length,l=new Gf(e.a);l.a<l.c.c.length;)BO(c=jz(Q1(l),10),(lKt(),dde))&&(u=i.Math.max(u,jz(wxt(c,dde),19).a+1));for(g=new Gf(e.a);g.a<g.c.c.length;)for(s=qTt(t,f=jz(Q1(g),10),u),h=Lgt(f,(oit(),zwe)).Kc();h.Ob();)for(a=new Gf(jz(h.Pb(),11).g);a.a<a.c.c.length;)qTt(t,(r=jz(Q1(a),17)).d.i,u)<s&&(d.c[d.c.length]=r);for(o=new Gf(d);o.a<o.c.c.length;)tzt(r=jz(Q1(o),17),!0),lct(e,(lKt(),zhe),(cL(),!0));d.c=P7(Ite,zKt,1,0,5,1),zEt(n)}function PHt(t,e){var n,i,r,o,a,s,c;if(!(t.g>e.f||e.g>t.f)){for(n=0,i=0,a=t.w.a.ec().Kc();a.Ob();)r=jz(a.Pb(),11),mut(Ict(Est(Vy(xxe,1),cYt,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++n;for(s=t.r.a.ec().Kc();s.Ob();)r=jz(s.Pb(),11),mut(Ict(Est(Vy(xxe,1),cYt,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--n;for(c=e.w.a.ec().Kc();c.Ob();)r=jz(c.Pb(),11),mut(Ict(Est(Vy(xxe,1),cYt,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&++i;for(o=e.r.a.ec().Kc();o.Ob();)r=jz(o.Pb(),11),mut(Ict(Est(Vy(xxe,1),cYt,8,0,[r.i.n,r.n,r.a])).b,t.g,t.f)&&--i;n<i?new A6(t,e,i-n):i<n?new A6(e,t,n-i):(new A6(e,t,0),new A6(t,e,0))}}function LHt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;for(l=e.c,r=KB(t.e),h=kP(jO(jM(WB(t.e)),t.d*t.a,t.c*t.b),-.5),n=r.a-h.a,i=r.b-h.b,n=(a=e.a).c-n,i=a.d-i,c=new Gf(l);c.a<c.c.c.length;){switch(f=n+(d=(s=jz(Q1(c),395)).b).a,m=i+d.b,g=EQ(f/t.a),b=EQ(m/t.b),(o=s.a).g){case 0:zbt(),u=jre;break;case 1:zbt(),u=Fre;break;case 2:zbt(),u=$re;break;default:zbt(),u=zre}o.a?(w=EQ((m+s.c)/t.b),Gz(t.f,new Pj(u,ndt(b),ndt(w))),o==(Vbt(),Jre)?fct(t,0,b,g,w):fct(t,g,b,t.d-1,w)):(p=EQ((f+s.c)/t.a),Gz(t.f,new Pj(u,ndt(g),ndt(p))),o==(Vbt(),Zre)?fct(t,g,0,p,b):fct(t,g,b,p,t.c-1))}}function OHt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v;for(d=new Mb,o=new Mb,p=null,s=e.Kc();s.Ob();)a=new $p(jz(s.Pb(),19).a),o.c[o.c.length]=a,p&&(a.d=p,p.e=a),p=a;for(k=q$t(t),u=0;u<o.c.length;++u){for(f=null,m=L6((u1(0,o.c.length),jz(o.c[0],652))),n=null,r=NXt,h=1;h<t.b.c.length;++h)b=m?i.Math.abs(m.b-h):i.Math.abs(h-f.b)+1,(g=f?i.Math.abs(h-f.b):b+1)<b?(l=f,c=g):(l=m,c=b),v=Vv(CN(wxt(t,(zWt(),$be)))),(w=k[h]+i.Math.pow(c,v))<r&&(r=w,(n=l).c=h),m&&h==m.b&&(f=m,m=PU(m));n&&(Gz(d,ndt(n.c)),n.a=!0,bdt(n))}return AX(),wq(d.c,d.c.length,null),d}function NHt(t){var e,n,i,r,o,a,s,c,l,u;for(e=new Ac,n=new Ac,l=bF(R8t,(r=Pjt(t.b,F8t))?AN(rpt((!r.b&&(r.b=new XO((pKt(),wMe),qMe,r)),r.b),j8t)):null),c=0;c<t.i;++c)iP(s=jz(t.g[c],170),99)?(a=jz(s,18)).Bb&l6t?(!(a.Bb&lYt)||!l&&null==((o=Pjt(a,F8t))?AN(rpt((!o.b&&(o.b=new XO((pKt(),wMe),qMe,o)),o.b),J6t)):null))&&l8(e,a):(u=Twt(a))&&u.Bb&l6t||(!(a.Bb&lYt)||!l&&null==((i=Pjt(a,F8t))?AN(rpt((!i.b&&(i.b=new XO((pKt(),wMe),qMe,i)),i.b),J6t)):null))&&l8(n,a):(Zx(),jz(s,66).Oj()&&(s.Jj()||(l8(e,s),l8(n,s))));rut(e),rut(n),t.a=jz(e.g,247),jz(n.g,247)}function RHt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;for(c=LEt(e),jz(wxt(e,(zWt(),zpe)),314)!=(Dit(),cue)&&t4(c,new be),t4(c,new Lg(jz(wxt(e,Ope),292))),f=0,l=new Mb,r=new hY(c);r.a!=r.b;)i=jz(Fut(r),37),Bqt(t.c,i),f+=(h=jz(wxt(i,(lKt(),Cde)),15)).gc(),Gz(l,new nD(i,h.Kc()));for(DAt(n,"Recursive hierarchical layout",f),d=jz(jz(PH(l,l.c.length-1),46).b,47);d.Ob();)for(s=new Gf(l);s.a<s.c.c.length;)for(a=jz(Q1(s),46),h=jz(a.b,47),o=jz(a.a,37);h.Ob();){if(iP(u=jz(h.Pb(),51),507)){if(o.e)break;u.pf(o,wot(n,1));break}u.pf(o,wot(n,1))}zEt(n)}function FHt(t,e){var n,i,r,o,a,s,c,l;if(h1(s=e.length-1,e.length),93==(a=e.charCodeAt(s))){if((o=VI(e,XAt(91)))>=0)return r=gft(t,e.substr(1,o-1)),XGt(t,e.substr(o+1,s-(o+1)),r)}else{if(n=-1,null==_ee&&(_ee=new RegExp("\\d")),_ee.test(String.fromCharCode(a))&&(n=CF(e,XAt(46),s-1))>=0){i=jz(W4(t,Eet(t,e.substr(1,n-1)),!1),58),c=0;try{c=hjt(e.substr(n+1),FYt,OKt)}catch(t){throw iP(t=hst(t),127)?$b(new B9(t)):$b(t)}if(c<i.gc())return iP(l=i.Xb(c),72)&&(l=jz(l,72).dd()),jz(l,56)}if(n<0)return jz(W4(t,Eet(t,e.substr(1)),!1),56)}return null}function jHt(t,e,n){var i,r,o,a,s,c,l;if(Igt(e,n)>=0)return n;switch(LK(j9(t,n))){case 2:if(bF("",Tht(t,n.Hj()).ne())){if(c=wMt(t,e,s=vY(j9(t,n)),kY(j9(t,n))))return c;for(a=0,l=(r=yFt(t,e)).gc();a<l;++a)if(oLt(SG(j9(t,c=jz(r.Xb(a),170))),s))return c}return null;case 4:if(bF("",Tht(t,n.Hj()).ne())){for(i=n;i;i=X1(j9(t,i)))if(c=kMt(t,e,vY(j9(t,i)),kY(j9(t,i))))return c;if(s=vY(j9(t,n)),bF(x9t,s))return w_t(t,e);for(a=0,l=(o=_Ft(t,e)).gc();a<l;++a)if(oLt(SG(j9(t,c=jz(o.Xb(a),170))),s))return c}return null;default:return null}}function $Ht(t,e,n){var i,r,o,a,s,c,l,u;if(0==n.gc())return!1;if(Zx(),o=(s=jz(e,66).Oj())?n:new pet(n.gc()),BOt(t.e,e)){if(e.hi())for(l=n.Kc();l.Ob();)U$t(t,e,c=l.Pb(),iP(e,99)&&!!(jz(e,18).Bb&$Xt))||(r=Z3(e,c),o.Hc(r)||o.Fc(r));else if(!s)for(l=n.Kc();l.Ob();)r=Z3(e,c=l.Pb()),o.Fc(r)}else{if(n.gc()>1)throw $b(new Rv(S9t));for(u=oOt(t.e.Tg(),e),i=jz(t.g,119),a=0;a<t.i;++a)if(r=i[a],u.rl(r.ak())){if(n.Hc(s?r:r.dd()))return!1;for(l=n.Kc();l.Ob();)c=l.Pb(),jz(swt(t,a,s?jz(c,72):Z3(e,c)),72);return!0}s||(r=Z3(e,n.Kc().Pb()),o.Fc(r))}return pW(t,o)}function zHt(t,e){var n,r,o,a,s,c,l;for(l=new YA,c=new Nf(new Sf(t.c).a.vc().Kc());c.a.Ob();)o=jz(c.a.Pb(),42),0==(a=jz(o.dd(),458)).b&&n4(l,a,l.c.b,l.c);for(;0!=l.b;)for(null==(a=jz(0==l.b?null:(xO(0!=l.b),Iet(l,l.a.a)),458)).a&&(a.a=0),r=new Gf(a.d);r.a<r.c.c.length;)null==(n=jz(Q1(r),654)).b.a?n.b.a=Vv(a.a)+n.a:e.o==(aJ(),nve)?n.b.a=i.Math.min(Vv(n.b.a),Vv(a.a)+n.a):n.b.a=i.Math.max(Vv(n.b.a),Vv(a.a)+n.a),--n.b.b,0==n.b.b&&LV(l,n.b);for(s=new Nf(new Sf(t.c).a.vc().Kc());s.a.Ob();)o=jz(s.a.Pb(),42),a=jz(o.dd(),458),e.i[a.c.p]=a.a}function VHt(){VHt=I,sye=new ob(DJt),new eR("DEPTH",ndt(0)),eye=new eR("FAN",ndt(0)),Jve=new eR(U3t,ndt(0)),fye=new eR("ROOT",(cL(),!1)),iye=new eR("LEFTNEIGHBOR",null),hye=new eR("RIGHTNEIGHBOR",null),rye=new eR("LEFTSIBLING",null),dye=new eR("RIGHTSIBLING",null),tye=new eR("DUMMY",!1),new eR("LEVEL",ndt(0)),uye=new eR("REMOVABLE_EDGES",new YA),gye=new eR("XCOOR",ndt(0)),pye=new eR("YCOOR",ndt(0)),oye=new eR("LEVELHEIGHT",0),nye=new eR("ID",""),cye=new eR("POSITION",ndt(0)),lye=new eR("PRELIM",0),aye=new eR("MODIFIER",0),Qve=new ob(BJt),Zve=new ob(MJt)}function HHt(t,e,n,r){var o,a,s,c,l,u,h,d,f,g;for(h=n+e.c.c.a,g=new Gf(e.j);g.a<g.c.c.length;){if(f=jz(Q1(g),11),o=Ict(Est(Vy(xxe,1),cYt,8,0,[f.i.n,f.n,f.a])),e.k==(aEt(),Tse)&&(c=jz(wxt(f,(lKt(),fde)),11),o.a=Ict(Est(Vy(xxe,1),cYt,8,0,[c.i.n,c.n,c.a])).a,e.n.a=o.a),s=new PS(0,o.b),f.j==(vGt(),aDe))s.a=h;else{if(f.j!=EDe)continue;s.a=n}if(!(i.Math.abs(o.a-s.a)<=r)||Pyt(e))for(a=f.g.c.length+f.e.c.length>1,u=new b6(f.b);wM(u.a)||wM(u.b);)d=(l=jz(wM(u.a)?Q1(u.a):Q1(u.b),17)).c==f?l.d:l.c,i.Math.abs(Ict(Est(Vy(xxe,1),cYt,8,0,[d.i.n,d.n,d.a])).b-s.b)>1&&mOt(t,l,s,a,f)}}function qHt(t){var e,n,r,o,a,s;if(o=new C2(t.e,0),r=new C2(t.a,0),t.d)for(n=0;n<t.b;n++)xO(o.b<o.d.gc()),o.d.Xb(o.c=o.b++);else for(n=0;n<t.b-1;n++)xO(o.b<o.d.gc()),o.d.Xb(o.c=o.b++),lK(o);for(e=Vv((xO(o.b<o.d.gc()),CN(o.d.Xb(o.c=o.b++))));t.f-e>O3t;){for(a=e,s=0;i.Math.abs(e-a)<O3t;)++s,e=Vv((xO(o.b<o.d.gc()),CN(o.d.Xb(o.c=o.b++)))),xO(r.b<r.d.gc()),r.d.Xb(r.c=r.b++);s<t.b&&(xO(o.b>0),o.a.Xb(o.c=--o.b),O$t(t,t.b-s,a,r,o),xO(o.b<o.d.gc()),o.d.Xb(o.c=o.b++)),xO(r.b>0),r.a.Xb(r.c=--r.b)}if(!t.d)for(n=0;n<t.b-1;n++)xO(o.b<o.d.gc()),o.d.Xb(o.c=o.b++),lK(o);t.d=!0,t.c=!0}function UHt(){UHt=I,gPe=(iC(),fPe).b,bPe=jz(Wet(KX(fPe.b),0),34),pPe=jz(Wet(KX(fPe.b),1),34),mPe=jz(Wet(KX(fPe.b),2),34),TPe=fPe.bb,jz(Wet(KX(fPe.bb),0),34),jz(Wet(KX(fPe.bb),1),34),DPe=fPe.fb,IPe=jz(Wet(KX(fPe.fb),0),34),jz(Wet(KX(fPe.fb),1),34),jz(Wet(KX(fPe.fb),2),18),MPe=fPe.qb,OPe=jz(Wet(KX(fPe.qb),0),34),jz(Wet(KX(fPe.qb),1),18),jz(Wet(KX(fPe.qb),2),18),PPe=jz(Wet(KX(fPe.qb),3),34),LPe=jz(Wet(KX(fPe.qb),4),34),RPe=jz(Wet(KX(fPe.qb),6),34),NPe=jz(Wet(KX(fPe.qb),5),18),wPe=fPe.j,kPe=fPe.k,vPe=fPe.q,yPe=fPe.w,_Pe=fPe.B,CPe=fPe.A,APe=fPe.C,xPe=fPe.D,EPe=fPe._,SPe=fPe.cb,BPe=fPe.hb}function GHt(t,e,n){var r,o,a,s,c,l,u,h,d;t.c=0,t.b=0,r=2*e.c.a.c.length+1;t:for(u=n.Kc();u.Ob();){if(d=0,s=(l=jz(u.Pb(),11)).j==(vGt(),sDe)||l.j==ADe){if(!(h=jz(wxt(l,(lKt(),yde)),10)))continue;d+=nRt(t,r,l,h)}else{for(c=new Gf(l.g);c.a<c.c.c.length;){if((o=jz(Q1(c),17).d).i.c==e.c){Gz(t.a,l);continue t}d+=t.g[o.p]}for(a=new Gf(l.e);a.a<a.c.c.length;){if((o=jz(Q1(a),17).c).i.c==e.c){Gz(t.a,l);continue t}d-=t.g[o.p]}}l.e.c.length+l.g.c.length>0?(t.f[l.p]=d/(l.e.c.length+l.g.c.length),t.c=i.Math.min(t.c,t.f[l.p]),t.b=i.Math.max(t.b,t.f[l.p])):s&&(t.f[l.p]=d)}}function WHt(t){t.b=null,t.bb=null,t.fb=null,t.qb=null,t.a=null,t.c=null,t.d=null,t.e=null,t.f=null,t.n=null,t.M=null,t.L=null,t.Q=null,t.R=null,t.K=null,t.db=null,t.eb=null,t.g=null,t.i=null,t.j=null,t.k=null,t.gb=null,t.o=null,t.p=null,t.q=null,t.r=null,t.$=null,t.ib=null,t.S=null,t.T=null,t.t=null,t.s=null,t.u=null,t.v=null,t.w=null,t.B=null,t.A=null,t.C=null,t.D=null,t.F=null,t.G=null,t.H=null,t.I=null,t.J=null,t.P=null,t.Z=null,t.U=null,t.V=null,t.W=null,t.X=null,t.Y=null,t._=null,t.ab=null,t.cb=null,t.hb=null,t.nb=null,t.lb=null,t.mb=null,t.ob=null,t.pb=null,t.jb=null,t.kb=null,t.N=!1,t.O=!1}function KHt(t,e,n){var i,r;for(DAt(n,"Graph transformation ("+t.a+")",1),r=r0(e.a),i=new Gf(e.b);i.a<i.c.c.length;)pst(r,jz(Q1(i),29).a);if(jz(wxt(e,(zWt(),Upe)),419)==(Rtt(),Aue))switch(jz(wxt(e,qpe),103).g){case 2:B2(e,r);break;case 3:dpt(e,r);break;case 4:t.a==(xrt(),zse)?(dpt(e,r),I2(e,r)):(I2(e,r),dpt(e,r))}else if(t.a==(xrt(),zse))switch(jz(wxt(e,qpe),103).g){case 2:B2(e,r),I2(e,r);break;case 3:dpt(e,r),B2(e,r);break;case 4:B2(e,r),dpt(e,r)}else switch(jz(wxt(e,qpe),103).g){case 2:B2(e,r),I2(e,r);break;case 3:B2(e,r),dpt(e,r);break;case 4:dpt(e,r),B2(e,r)}zEt(n)}function YHt(t,e,n){var i,r,o,a,s,c,l,h,d,f,g;for(c=new lB,l=new lB,f=new lB,g=new lB,s=Vv(CN(wxt(e,(zWt(),Sbe)))),r=Vv(CN(wxt(e,wbe))),a=new Gf(n);a.a<a.c.c.length;)if(o=jz(Q1(a),10),(h=jz(wxt(o,(lKt(),Khe)),61))==(vGt(),sDe))for(l.a.zc(o,l),i=new aU(ZP(uft(o).a.Kc(),new u));gBt(i);)_G(c,jz(q4(i),17).c.i);else if(h==ADe)for(g.a.zc(o,g),i=new aU(ZP(uft(o).a.Kc(),new u));gBt(i);)_G(f,jz(q4(i),17).c.i);0!=c.a.gc()&&(d=Iqt(new lW(2,r),e,c,l,-s-e.c.b))>0&&(t.a=s+(d-1)*r,e.c.b+=t.a,e.f.b+=t.a),0!=f.a.gc()&&(d=Iqt(new lW(1,r),e,f,g,e.f.b+s-e.c.b))>0&&(e.f.b+=s+(d-1)*r)}function XHt(t,e){var n,i,r,o;o=t.F,null==e?(t.F=null,Olt(t,null)):(t.F=(kK(e),e),-1!=(i=VI(e,XAt(60)))?(r=e.substr(0,i),-1==VI(e,XAt(46))&&!bF(r,BKt)&&!bF(r,x8t)&&!bF(r,E8t)&&!bF(r,T8t)&&!bF(r,S8t)&&!bF(r,D8t)&&!bF(r,I8t)&&!bF(r,B8t)&&(r=M8t),-1!=(n=bL(e,XAt(62)))&&(r+=""+e.substr(n+1)),Olt(t,r)):(r=e,-1==VI(e,XAt(46))&&(-1!=(i=VI(e,XAt(91)))&&(r=e.substr(0,i)),bF(r,BKt)||bF(r,x8t)||bF(r,E8t)||bF(r,T8t)||bF(r,S8t)||bF(r,D8t)||bF(r,I8t)||bF(r,B8t)?r=e:(r=M8t,-1!=i&&(r+=""+e.substr(i)))),Olt(t,r),r==e&&(t.F=t.D))),4&t.Db&&!(1&t.Db)&&dat(t,new QU(t,1,5,o,e))}function ZHt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;if(!((p=e.b.c.length)<3)){for(f=P7(SLe,lXt,25,p,15,1),h=0,u=new Gf(e.b);u.a<u.c.c.length;)l=jz(Q1(u),29),f[h++]=l.a.c.length;for(d=new C2(e.b,2),i=1;i<p-1;i++)for(xO(d.b<d.d.gc()),g=new Gf((n=jz(d.d.Xb(d.c=d.b++),29)).a),o=0,s=0,c=0;c<f[i+1];c++)if(k=jz(Q1(g),10),c==f[i+1]-1||XEt(t,k,i+1,i)){for(a=f[i]-1,XEt(t,k,i+1,i)&&(a=t.c.e[jz(jz(jz(PH(t.c.b,k.p),15).Xb(0),46).a,10).p]);s<=c;){if(!XEt(t,w=jz(PH(n.a,s),10),i+1,i))for(b=jz(PH(t.c.b,w.p),15).Kc();b.Ob();)m=jz(b.Pb(),46),((r=t.c.e[jz(m.a,10).p])<o||r>a)&&_G(t.b,jz(m.b,17));++s}o=a}}}function QHt(t,e){var n;if(null==e||bF(e,qKt))return null;if(0==e.length&&t.k!=(ETt(),pxe))return null;switch(t.k.g){case 1:return wmt(e,o4t)?(cL(),bee):wmt(e,a4t)?(cL(),mee):null;case 2:try{return ndt(hjt(e,FYt,OKt))}catch(t){if(iP(t=hst(t),127))return null;throw $b(t)}case 4:try{return dEt(e)}catch(t){if(iP(t=hst(t),127))return null;throw $b(t)}case 3:return e;case 5:return iut(t),zDt(t,e);case 6:return iut(t),RMt(t,t.a,e);case 7:try{return(n=iBt(t)).Jf(e),n}catch(t){if(iP(t=hst(t),32))return null;throw $b(t)}default:throw $b(new Fv("Invalid type set for this layout option."))}}function JHt(t){var e,n,i,r,o,a,s;for(Ltt(),s=new Ww,n=new Gf(t);n.a<n.c.c.length;)e=jz(Q1(n),140),(!s.b||e.c>=s.b.c)&&(s.b=e),(!s.c||e.c<=s.c.c)&&(s.d=s.c,s.c=e),(!s.e||e.d>=s.e.d)&&(s.e=e),(!s.f||e.d<=s.f.d)&&(s.f=e);return i=new Cbt((Ist(),Zae)),e2(t,ase,new Xv(Est(Vy(Xae,1),zKt,369,0,[i]))),a=new Cbt(tse),e2(t,ose,new Xv(Est(Vy(Xae,1),zKt,369,0,[a]))),r=new Cbt(Qae),e2(t,rse,new Xv(Est(Vy(Xae,1),zKt,369,0,[r]))),o=new Cbt(Jae),e2(t,ise,new Xv(Est(Vy(Xae,1),zKt,369,0,[o]))),LPt(i.c,Zae),LPt(r.c,Qae),LPt(o.c,Jae),LPt(a.c,tse),s.a.c=P7(Ite,zKt,1,0,5,1),pst(s.a,i.c),pst(s.a,eat(r.c)),pst(s.a,o.c),pst(s.a,eat(a.c)),s}function tqt(t){var e;switch(t.d){case 1:if(t.hj())return-2!=t.o;break;case 2:if(t.hj())return-2==t.o;break;case 3:case 5:case 4:case 6:case 7:return t.o>-2;default:return!1}switch(e=t.gj(),t.p){case 0:return null!=e&&zv(_N(e))!=XD(t.k,0);case 1:return null!=e&&jz(e,217).a!=fq(t.k)<<24>>24;case 2:return null!=e&&jz(e,172).a!=(fq(t.k)&YYt);case 6:return null!=e&&XD(jz(e,162).a,t.k);case 5:return null!=e&&jz(e,19).a!=fq(t.k);case 7:return null!=e&&jz(e,184).a!=fq(t.k)<<16>>16;case 3:return null!=e&&Vv(CN(e))!=t.j;case 4:return null!=e&&jz(e,155).a!=t.j;default:return null==e?null!=t.n:!Pht(e,t.n)}}function eqt(t,e,n){var i,r,o,a;return t.Fk()&&t.Ek()&&VD(a=VU(t,jz(n,56)))!==VD(n)?(t.Oi(e),t.Ui(e,j8(t,e,a)),t.rk()&&(r=jz(n,49),o=t.Dk()?t.Bk()?r.ih(t.b,Twt(jz(eet(vZ(t.b),t.aj()),18)).n,jz(eet(vZ(t.b),t.aj()).Yj(),26).Bj(),null):r.ih(t.b,Igt(r.Tg(),Twt(jz(eet(vZ(t.b),t.aj()),18))),null,null):r.ih(t.b,-1-t.aj(),null,null),!jz(a,49).eh()&&(i=jz(a,49),o=t.Dk()?t.Bk()?i.gh(t.b,Twt(jz(eet(vZ(t.b),t.aj()),18)).n,jz(eet(vZ(t.b),t.aj()).Yj(),26).Bj(),o):i.gh(t.b,Igt(i.Tg(),Twt(jz(eet(vZ(t.b),t.aj()),18))),null,o):i.gh(t.b,-1-t.aj(),null,o)),o&&o.Fi()),bB(t.b)&&t.$i(t.Zi(9,n,a,e,!1)),a):n}function nqt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;for(h=Vv(CN(wxt(t,(zWt(),ybe)))),r=Vv(CN(wxt(t,Obe))),lct(f=new Qs,ybe,h+r),w=(u=e).d,m=u.c.i,k=u.d.i,b=JI(m.c),v=JI(k.c),o=new Mb,d=b;d<=v;d++)Fd(c=new Bwt(t),(aEt(),xse)),lct(c,(lKt(),fde),u),lct(c,tbe,(YCt(),USe)),lct(c,Cbe,f),g=jz(PH(t.b,d),29),d==b?Yvt(c,g.a.c.length-n,g):xJ(c,g),(y=Vv(CN(wxt(u,rme))))<0&&lct(u,rme,y=0),c.o.b=y,p=i.Math.floor(y/2),VSt(s=new TEt,(vGt(),EDe)),EJ(s,c),s.n.b=p,VSt(l=new TEt,aDe),EJ(l,c),l.n.b=p,CJ(u,s),Vat(a=new dZ,u),lct(a,mme,null),AJ(a,l),CJ(a,w),qyt(c,u,a),o.c[o.c.length]=a,u=a;return o}function iqt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m;for(s=jz(OEt(t,(vGt(),EDe)).Kc().Pb(),11).e,h=jz(OEt(t,aDe).Kc().Pb(),11).g,a=s.c.length,m=g1(jz(PH(t.j,0),11));a-- >0;){for(u1(0,s.c.length),f=jz(s.c[0],17),u1(0,h.c.length),r=y9((i=jz(h.c[0],17)).d.e,i,0),D2(f,i.d,r),AJ(i,null),CJ(i,null),d=f.a,e&&LV(d,new dB(m)),n=cbt(i.a,0);n.b!=n.d.c;)LV(d,new dB(jz(h3(n),8)));for(p=f.b,u=new Gf(i.b);u.a<u.c.c.length;)l=jz(Q1(u),70),p.c[p.c.length]=l;if(g=jz(wxt(f,(zWt(),mme)),74),o=jz(wxt(i,mme),74))for(g||(g=new kk,lct(f,mme,g)),c=cbt(o,0);c.b!=c.d.c;)LV(g,new dB(jz(h3(c),8)))}}function rqt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g;if(n=jz(aY(t.b,e),124),(l=jz(jz(c6(t.r,e),21),84)).dc())return n.n.b=0,void(n.n.c=0);for(u=t.u.Hc((hDt(),tDe)),s=0,c=l.Kc(),h=null,d=0,f=0;c.Ob();)o=Vv(CN((r=jz(c.Pb(),111)).b.We((LL(),Bre)))),a=r.b.rf().a,t.A.Hc((wpt(),RDe))&&kRt(t,e),h?(g=f+h.d.c+t.w+r.d.b,s=i.Math.max(s,(cM(),iit(uQt),i.Math.abs(d-o)<=uQt||d==o||isNaN(d)&&isNaN(o)?0:g/(o-d)))):t.C&&t.C.b>0&&(s=i.Math.max(s,hot(t.C.b+r.d.b,o))),h=r,d=o,f=a;t.C&&t.C.c>0&&(g=f+t.C.c,u&&(g+=h.d.c),s=i.Math.max(s,(cM(),iit(uQt),i.Math.abs(d-1)<=uQt||1==d||isNaN(d)&&isNaN(1)?0:g/(1-d)))),n.n.b=0,n.a.a=s}function oqt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g;if(n=jz(aY(t.b,e),124),(l=jz(jz(c6(t.r,e),21),84)).dc())return n.n.d=0,void(n.n.a=0);for(u=t.u.Hc((hDt(),tDe)),s=0,t.A.Hc((wpt(),RDe))&&vRt(t,e),c=l.Kc(),h=null,f=0,d=0;c.Ob();)a=Vv(CN((r=jz(c.Pb(),111)).b.We((LL(),Bre)))),o=r.b.rf().b,h?(g=d+h.d.a+t.w+r.d.d,s=i.Math.max(s,(cM(),iit(uQt),i.Math.abs(f-a)<=uQt||f==a||isNaN(f)&&isNaN(a)?0:g/(a-f)))):t.C&&t.C.d>0&&(s=i.Math.max(s,hot(t.C.d+r.d.d,a))),h=r,f=a,d=o;t.C&&t.C.a>0&&(g=d+t.C.a,u&&(g+=h.d.a),s=i.Math.max(s,(cM(),iit(uQt),i.Math.abs(f-1)<=uQt||1==f||isNaN(f)&&isNaN(1)?0:g/(1-f)))),n.n.d=0,n.a.b=s}function aqt(t,e,n){var i,r,o,a,s,c;for(this.g=t,s=e.d.length,c=n.d.length,this.d=P7(Sse,o1t,10,s+c,0,1),a=0;a<s;a++)this.d[a]=e.d[a];for(o=0;o<c;o++)this.d[s+o]=n.d[o];if(e.e){if(this.e=Hz(e.e),this.e.Mc(n),n.e)for(r=n.e.Kc();r.Ob();)(i=jz(r.Pb(),233))!=e&&(this.e.Hc(i)?--i.c:this.e.Fc(i))}else n.e&&(this.e=Hz(n.e),this.e.Mc(e));this.f=e.f+n.f,this.a=e.a+n.a,this.a>0?Zet(this,this.f/this.a):null!=uP(e.g,e.d[0]).a&&null!=uP(n.g,n.d[0]).a?Zet(this,(Vv(uP(e.g,e.d[0]).a)+Vv(uP(n.g,n.d[0]).a))/2):null!=uP(e.g,e.d[0]).a?Zet(this,uP(e.g,e.d[0]).a):null!=uP(n.g,n.d[0]).a&&Zet(this,uP(n.g,n.d[0]).a)}function sqt(t,e){var n,i,r,o,a,s,c,l,u;for(t.a=new jW(Bot(GTe)),i=new Gf(e.a);i.a<i.c.c.length;){for(n=jz(Q1(i),841),a=new Emt(Est(Vy(Kae,1),zKt,81,0,[])),Gz(t.a.a,a),c=new Gf(n.d);c.a<c.c.c.length;)jqt(l=new ML(t,s=jz(Q1(c),110)),jz(wxt(n.c,(lKt(),Uhe)),21)),cG(t.g,n)||(WK(t.g,n,new PS(s.c,s.d)),WK(t.f,n,l)),Gz(t.a.b,l),g2(a,l);for(o=new Gf(n.b);o.a<o.c.c.length;)l=new ML(t,(r=jz(Q1(o),594)).kf()),WK(t.b,r,new nD(a,l)),jqt(l,jz(wxt(n.c,(lKt(),Uhe)),21)),r.hf()&&(jqt(u=new xmt(t,r.hf(),1),jz(wxt(n.c,Uhe),21)),g2(new Emt(Est(Vy(Kae,1),zKt,81,0,[])),u),ZDt(t.c,r.gf(),new nD(a,u)))}return t.a}function cqt(t){var e;this.a=t,e=(aEt(),Est(Vy(Ise,1),BYt,267,0,[Ese,xse,Cse,Tse,Ase,_se])).length,this.b=kH(uxe,[cYt,v3t],[593,146],0,[e,e],2),this.c=kH(uxe,[cYt,v3t],[593,146],0,[e,e],2),FZ(this,Ese,(zWt(),Sbe),Dbe),tst(this,Ese,xse,ybe,_be),RZ(this,Ese,Tse,ybe),RZ(this,Ese,Cse,ybe),tst(this,Ese,Ase,Sbe,Dbe),FZ(this,xse,wbe,kbe),RZ(this,xse,Tse,wbe),RZ(this,xse,Cse,wbe),tst(this,xse,Ase,ybe,_be),ZB(this,Tse,wbe),RZ(this,Tse,Cse,wbe),RZ(this,Tse,Ase,xbe),ZB(this,Cse,Mbe),tst(this,Cse,Ase,Tbe,Ebe),FZ(this,Ase,wbe,wbe),FZ(this,_se,wbe,kbe),tst(this,_se,Ese,ybe,_be),tst(this,_se,Ase,ybe,_be),tst(this,_se,xse,ybe,_be)}function lqt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m;if(iP(a=n.ak(),99)&&jz(a,18).Bb&$Xt&&(d=jz(n.dd(),49),(p=tht(t.e,d))!=d)){if(vP(t,e,cAt(t,e,u=Z3(a,p))),h=null,bB(t.e)&&(i=jHt((STt(),XMe),t.e.Tg(),a))!=eet(t.e.Tg(),t.c)){for(m=oOt(t.e.Tg(),a),s=0,o=jz(t.g,119),c=0;c<e;++c)r=o[c],m.rl(r.ak())&&++s;(h=new h5(t.e,9,i,d,p,s,!1)).Ei(new M9(t.e,9,t.c,n,u,e,!1))}return(f=Twt(g=jz(a,18)))?(h=d.ih(t.e,Igt(d.Tg(),f),null,h),h=jz(p,49).gh(t.e,Igt(p.Tg(),f),null,h)):g.Bb&l6t&&(l=-1-Igt(t.e.Tg(),g),h=d.ih(t.e,l,null,null),!jz(p,49).eh()&&(h=jz(p,49).gh(t.e,l,null,h))),h&&h.Fi(),u}return n}function uqt(t){var e,n,r,o,a,s,c,l;for(a=new Gf(t.a.b);a.a<a.c.c.length;)(o=jz(Q1(a),81)).b.c=o.g.c,o.b.d=o.g.d;for(l=new PS(NXt,NXt),e=new PS(RXt,RXt),r=new Gf(t.a.b);r.a<r.c.c.length;)n=jz(Q1(r),81),l.a=i.Math.min(l.a,n.g.c),l.b=i.Math.min(l.b,n.g.d),e.a=i.Math.max(e.a,n.g.c+n.g.b),e.b=i.Math.max(e.b,n.g.d+n.g.a);for(c=_W(t.c).a.nc();c.Ob();)s=jz(c.Pb(),46),n=jz(s.b,81),l.a=i.Math.min(l.a,n.g.c),l.b=i.Math.min(l.b,n.g.d),e.a=i.Math.max(e.a,n.g.c+n.g.b),e.b=i.Math.max(e.b,n.g.d+n.g.a);t.d=zO(new PS(l.a,l.b)),t.e=UR(new PS(e.a,e.b),l),t.a.a.c=P7(Ite,zKt,1,0,5,1),t.a.b.c=P7(Ite,zKt,1,0,5,1)}function hqt(t){var e,n,i;for(vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new Bh])),n=new yd(t),i=0;i<n.a.length;++i)bF(e=ftt(n,i).je().a,"layered")?vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new sh])):bF(e,"force")?vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new Hu])):bF(e,"stress")?vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new Uu])):bF(e,"mrtree")?vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new Ah])):bF(e,"radial")?vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new bh])):bF(e,"disco")?vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new Vu,new $u])):bF(e,"sporeOverlap")||bF(e,"sporeCompaction")?vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new yh])):bF(e,"rectpacking")&&vlt(lBe,Est(Vy(Rie,1),zKt,130,0,[new Th]))}function dqt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b;if(d=new dB(t.o),b=e.a/d.a,s=e.b/d.b,p=e.a-d.a,o=e.b-d.b,n)for(r=VD(wxt(t,(zWt(),tbe)))===VD((YCt(),USe)),g=new Gf(t.j);g.a<g.c.c.length;)switch((f=jz(Q1(g),11)).j.g){case 1:r||(f.n.a*=b);break;case 2:f.n.a+=p,r||(f.n.b*=s);break;case 3:r||(f.n.a*=b),f.n.b+=o;break;case 4:r||(f.n.b*=s)}for(l=new Gf(t.b);l.a<l.c.c.length;)u=(c=jz(Q1(l),70)).n.a+c.o.a/2,h=c.n.b+c.o.b/2,(m=u/d.a)+(a=h/d.b)>=1&&(m-a>0&&h>=0?(c.n.a+=p,c.n.b+=o*a):m-a<0&&u>=0&&(c.n.a+=p*m,c.n.b+=o));t.o.a=e.a,t.o.b=e.b,lct(t,(zWt(),Fme),(wpt(),new YF(i=jz(W_(YDe),9),jz(AR(i,i.length),9),0)))}function fqt(t,e,n,i,r,o){if(null!=e&&Gft(e,SBe,DBe))throw $b(new Rv("invalid scheme: "+e));if(!(t||null!=n&&-1==VI(n,XAt(35))&&n.length>0&&(h1(0,n.length),47!=n.charCodeAt(0))))throw $b(new Rv("invalid opaquePart: "+n));if(t&&(null==e||!PA(kBe,e.toLowerCase()))&&null!=n&&Gft(n,IBe,BBe))throw $b(new Rv(s8t+n));if(t&&null!=e&&PA(kBe,e.toLowerCase())&&!TCt(n))throw $b(new Rv(s8t+n));if(!Uft(i))throw $b(new Rv("invalid device: "+i));if(!Nut(r))throw $b(new Rv(null==r?"invalid segments: null":"invalid segment: "+cut(r)));if(null!=o&&-1!=VI(o,XAt(35)))throw $b(new Rv("invalid query: "+o))}function gqt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;for(DAt(e,"Calculate Graph Size",1),e.n&&t&&w0(e,a2(t),($lt(),oIe)),c=QQt,l=QQt,a=J3t,s=J3t,d=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));d.e!=d.i.gc();)p=(u=jz(vbt(d),33)).i,m=u.j,w=u.g,r=u.f,o=jz(QBt(u,(cKt(),IEe)),142),c=i.Math.min(c,p-o.b),l=i.Math.min(l,m-o.d),a=i.Math.max(a,p+w+o.c),s=i.Math.max(s,m+r+o.a);for(f=new PS(c-(g=jz(QBt(t,(cKt(),UEe)),116)).b,l-g.d),h=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));h.e!=h.i.gc();)Ent(u=jz(vbt(h),33),u.i-f.a),Tnt(u,u.j-f.b);b=a-c+(g.b+g.c),n=s-l+(g.d+g.a),xnt(t,b),Ant(t,n),e.n&&t&&w0(e,a2(t),($lt(),oIe))}function pqt(t){var e,n,i,r,o,a,s,c,l,u;for(i=new Mb,a=new Gf(t.e.a);a.a<a.c.c.length;){for(u=0,(r=jz(Q1(a),121)).k.c=P7(Ite,zKt,1,0,5,1),n=new Gf(vft(r));n.a<n.c.c.length;)(e=jz(Q1(n),213)).f&&(Gz(r.k,e),++u);1==u&&(i.c[i.c.length]=r)}for(o=new Gf(i);o.a<o.c.c.length;)for(r=jz(Q1(o),121);1==r.k.c.length;){for(l=jz(Q1(new Gf(r.k)),213),t.b[l.c]=l.g,s=l.d,c=l.e,n=new Gf(vft(r));n.a<n.c.c.length;)Pht(e=jz(Q1(n),213),l)||(e.f?s==e.d||c==e.e?t.b[l.c]-=t.b[e.c]-e.g:t.b[l.c]+=t.b[e.c]-e.g:r==s?e.d==r?t.b[l.c]+=e.g:t.b[l.c]-=e.g:e.d==r?t.b[l.c]-=e.g:t.b[l.c]+=e.g);w9(s.k,l),w9(c.k,l),r=s==r?l.e:l.d}}function mqt(t,e){var n,i,r,o,a,s,c,l,u,h,d;if(null==e||0==e.length)return null;if(!(o=jz(AQ(t.f,e),23))){for(r=new Nf(new Sf(t.d).a.vc().Kc());r.a.Ob();)if(a=jz(r.a.Pb(),42),s=(n=jz(a.dd(),23)).f,d=e.length,bF(s.substr(s.length-d,d),e)&&(e.length==s.length||46==lY(s,s.length-e.length-1))){if(o)return null;o=n}if(!o)for(i=new Nf(new Sf(t.d).a.vc().Kc());i.a.Ob();)if(a=jz(i.a.Pb(),42),null!=(h=(n=jz(a.dd(),23)).g))for(l=0,u=(c=h).length;l<u;++l)if(s=c[l],d=e.length,bF(s.substr(s.length-d,d),e)&&(e.length==s.length||46==lY(s,s.length-e.length-1))){if(o)return null;o=n}o&&bJ(t.f,e,o)}return o}function bqt(t,e){var n,i,r,o,a;for(n=new Ty,a=!1,o=0;o<e.length;o++)if(h1(o,e.length),32!=(i=e.charCodeAt(o)))a?39==i?o+1<e.length&&(h1(o+1,e.length),39==e.charCodeAt(o+1))?(n.a+=String.fromCharCode(i),++o):a=!1:n.a+=String.fromCharCode(i):VI("GyMLdkHmsSEcDahKzZv",XAt(i))>0?(Ebt(t,n,0),n.a+=String.fromCharCode(i),Ebt(t,n,r=rmt(e,o)),o+=r-1):39==i?o+1<e.length&&(h1(o+1,e.length),39==e.charCodeAt(o+1))?(n.a+="'",++o):a=!0:n.a+=String.fromCharCode(i);else for(Ebt(t,n,0),n.a+=" ",Ebt(t,n,0);o+1<e.length&&(h1(o+1,e.length),32==e.charCodeAt(o+1));)++o;Ebt(t,n,0),mAt(t)}function wqt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b;if(DAt(n,"Network simplex layering",1),t.b=e,b=4*jz(wxt(e,(zWt(),Pbe)),19).a,(m=t.b.a).c.length<1)zEt(n);else{for(p=null,o=cbt(a=SFt(t,m),0);o.b!=o.d.c;){for(r=jz(h3(o),15),c=b*EQ(i.Math.sqrt(r.gc())),WFt(Ky(Xy(Yy(jj(s=sjt(r)),c),p),!0),wot(n,1)),d=t.b.b,g=new Gf(s.a);g.a<g.c.c.length;){for(f=jz(Q1(g),121);d.c.length<=f.e;)kq(d,d.c.length,new $W(t.b));xJ(jz(f.f,10),jz(PH(d,f.e),29))}if(a.b>1)for(p=P7(SLe,lXt,25,t.b.b.c.length,15,1),h=0,u=new Gf(t.b.b);u.a<u.c.c.length;)l=jz(Q1(u),29),p[h++]=l.a.c.length}m.c=P7(Ite,zKt,1,0,5,1),t.a=null,t.b=null,t.c=null,zEt(n)}}function kqt(t){var e,n,r,o,a,s,c;for(e=0,a=new Gf(t.b.a);a.a<a.c.c.length;)(r=jz(Q1(a),189)).b=0,r.c=0;for(_Et(t,0),egt(t,t.g),vLt(t.c),Zv(t.c),jht(),n=RTe,OFt(tI(AUt(OFt(tI(AUt(OFt(AUt(t.c,n)),ydt(n)))),n))),AUt(t.c,RTe),$dt(t,t.g),vxt(t,0),mVt(t,0),AMt(t,1),_Et(t,1),egt(t,t.d),vLt(t.c),s=new Gf(t.b.a);s.a<s.c.c.length;)r=jz(Q1(s),189),e+=i.Math.abs(r.c);for(c=new Gf(t.b.a);c.a<c.c.c.length;)(r=jz(Q1(c),189)).b=0,r.c=0;for(n=$Te,OFt(tI(AUt(OFt(tI(AUt(OFt(Zv(AUt(t.c,n))),ydt(n)))),n))),AUt(t.c,RTe),$dt(t,t.d),vxt(t,1),mVt(t,1),AMt(t,0),Zv(t.c),o=new Gf(t.b.a);o.a<o.c.c.length;)r=jz(Q1(o),189),e+=i.Math.abs(r.c);return e}function vqt(t,e){var n,i,r,o,a,s,c,l,u;if(null!=(l=e).b&&null!=t.b){for(CMt(t),VVt(t),CMt(l),VVt(l),n=P7(SLe,lXt,25,t.b.length+l.b.length,15,1),u=0,i=0,a=0;i<t.b.length&&a<l.b.length;)if(r=t.b[i],o=t.b[i+1],s=l.b[a],c=l.b[a+1],o<s)i+=2;else if(o>=s&&r<=c)s<=r&&o<=c?(n[u++]=r,n[u++]=o,i+=2):s<=r?(n[u++]=r,n[u++]=c,t.b[i]=c+1,a+=2):o<=c?(n[u++]=s,n[u++]=o,i+=2):(n[u++]=s,n[u++]=c,t.b[i]=c+1);else{if(!(c<r))throw $b(new fv("Token#intersectRanges(): Internal Error: ["+t.b[i]+","+t.b[i+1]+"] & ["+l.b[a]+","+l.b[a+1]+"]"));a+=2}for(;i<t.b.length;)n[u++]=t.b[i++],n[u++]=t.b[i++];t.b=P7(SLe,lXt,25,u,15,1),oVt(n,0,t.b,0,u)}}function yqt(t){var e,n,r,o,a,s,c;for(e=new Mb,t.g=new Mb,t.d=new Mb,s=new alt(new xf(t.f.b).a);s.b;)Gz(e,jz(jz((a=tnt(s)).dd(),46).b,81)),fB(jz(a.cd(),594).gf())?Gz(t.d,jz(a.dd(),46)):Gz(t.g,jz(a.dd(),46));for(egt(t,t.d),egt(t,t.g),t.c=new cIt(t.b),t_(t.c,(mx(),Vae)),$dt(t,t.d),$dt(t,t.g),pst(e,t.c.a.b),t.e=new PS(NXt,NXt),t.a=new PS(RXt,RXt),r=new Gf(e);r.a<r.c.c.length;)n=jz(Q1(r),81),t.e.a=i.Math.min(t.e.a,n.g.c),t.e.b=i.Math.min(t.e.b,n.g.d),t.a.a=i.Math.max(t.a.a,n.g.c+n.g.b),t.a.b=i.Math.max(t.a.b,n.g.d+n.g.a);Jy(t.c,new ye),c=0;do{o=kqt(t),++c}while((c<2||o>RYt)&&c<10);Jy(t.c,new _e),kqt(t),TG(t.c),uqt(t.f)}function _qt(t,e,n){var i,r,o,a,s,c,l,u,h,d;if(zv(_N(wxt(n,(zWt(),dme)))))for(r=new Gf(n.j);r.a<r.c.c.length;)for(s=0,c=(a=Z0(jz(Q1(r),11).g)).length;s<c;++s)(o=a[s]).d.i==n&&zv(_N(wxt(o,fme)))&&(u=o.c,(l=jz(OW(t.b,u),10))||(lct(l=dWt(u,(YCt(),KSe),u.j,-1,null,null,u.o,jz(wxt(e,qpe),103),e),(lKt(),fde),u),WK(t.b,u,l),Gz(e.a,l)),d=o.d,(h=jz(OW(t.b,d),10))||(lct(h=dWt(d,(YCt(),KSe),d.j,1,null,null,d.o,jz(wxt(e,qpe),103),e),(lKt(),fde),d),WK(t.b,d,h),Gz(e.a,h)),AJ(i=G4(o),jz(PH(l.j,0),11)),CJ(i,jz(PH(h.j,0),11)),ZDt(t.a,o,new Bj(i,e,(oit(),zwe))),jz(wxt(e,(lKt(),Zhe)),21).Fc((dNt(),uhe)))}function Cqt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g;for(DAt(n,"Label dummy switching",1),i=jz(wxt(e,(zWt(),Wpe)),227),mot(e),r=yMt(e,i),t.a=P7(MLe,VXt,25,e.b.c.length,15,1),BTt(),u=0,f=(s=Est(Vy(oue,1),BYt,227,0,[Zle,Jle,Xle,Qle,tue,Yle])).length;u<f;++u)if(((o=s[u])==tue||o==Yle||o==Qle)&&!jz(AL(r.a,o)?r.b[o.g]:null,15).dc()){Qot(t,e);break}for(h=0,g=(c=Est(Vy(oue,1),BYt,227,0,[Zle,Jle,Xle,Qle,tue,Yle])).length;h<g;++h)(o=c[h])==tue||o==Yle||o==Qle||HFt(t,jz(AL(r.a,o)?r.b[o.g]:null,15));for(l=0,d=(a=Est(Vy(oue,1),BYt,227,0,[Zle,Jle,Xle,Qle,tue,Yle])).length;l<d;++l)((o=a[l])==tue||o==Yle||o==Qle)&&HFt(t,jz(AL(r.a,o)?r.b[o.g]:null,15));t.a=null,zEt(n)}function Aqt(t,e){var n,i,r,o,a,s,c,l,u,h,d;switch(t.k.g){case 1:if(i=jz(wxt(t,(lKt(),fde)),17),(n=jz(wxt(i,gde),74))?zv(_N(wxt(i,Ede)))&&(n=Zct(n)):n=new kk,l=jz(wxt(t,cde),11)){if(e<=(u=Ict(Est(Vy(xxe,1),cYt,8,0,[l.i.n,l.n,l.a]))).a)return u.b;n4(n,u,n.a,n.a.a)}if(h=jz(wxt(t,lde),11)){if((d=Ict(Est(Vy(xxe,1),cYt,8,0,[h.i.n,h.n,h.a]))).a<=e)return d.b;n4(n,d,n.c.b,n.c)}if(n.b>=2){for(a=jz(h3(c=cbt(n,0)),8),s=jz(h3(c),8);s.a<e&&c.b!=c.d.c;)a=s,s=jz(h3(c),8);return a.b+(e-a.a)/(s.a-a.a)*(s.b-a.b)}break;case 3:switch(r=(o=jz(wxt(jz(PH(t.j,0),11),(lKt(),fde)),11)).i,o.j.g){case 1:return r.n.b;case 3:return r.n.b+r.o.b}}return j_t(t).b}function xqt(t){var e,n,i,r,o,a,s,c,l,h;for(o=new Gf(t.d.b);o.a<o.c.c.length;)for(s=new Gf(jz(Q1(o),29).a);s.a<s.c.c.length;)!zv(_N(wxt(a=jz(Q1(s),10),(zWt(),_pe))))||c3(lft(a))?(r=new qY(a.n.a-a.d.b,a.n.b-a.d.d,a.o.a+a.d.b+a.d.c,a.o.b+a.d.d+a.d.a),e=SL(ex(JA(tx(new Gw,a),r),fle),t.a),TL(QA(Gnt(new Uw,Est(Vy(hie,1),zKt,57,0,[e])),e),t.a),c=new Lb,WK(t.e,e,c),(n=F3(new aU(ZP(uft(a).a.Kc(),new u)))-F3(new aU(ZP(hft(a).a.Kc(),new u))))<0?Ust(c,!0,(jht(),RTe)):n>0&&Ust(c,!0,(jht(),FTe)),a.k==(aEt(),Cse)&&dY(c),WK(t.f,a,e)):((l=(i=jz(eZ(lft(a)),17)).c.i)==a&&(l=i.d.i),h=new nD(l,UR(jM(a.n),l.n)),WK(t.b,a,h))}function Eqt(t,e,n){var r,o,a,s,c,l,u,h;switch(DAt(n,"Node promotion heuristic",1),t.g=e,kGt(t),t.q=jz(wxt(e,(zWt(),Ame)),260),h=jz(wxt(t.g,Cme),19).a,a=new ui,t.q.g){case 2:case 1:default:FVt(t,a);break;case 3:for(t.q=(cLt(),Swe),FVt(t,a),l=0,c=new Gf(t.a);c.a<c.c.c.length;)s=jz(Q1(c),19),l=i.Math.max(l,s.a);l>t.j&&(t.q=_we,FVt(t,a));break;case 4:for(t.q=(cLt(),Swe),FVt(t,a),u=0,o=new Gf(t.b);o.a<o.c.c.length;)r=CN(Q1(o)),u=i.Math.max(u,(kK(r),r));u>t.k&&(t.q=xwe,FVt(t,a));break;case 6:FVt(t,new ap(EQ(i.Math.ceil(t.f.length*h/100))));break;case 5:FVt(t,new sp(EQ(i.Math.ceil(t.d*h/100))))}sNt(t,e),zEt(n)}function Tqt(t,e,n){var i,r,o,a;this.j=t,this.e=VCt(t),this.o=this.j.e,this.i=!!this.o,this.p=this.i?jz(PH(n,mK(this.o).p),214):null,r=jz(wxt(t,(lKt(),Zhe)),21),this.g=r.Hc((dNt(),uhe)),this.b=new Mb,this.d=new fpt(this.e),a=jz(wxt(this.j,Ade),230),this.q=zat(e,a,this.e),this.k=new rJ(this),o=o6(Est(Vy(vle,1),zKt,225,0,[this,this.d,this.k,this.q])),e!=(sit(),Ske)||zv(_N(wxt(t,(zWt(),Ppe))))?e==Ske&&zv(_N(wxt(t,(zWt(),Ppe))))?(i=new UCt(this.e),o.c[o.c.length]=i,this.c=new mrt(i,a,jz(this.q,402))):this.c=new mT(e,this):(i=new UCt(this.e),o.c[o.c.length]=i,this.c=new V2(i,a,jz(this.q,402))),Gz(o,this.c),TVt(o,this.e),this.s=fWt(this.k)}function Sqt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;for(d=(l=jz(eP(new dm(cbt(new hm(e).a.d,0))),86))?jz(wxt(l,(VHt(),iye)),86):null,r=1;l&&d;){for(a=0,w=0,n=l,i=d,o=0;o<r;o++)n=V7(n),i=V7(i),w+=Vv(CN(wxt(n,(VHt(),aye)))),a+=Vv(CN(wxt(i,aye)));if(b=Vv(CN(wxt(d,(VHt(),lye)))),m=Vv(CN(wxt(l,lye))),u=y4(l,d),0<(h=b+a+t.a+u-m-w)){for(s=e,c=0;s&&s!=i;)++c,s=jz(wxt(s,rye),86);if(!s)return;for(p=h/c,s=e;s!=i;)g=Vv(CN(wxt(s,lye)))+h,lct(s,lye,g),f=Vv(CN(wxt(s,aye)))+h,lct(s,aye,f),h-=p,s=jz(wxt(s,rye),86)}++r,d=(l=0==l.d.b?QFt(new hm(e),r):jz(eP(new dm(cbt(new hm(l).a.d,0))),86))?jz(wxt(l,iye),86):null}}function Dqt(t,e){var n,i,r,o,a,s,c,l,h;for(s=!0,r=0,c=t.f[e.p],l=e.o.b+t.n,n=t.c[e.p][2],i4(t.a,c,ndt(jz(PH(t.a,c),19).a-1+n)),i4(t.b,c,Vv(CN(PH(t.b,c)))-l+n*t.e),++c>=t.i?(++t.i,Gz(t.a,ndt(1)),Gz(t.b,l)):(i=t.c[e.p][1],i4(t.a,c,ndt(jz(PH(t.a,c),19).a+1-i)),i4(t.b,c,Vv(CN(PH(t.b,c)))+l-i*t.e)),(t.q==(cLt(),_we)&&(jz(PH(t.a,c),19).a>t.j||jz(PH(t.a,c-1),19).a>t.j)||t.q==xwe&&(Vv(CN(PH(t.b,c)))>t.k||Vv(CN(PH(t.b,c-1)))>t.k))&&(s=!1),o=new aU(ZP(uft(e).a.Kc(),new u));gBt(o);)a=jz(q4(o),17).c.i,t.f[a.p]==c&&(r+=jz((h=Dqt(t,a)).a,19).a,s=s&&zv(_N(h.b)));return t.f[e.p]=c,new nD(ndt(r+=t.c[e.p][0]),(cL(),!!s))}function Iqt(t,e,n,r,o){var a,s,c,l,u,h,d,f,g,p,m,b,w;for(d=new Pb,s=new Mb,iDt(t,n,t.d.fg(),s,d),iDt(t,r,t.d.gg(),s,d),t.b=.2*(m=$Bt(dtt(new OH(null,new d1(s,16)),new Ta)),b=$Bt(dtt(new OH(null,new d1(s,16)),new Sa)),i.Math.min(m,b)),a=0,c=0;c<s.c.length-1;c++)for(u1(c,s.c.length),l=jz(s.c[c],112),p=c+1;p<s.c.length;p++)a+=pVt(t,l,(u1(p,s.c.length),jz(s.c[p],112)));for(f=jz(wxt(e,(lKt(),Ade)),230),a>=2&&(w=YPt(s,!0,f),!t.e&&(t.e=new um(t)),cmt(t.e,w,s,t.b)),nAt(s,f),rUt(s),g=-1,h=new Gf(s);h.a<h.c.c.length;)u=jz(Q1(h),112),i.Math.abs(u.s-u.c)<hJt||(g=i.Math.max(g,u.o),t.d.dg(u,o,t.c));return t.d.a.a.$b(),g+1}function Bqt(t,e){var n,i;Vv(CN(wxt(e,(zWt(),wbe))))<2&&lct(e,wbe,2),jz(wxt(e,qpe),103)==(jht(),jTe)&&lct(e,qpe,Wdt(e)),0==(n=jz(wxt(e,dbe),19)).a?lct(e,(lKt(),Ade),new cft):lct(e,(lKt(),Ade),new E5(n.a)),null==_N(wxt(e,Pme))&&lct(e,Pme,(cL(),VD(wxt(e,Zpe))===VD((Aft(),KTe)))),XA(new OH(null,new d1(e.a,16)),new Og(t)),XA(dtt(new OH(null,new d1(e.b,16)),new we),new Ng(t)),i=new cqt(e),lct(e,(lKt(),Dde),i),c2(t.a),EG(t.a,(kxt(),Oae),jz(wxt(e,Vpe),246)),EG(t.a,Nae,jz(wxt(e,xme),246)),EG(t.a,Rae,jz(wxt(e,zpe),246)),EG(t.a,Fae,jz(wxt(e,Rme),246)),EG(t.a,jae,xat(jz(wxt(e,Zpe),218))),rB(t.a,MWt(e)),lct(e,Cde,BHt(t.a,e))}function Mqt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;return d=t.c[e],f=t.c[n],!((g=jz(wxt(d,(lKt(),ide)),15))&&0!=g.gc()&&g.Hc(f)||(p=d.k!=(aEt(),xse)&&f.k!=xse,w=(m=jz(wxt(d,nde),10))!=(b=jz(wxt(f,nde),10)),k=!!m&&m!=d||!!b&&b!=f,v=skt(d,(vGt(),sDe)),y=skt(f,ADe),k|=skt(d,ADe)||skt(f,sDe),p&&(k&&w||v||y))||d.k==(aEt(),Tse)&&f.k==Ese||f.k==(aEt(),Tse)&&d.k==Ese)&&(u=t.c[e],o=t.c[n],r=u_t(t.e,u,o,(vGt(),EDe)),c=u_t(t.i,u,o,aDe),CLt(t.f,u,o),l=Plt(t.b,u,o)+jz(r.a,19).a+jz(c.a,19).a+t.f.d,s=Plt(t.b,o,u)+jz(r.b,19).a+jz(c.b,19).a+t.f.b,t.a&&(h=jz(wxt(u,fde),11),a=jz(wxt(o,fde),11),l+=jz((i=Vvt(t.g,h,a)).a,19).a,s+=jz(i.b,19).a),l>s)}function Pqt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m;for(n=jz(wxt(t,(zWt(),tbe)),98),s=t.f,a=t.d,c=s.a+a.b+a.c,l=0-a.d-t.c.b,h=s.b+a.d+a.a-t.c.b,u=new Mb,d=new Mb,o=new Gf(e);o.a<o.c.c.length;){switch(r=jz(Q1(o),10),n.g){case 1:case 2:case 3:FLt(r);break;case 4:g=(f=jz(wxt(r,Qme),8))?f.a:0,r.n.a=c*Vv(CN(wxt(r,(lKt(),_de))))-g,Zat(r,!0,!1);break;case 5:m=(p=jz(wxt(r,Qme),8))?p.a:0,r.n.a=Vv(CN(wxt(r,(lKt(),_de))))-m,Zat(r,!0,!1),s.a=i.Math.max(s.a,r.n.a+r.o.a/2)}switch(jz(wxt(r,(lKt(),Khe)),61).g){case 1:r.n.b=l,u.c[u.c.length]=r;break;case 3:r.n.b=h,d.c[d.c.length]=r}}switch(n.g){case 1:case 2:Nht(u,t),Nht(d,t);break;case 3:Rht(u,t),Rht(d,t)}}function Lqt(t,e){var n,i,r,o,a,s,c,l,u,h;for(u=new Mb,h=new Bb,o=null,r=0,i=0;i<e.length;++i)switch(Nlt(o,n=e[i])&&(r=Tpt(t,h,u,Nke,r)),BO(n,(lKt(),nde))&&(o=jz(wxt(n,nde),10)),n.k.g){case 0:for(c=zB(Nz(oft(n,(vGt(),sDe)),new No));Qit(c);)a=jz(x9(c),11),t.d[a.p]=r++,u.c[u.c.length]=a;for(r=Tpt(t,h,u,Nke,r),l=zB(Nz(oft(n,ADe),new No));Qit(l);)a=jz(x9(l),11),t.d[a.p]=r++,u.c[u.c.length]=a;break;case 3:oft(n,Oke).dc()||(a=jz(oft(n,Oke).Xb(0),11),t.d[a.p]=r++,u.c[u.c.length]=a),oft(n,Nke).dc()||f3(h,n);break;case 1:for(s=oft(n,(vGt(),EDe)).Kc();s.Ob();)a=jz(s.Pb(),11),t.d[a.p]=r++,u.c[u.c.length]=a;oft(n,aDe).Jc(new ZT(h,n))}return Tpt(t,h,u,Nke,r),u}function Oqt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;for(u=NXt,h=NXt,c=RXt,l=RXt,f=new Gf(e.i);f.a<f.c.c.length;)d=jz(Q1(f),65),AB(o=jz(jz(OW(t.g,d.a),46).b,33),d.b.c,d.b.d),u=i.Math.min(u,o.i),h=i.Math.min(h,o.j),c=i.Math.max(c,o.i+o.g),l=i.Math.max(l,o.j+o.f);for(g=jz(QBt(t.c,(Axt(),hAe)),116),RGt(t.c,c-u+(g.b+g.c),l-h+(g.d+g.a),!0,!0),hxt(t.c,-u+g.b,-h+g.d),r=new DP(eX(t.c));r.e!=r.i.gc();)s=rNt(n=jz(vbt(r),79),!0,!0),p=Ext(n),b=Dxt(n),m=new PS(p.i+p.g/2,p.j+p.f/2),a=new PS(b.i+b.g/2,b.j+b.f/2),Uyt(w=UR(new PS(a.a,a.b),m),p.g,p.f),qR(m,w),Uyt(k=UR(new PS(m.a,m.b),a),b.g,b.f),qR(a,k),EB(s,m.a,m.b),xB(s,a.a,a.b)}function Nqt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f;if(t.c=t.d,d=null==(f=_N(wxt(e,(zWt(),fbe))))||(kK(f),f),o=jz(wxt(e,(lKt(),Zhe)),21).Hc((dNt(),uhe)),n=!((r=jz(wxt(e,tbe),98))==(YCt(),qSe)||r==GSe||r==USe),!d||!n&&o)h=new Xv(Est(Vy(vse,1),ZJt,37,0,[e]));else{for(u=new Gf(e.a);u.a<u.c.c.length;)jz(Q1(u),10).p=0;for(h=new Mb,l=new Gf(e.a);l.a<l.c.c.length;)if(i=Mjt(t,jz(Q1(l),10),null)){for(Vat(c=new wit,e),lct(c,Uhe,jz(i.b,21)),kX(c.d,e.d),lct(c,$me,null),s=jz(i.a,15).Kc();s.Ob();)a=jz(s.Pb(),10),Gz(c.a,a),a.a=c;h.Fc(c)}o&&(VD(wxt(e,Epe))===VD(($ht(),use))?t.c=t.b:t.c=t.a)}return VD(wxt(e,Epe))!==VD(($ht(),dse))&&(AX(),h.ad(new Le)),h}function Rqt(t){Mx(t,new AAt(b_(f_(m_(d_(p_(g_(new ms,Y3t),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new Oa),X3t),Jdt((lBt(),YIe))))),o2(t,Y3t,YQt,Sye),o2(t,Y3t,bJt,20),o2(t,Y3t,KQt,gJt),o2(t,Y3t,mJt,ndt(1)),o2(t,Y3t,vJt,(cL(),!0)),o2(t,Y3t,G2t,wbt(yye)),o2(t,Y3t,EJt,wbt(Cye)),o2(t,Y3t,$Jt,wbt(Aye)),o2(t,Y3t,xJt,wbt(xye)),o2(t,Y3t,TJt,wbt(_ye)),o2(t,Y3t,AJt,wbt(Eye)),o2(t,Y3t,SJt,wbt(Dye)),o2(t,Y3t,G3t,wbt(Lye)),o2(t,Y3t,W3t,wbt(Bye))}function Fqt(t){t.q||(t.q=!0,t.p=vat(t,0),t.a=vat(t,1),Rrt(t.a,0),t.f=vat(t,2),Rrt(t.f,1),Nrt(t.f,2),t.n=vat(t,3),Nrt(t.n,3),Nrt(t.n,4),Nrt(t.n,5),Nrt(t.n,6),t.g=vat(t,4),Rrt(t.g,7),Nrt(t.g,8),t.c=vat(t,5),Rrt(t.c,7),Rrt(t.c,8),t.i=vat(t,6),Rrt(t.i,9),Rrt(t.i,10),Rrt(t.i,11),Rrt(t.i,12),Nrt(t.i,13),t.j=vat(t,7),Rrt(t.j,9),t.d=vat(t,8),Rrt(t.d,3),Rrt(t.d,4),Rrt(t.d,5),Rrt(t.d,6),Nrt(t.d,7),Nrt(t.d,8),Nrt(t.d,9),Nrt(t.d,10),t.b=vat(t,9),Nrt(t.b,0),Nrt(t.b,1),t.e=vat(t,10),Nrt(t.e,1),Nrt(t.e,2),Nrt(t.e,3),Nrt(t.e,4),Rrt(t.e,5),Rrt(t.e,6),Rrt(t.e,7),Rrt(t.e,8),Rrt(t.e,9),Rrt(t.e,10),Nrt(t.e,11),t.k=vat(t,11),Nrt(t.k,0),Nrt(t.k,1),t.o=yat(t,12),t.s=yat(t,13))}function jqt(t,e){e.dc()&&tV(t.j,!0,!0,!0,!0),Pht(e,(vGt(),fDe))&&tV(t.j,!0,!0,!0,!1),Pht(e,cDe)&&tV(t.j,!1,!0,!0,!0),Pht(e,yDe)&&tV(t.j,!0,!0,!1,!0),Pht(e,CDe)&&tV(t.j,!0,!1,!0,!0),Pht(e,gDe)&&tV(t.j,!1,!0,!0,!1),Pht(e,lDe)&&tV(t.j,!1,!0,!1,!0),Pht(e,_De)&&tV(t.j,!0,!1,!1,!0),Pht(e,vDe)&&tV(t.j,!0,!1,!0,!1),Pht(e,wDe)&&tV(t.j,!0,!0,!0,!0),Pht(e,hDe)&&tV(t.j,!0,!0,!0,!0),Pht(e,wDe)&&tV(t.j,!0,!0,!0,!0),Pht(e,uDe)&&tV(t.j,!0,!0,!0,!0),Pht(e,kDe)&&tV(t.j,!0,!0,!0,!0),Pht(e,bDe)&&tV(t.j,!0,!0,!0,!0),Pht(e,mDe)&&tV(t.j,!0,!0,!0,!0)}function $qt(t,e,n,i,r){var o,a,s,c,l,u,h,d,f,g,p,m;for(o=new Mb,l=new Gf(i);l.a<l.c.c.length;)if(a=null,(s=jz(Q1(l),441)).f==(oit(),zwe))for(g=new Gf(s.e);g.a<g.c.c.length;)mK(m=(f=jz(Q1(g),17)).d.i)==e?xet(t,e,s,f,s.b,f.d):!n||fat(m,n)?Hxt(t,e,s,i,f):((d=MVt(t,e,n,f,s.b,zwe,a))!=a&&(o.c[o.c.length]=d),d.c&&(a=d));else for(h=new Gf(s.e);h.a<h.c.c.length;)if(mK(p=(u=jz(Q1(h),17)).c.i)==e)xet(t,e,s,u,u.c,s.b);else{if(!n||fat(p,n))continue;(d=MVt(t,e,n,u,s.b,$we,a))!=a&&(o.c[o.c.length]=d),d.c&&(a=d)}for(c=new Gf(o);c.a<c.c.c.length;)s=jz(Q1(c),441),-1!=y9(e.a,s.a,0)||Gz(e.a,s.a),s.c&&(r.c[r.c.length]=s)}function zqt(t,e,n){var i,r,o,a,s,c,l,u;for(c=new Mb,s=new Gf(e.a);s.a<s.c.c.length;)for(u=oft(jz(Q1(s),10),(vGt(),aDe)).Kc();u.Ob();)for(r=new Gf(jz(u.Pb(),11).g);r.a<r.c.c.length;)!h4(i=jz(Q1(r),17))&&i.c.i.c==i.d.i.c||h4(i)||i.d.i.c!=n||(c.c[c.c.length]=i);for(a=eat(n.a).Kc();a.Ob();)for(u=oft(jz(a.Pb(),10),(vGt(),EDe)).Kc();u.Ob();)for(r=new Gf(jz(u.Pb(),11).e);r.a<r.c.c.length;)if((h4(i=jz(Q1(r),17))||i.c.i.c!=i.d.i.c)&&!h4(i)&&i.c.i.c==e){for(xO((l=new C2(c,c.c.length)).b>0),o=jz(l.a.Xb(l.c=--l.b),17);o!=i&&l.b>0;)t.a[o.p]=!0,t.a[i.p]=!0,xO(l.b>0),o=jz(l.a.Xb(l.c=--l.b),17);l.b>0&&lK(l)}}function Vqt(t,e,n){var i,r,o,a,s,c,l,u,h;if(t.a!=e.Aj())throw $b(new Rv(g6t+e.ne()+p6t));if(i=Tht((STt(),XMe),e).$k())return i.Aj().Nh().Ih(i,n);if(a=Tht(XMe,e).al()){if(null==n)return null;if((s=jz(n,15)).dc())return"";for(h=new Ay,o=s.Kc();o.Ob();)r=o.Pb(),iI(h,a.Aj().Nh().Ih(a,r)),h.a+=" ";return NI(h,h.a.length-1)}if(!(u=Tht(XMe,e).bl()).dc()){for(l=u.Kc();l.Ob();)if((c=jz(l.Pb(),148)).wj(n))try{if(null!=(h=c.Aj().Nh().Ih(c,n)))return h}catch(t){if(!iP(t=hst(t),102))throw $b(t)}throw $b(new Rv("Invalid value: '"+n+"' for datatype :"+e.ne()))}return jz(e,834).Fj(),null==n?null:iP(n,172)?""+jz(n,172).a:tlt(n)==wee?$M(TIe[0],jz(n,199)):$ft(n)}function Hqt(t){var e,n,r,o,a,s,c,l,u;for(l=new YA,s=new YA,o=new Gf(t);o.a<o.c.c.length;)(n=jz(Q1(o),128)).v=0,n.n=n.i.c.length,n.u=n.t.c.length,0==n.n&&n4(l,n,l.c.b,l.c),0==n.u&&0==n.r.a.gc()&&n4(s,n,s.c.b,s.c);for(a=-1;0!=l.b;)for(e=new Gf((n=jz(tyt(l,0),128)).t);e.a<e.c.c.length;)(u=jz(Q1(e),268).b).v=i.Math.max(u.v,n.v+1),a=i.Math.max(a,u.v),--u.n,0==u.n&&n4(l,u,l.c.b,l.c);if(a>-1){for(r=cbt(s,0);r.b!=r.d.c;)(n=jz(h3(r),128)).v=a;for(;0!=s.b;)for(e=new Gf((n=jz(tyt(s,0),128)).i);e.a<e.c.c.length;)0==(c=jz(Q1(e),268).a).r.a.gc()&&(c.v=i.Math.min(c.v,n.v-1),--c.u,0==c.u&&n4(s,c,s.c.b,s.c))}}function qqt(t,e,n,r,o){var a,s,c,l;return l=NXt,s=!1,a=!!(c=qzt(t,UR(new PS(e.a,e.b),t),qR(new PS(n.a,n.b),o),UR(new PS(r.a,r.b),n)))&&!(i.Math.abs(c.a-t.a)<=c4t&&i.Math.abs(c.b-t.b)<=c4t||i.Math.abs(c.a-e.a)<=c4t&&i.Math.abs(c.b-e.b)<=c4t),(c=qzt(t,UR(new PS(e.a,e.b),t),n,o))&&((i.Math.abs(c.a-t.a)<=c4t&&i.Math.abs(c.b-t.b)<=c4t)==(i.Math.abs(c.a-e.a)<=c4t&&i.Math.abs(c.b-e.b)<=c4t)||a?l=i.Math.min(l,uK(UR(c,n))):s=!0),(c=qzt(t,UR(new PS(e.a,e.b),t),r,o))&&(s||(i.Math.abs(c.a-t.a)<=c4t&&i.Math.abs(c.b-t.b)<=c4t)==(i.Math.abs(c.a-e.a)<=c4t&&i.Math.abs(c.b-e.b)<=c4t)||a)&&(l=i.Math.min(l,uK(UR(c,r)))),l}function Uqt(t){Mx(t,new AAt(f_(m_(d_(p_(g_(new ms,FJt),jJt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new pe),pJt))),o2(t,FJt,yJt,wbt(kae)),o2(t,FJt,CJt,(cL(),!0)),o2(t,FJt,EJt,wbt(_ae)),o2(t,FJt,$Jt,wbt(Cae)),o2(t,FJt,xJt,wbt(Aae)),o2(t,FJt,TJt,wbt(yae)),o2(t,FJt,AJt,wbt(xae)),o2(t,FJt,SJt,wbt(Eae)),o2(t,FJt,PJt,wbt(wae)),o2(t,FJt,OJt,wbt(mae)),o2(t,FJt,NJt,wbt(bae)),o2(t,FJt,RJt,wbt(vae)),o2(t,FJt,LJt,wbt(pae))}function Gqt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m;for(DAt(e,"Interactive crossing minimization",1),a=0,o=new Gf(t.b);o.a<o.c.c.length;)(i=jz(Q1(o),29)).p=a++;for(p=new O_((d=VCt(t)).length),TVt(new Xv(Est(Vy(vle,1),zKt,225,0,[p])),d),g=0,a=0,r=new Gf(t.b);r.a<r.c.c.length;){for(n=0,h=0,u=new Gf((i=jz(Q1(r),29)).a);u.a<u.c.c.length;)for((c=jz(Q1(u),10)).n.a>0&&(n+=c.n.a+c.o.a/2,++h),f=new Gf(c.j);f.a<f.c.c.length;)jz(Q1(f),11).p=g++;for(h>0&&(n/=h),m=P7(MLe,VXt,25,i.a.c.length,15,1),s=0,l=new Gf(i.a);l.a<l.c.c.length;)(c=jz(Q1(l),10)).p=s++,m[c.p]=Aqt(c,n),c.k==(aEt(),xse)&&lct(c,(lKt(),pde),m[c.p]);AX(),bM(i.a,new Vp(m)),ijt(p,d,a,!0),++a}zEt(e)}function Wqt(t,e){var n,i,r,o,a,s,c,l,u;if(5!=e.e){if(null!=(l=e).b&&null!=t.b){for(CMt(t),VVt(t),CMt(l),VVt(l),n=P7(SLe,lXt,25,t.b.length+l.b.length,15,1),u=0,i=0,a=0;i<t.b.length&&a<l.b.length;)if(r=t.b[i],o=t.b[i+1],s=l.b[a],c=l.b[a+1],o<s)n[u++]=t.b[i++],n[u++]=t.b[i++];else if(o>=s&&r<=c)s<=r&&o<=c?i+=2:s<=r?(t.b[i]=c+1,a+=2):o<=c?(n[u++]=r,n[u++]=s-1,i+=2):(n[u++]=r,n[u++]=s-1,t.b[i]=c+1,a+=2);else{if(!(c<r))throw $b(new fv("Token#subtractRanges(): Internal Error: ["+t.b[i]+","+t.b[i+1]+"] - ["+l.b[a]+","+l.b[a+1]+"]"));a+=2}for(;i<t.b.length;)n[u++]=t.b[i++],n[u++]=t.b[i++];t.b=P7(SLe,lXt,25,u,15,1),oVt(n,0,t.b,0,u)}}else vqt(t,e)}function Kqt(t){var e,n,i,r,o,a,s;if(!t.A.dc()){if(t.A.Hc((wpt(),NDe))&&(jz(aY(t.b,(vGt(),sDe)),124).k=!0,jz(aY(t.b,ADe),124).k=!0,e=t.q!=(YCt(),GSe)&&t.q!=USe,Bd(jz(aY(t.b,aDe),124),e),Bd(jz(aY(t.b,EDe),124),e),Bd(t.g,e),t.A.Hc(RDe)&&(jz(aY(t.b,sDe),124).j=!0,jz(aY(t.b,ADe),124).j=!0,jz(aY(t.b,aDe),124).k=!0,jz(aY(t.b,EDe),124).k=!0,t.g.k=!0)),t.A.Hc(ODe))for(t.a.j=!0,t.a.k=!0,t.g.j=!0,t.g.k=!0,s=t.B.Hc((JFt(),UDe)),o=0,a=(r=tbt()).length;o<a;++o)i=r[o],(n=jz(aY(t.i,i),306))&&(omt(i)?(n.j=!0,n.k=!0):(n.j=!s,n.k=!s));t.A.Hc(LDe)&&t.B.Hc((JFt(),qDe))&&(t.g.j=!0,t.g.j=!0,t.a.j||(t.a.j=!0,t.a.k=!0,t.a.e=!0))}}function Yqt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g,p;for(n=new Gf(t.e.b);n.a<n.c.c.length;)for(r=new Gf(jz(Q1(n),29).a);r.a<r.c.c.length;)if(i=jz(Q1(r),10),c=(h=t.i[i.p]).a.e,s=h.d.e,i.n.b=c,p=s-c-i.o.b,e=IVt(i),dwt(),u=(i.q?i.q:(AX(),AX(),lne))._b((zWt(),Ome))?jz(wxt(i,Ome),197):jz(wxt(mK(i),Nme),197),e&&(u==lwe||u==cwe)&&(i.o.b+=p),e&&(u==hwe||u==lwe||u==cwe)){for(f=new Gf(i.j);f.a<f.c.c.length;)d=jz(Q1(f),11),(vGt(),hDe).Hc(d.j)&&(l=jz(OW(t.k,d),121),d.n.b=l.e-c);for(a=new Gf(i.b);a.a<a.c.c.length;)o=jz(Q1(a),70),(g=jz(wxt(i,Ime),21)).Hc((JBt(),MSe))?o.n.b+=p:g.Hc(PSe)&&(o.n.b+=p/2);(u==lwe||u==cwe)&&oft(i,(vGt(),ADe)).Jc(new rm(p))}}function Xqt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;if(!t.b)return!1;for(a=null,d=null,r=1,(c=new $7(null,null)).a[1]=t.b,h=c;h.a[r];)l=r,s=d,d=h,h=h.a[r],r=(i=t.a.ue(e,h.d))<0?0:1,0==i&&(!n.c||iY(h.e,n.d))&&(a=h),h&&h.b||Wv(h.a[r])||(Wv(h.a[1-r])?d=d.a[l]=frt(h,r):Wv(h.a[1-r])||(f=d.a[1-l])&&(Wv(f.a[1-l])||Wv(f.a[l])?(o=s.a[1]==d?1:0,Wv(f.a[l])?s.a[o]=n2(d,l):Wv(f.a[1-l])&&(s.a[o]=frt(d,l)),h.b=s.a[o].b=!0,s.a[o].a[0].b=!1,s.a[o].a[1].b=!1):(d.b=!1,f.b=!0,h.b=!0)));return a&&(n.b=!0,n.d=a.e,h!=a&&(dxt(t,c,a,u=new $7(h.d,h.e)),d==a&&(d=u)),d.a[d.a[1]==h?1:0]=h.a[h.a[0]?0:1],--t.c),t.b=c.a[1],t.b&&(t.b.b=!1),n.b}function Zqt(t){var e,n,r,o,a,s,c,l,u,h,d,f;for(o=new Gf(t.a.a.b);o.a<o.c.c.length;)for(l=(r=jz(Q1(o),57)).c.Kc();l.Ob();)c=jz(l.Pb(),57),r.a!=c.a&&(d=fB(t.a.d)?t.a.g.Oe(r,c):t.a.g.Pe(r,c),a=r.b.a+r.d.b+d-c.b.a,a=i.Math.ceil(a),a=i.Math.max(0,a),Z9(r,c)?(s=DL(new zw,t.d),e=(u=EQ(i.Math.ceil(c.b.a-r.b.a)))-(c.b.a-r.b.a),n=r,(h=l3(r).a)||(h=l3(c).a,e=-e,n=c),h&&(n.b.a-=e,h.n.a-=e),ULt(rx(ix(ox(nx(new $w,i.Math.max(0,u)),1),s),t.c[r.a.d])),ULt(rx(ix(ox(nx(new $w,i.Math.max(0,-u)),1),s),t.c[c.a.d]))):(f=1,(iP(r.g,145)&&iP(c.g,10)||iP(c.g,145)&&iP(r.g,10))&&(f=2),ULt(rx(ix(ox(nx(new $w,EQ(a)),f),t.c[r.a.d]),t.c[c.a.d]))))}function Qqt(t,e,n){var r,o,a,s,c,l,u,h,d,f;if(n)for(r=-1,h=new C2(e,0);h.b<h.d.gc();){if(xO(h.b<h.d.gc()),c=jz(h.d.Xb(h.c=h.b++),10),null==(d=t.c[c.c.p][c.p].a)){for(s=r+1,a=new C2(e,h.b);a.b<a.d.gc();)if(null!=(f=dP(t,(xO(a.b<a.d.gc()),jz(a.d.Xb(a.c=a.b++),10))).a)){kK(f),s=f;break}d=(r+s)/2,t.c[c.c.p][c.p].a=d,t.c[c.c.p][c.p].d=(kK(d),d),t.c[c.c.p][c.p].b=1}kK(d),r=d}else{for(o=0,u=new Gf(e);u.a<u.c.c.length;)c=jz(Q1(u),10),null!=t.c[c.c.p][c.p].a&&(o=i.Math.max(o,Vv(t.c[c.c.p][c.p].a)));for(o+=2,l=new Gf(e);l.a<l.c.c.length;)c=jz(Q1(l),10),null==t.c[c.c.p][c.p].a&&(d=zMt(t.i,24)*aZt*o-1,t.c[c.c.p][c.p].a=d,t.c[c.c.p][c.p].d=d,t.c[c.c.p][c.p].b=1)}}function Jqt(){OI(FBe,new el),OI(OBe,new dl),OI($Be,new Cl),OI(jBe,new Dl),OI(zBe,new Il),OI(qBe,new Bl),OI(UBe,new Ml),OI(jIe,new Pl),OI(FIe,new Uc),OI($Ie,new Gc),OI(IIe,new Wc),OI(WBe,new Kc),OI(zIe,new Yc),OI(KBe,new Xc),OI(YBe,new Zc),OI(RBe,new Qc),OI(NBe,new Jc),OI(qMe,new tl),OI(GBe,new nl),OI(TMe,new il),OI(vee,new rl),OI(Vy(BLe,1),new ol),OI(Cee,new al),OI(xee,new sl),OI(wee,new cl),OI(NLe,new ll),OI(Eee,new ul),OI(rBe,new hl),OI(bBe,new fl),OI(uPe,new gl),OI(DMe,new pl),OI(Tee,new ml),OI(Iee,new bl),OI(Bte,new wl),OI(Nee,new kl),OI(Pte,new vl),OI(tPe,new yl),OI(RLe,new _l),OI(Fee,new Al),OI(Yee,new xl),OI(cBe,new El),OI(FLe,new Tl)}function tUt(t,e,n){var i,r,o,a,s,c,l,u,h;for(!n&&(n=Hst(e.q.getTimezoneOffset())),r=6e4*(e.q.getTimezoneOffset()-n.a),c=s=new xN(ift(uat(e.q.getTime()),r)),s.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,c=new xN(ift(uat(e.q.getTime()),r))),u=new Ty,l=t.a.length,o=0;o<l;)if((i=lY(t.a,o))>=97&&i<=122||i>=65&&i<=90){for(a=o+1;a<l&&lY(t.a,a)==i;++a);oKt(u,i,a-o,s,c,n),o=a}else if(39==i){if(++o<l&&39==lY(t.a,o)){u.a+="'",++o;continue}for(h=!1;!h;){for(a=o;a<l&&39!=lY(t.a,a);)++a;if(a>=l)throw $b(new Rv("Missing trailing '"));a+1<l&&39==lY(t.a,a+1)?++a:h=!0,aI(u,lO(t.a,o,a)),o=a+1}}else u.a+=String.fromCharCode(i),++o;return u.a}function eUt(t){var e,n,i,r,o,a,s,c;for(e=null,i=new Gf(t);i.a<i.c.c.length;)Vv(uP((n=jz(Q1(i),233)).g,n.d[0]).a),n.b=null,n.e&&n.e.gc()>0&&0==n.c&&(!e&&(e=new Mb),e.c[e.c.length]=n);if(e)for(;0!=e.c.length;){if((n=jz(s6(e,0),233)).b&&n.b.c.length>0)for(!n.b&&(n.b=new Mb),o=new Gf(n.b);o.a<o.c.c.length;)if(Hv(uP((r=jz(Q1(o),233)).g,r.d[0]).a)==Hv(uP(n.g,n.d[0]).a)){if(y9(t,r,0)>y9(t,n,0))return new nD(r,n)}else if(Vv(uP(r.g,r.d[0]).a)>Vv(uP(n.g,n.d[0]).a))return new nD(r,n);for(s=(!n.e&&(n.e=new Mb),n.e).Kc();s.Ob();)!(a=jz(s.Pb(),233)).b&&(a.b=new Mb),BJ(0,(c=a.b).c.length),CE(c.c,0,n),a.c==c.c.length&&(e.c[e.c.length]=a)}return null}function nUt(t,e){var n,i,r,o,a,s;if(null==t)return qKt;if(null!=e.a.zc(t,e))return"[...]";for(n=new Bat(jKt,"[","]"),o=0,a=(r=t).length;o<a;++o)null!=(i=r[o])&&4&tlt(i).i?!Array.isArray(i)||(s=mtt(i))>=14&&s<=16?iP(i,177)?h6(n,NSt(jz(i,177))):iP(i,190)?h6(n,ZCt(jz(i,190))):iP(i,195)?h6(n,vEt(jz(i,195))):iP(i,2012)?h6(n,QCt(jz(i,2012))):iP(i,48)?h6(n,OSt(jz(i,48))):iP(i,364)?h6(n,pDt(jz(i,364))):iP(i,832)?h6(n,LSt(jz(i,832))):iP(i,104)&&h6(n,PSt(jz(i,104))):e.a._b(i)?(n.a?aI(n.a,n.b):n.a=new uL(n.d),rI(n.a,"[...]")):h6(n,nUt(ent(i),new IH(e))):h6(n,null==i?qKt:$ft(i));return n.a?0==n.e.length?n.a.a:n.a.a+""+n.e:n.c}function iUt(t,e,n,r){var o,a,s,c,l,u,h,d,f,g,p,m;for(g=VEt(rNt(e,!1,!1)),r&&(g=Zct(g)),m=Vv(CN(QBt(e,(_bt(),poe)))),xO(0!=g.b),f=jz(g.a.a.c,8),u=jz(Obt(g,1),8),g.b>2?(pst(l=new Mb,new s1(g,1,g.b)),Vat(p=new _Bt(GWt(l,m+t.a)),e),n.c[n.c.length]=p):p=jz(OW(t.b,r?Ext(e):Dxt(e)),266),s=Ext(e),r&&(s=Dxt(e)),a=nTt(f,s),c=m+t.a,a.a?(c+=i.Math.abs(f.b-u.b),d=new PS(u.a,(u.b+f.b)/2)):(c+=i.Math.abs(f.a-u.a),d=new PS((u.a+f.a)/2,u.b)),WK(r?t.d:t.c,e,new Skt(p,a,d,c)),WK(t.b,e,p),!e.n&&(e.n=new tG(VIe,e,1,7)),h=new DP(e.n);h.e!=h.i.gc();)o=ZRt(t,jz(vbt(h),137),!0,0,0),n.c[n.c.length]=o}function rUt(t){var e,n,r,o,a,s,c,l,u;for(l=new Mb,s=new Mb,a=new Gf(t);a.a<a.c.c.length;)Gd(r=jz(Q1(a),112),r.f.c.length),Wd(r,r.k.c.length),0==r.d&&(l.c[l.c.length]=r),0==r.i&&0==r.e.b&&(s.c[s.c.length]=r);for(n=-1;0!=l.c.length;)for(e=new Gf((r=jz(s6(l,0),112)).k);e.a<e.c.c.length;)Kd(u=jz(Q1(e),129).b,i.Math.max(u.o,r.o+1)),n=i.Math.max(n,u.o),Gd(u,u.d-1),0==u.d&&(l.c[l.c.length]=u);if(n>-1){for(o=new Gf(s);o.a<o.c.c.length;)(r=jz(Q1(o),112)).o=n;for(;0!=s.c.length;)for(e=new Gf((r=jz(s6(s,0),112)).f);e.a<e.c.c.length;)(c=jz(Q1(e),129).a).e.b>0||(Kd(c,i.Math.min(c.o,r.o-1)),Wd(c,c.i-1),0==c.i&&(s.c[s.c.length]=c))}}function oUt(t,e,n){var i,r,o,a,s;if(s=t.c,!e&&(e=IMe),t.c=e,4&t.Db&&!(1&t.Db)&&(a=new QU(t,1,2,s,t.c),n?n.Ei(a):n=a),s!=e)if(iP(t.Cb,284))t.Db>>16==-10?n=jz(t.Cb,284).nk(e,n):t.Db>>16==-15&&(!e&&(pKt(),e=lMe),!s&&(pKt(),s=lMe),t.Cb.nh()&&(a=new M9(t.Cb,1,13,s,e,awt($9(jz(t.Cb,59)),t),!1),n?n.Ei(a):n=a));else if(iP(t.Cb,88))t.Db>>16==-23&&(iP(e,88)||(pKt(),e=dMe),iP(s,88)||(pKt(),s=dMe),t.Cb.nh()&&(a=new M9(t.Cb,1,10,s,e,awt(r5(jz(t.Cb,26)),t),!1),n?n.Ei(a):n=a));else if(iP(t.Cb,444))for(!(o=jz(t.Cb,836)).b&&(o.b=new _b(new Pk)),r=new Cb(new alt(new xf(o.b.a).a));r.a.b;)n=oUt(i=jz(tnt(r.a).cd(),87),vPt(i,o),n);return n}function aUt(t,e){var n,i,r,o,a,s,c,l,u,h,d;for(a=zv(_N(QBt(t,(zWt(),dme)))),d=jz(QBt(t,ibe),21),c=!1,l=!1,h=new DP((!t.c&&(t.c=new tG(qIe,t,9,9)),t.c));!(h.e==h.i.gc()||c&&l);){for(o=jz(vbt(h),118),s=0,r=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[(!o.d&&(o.d=new cF(NIe,o,8,5)),o.d),(!o.e&&(o.e=new cF(NIe,o,7,4)),o.e)])));gBt(r)&&(i=jz(q4(r),79),u=a&&YDt(i)&&zv(_N(QBt(i,fme))),n=dHt((!i.b&&(i.b=new cF(OIe,i,4,7)),i.b),o)?t==XQ(EAt(jz(Wet((!i.c&&(i.c=new cF(OIe,i,5,8)),i.c),0),82))):t==XQ(EAt(jz(Wet((!i.b&&(i.b=new cF(OIe,i,4,7)),i.b),0),82))),!((u||n)&&++s>1)););(s>0||d.Hc((hDt(),tDe))&&(!o.n&&(o.n=new tG(VIe,o,1,7)),o.n).i>0)&&(c=!0),s>1&&(l=!0)}c&&e.Fc((dNt(),uhe)),l&&e.Fc((dNt(),hhe))}function sUt(t){var e,n,r,o,a,s,c,l,u,h,d,f;if((f=jz(QBt(t,(cKt(),NEe)),21)).dc())return null;if(c=0,s=0,f.Hc((wpt(),NDe))){for(h=jz(QBt(t,oTe),98),r=2,n=2,o=2,a=2,e=XQ(t)?jz(QBt(XQ(t),hEe),103):jz(QBt(t,hEe),103),u=new DP((!t.c&&(t.c=new tG(qIe,t,9,9)),t.c));u.e!=u.i.gc();)if(l=jz(vbt(u),118),(d=jz(QBt(l,dTe),61))==(vGt(),xDe)&&(d=D$t(l,e),Xbt(l,dTe,d)),h==(YCt(),USe))switch(d.g){case 1:r=i.Math.max(r,l.i+l.g);break;case 2:n=i.Math.max(n,l.j+l.f);break;case 3:o=i.Math.max(o,l.i+l.g);break;case 4:a=i.Math.max(a,l.j+l.f)}else switch(d.g){case 1:r+=l.g+2;break;case 2:n+=l.f+2;break;case 3:o+=l.g+2;break;case 4:a+=l.f+2}c=i.Math.max(r,o),s=i.Math.max(n,a)}return RGt(t,c,s,!0,!0)}function cUt(t,e,n,r,o){var a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;for(k=jz(x5(ket(DY(new OH(null,new d1(e.d,16)),new Ip(n)),new Bp(n)),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)]))),15),d=OKt,h=FYt,l=new Gf(e.b.j);l.a<l.c.c.length;)(c=jz(Q1(l),11)).j==n&&(d=i.Math.min(d,c.p),h=i.Math.max(h,c.p));if(d==OKt)for(s=0;s<k.gc();s++)g8(jz(k.Xb(s),101),n,s);else for(ZH(v=P7(SLe,lXt,25,o.length,15,1),v.length),w=k.Kc();w.Ob();){for(b=jz(w.Pb(),101),a=jz(OW(t.b,b),177),u=0,m=d;m<=h;m++)a[m]&&(u=i.Math.max(u,r[m]));if(b.i){for(g=b.i.c,y=new Ow,f=0;f<o.length;f++)o[g][f]&&_G(y,ndt(v[f]));for(;FA(y,ndt(u));)++u}for(g8(b,n,u),p=d;p<=h;p++)a[p]&&(r[p]=u+1);b.i&&(v[b.i.c]=u)}}function lUt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p;for(o=null,r=new Gf(e.a);r.a<r.c.c.length;)IVt(n=jz(Q1(r),10))?(u=new VY(n,!0,c=DL(ax(new zw,n),t.f),l=DL(ax(new zw,n),t.f)),h=n.o.b,dwt(),f=1e4,(d=(n.q?n.q:(AX(),AX(),lne))._b((zWt(),Ome))?jz(wxt(n,Ome),197):jz(wxt(mK(n),Nme),197))==cwe&&(f=1),g=ULt(rx(ix(nx(ox(new $w,f),EQ(i.Math.ceil(h))),c),l)),d==lwe&&_G(t.d,g),Djt(t,eat(oft(n,(vGt(),EDe))),u),Djt(t,oft(n,aDe),u),a=u):(p=DL(ax(new zw,n),t.f),XA(DY(new OH(null,new d1(n.j,16)),new Vo),new JT(t,p)),a=new VY(n,!1,p,p)),t.i[n.p]=a,o&&(s=o.c.d.a+NM(t.n,o.c,n)+n.d.d,o.b||(s+=o.c.o.b),ULt(rx(ix(ox(nx(new $w,EQ(i.Math.ceil(s))),0),o.d),a.a))),o=a}function uUt(t,e){var n,r,o,a,s,c,l,h,d,f,g,p,m;for(DAt(e,"Label dummy insertions",1),f=new Mb,s=Vv(CN(wxt(t,(zWt(),vbe)))),h=Vv(CN(wxt(t,Abe))),d=jz(wxt(t,qpe),103),g=new Gf(t.a);g.a<g.c.c.length;)for(a=new aU(ZP(hft(jz(Q1(g),10)).a.Kc(),new u));gBt(a);)if((o=jz(q4(a),17)).c.i!=o.d.i&&JM(o.b,Qce)){for(n=sPt(t,o,m=_et(o),p=sO(o.b.c.length)),f.c[f.c.length]=n,r=n.o,c=new C2(o.b,0);c.b<c.d.gc();)xO(c.b<c.d.gc()),VD(wxt(l=jz(c.d.Xb(c.c=c.b++),70),Ype))===VD((Net(),HTe))&&(d==(jht(),$Te)||d==NTe?(r.a+=l.o.a+h,r.b=i.Math.max(r.b,l.o.b)):(r.a=i.Math.max(r.a,l.o.a),r.b+=l.o.b+h),p.c[p.c.length]=l,lK(c));d==(jht(),$Te)||d==NTe?(r.a-=h,r.b+=s+m):r.b+=s-h+m}pst(t.a,f),zEt(e)}function hUt(t,e,n,r){var o,a,s,c,l,u,h,d,f,g;for(d=GNt(t,e,a=new gIt(e)),g=i.Math.max(Vv(CN(wxt(e,(zWt(),rme)))),1),h=new Gf(d.a);h.a<h.c.c.length;)u=jz(Q1(h),46),l=$mt(jz(u.a,8),jz(u.b,8),g),HV(n,new PS(l.c,l.d)),HV(n,RO(new PS(l.c,l.d),l.b,0)),HV(n,RO(new PS(l.c,l.d),0,l.a)),HV(n,RO(new PS(l.c,l.d),l.b,l.a));switch(f=a.d,c=$mt(jz(d.b.a,8),jz(d.b.b,8),g),f==(vGt(),EDe)||f==aDe?(r.c[f.g]=i.Math.min(r.c[f.g],c.d),r.b[f.g]=i.Math.max(r.b[f.g],c.d+c.a)):(r.c[f.g]=i.Math.min(r.c[f.g],c.c),r.b[f.g]=i.Math.max(r.b[f.g],c.c+c.b)),o=RXt,s=a.c.i.d,f.g){case 4:o=s.c;break;case 2:o=s.b;break;case 1:o=s.a;break;case 3:o=s.d}return r.a[f.g]=i.Math.max(r.a[f.g],o),a}function dUt(t){var e,n,i,r;if(-1!=(e=VI(n=null!=t.D?t.D:t.B,XAt(91)))){i=n.substr(0,e),r=new Ay;do{r.a+="["}while(-1!=(e=uO(n,91,++e)));bF(i,BKt)?r.a+="Z":bF(i,x8t)?r.a+="B":bF(i,E8t)?r.a+="C":bF(i,T8t)?r.a+="D":bF(i,S8t)?r.a+="F":bF(i,D8t)?r.a+="I":bF(i,I8t)?r.a+="J":bF(i,B8t)?r.a+="S":(r.a+="L",r.a+=""+i,r.a+=";");try{return null}catch(t){if(!iP(t=hst(t),60))throw $b(t)}}else if(-1==VI(n,XAt(46))){if(bF(n,BKt))return DLe;if(bF(n,x8t))return BLe;if(bF(n,E8t))return TLe;if(bF(n,T8t))return MLe;if(bF(n,S8t))return PLe;if(bF(n,D8t))return SLe;if(bF(n,I8t))return ILe;if(bF(n,B8t))return LLe}return null}function fUt(t,e,n){var i,r,o,a,s,c,l,u;for(Vat(l=new Bwt(n),e),lct(l,(lKt(),fde),e),l.o.a=e.g,l.o.b=e.f,l.n.a=e.i,l.n.b=e.j,Gz(n.a,l),WK(t.a,e,l),(0!=(!e.a&&(e.a=new tG(HIe,e,10,11)),e.a).i||zv(_N(QBt(e,(zWt(),dme)))))&&lct(l,Rhe,(cL(),!0)),c=jz(wxt(n,Zhe),21),(u=jz(wxt(l,(zWt(),tbe)),98))==(YCt(),YSe)?lct(l,tbe,KSe):u!=KSe&&c.Fc((dNt(),fhe)),i=jz(wxt(n,qpe),103),s=new DP((!e.c&&(e.c=new tG(qIe,e,9,9)),e.c));s.e!=s.i.gc();)zv(_N(QBt(a=jz(vbt(s),118),Vme)))||QUt(t,a,l,c,i,u);for(o=new DP((!e.n&&(e.n=new tG(VIe,e,1,7)),e.n));o.e!=o.i.gc();)!zv(_N(QBt(r=jz(vbt(o),137),Vme)))&&r.a&&Gz(l.b,zut(r));return zv(_N(wxt(l,_pe)))&&c.Fc((dNt(),che)),zv(_N(wxt(l,hme)))&&(c.Fc((dNt(),dhe)),c.Fc(hhe),lct(l,tbe,KSe)),l}function gUt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A;s=jz(OW(e.c,t),459),m=e.a.c,c=e.a.c+e.a.b,a=(C=s.f)<(A=s.a),f=new PS(m,C),b=new PS(c,A),g=new PS(r=(m+c)/2,C),w=new PS(r,A),o=eLt(t,C,A),v=g1(e.B),y=new PS(r,o),_=g1(e.D),n=hct(Est(Vy(xxe,1),cYt,8,0,[v,y,_])),h=!1,(p=e.B.i)&&p.c&&s.d&&((l=a&&p.p<p.c.a.c.length-1||!a&&p.p>0)?l&&(u=p.p,a?++u:--u,h=!(rLt(i=nct(jz(PH(p.c.a,u),10)),v,n[0])||jU(i,v,n[0]))):h=!0),d=!1,(k=e.D.i)&&k.c&&s.e&&(a&&k.p>0||!a&&k.p<k.c.a.c.length-1?(u=k.p,a?--u:++u,d=!(rLt(i=nct(jz(PH(k.c.a,u),10)),n[0],_)||jU(i,n[0],_))):d=!0),h&&d&&LV(t.a,y),h||Jnt(t.a,Est(Vy(xxe,1),cYt,8,0,[f,g])),d||Jnt(t.a,Est(Vy(xxe,1),cYt,8,0,[w,b]))}function pUt(t,e){var n,i,r,o,a,s,c;if(iP(t.Ug(),160)?(pUt(jz(t.Ug(),160),e),e.a+=" > "):e.a+="Root ",bF((n=t.Tg().zb).substr(0,3),"Elk")?aI(e,n.substr(3)):e.a+=""+n,r=t.zg())aI((e.a+=" ",e),r);else if(iP(t,354)&&(c=jz(t,137).a))aI((e.a+=" ",e),c);else{for(o=new DP(t.Ag());o.e!=o.i.gc();)if(c=jz(vbt(o),137).a)return void aI((e.a+=" ",e),c);if(iP(t,352)&&(!(i=jz(t,79)).b&&(i.b=new cF(OIe,i,4,7)),0!=i.b.i&&(!i.c&&(i.c=new cF(OIe,i,5,8)),0!=i.c.i))){for(e.a+=" (",a=new iO((!i.b&&(i.b=new cF(OIe,i,4,7)),i.b));a.e!=a.i.gc();)a.e>0&&(e.a+=jKt),pUt(jz(vbt(a),160),e);for(e.a+=e1t,s=new iO((!i.c&&(i.c=new cF(OIe,i,5,8)),i.c));s.e!=s.i.gc();)s.e>0&&(e.a+=jKt),pUt(jz(vbt(s),160),e);e.a+=")"}}}function mUt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;if(o=jz(wxt(t,(lKt(),fde)),79)){for(i=t.a,qR(r=new dB(n),B_t(t)),fat(t.d.i,t.c.i)?(d=t.c,UR(h=Ict(Est(Vy(xxe,1),cYt,8,0,[d.n,d.a])),n)):h=g1(t.c),n4(i,h,i.a,i.a.a),f=g1(t.d),null!=wxt(t,Ode)&&qR(f,jz(wxt(t,Ode),8)),n4(i,f,i.c.b,i.c),Qet(i,r),Mit(a=rNt(o,!0,!0),jz(Wet((!o.b&&(o.b=new cF(OIe,o,4,7)),o.b),0),82)),Pit(a,jz(Wet((!o.c&&(o.c=new cF(OIe,o,5,8)),o.c),0),82)),K$t(i,a),u=new Gf(t.b);u.a<u.c.c.length;)l=jz(Q1(u),70),xnt(s=jz(wxt(l,fde),137),l.o.a),Ant(s,l.o.b),AB(s,l.n.a+r.a,l.n.b+r.b),Xbt(s,(Srt(),Jce),_N(wxt(l,Jce)));(c=jz(wxt(t,(zWt(),mme)),74))?(Qet(c,r),Xbt(o,mme,c)):Xbt(o,mme,null),e==(Aft(),XTe)?Xbt(o,Zpe,XTe):Xbt(o,Zpe,null)}}function bUt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;for(f=e.c.length,d=0,h=new Gf(t.b);h.a<h.c.c.length;)if(0!=(b=(u=jz(Q1(h),29)).a).c.length){for(l=0,w=null,r=jz(Q1(m=new Gf(b)),10),o=null;r;){if((o=jz(PH(e,r.p),257)).c>=0){for(c=null,s=new C2(u.a,l+1);s.b<s.d.gc()&&(xO(s.b<s.d.gc()),a=jz(s.d.Xb(s.c=s.b++),10),!((c=jz(PH(e,a.p),257)).d==o.d&&c.c<o.c));)c=null;c&&(w&&(i4(i,r.p,ndt(jz(PH(i,r.p),19).a-1)),jz(PH(n,w.p),15).Mc(o)),o=fAt(o,r,f++),e.c[e.c.length]=o,Gz(n,new Mb),w?(jz(PH(n,w.p),15).Fc(o),Gz(i,ndt(1))):Gz(i,ndt(0)))}g=null,m.a<m.c.c.length&&(g=jz(Q1(m),10),p=jz(PH(e,g.p),257),jz(PH(n,r.p),15).Fc(p),i4(i,g.p,ndt(jz(PH(i,g.p),19).a+1))),o.d=d,o.c=l++,w=r,r=g}++d}}function wUt(t,e,n,r){var o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;return c=t,u=UR(new PS(e.a,e.b),t),l=n,h=UR(new PS(r.a,r.b),n),d=c.a,m=c.b,g=l.a,w=l.b,f=u.a,b=u.b,o=(p=h.a)*b-f*(k=h.b),cM(),iit(I3t),!(i.Math.abs(0-o)<=I3t||0==o||isNaN(0)&&isNaN(o))&&(a=1/o*((d-g)*b-(m-w)*f),s=1/o*-(-(d-g)*k+(m-w)*p),iit(I3t),(i.Math.abs(0-a)<=I3t||0==a||isNaN(0)&&isNaN(a)?0:0<a?-1:0>a?1:HI(isNaN(0),isNaN(a)))<0&&(iit(I3t),(i.Math.abs(a-1)<=I3t||1==a||isNaN(a)&&isNaN(1)?0:a<1?-1:a>1?1:HI(isNaN(a),isNaN(1)))<0)&&(iit(I3t),(i.Math.abs(0-s)<=I3t||0==s||isNaN(0)&&isNaN(s)?0:0<s?-1:0>s?1:HI(isNaN(0),isNaN(s)))<0)&&(iit(I3t),(i.Math.abs(s-1)<=I3t||1==s||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:HI(isNaN(s),isNaN(1)))<0))}function kUt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_;for(h=new cK(new eg(t));h.b!=h.c.a.d;)for(s=jz((u=s8(h)).d,56),e=jz(u.e,56),p=0,v=(null==(a=s.Tg()).i&&V$t(a),a.i).length;p<v;++p)if(null==a.i&&V$t(a),o=a.i,(l=p>=0&&p<o.length?o[p]:null).Ij()&&!l.Jj())if(iP(l,99))!((c=jz(l,18)).Bb&l6t)&&!((_=Twt(c))&&_.Bb&l6t)&&wzt(t,c,s,e);else if(Zx(),jz(l,66).Oj()&&(n=jz((y=l)?jz(e,49).xh(y):null,153)))for(f=jz(s.ah(l),153),i=n.gc(),m=0,g=f.gc();m<g;++m)if(iP(d=f.il(m),99)){if(null==(r=utt(t,k=f.jl(m)))&&null!=k){if(w=jz(d,18),!t.b||w.Bb&l6t||Twt(w))continue;r=k}if(!n.dl(d,r))for(b=0;b<i;++b)if(n.il(b)==d&&VD(n.jl(b))===VD(r)){n.ii(n.gc()-1,b),--i;break}}else n.dl(f.il(m),f.jl(m))}function vUt(t,e,n,r,o,a,s){var c,l,u,h,d,f,g,p,m,b,w,k;if(b=Yzt(e,n,t.g),o.n&&o.n&&a&&w0(o,a2(a),($lt(),oIe)),t.b)for(m=0;m<b.c.length;m++)u1(m,b.c.length),h=jz(b.c[m],200),0!=m&&(u1(m-1,b.c.length),put(h,(f=jz(b.c[m-1],200)).f+f.b+t.g)),wWt(m,b,n,t.g),zyt(t,h),o.n&&a&&w0(o,a2(a),($lt(),oIe));else for(p=new Gf(b);p.a<p.c.c.length;)for(u=new Gf((g=jz(Q1(p),200)).a);u.a<u.c.c.length;)Lot(w=new NQ((l=jz(Q1(u),187)).s,l.t,t.g),l),Gz(g.d,w);return qkt(t,b),o.n&&o.n&&a&&w0(o,a2(a),($lt(),oIe)),k=i.Math.max(t.d,r.a-(s.b+s.c)),c=(d=i.Math.max(t.c,r.b-(s.d+s.a)))-t.c,t.e&&t.f&&(k/d<t.a?k=d*t.a:c+=k/t.a-d),t.e&&Dpt(b,k,c),o.n&&o.n&&a&&w0(o,a2(a),($lt(),oIe)),new tH(t.a,k,t.c+c,(XPt(),RCe))}function yUt(t){var e,n,r,o,a,s,c,l,u,h;for(t.j=P7(SLe,lXt,25,t.g,15,1),t.o=new Mb,XA(dtt(new OH(null,new d1(t.e.b,16)),new Yo),new om(t)),t.a=P7(DLe,QZt,25,t.b,16,1),Bht(new OH(null,new d1(t.e.b,16)),new sm(t)),h=new Mb,XA(DY(dtt(new OH(null,new d1(t.e.b,16)),new Zo),new am(t)),new tS(t,h)),c=new Gf(h);c.a<c.c.c.length;)if(!((s=jz(Q1(c),508)).c.length<=1))if(2!=s.c.length){if(!GCt(s)&&!PTt(s,new Xo))for(l=new Gf(s),r=null;l.a<l.c.c.length;)e=jz(Q1(l),17),n=t.c[e.p],u=!r||l.a>=l.c.c.length?U3((aEt(),Ese),xse):U3((aEt(),xse),xse),u*=2,o=n.a.g,n.a.g=i.Math.max(o,o+(u-o)),a=n.b.g,n.b.g=i.Math.max(a,a+(u-a)),r=e}else qBt(s),IVt((u1(0,s.c.length),jz(s.c[0],17)).d.i)||Gz(t.o,s)}function _Ut(t,e,n,i,r){var o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;for(k=Vz(t),c=new Mb,l=(o=t.c.length)-1,u=o+1;0!=k.a.c;){for(;0!=n.b;)xO(0!=n.b),b=jz(Iet(n,n.a.a),112),IQ(k.a,b),b.g=l--,P$t(b,e,n,i);for(;0!=e.b;)xO(0!=e.b),w=jz(Iet(e,e.a.a),112),IQ(k.a,w),w.g=u++,P$t(w,e,n,i);for(s=FYt,p=new Ff(new jR(new PL(new Rf(k.a).a).b));rE(p.a.a);){if(g=jz(bO(p.a).cd(),112),!i&&g.b>0&&g.a<=0){c.c=P7(Ite,zKt,1,0,5,1),c.c[c.c.length]=g;break}(f=g.i-g.d)>=s&&(f>s&&(c.c=P7(Ite,zKt,1,0,5,1),s=f),c.c[c.c.length]=g)}0!=c.c.length&&(a=jz(PH(c,mwt(r,c.c.length)),112),IQ(k.a,a),a.g=u++,P$t(a,e,n,i),c.c=P7(Ite,zKt,1,0,5,1))}for(m=t.c.length+1,d=new Gf(t);d.a<d.c.c.length;)(h=jz(Q1(d),112)).g<o&&(h.g=h.g+m)}function CUt(t,e){var n;if(t.e)throw $b(new Fv((yN(gie),IZt+gie.k+BZt)));if(!AE(t.a,e))throw $b(new fv(MZt+e+PZt));if(e==t.d)return t;switch(n=t.d,t.d=e,n.g){case 0:switch(e.g){case 2:zkt(t);break;case 1:Tct(t),zkt(t);break;case 4:J_t(t),zkt(t);break;case 3:J_t(t),Tct(t),zkt(t)}break;case 2:switch(e.g){case 1:Tct(t),NRt(t);break;case 4:J_t(t),zkt(t);break;case 3:J_t(t),Tct(t),zkt(t)}break;case 1:switch(e.g){case 2:Tct(t),NRt(t);break;case 4:Tct(t),J_t(t),zkt(t);break;case 3:Tct(t),J_t(t),Tct(t),zkt(t)}break;case 4:switch(e.g){case 2:J_t(t),zkt(t);break;case 1:J_t(t),Tct(t),zkt(t);break;case 3:Tct(t),NRt(t)}break;case 3:switch(e.g){case 2:Tct(t),J_t(t),zkt(t);break;case 1:Tct(t),J_t(t),Tct(t),zkt(t);break;case 4:Tct(t),NRt(t)}}return t}function AUt(t,e){var n;if(t.d)throw $b(new Fv((yN(Yae),IZt+Yae.k+BZt)));if(!xS(t.a,e))throw $b(new fv(MZt+e+PZt));if(e==t.c)return t;switch(n=t.c,t.c=e,n.g){case 0:switch(e.g){case 2:Qct(t);break;case 1:Ect(t),Qct(t);break;case 4:tCt(t),Qct(t);break;case 3:tCt(t),Ect(t),Qct(t)}break;case 2:switch(e.g){case 1:Ect(t),RRt(t);break;case 4:tCt(t),Qct(t);break;case 3:tCt(t),Ect(t),Qct(t)}break;case 1:switch(e.g){case 2:Ect(t),RRt(t);break;case 4:Ect(t),tCt(t),Qct(t);break;case 3:Ect(t),tCt(t),Ect(t),Qct(t)}break;case 4:switch(e.g){case 2:tCt(t),Qct(t);break;case 1:tCt(t),Ect(t),Qct(t);break;case 3:Ect(t),RRt(t)}break;case 3:switch(e.g){case 2:Ect(t),tCt(t),Qct(t);break;case 1:Ect(t),tCt(t),Ect(t),Qct(t);break;case 4:Ect(t),RRt(t)}}return t}function xUt(t,e,n){var r,o,a,s,c,l,h,d;for(l=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));l.e!=l.i.gc();)for(o=new aU(ZP(gPt(c=jz(vbt(l),33)).a.Kc(),new u));gBt(o);){if(!(r=jz(q4(o),79)).b&&(r.b=new cF(OIe,r,4,7)),!(r.b.i<=1&&(!r.c&&(r.c=new cF(OIe,r,5,8)),r.c.i<=1)))throw $b(new iy("Graph must not contain hyperedges."));if(!JIt(r)&&c!=EAt(jz(Wet((!r.c&&(r.c=new cF(OIe,r,5,8)),r.c),0),82)))for(Vat(h=new TR,r),lct(h,(Art(),sae),r),Ld(h,jz(zD(DZ(n.f,c)),144)),Od(h,jz(OW(n,EAt(jz(Wet((!r.c&&(r.c=new cF(OIe,r,5,8)),r.c),0),82))),144)),Gz(e.c,h),s=new DP((!r.n&&(r.n=new tG(VIe,r,1,7)),r.n));s.e!=s.i.gc();)Vat(d=new b5(h,(a=jz(vbt(s),137)).a),a),lct(d,sae,a),d.e.a=i.Math.max(a.g,1),d.e.b=i.Math.max(a.f,1),Fzt(d),Gz(e.d,d)}}function EUt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;for(yQ(d=new eGt(t),!(e==(jht(),$Te)||e==NTe)),h=d.a,f=new hk,Oet(),s=0,l=(o=Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length;s<l;++s)n=o[s],(u=lP(h,Vie,n))&&(f.d=i.Math.max(f.d,u.Re()));for(a=0,c=(r=Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length;a<c;++a)n=r[a],(u=lP(h,qie,n))&&(f.a=i.Math.max(f.a,u.Re()));for(b=0,k=(p=Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length;b<k;++b)(u=lP(h,p[b],Vie))&&(f.b=i.Math.max(f.b,u.Se()));for(m=0,w=(g=Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length;m<w;++m)(u=lP(h,g[m],qie))&&(f.c=i.Math.max(f.c,u.Se()));return f.d>0&&(f.d+=h.n.d,f.d+=h.d),f.a>0&&(f.a+=h.n.a,f.a+=h.d),f.b>0&&(f.b+=h.n.b,f.b+=h.d),f.c>0&&(f.c+=h.n.c,f.c+=h.d),f}function TUt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p;for(f=n.d,d=n.c,s=(a=new PS(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a)).b,u=new Gf(t.a);u.a<u.c.c.length;)if((c=jz(Q1(u),10)).k==(aEt(),Cse)){switch(r=jz(wxt(c,(lKt(),Khe)),61),o=jz(wxt(c,Yhe),8),h=c.n,r.g){case 2:h.a=n.f.a+f.c-d.a;break;case 4:h.a=-d.a-f.b}switch(p=0,r.g){case 2:case 4:e==(YCt(),GSe)?(g=Vv(CN(wxt(c,_de))),h.b=a.b*g-jz(wxt(c,(zWt(),Qme)),8).b,p=h.b+o.b,Zat(c,!1,!0)):e==USe&&(h.b=Vv(CN(wxt(c,_de)))-jz(wxt(c,(zWt(),Qme)),8).b,p=h.b+o.b,Zat(c,!1,!0))}s=i.Math.max(s,p)}for(n.f.b+=s-a.b,l=new Gf(t.a);l.a<l.c.c.length;)if((c=jz(Q1(l),10)).k==(aEt(),Cse))switch(r=jz(wxt(c,(lKt(),Khe)),61),h=c.n,r.g){case 1:h.b=-d.b-f.d;break;case 3:h.b=n.f.b+f.a-d.b}}function SUt(t){var e,n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_;for(r=jz(wxt(t,(VHt(),sye)),33),c=OKt,l=OKt,a=FYt,s=FYt,y=cbt(t.b,0);y.b!=y.d.c;)g=(k=jz(h3(y),86)).e,p=k.f,c=i.Math.min(c,g.a-p.a/2),l=i.Math.min(l,g.b-p.b/2),a=i.Math.max(a,g.a+p.a/2),s=i.Math.max(s,g.b+p.b/2);for(d=new PS((f=jz(QBt(r,(TBt(),Tye)),116)).b-c,f.d-l),v=cbt(t.b,0);v.b!=v.d.c;)iP(h=wxt(k=jz(h3(v),86),sye),239)&&AB(o=jz(h,33),(u=qR(k.e,d)).a-o.g/2,u.b-o.f/2);for(w=cbt(t.a,0);w.b!=w.d.c;)b=jz(h3(w),188),(n=jz(wxt(b,sye),79))&&(n4(e=b.a,m=new dB(b.b.e),e.a,e.a.a),n4(e,_=new dB(b.c.e),e.c.b,e.c),Qxt(m,jz(Obt(e,1),8),b.b.f),Qxt(_,jz(Obt(e,e.b-2),8),b.c.f),K$t(e,rNt(n,!0,!0)));RGt(r,a-c+(f.b+f.c),s-l+(f.d+f.a),!1,!1)}function DUt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b;for(wR(c=new C2(l=t.b,0),new $W(t)),m=!1,o=1;c.b<c.d.gc();){for(xO(c.b<c.d.gc()),s=jz(c.d.Xb(c.c=c.b++),29),u1(o,l.c.length),f=jz(l.c[o],29),p=(g=r0(s.a)).c.length,d=new Gf(g);d.a<d.c.c.length;)xJ(u=jz(Q1(d),10),f);if(m){for(h=G1(new lv(g),0);h.c.Sb();)for(r=new Gf(r0(uft(u=jz(d4(h),10))));r.a<r.c.c.length;)tzt(i=jz(Q1(r),17),!0),lct(t,(lKt(),zhe),(cL(),!0)),n=nqt(t,i,p),e=jz(wxt(u,Ohe),305),b=jz(PH(n,n.c.length-1),17),e.k=b.c.i,e.n=b,e.b=i.d.i,e.c=i;m=!1}else 0!=g.c.length&&(u1(0,g.c.length),jz(g.c[0],10).k==(aEt(),_se)&&(m=!0,o=-1));++o}for(a=new C2(t.b,0);a.b<a.d.gc();)xO(a.b<a.d.gc()),0==jz(a.d.Xb(a.c=a.b++),29).a.c.length&&lK(a)}function IUt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;if((h=jz(jz(c6(t.r,e),21),84)).gc()<=2||e==(vGt(),aDe)||e==(vGt(),EDe))ZGt(t,e);else{for(m=t.u.Hc((hDt(),iDe)),n=e==(vGt(),sDe)?(Oat(),Ore):(Oat(),Mre),w=e==sDe?(V9(),ere):(V9(),ire),r=Zy($j(n),t.s),b=e==sDe?NXt:RXt,u=h.Kc();u.Ob();)!(c=jz(u.Pb(),111)).c||c.c.d.c.length<=0||(p=c.b.rf(),g=c.e,(f=(d=c.c).i).b=(a=d.n,d.e.a+a.b+a.c),f.a=(s=d.n,d.e.b+s.d+s.a),m?(f.c=g.a-(o=d.n,d.e.a+o.b+o.c)-t.s,m=!1):f.c=g.a+p.a+t.s,SZ(w,aQt),d.f=w,u8(d,(X8(),Xie)),Gz(r.d,new Pq(f,vdt(r,f))),b=e==sDe?i.Math.min(b,g.b):i.Math.max(b,g.b+c.b.rf().b));for(b+=e==sDe?-t.t:t.t,Egt((r.e=b,r)),l=h.Kc();l.Ob();)!(c=jz(l.Pb(),111)).c||c.c.d.c.length<=0||((f=c.c.i).c-=c.e.a,f.d-=c.e.b)}}function BUt(t,e,n){var r;if(DAt(n,"StretchWidth layering",1),0!=e.a.c.length){for(t.c=e,t.t=0,t.u=0,t.i=NXt,t.g=RXt,t.d=Vv(CN(wxt(e,(zWt(),wbe)))),qbt(t),EBt(t),xBt(t),L_t(t),gpt(t),t.i=i.Math.max(1,t.i),t.g=i.Math.max(1,t.g),t.d=t.d/t.i,t.f=t.g/t.i,t.s=Fwt(t),r=new $W(t.c),Gz(t.c.b,r),t.r=r0(t.p),t.n=_Q(t.k,t.k.length);0!=t.r.c.length;)t.o=qut(t),!t.o||Cct(t)&&0!=t.b.a.gc()?(LCt(t,r),r=new $W(t.c),Gz(t.c.b,r),jrt(t.a,t.b),t.b.a.$b(),t.t=t.u,t.u=0):Cct(t)?(t.c.b.c=P7(Ite,zKt,1,0,5,1),r=new $W(t.c),Gz(t.c.b,r),t.t=0,t.u=0,t.b.a.$b(),t.a.a.$b(),++t.f,t.r=r0(t.p),t.n=_Q(t.k,t.k.length)):(xJ(t.o,r),w9(t.r,t.o),_G(t.b,t.o),t.t=t.t-t.k[t.o.p]*t.d+t.j[t.o.p],t.u+=t.e[t.o.p]*t.d);e.a.c=P7(Ite,zKt,1,0,5,1),ZTt(e.b),zEt(n)}else zEt(n)}function MUt(t){var e,n,r,o;for(XA(DY(new OH(null,new d1(t.a.b,16)),new vr),new yr),uCt(t),XA(DY(new OH(null,new d1(t.a.b,16)),new _r),new Cr),t.c==(Aft(),XTe)&&(XA(DY(dtt(new OH(null,new d1(new Ef(t.f),1)),new Ar),new xr),new Cp(t)),XA(DY(IY(dtt(dtt(new OH(null,new d1(t.d.b,16)),new Er),new Tr),new Sr),new Dr),new xp(t))),o=new PS(NXt,NXt),e=new PS(RXt,RXt),r=new Gf(t.a.b);r.a<r.c.c.length;)n=jz(Q1(r),57),o.a=i.Math.min(o.a,n.d.c),o.b=i.Math.min(o.b,n.d.d),e.a=i.Math.max(e.a,n.d.c+n.d.b),e.b=i.Math.max(e.b,n.d.d+n.d.a);qR(kI(t.d.c),zO(new PS(o.a,o.b))),qR(kI(t.d.f),UR(new PS(e.a,e.b),o)),sLt(t,o,e),IG(t.f),IG(t.b),IG(t.g),IG(t.e),t.a.a.c=P7(Ite,zKt,1,0,5,1),t.a.b.c=P7(Ite,zKt,1,0,5,1),t.a=null,t.d=null}function PUt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;for(i=new Mb,g=new Gf(e.a);g.a<g.c.c.length;)if((d=(f=jz(Q1(g),10)).e)&&(pst(i,PUt(t,d,f)),_qt(t,d,f),jz(wxt(d,(lKt(),Zhe)),21).Hc((dNt(),uhe))))for(b=jz(wxt(f,(zWt(),tbe)),98),h=jz(wxt(f,ibe),174).Hc((hDt(),tDe)),m=new Gf(f.j);m.a<m.c.c.length;)for(p=jz(Q1(m),11),(r=jz(OW(t.b,p),10))||(lct(r=dWt(p,b,p.j,-(p.e.c.length-p.g.c.length),null,new V_,p.o,jz(wxt(d,qpe),103),d),fde,p),WK(t.b,p,r),Gz(d.a,r)),o=jz(PH(r.j,0),11),l=new Gf(p.f);l.a<l.c.c.length;)c=jz(Q1(l),70),(a=new z_).o.a=c.o.a,a.o.b=c.o.b,Gz(o.f,a),h||(w=p.j,u=0,$U(jz(wxt(f,ibe),21))&&(u=BDt(c.n,c.o,p.o,0,w)),b==(YCt(),KSe)||(vGt(),hDe).Hc(w)?a.o.a=u:a.o.b=u);return $qt(t,e,n,i,s=new Mb),n&&THt(t,e,n,s),s}function LUt(t,e,n){var i,r,o,a,s,c,l,u;if(!t.c[e.c.p][e.p].e){for(t.c[e.c.p][e.p].e=!0,t.c[e.c.p][e.p].b=0,t.c[e.c.p][e.p].d=0,t.c[e.c.p][e.p].a=null,u=new Gf(e.j);u.a<u.c.c.length;)for(l=jz(Q1(u),11),c=(n?new $g(l):new Vg(l)).Kc();c.Ob();)(a=(s=jz(c.Pb(),11)).i).c==e.c?a!=e&&(LUt(t,a,n),t.c[e.c.p][e.p].b+=t.c[a.c.p][a.p].b,t.c[e.c.p][e.p].d+=t.c[a.c.p][a.p].d):(t.c[e.c.p][e.p].d+=t.g[s.p],++t.c[e.c.p][e.p].b);if(o=jz(wxt(e,(lKt(),Phe)),15))for(r=o.Kc();r.Ob();)i=jz(r.Pb(),10),e.c==i.c&&(LUt(t,i,n),t.c[e.c.p][e.p].b+=t.c[i.c.p][i.p].b,t.c[e.c.p][e.p].d+=t.c[i.c.p][i.p].d);t.c[e.c.p][e.p].b>0&&(t.c[e.c.p][e.p].d+=zMt(t.i,24)*aZt*.07000000029802322-.03500000014901161,t.c[e.c.p][e.p].a=t.c[e.c.p][e.p].d/t.c[e.c.p][e.p].b)}}function OUt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g;for(d=new Gf(t);d.a<d.c.c.length;){for(QL((h=jz(Q1(d),10)).n),QL(h.o),W6(h.f),KRt(h),oRt(h),g=new Gf(h.j);g.a<g.c.c.length;){for(QL((f=jz(Q1(g),11)).n),QL(f.a),QL(f.o),VSt(f,okt(f.j)),(r=jz(wxt(f,(zWt(),ebe)),19))&&lct(f,ebe,ndt(-r.a)),i=new Gf(f.g);i.a<i.c.c.length;){for(e=cbt((n=jz(Q1(i),17)).a,0);e.b!=e.d.c;)QL(jz(h3(e),8));if(a=jz(wxt(n,mme),74))for(o=cbt(a,0);o.b!=o.d.c;)QL(jz(h3(o),8));for(l=new Gf(n.b);l.a<l.c.c.length;)QL((s=jz(Q1(l),70)).n),QL(s.o)}for(u=new Gf(f.f);u.a<u.c.c.length;)QL((s=jz(Q1(u),70)).n),QL(s.o)}for(h.k==(aEt(),Cse)&&(lct(h,(lKt(),Khe),okt(jz(wxt(h,Khe),61))),fOt(h)),c=new Gf(h.b);c.a<c.c.c.length;)KRt(s=jz(Q1(c),70)),QL(s.o),QL(s.n)}}function NUt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v;for(t.e=e,s=JDt(e),k=new Mb,i=new Gf(s);i.a<i.c.c.length;){for(n=jz(Q1(i),15),v=new Mb,k.c[k.c.length]=v,c=new Ow,d=n.Kc();d.Ob();){for(o=ZRt(t,h=jz(d.Pb(),33),!0,0,0),v.c[v.c.length]=o,f=h.i,g=h.j,!h.n&&(h.n=new tG(VIe,h,1,7)),u=new DP(h.n);u.e!=u.i.gc();)r=ZRt(t,jz(vbt(u),137),!1,f,g),v.c[v.c.length]=r;for(!h.c&&(h.c=new tG(qIe,h,9,9)),m=new DP(h.c);m.e!=m.i.gc();)for(a=ZRt(t,p=jz(vbt(m),118),!1,f,g),v.c[v.c.length]=a,b=p.i+f,w=p.j+g,!p.n&&(p.n=new tG(VIe,p,1,7)),l=new DP(p.n);l.e!=l.i.gc();)r=ZRt(t,jz(vbt(l),137),!1,b,w),v.c[v.c.length]=r;jrt(c,XX(Wnt(Est(Vy(Lte,1),zKt,20,0,[gPt(h),fPt(h)]))))}UPt(t,c,v)}return t.f=new R_(k),Vat(t.f,e),t.f}function RUt(t,e,n,i,r){var o,a,s,c,l,u,h,d,f,g,p,m;null==(g=OW(t.e,i))&&(l=jz(g=new pv,183),c=new VW(e+"_s"+r),net(l,V6t,c)),QW(n,f=jz(g,183)),zX(m=new pv,"x",i.j),zX(m,"y",i.k),net(f,U6t,m),zX(h=new pv,"x",i.b),zX(h,"y",i.c),net(f,"endPoint",h),!GC((!i.a&&(i.a=new IP(MIe,i,5)),i.a))&&(o=new Gm(u=new xd),t4((!i.a&&(i.a=new IP(MIe,i,5)),i.a),o),net(f,O6t,u)),!!xwt(i)&&rxt(t.a,f,R6t,NTt(t,xwt(i))),!!Ewt(i)&&rxt(t.a,f,N6t,NTt(t,Ewt(i))),!(0==(!i.e&&(i.e=new cF(RIe,i,10,9)),i.e).i)&&(a=new AD(t,d=new xd),t4((!i.e&&(i.e=new cF(RIe,i,10,9)),i.e),a),net(f,j6t,d)),0!=(!i.g&&(i.g=new cF(RIe,i,9,10)),i.g).i&&(s=new xD(t,p=new xd),t4((!i.g&&(i.g=new cF(RIe,i,9,10)),i.g),s),net(f,F6t,p))}function FUt(t){var e,n,r,o,a,s,c;for(zN(),r=t.f.n,s=yW(t.r).a.nc();s.Ob();){if(o=0,(a=jz(s.Pb(),111)).b.Xe((cKt(),rTe))&&(o=Vv(CN(a.b.We(rTe))))<0)switch(a.b.Hf().g){case 1:r.d=i.Math.max(r.d,-o);break;case 3:r.a=i.Math.max(r.a,-o);break;case 2:r.c=i.Math.max(r.c,-o);break;case 4:r.b=i.Math.max(r.b,-o)}if($U(t.u))switch(e=bot(a.b,o),c=!jz(t.e.We(zEe),174).Hc((JFt(),$De)),n=!1,a.b.Hf().g){case 1:n=e>r.d,r.d=i.Math.max(r.d,e),c&&n&&(r.d=i.Math.max(r.d,r.a),r.a=r.d+o);break;case 3:n=e>r.a,r.a=i.Math.max(r.a,e),c&&n&&(r.a=i.Math.max(r.a,r.d),r.d=r.a+o);break;case 2:n=e>r.c,r.c=i.Math.max(r.c,e),c&&n&&(r.c=i.Math.max(r.b,r.c),r.b=r.c+o);break;case 4:n=e>r.b,r.b=i.Math.max(r.b,e),c&&n&&(r.b=i.Math.max(r.b,r.c),r.c=r.b+o)}}}function jUt(t){var e,n,i,r,o,a,s,c,l,u,h;for(l=new Gf(t);l.a<l.c.c.length;){switch(c=jz(Q1(l),10),o=null,(a=jz(wxt(c,(zWt(),kme)),163)).g){case 1:case 2:Zst(),o=Iue;break;case 3:case 4:Zst(),o=Sue}if(o)lct(c,(lKt(),Vhe),(Zst(),Iue)),o==Sue?NLt(c,a,(oit(),$we)):o==Iue&&NLt(c,a,(oit(),zwe));else if(mB(jz(wxt(c,tbe),98))&&0!=c.j.c.length){for(e=!0,h=new Gf(c.j);h.a<h.c.c.length;){if(!((u=jz(Q1(h),11)).j==(vGt(),aDe)&&u.e.c.length-u.g.c.length>0||u.j==EDe&&u.e.c.length-u.g.c.length<0)){e=!1;break}for(r=new Gf(u.g);r.a<r.c.c.length;)if(n=jz(Q1(r),17),(s=jz(wxt(n.d.i,kme),163))==(Cft(),jde)||s==$de){e=!1;break}for(i=new Gf(u.e);i.a<i.c.c.length;)if(n=jz(Q1(i),17),(s=jz(wxt(n.c.i,kme),163))==(Cft(),Rde)||s==Fde){e=!1;break}}e&&NLt(c,a,(oit(),Vwe))}}}function $Ut(t,e,n,r,o){var a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;for(C=0,g=0,d=new Gf(e.e);d.a<d.c.c.length;){for(h=jz(Q1(d),10),f=0,c=0,l=n?jz(wxt(h,Uke),19).a:FYt,w=r?jz(wxt(h,Gke),19).a:FYt,u=i.Math.max(l,w),v=new Gf(h.j);v.a<v.c.c.length;){if(k=jz(Q1(v),11),y=h.n.b+k.n.b+k.a.b,r)for(s=new Gf(k.g);s.a<s.c.c.length;)p=(m=(a=jz(Q1(s),17)).d).i,e!=t.a[p.p]&&(b=i.Math.max(jz(wxt(p,Uke),19).a,jz(wxt(p,Gke),19).a),(_=jz(wxt(a,(zWt(),hbe)),19).a)>=u&&_>=b&&(f+=p.n.b+m.n.b+m.a.b-y,++c));if(n)for(s=new Gf(k.e);s.a<s.c.c.length;)p=(m=(a=jz(Q1(s),17)).c).i,e!=t.a[p.p]&&(b=i.Math.max(jz(wxt(p,Uke),19).a,jz(wxt(p,Gke),19).a),(_=jz(wxt(a,(zWt(),hbe)),19).a)>=u&&_>=b&&(f+=p.n.b+m.n.b+m.a.b-y,++c))}c>0&&(C+=f/c,++g)}g>0?(e.a=o*C/g,e.g=g):(e.a=0,e.g=0)}function zUt(t,e){var n,i,r,o,a,s,c,l,u,h;for(i=new Gf(t.a.b);i.a<i.c.c.length;)for(s=new Gf(jz(Q1(i),29).a);s.a<s.c.c.length;)a=jz(Q1(s),10),e.j[a.p]=a,e.i[a.p]=e.o==(aJ(),ive)?RXt:NXt;for(IG(t.c),o=t.a.b,e.c==(gQ(),Qke)&&(o=iP(o,152)?a6(jz(o,152)):iP(o,131)?jz(o,131).a:iP(o,54)?new lv(o):new EA(o)),O8(t.e,e,t.b),wE(e.p,null),r=o.Kc();r.Ob();)for(c=jz(r.Pb(),29).a,e.o==(aJ(),ive)&&(c=iP(c,152)?a6(jz(c,152)):iP(c,131)?jz(c,131).a:iP(c,54)?new lv(c):new EA(c)),h=c.Kc();h.Ob();)u=jz(h.Pb(),10),e.g[u.p]==u&&sWt(t,u,e);for(zHt(t,e),n=o.Kc();n.Ob();)for(h=new Gf(jz(n.Pb(),29).a);h.a<h.c.c.length;)u=jz(Q1(h),10),e.p[u.p]=e.p[e.g[u.p].p],u==e.g[u.p]&&(l=Vv(e.i[e.j[u.p].p]),(e.o==(aJ(),ive)&&l>RXt||e.o==nve&&l<NXt)&&(e.p[u.p]=Vv(e.p[u.p])+l));t.e.cg()}function VUt(t,e,n,i){var r,o,a,s,c;return mLt(s=new eGt(e),i),r=!0,t&&t.Xe((cKt(),hEe))&&(r=(o=jz(t.We((cKt(),hEe)),103))==(jht(),jTe)||o==RTe||o==FTe),sRt(s,!1),Det(s.e.wf(),new Ij(s,!1,r)),BQ(s,s.f,(Oet(),Vie),(vGt(),sDe)),BQ(s,s.f,qie,ADe),BQ(s,s.g,Vie,EDe),BQ(s,s.g,qie,aDe),$bt(s,sDe),$bt(s,ADe),cY(s,aDe),cY(s,EDe),zN(),(a=s.A.Hc((wpt(),LDe))&&s.B.Hc((JFt(),qDe))?Jgt(s):null)&&n_(s.a,a),FUt(s),ivt(s),rvt(s),Kqt(s),AFt(s),wyt(s),Fmt(s,sDe),Fmt(s,ADe),TRt(s),EVt(s),n?(Hft(s),kyt(s),Fmt(s,aDe),Fmt(s,EDe),c=s.B.Hc((JFt(),UDe)),ASt(s,c,sDe),ASt(s,c,ADe),xSt(s,c,aDe),xSt(s,c,EDe),XA(new OH(null,new d1(new Sf(s.i),0)),new St),XA(DY(new OH(null,yW(s.r).a.oc()),new Dt),new It),$Ct(s),s.e.uf(s.o),XA(new OH(null,yW(s.r).a.oc()),new Mt),s.o):s.o}function HUt(t){var e,n,r,o,a,s,c,l,u,h,d,f,g,p,m;for(u=NXt,r=new Gf(t.a.b);r.a<r.c.c.length;)e=jz(Q1(r),81),u=i.Math.min(u,e.d.f.g.c+e.e.a);for(g=new YA,s=new Gf(t.a.a);s.a<s.c.c.length;)(a=jz(Q1(s),189)).i=u,0==a.e&&n4(g,a,g.c.b,g.c);for(;0!=g.b;){for(o=(a=jz(0==g.b?null:(xO(0!=g.b),Iet(g,g.a.a)),189)).f.g.c,f=a.a.a.ec().Kc();f.Ob();)h=jz(f.Pb(),81),m=a.i+h.e.a,h.d.g||h.g.c<m?h.o=m:h.o=h.g.c;for(o-=a.f.o,a.b+=o,t.c==(jht(),FTe)||t.c==NTe?a.c+=o:a.c-=o,d=a.a.a.ec().Kc();d.Ob();)for(l=(h=jz(d.Pb(),81)).f.Kc();l.Ob();)c=jz(l.Pb(),81),p=fB(t.c)?t.f.ef(h,c):t.f.ff(h,c),c.d.i=i.Math.max(c.d.i,h.o+h.g.b+p-c.e.a),c.k||(c.d.i=i.Math.max(c.d.i,c.g.c-c.e.a)),--c.d.e,0==c.d.e&&LV(g,c.d)}for(n=new Gf(t.a.b);n.a<n.c.c.length;)(e=jz(Q1(n),81)).g.c=e.o}function qUt(t){var e,n,i,r,o,a,s,c;switch(s=t.b,e=t.a,0===jz(wxt(t,(Fyt(),Cie)),427).g?bM(s,new Qf(new Ht)):bM(s,new Qf(new qt)),1===jz(wxt(t,yie),428).g?(bM(s,new Vt),bM(s,new Ut),bM(s,new Rt)):(bM(s,new Vt),bM(s,new zt)),jz(wxt(t,xie),250).g){case 0:c=new Xt;break;case 1:c=new Kt;break;case 2:c=new Yt;break;case 3:c=new Wt;break;case 5:c=new Sg(new Yt);break;case 4:c=new Sg(new Kt);break;case 7:c=new LE(new Sg(new Kt),new Sg(new Yt));break;case 8:c=new LE(new Sg(new Wt),new Sg(new Yt));break;default:c=new Sg(new Wt)}for(a=new Gf(s);a.a<a.c.c.length;){for(o=jz(Q1(a),167),r=0,n=new nD(ndt(i=0),ndt(r));$jt(e,o,i,r);)n=jz(c.Ce(n,o),46),i=jz(n.a,19).a,r=jz(n.b,19).a;FRt(e,o,i,r)}}function UUt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;for(d=(o=t.f.b).a,u=o.b,g=t.e.g,f=t.e.f,CB(t.e,o.a,o.b),_=d/g,C=u/f,l=new DP(bY(t.e));l.e!=l.i.gc();)Ent(c=jz(vbt(l),137),c.i*_),Tnt(c,c.j*C);for(w=new DP(wY(t.e));w.e!=w.i.gc();)v=(b=jz(vbt(w),118)).i,y=b.j,v>0&&Ent(b,v*_),y>0&&Tnt(b,y*C);for(Jot(t.b,new he),e=new Mb,s=new alt(new xf(t.c).a);s.b;)i=jz((a=tnt(s)).cd(),79),n=jz(a.dd(),395).a,r=rNt(i,!1,!1),K$t(h=hAt(Ext(i),VEt(r),n),r),(k=Txt(i))&&-1==y9(e,k,0)&&(e.c[e.c.length]=k,sX(k,(xO(0!=h.b),jz(h.a.a.c,8)),n));for(m=new alt(new xf(t.d).a);m.b;)i=jz((p=tnt(m)).cd(),79),n=jz(p.dd(),395).a,r=rNt(i,!1,!1),h=hAt(Dxt(i),Zct(VEt(r)),n),K$t(h=Zct(h),r),(k=Sxt(i))&&-1==y9(e,k,0)&&(e.c[e.c.length]=k,sX(k,(xO(0!=h.b),jz(h.c.b.c,8)),n))}function GUt(t,e,n,r){var o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;if(0!=n.c.length){for(g=new Mb,f=new Gf(n);f.a<f.c.c.length;)Gz(g,new PS((d=jz(Q1(f),33)).i,d.j));for(r.n&&e&&w0(r,a2(e),($lt(),oIe));Pxt(t,n);)_Mt(t,n,!1);for(r.n&&e&&w0(r,a2(e),($lt(),oIe)),s=0,c=0,o=null,0!=n.c.length&&(u1(0,n.c.length),s=(o=jz(n.c[0],33)).i-(u1(0,g.c.length),jz(g.c[0],8)).a,c=o.j-(u1(0,g.c.length),jz(g.c[0],8)).b),a=i.Math.sqrt(s*s+c*c),h=Uut(n);0!=h.a.gc();){for(u=h.a.ec().Kc();u.Ob();)l=jz(u.Pb(),33),m=(p=t.f).i+p.g/2,b=p.j+p.f/2,w=l.i+l.g/2,v=l.j+l.f/2-b,_=(k=w-m)/(y=i.Math.sqrt(k*k+v*v)),C=v/y,Ent(l,l.i+_*a),Tnt(l,l.j+C*a);r.n&&e&&w0(r,a2(e),($lt(),oIe)),h=Uut(new JF(h))}t.a&&t.a.lg(new JF(h)),r.n&&e&&w0(r,a2(e),($lt(),oIe)),GUt(t,e,new JF(h),r)}}function WUt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;if(m=t.n,b=t.o,f=t.d,d=Vv(CN(ept(t,(zWt(),pbe)))),e){for(h=d*(e.gc()-1),g=0,l=e.Kc();l.Ob();)h+=(s=jz(l.Pb(),10)).o.a,g=i.Math.max(g,s.o.b);for(w=m.a-(h-b.a)/2,a=m.b-f.d+g,o=r=b.a/(e.gc()+1),c=e.Kc();c.Ob();)(s=jz(c.Pb(),10)).n.a=w,s.n.b=a-s.o.b,w+=s.o.a+d,(u=OPt(s)).n.a=s.o.a/2-u.a.a,u.n.b=s.o.b,(p=jz(wxt(s,(lKt(),Nhe)),11)).e.c.length+p.g.c.length==1&&(p.n.a=o-p.a.a,p.n.b=0,EJ(p,t)),o+=r}if(n){for(h=d*(n.gc()-1),g=0,l=n.Kc();l.Ob();)h+=(s=jz(l.Pb(),10)).o.a,g=i.Math.max(g,s.o.b);for(w=m.a-(h-b.a)/2,a=m.b+b.b+f.a-g,o=r=b.a/(n.gc()+1),c=n.Kc();c.Ob();)(s=jz(c.Pb(),10)).n.a=w,s.n.b=a,w+=s.o.a+d,(u=OPt(s)).n.a=s.o.a/2-u.a.a,u.n.b=0,(p=jz(wxt(s,(lKt(),Nhe)),11)).e.c.length+p.g.c.length==1&&(p.n.a=o-p.a.a,p.n.b=b.b,EJ(p,t)),o+=r}}function KUt(t,e){var n,r,o,a,s,c;if(jz(wxt(e,(lKt(),Zhe)),21).Hc((dNt(),uhe))){for(c=new Gf(e.a);c.a<c.c.c.length;)(a=jz(Q1(c),10)).k==(aEt(),Ese)&&(o=jz(wxt(a,(zWt(),Eme)),142),t.c=i.Math.min(t.c,a.n.a-o.b),t.a=i.Math.max(t.a,a.n.a+a.o.a+o.c),t.d=i.Math.min(t.d,a.n.b-o.d),t.b=i.Math.max(t.b,a.n.b+a.o.b+o.a));for(s=new Gf(e.a);s.a<s.c.c.length;)if((a=jz(Q1(s),10)).k!=(aEt(),Ese))switch(a.k.g){case 2:if((r=jz(wxt(a,(zWt(),kme)),163))==(Cft(),Fde)){a.n.a=t.c-10,Xvt(a,new qn).Jb(new np(a));break}if(r==$de){a.n.a=t.a+10,Xvt(a,new Un).Jb(new ip(a));break}if((n=jz(wxt(a,ede),303))==(H9(),Ehe)){hHt(a).Jb(new rp(a)),a.n.b=t.d-10;break}if(n==Ahe){hHt(a).Jb(new op(a)),a.n.b=t.b+10;break}break;default:throw $b(new Rv("The node type "+a.k+" is not supported by the "+Xce))}}}function YUt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p;for(c=new PS(i.i+i.g/2,i.j+i.f/2),d=GVt(i),f=jz(QBt(e,(zWt(),tbe)),98),p=jz(QBt(i,obe),61),jD(hbt(i),Jme)||(g=0==i.i&&0==i.j?0:txt(i,p),Xbt(i,Jme,g)),lct(r=dWt(i,f,p,d,new PS(e.g,e.f),c,new PS(i.g,i.f),jz(wxt(n,qpe),103),n),(lKt(),fde),i),jd(o=jz(PH(r.j,0),11),yjt(i)),lct(r,ibe,(hDt(),Jdt(nDe))),u=jz(QBt(e,ibe),174).Hc(tDe),s=new DP((!i.n&&(i.n=new tG(VIe,i,1,7)),i.n));s.e!=s.i.gc();)if(!zv(_N(QBt(a=jz(vbt(s),137),Vme)))&&a.a&&(h=zut(a),Gz(o.f,h),!u))switch(l=0,$U(jz(QBt(e,ibe),21))&&(l=BDt(new PS(a.i,a.j),new PS(a.g,a.f),new PS(i.g,i.f),0,p)),p.g){case 2:case 4:h.o.a=l;break;case 1:case 3:h.o.b=l}lct(r,Ebe,CN(QBt(XQ(e),Ebe))),lct(r,Tbe,CN(QBt(XQ(e),Tbe))),lct(r,Abe,CN(QBt(XQ(e),Abe))),Gz(n.a,r),WK(t.a,i,r)}function XUt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;for(DAt(n,"Processor arrange level",1),u=0,AX(),Frt(e,new rb((VHt(),eye))),o=e.b,s=cbt(e,e.b),l=!0;l&&s.b.b!=s.d.a;)m=jz(q0(s),86),0==jz(wxt(m,eye),19).a?--o:l=!1;if(a=new QF(new s1(e,0,o)),c=new QF(new s1(e,o,e.b)),0==a.b)for(f=cbt(c,0);f.b!=f.d.c;)lct(jz(h3(f),86),cye,ndt(u++));else for(h=a.b,k=cbt(a,0);k.b!=k.d.c;){for(lct(w=jz(h3(k),86),cye,ndt(u++)),XUt(t,i=Lst(w),wot(n,1/h|0)),Frt(i,KK(new rb(cye))),d=new YA,b=cbt(i,0);b.b!=b.d.c;)for(m=jz(h3(b),86),p=cbt(w.d,0);p.b!=p.d.c;)(g=jz(h3(p),188)).c==m&&n4(d,g,d.c.b,d.c);for(wX(w.d),jrt(w.d,d),s=cbt(c,c.b),r=w.d.b,l=!0;0<r&&l&&s.b.b!=s.d.a;)m=jz(q0(s),86),0==jz(wxt(m,eye),19).a?(lct(m,cye,ndt(u++)),--r,wet(s)):l=!1}zEt(n)}function ZUt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m;for(DAt(e,"Inverted port preprocessing",1),s=new C2(t.b,0),n=null,m=new Mb;s.b<s.d.gc();){for(p=n,xO(s.b<s.d.gc()),n=jz(s.d.Xb(s.c=s.b++),29),u=new Gf(m);u.a<u.c.c.length;)xJ(c=jz(Q1(u),10),p);for(m.c=P7(Ite,zKt,1,0,5,1),h=new Gf(n.a);h.a<h.c.c.length;)if((c=jz(Q1(h),10)).k==(aEt(),Ese)&&mB(jz(wxt(c,(zWt(),tbe)),98))){for(g=rRt(c,(oit(),$we),(vGt(),aDe)).Kc();g.Ob();)for(d=jz(g.Pb(),11),r=0,o=(i=jz(Ymt(a=d.e,P7(wse,r1t,17,a.c.length,0,1)),474)).length;r<o;++r)Bzt(t,d,i[r],m);for(f=rRt(c,zwe,EDe).Kc();f.Ob();)for(d=jz(f.Pb(),11),r=0,o=(i=jz(Ymt(a=d.g,P7(wse,r1t,17,a.c.length,0,1)),474)).length;r<o;++r)Izt(t,d,i[r],m)}}for(l=new Gf(m);l.a<l.c.c.length;)xJ(c=jz(Q1(l),10),n);zEt(e)}function QUt(t,e,n,i,r,o){var a,s,c,l,u,h;for(Vat(l=new TEt,e),VSt(l,jz(QBt(e,(zWt(),obe)),61)),lct(l,(lKt(),fde),e),EJ(l,n),(h=l.o).a=e.g,h.b=e.f,(u=l.n).a=e.i,u.b=e.j,WK(t.a,e,l),(a=a4(IY(dtt(new OH(null,(!e.e&&(e.e=new cF(NIe,e,7,4)),new d1(e.e,16))),new Ke),new Ge),new Gg(e)))||(a=a4(IY(dtt(new OH(null,(!e.d&&(e.d=new cF(NIe,e,8,5)),new d1(e.d,16))),new Ye),new We),new Wg(e))),a||(a=a4(new OH(null,(!e.e&&(e.e=new cF(NIe,e,7,4)),new d1(e.e,16))),new Xe)),lct(l,tde,(cL(),!!a)),mHt(l,o,r,jz(QBt(e,Qme),8)),c=new DP((!e.n&&(e.n=new tG(VIe,e,1,7)),e.n));c.e!=c.i.gc();)!zv(_N(QBt(s=jz(vbt(c),137),Vme)))&&s.a&&Gz(l.f,zut(s));switch(r.g){case 2:case 1:(l.j==(vGt(),sDe)||l.j==ADe)&&i.Fc((dNt(),ghe));break;case 4:case 3:(l.j==(vGt(),aDe)||l.j==EDe)&&i.Fc((dNt(),ghe))}return l}function JUt(t,e,n,r,o,a,s){var c,l,u,h,d,f,g,p,m,b,w,k;for(d=null,r==(fQ(),Bve)?d=e:r==Mve&&(d=n),p=d.a.ec().Kc();p.Ob();){for(g=jz(p.Pb(),11),m=Ict(Est(Vy(xxe,1),cYt,8,0,[g.i.n,g.n,g.a])).b,k=new Ow,c=new Ow,u=new b6(g.b);wM(u.a)||wM(u.b);)if(zv(_N(wxt(l=jz(wM(u.a)?Q1(u.a):Q1(u.b),17),(lKt(),Ede))))==o&&-1!=y9(a,l,0)){if(b=l.d==g?l.c:l.d,w=Ict(Est(Vy(xxe,1),cYt,8,0,[b.i.n,b.n,b.a])).b,i.Math.abs(w-m)<.2)continue;w<m?e.a._b(b)?_G(k,new nD(Bve,l)):_G(k,new nD(Mve,l)):e.a._b(b)?_G(c,new nD(Bve,l)):_G(c,new nD(Mve,l))}if(k.a.gc()>1)for(t4(k,new sS(t,f=new lHt(g,k,r))),s.c[s.c.length]=f,h=k.a.ec().Kc();h.Ob();)w9(a,jz(h.Pb(),46).b);if(c.a.gc()>1)for(t4(c,new cS(t,f=new lHt(g,c,r))),s.c[s.c.length]=f,h=c.a.ec().Kc();h.Ob();)w9(a,jz(h.Pb(),46).b)}}function tGt(t){Mx(t,new AAt(f_(m_(d_(p_(g_(new ms,f5t),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new Ha),f5t))),o2(t,f5t,p3t,wbt(P_e)),o2(t,f5t,bJt,wbt(N_e)),o2(t,f5t,EJt,wbt(E_e)),o2(t,f5t,$Jt,wbt(T_e)),o2(t,f5t,xJt,wbt(S_e)),o2(t,f5t,TJt,wbt(x_e)),o2(t,f5t,AJt,wbt(D_e)),o2(t,f5t,SJt,wbt(M_e)),o2(t,f5t,l5t,wbt(C_e)),o2(t,f5t,c5t,wbt(A_e)),o2(t,f5t,d5t,wbt(I_e)),o2(t,f5t,a5t,wbt(B_e)),o2(t,f5t,s5t,wbt(L_e)),o2(t,f5t,u5t,wbt(O_e)),o2(t,f5t,h5t,wbt(R_e))}function eGt(t){var e;if(this.r=PY(new Et,new Tt),this.b=new zft(jz(wW(FDe),290)),this.p=new zft(jz(wW(FDe),290)),this.i=new zft(jz(wW(Nre),290)),this.e=t,this.o=new dB(t.rf()),this.D=t.Df()||zv(_N(t.We((cKt(),AEe)))),this.A=jz(t.We((cKt(),NEe)),21),this.B=jz(t.We(zEe),21),this.q=jz(t.We(oTe),98),this.u=jz(t.We(lTe),21),!fxt(this.u))throw $b(new ny("Invalid port label placement: "+this.u));if(this.v=zv(_N(t.We(hTe))),this.j=jz(t.We(LEe),21),!tPt(this.j))throw $b(new ny("Invalid node label placement: "+this.j));this.n=jz(Jvt(t,MEe),116),this.k=Vv(CN(Jvt(t,STe))),this.d=Vv(CN(Jvt(t,TTe))),this.w=Vv(CN(Jvt(t,OTe))),this.s=Vv(CN(Jvt(t,DTe))),this.t=Vv(CN(Jvt(t,ITe))),this.C=jz(Jvt(t,PTe),142),this.c=2*this.d,e=!this.B.Hc((JFt(),$De)),this.f=new Smt(0,e,0),this.g=new Smt(1,e,0),vv(this.f,(Oet(),Hie),this.g)}function nGt(t,e,n,r,o){var a,s,c,l,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E;for(v=0,m=0,p=0,g=1,k=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));k.e!=k.i.gc();)g+=F3(new aU(ZP(gPt(b=jz(vbt(k),33)).a.Kc(),new u))),A=b.g,m=i.Math.max(m,A),f=b.f,p=i.Math.max(p,f),v+=A*f;for(s=v+2*r*r*g*(!t.a&&(t.a=new tG(HIe,t,10,11)),t.a).i,a=i.Math.sqrt(s),l=i.Math.max(a*n,m),c=i.Math.max(a/n,p),w=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));w.e!=w.i.gc();)b=jz(vbt(w),33),x=o.b+(zMt(e,26)*iZt+zMt(e,27)*rZt)*(l-b.g),E=o.b+(zMt(e,26)*iZt+zMt(e,27)*rZt)*(c-b.f),Ent(b,x),Tnt(b,E);for(C=l+(o.b+o.c),_=c+(o.d+o.a),y=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));y.e!=y.i.gc();)for(d=new aU(ZP(gPt(jz(vbt(y),33)).a.Kc(),new u));gBt(d);)JIt(h=jz(q4(d),79))||$Wt(h,e,C,_);RGt(t,C+=o.b+o.c,_+=o.d+o.a,!1,!0)}function iGt(t){var e,n,i,r,o,a,s,c,l,u,h;if(null==t)throw $b(new Cy(qKt));if(l=t,c=!1,(o=t.length)>0&&(h1(0,t.length),45!=(e=t.charCodeAt(0))&&43!=e||(t=t.substr(1),--o,c=45==e)),0==o)throw $b(new Cy(OXt+l+'"'));for(;t.length>0&&(h1(0,t.length),48==t.charCodeAt(0));)t=t.substr(1),--o;if(o>(n$t(),Lee)[10])throw $b(new Cy(OXt+l+'"'));for(r=0;r<o;r++)if(-1==emt((h1(r,t.length),t.charCodeAt(r))))throw $b(new Cy(OXt+l+'"'));for(h=0,a=Mee[10],u=Pee[10],s=v9(Oee[10]),n=!0,(i=o%a)>0&&(h=-parseInt(t.substr(0,i),10),t=t.substr(i),o-=i,n=!1);o>=a;){if(i=parseInt(t.substr(0,a),10),t=t.substr(a),o-=a,n)n=!1;else{if(Kut(h,s)<0)throw $b(new Cy(OXt+l+'"'));h=rft(h,u)}h=nft(h,i)}if(Kut(h,0)>0)throw $b(new Cy(OXt+l+'"'));if(!c&&Kut(h=v9(h),0)<0)throw $b(new Cy(OXt+l+'"'));return h}function rGt(t,e){var n,i,r,o,a,s,c;if(ZV(),this.a=new UM(this),this.b=t,this.c=e,this.f=SG(j9((STt(),XMe),e)),this.f.dc())if((s=w_t(XMe,t))==e)for(this.e=!0,this.d=new Mb,this.f=new dc,this.f.Fc(x9t),jz(PVt(F9(XMe,Uet(t)),""),26)==t&&this.f.Fc(rU(XMe,Uet(t))),r=_Ft(XMe,t).Kc();r.Ob();)switch(i=jz(r.Pb(),170),LK(j9(XMe,i))){case 4:this.d.Fc(i);break;case 5:this.f.Gc(SG(j9(XMe,i)))}else if(Zx(),jz(e,66).Oj())for(this.e=!0,this.f=null,this.d=new Mb,a=0,c=(null==t.i&&V$t(t),t.i).length;a<c;++a)for(null==t.i&&V$t(t),n=t.i,i=a>=0&&a<n.length?n[a]:null,o=Z1(j9(XMe,i));o;o=Z1(j9(XMe,o)))o==e&&this.d.Fc(i);else 1==LK(j9(XMe,e))&&s?(this.f=null,this.d=(CIt(),lPe)):(this.f=null,this.e=!0,this.d=(AX(),new Vf(e)));else this.e=5==LK(j9(XMe,e)),this.f.Fb(rPe)&&(this.f=rPe)}function oGt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p;for(n=0,r=Ekt(t,e),f=t.s,g=t.t,u=jz(jz(c6(t.r,e),21),84).Kc();u.Ob();)if((l=jz(u.Pb(),111)).c&&!(l.c.d.c.length<=0)){switch(p=l.b.rf(),c=l.b.Xe((cKt(),rTe))?Vv(CN(l.b.We(rTe))):0,(d=(h=l.c).i).b=(s=h.n,h.e.a+s.b+s.c),d.a=(a=h.n,h.e.b+a.d+a.a),e.g){case 1:d.c=l.a?(p.a-d.b)/2:p.a+f,d.d=p.b+c+r,u8(h,(X8(),Kie)),GN(h,(V9(),ire));break;case 3:d.c=l.a?(p.a-d.b)/2:p.a+f,d.d=-c-r-d.a,u8(h,(X8(),Kie)),GN(h,(V9(),ere));break;case 2:d.c=-c-r-d.b,l.a?(o=t.v?d.a:jz(PH(h.d,0),181).rf().b,d.d=(p.b-o)/2):d.d=p.b+g,u8(h,(X8(),Xie)),GN(h,(V9(),nre));break;case 4:d.c=p.a+c+r,l.a?(o=t.v?d.a:jz(PH(h.d,0),181).rf().b,d.d=(p.b-o)/2):d.d=p.b+g,u8(h,(X8(),Yie)),GN(h,(V9(),nre))}(e==(vGt(),sDe)||e==ADe)&&(n=i.Math.max(n,d.a))}n>0&&(jz(aY(t.b,e),124).a.b=n)}function aGt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m;for(DAt(e,"Comment pre-processing",1),n=0,c=new Gf(t.a);c.a<c.c.c.length;)if(zv(_N(wxt(s=jz(Q1(c),10),(zWt(),_pe))))){for(++n,r=0,i=null,l=null,g=new Gf(s.j);g.a<g.c.c.length;)r+=(d=jz(Q1(g),11)).e.c.length+d.g.c.length,1==d.e.c.length&&(l=(i=jz(PH(d.e,0),17)).c),1==d.g.c.length&&(l=(i=jz(PH(d.g,0),17)).d);if(1!=r||l.e.c.length+l.g.c.length!=1||zv(_N(wxt(l.i,_pe)))){for(m=new Mb,f=new Gf(s.j);f.a<f.c.c.length;){for(h=new Gf((d=jz(Q1(f),11)).g);h.a<h.c.c.length;)0==(u=jz(Q1(h),17)).d.g.c.length||(m.c[m.c.length]=u);for(a=new Gf(d.e);a.a<a.c.c.length;)0==(o=jz(Q1(a),17)).c.e.c.length||(m.c[m.c.length]=o)}for(p=new Gf(m);p.a<p.c.c.length;)tzt(jz(Q1(p),17),!0)}else JGt(s,i,l,l.i),DG(c)}e.n&&SV(e,"Found "+n+" comment boxes"),zEt(e)}function sGt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p;if(d=Vv(CN(wxt(t,(zWt(),Ebe)))),f=Vv(CN(wxt(t,Tbe))),h=Vv(CN(wxt(t,Abe))),s=t.o,a=(o=jz(PH(t.j,0),11)).n,p=CTt(o,h)){if(e.Hc((hDt(),tDe)))switch(jz(wxt(t,(lKt(),Khe)),61).g){case 1:p.c=(s.a-p.b)/2-a.a,p.d=f;break;case 3:p.c=(s.a-p.b)/2-a.a,p.d=-f-p.a;break;case 2:n&&0==o.e.c.length&&0==o.g.c.length?(u=i?p.a:jz(PH(o.f,0),70).o.b,p.d=(s.b-u)/2-a.b):p.d=s.b+f-a.b,p.c=-d-p.b;break;case 4:n&&0==o.e.c.length&&0==o.g.c.length?(u=i?p.a:jz(PH(o.f,0),70).o.b,p.d=(s.b-u)/2-a.b):p.d=s.b+f-a.b,p.c=d}else if(e.Hc(nDe))switch(jz(wxt(t,(lKt(),Khe)),61).g){case 1:case 3:p.c=a.a+d;break;case 2:case 4:n&&!o.c?(u=i?p.a:jz(PH(o.f,0),70).o.b,p.d=(s.b-u)/2-a.b):p.d=a.b+f}for(r=p.d,l=new Gf(o.f);l.a<l.c.c.length;)(g=(c=jz(Q1(l),70)).n).a=p.c,g.b=r,r+=c.o.b+h}}function cGt(){OI(hPe,new Yl),OI(VPe,new au),OI(HPe,new bu),OI(qPe,new Su),OI(Yee,new Mu),OI(Vy(BLe,1),new Pu),OI(vee,new Lu),OI(Cee,new Ou),OI(Yee,new jl),OI(Yee,new $l),OI(Yee,new zl),OI(Eee,new Vl),OI(Yee,new Hl),OI(Nte,new ql),OI(Nte,new Ul),OI(Yee,new Gl),OI(Tee,new Wl),OI(Yee,new Kl),OI(Yee,new Xl),OI(Yee,new Zl),OI(Yee,new Ql),OI(Yee,new Jl),OI(Vy(BLe,1),new tu),OI(Yee,new eu),OI(Yee,new nu),OI(Nte,new iu),OI(Nte,new ru),OI(Yee,new ou),OI(Iee,new su),OI(Yee,new cu),OI(Nee,new lu),OI(Yee,new uu),OI(Yee,new hu),OI(Yee,new du),OI(Yee,new fu),OI(Nte,new gu),OI(Nte,new pu),OI(Yee,new mu),OI(Yee,new wu),OI(Yee,new ku),OI(Yee,new vu),OI(Yee,new yu),OI(Yee,new _u),OI(Fee,new Cu),OI(Yee,new Au),OI(Yee,new xu),OI(Yee,new Eu),OI(Fee,new Tu),OI(Nee,new Du),OI(Yee,new Iu),OI(Iee,new Bu)}function lGt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;if((h=e.length)>0&&(h1(0,e.length),64!=(s=e.charCodeAt(0)))){if(37==s&&(c=!1,0!=(u=e.lastIndexOf("%"))&&(u==h-1||(h1(u+1,e.length),c=46==e.charCodeAt(u+1))))){if(w=bF("%",a=e.substr(1,u-1))?null:BGt(a),i=0,c)try{i=hjt(e.substr(u+2),FYt,OKt)}catch(t){throw iP(t=hst(t),127)?$b(new B9(t)):$b(t)}for(p=_rt(t.Wg());p.Ob();)if(iP(f=Aat(p),510)&&(b=(r=jz(f,590)).d,(null==w?null==b:bF(w,b))&&0==i--))return r;return null}if(d=-1==(l=e.lastIndexOf("."))?e:e.substr(0,l),n=0,-1!=l)try{n=hjt(e.substr(l+1),FYt,OKt)}catch(t){if(!iP(t=hst(t),127))throw $b(t);d=e}for(d=bF("%",d)?null:BGt(d),g=_rt(t.Wg());g.Ob();)if(iP(f=Aat(g),191)&&(m=(o=jz(f,191)).ne(),(null==d?null==m:bF(d,m))&&0==n--))return o;return null}return FHt(t,e)}function uGt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A;for(k=new Mb,h=new Gf(t.b);h.a<h.c.c.length;)for(g=new Gf(jz(Q1(h),29).a);g.a<g.c.c.length;)if((d=jz(Q1(g),10)).k==(aEt(),Cse)&&BO(d,(lKt(),Whe))){for(p=null,b=null,m=null,_=new Gf(d.j);_.a<_.c.c.length;)switch((y=jz(Q1(_),11)).j.g){case 4:p=y;break;case 2:b=y;break;default:m=y}for(l=new N_((w=jz(PH(m.g,0),17)).a),qR(c=new dB(m.n),d.n),QG(cbt(l,0),c),v=Zct(w.a),qR(u=new dB(m.n),d.n),n4(v,u,v.c.b,v.c),C=jz(wxt(d,Whe),10),A=jz(PH(C.j,0),11),o=0,s=(i=jz(Ymt(p.e,P7(wse,r1t,17,0,0,1)),474)).length;o<s;++o)CJ(e=i[o],A),Wlt(e.a,e.a.b,l);for(r=0,a=(n=Z0(b.g)).length;r<a;++r)AJ(e=n[r],A),Wlt(e.a,0,v);AJ(w,null),CJ(w,null),k.c[k.c.length]=d}for(f=new Gf(k);f.a<f.c.c.length;)xJ(d=jz(Q1(f),10),null)}function hGt(){var t,e,n;for(hGt=I,new ktt(1,0),new ktt(10,0),new ktt(0,0),zee=P7(nne,cYt,240,11,0,1),Vee=P7(TLe,WYt,25,100,15,1),Hee=Est(Vy(MLe,1),VXt,25,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),qee=P7(SLe,lXt,25,Hee.length,15,1),Uee=Est(Vy(MLe,1),VXt,25,15,[1,10,100,KYt,1e4,HXt,1e6,1e7,1e8,IXt,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Gee=P7(SLe,lXt,25,Uee.length,15,1),Wee=P7(nne,cYt,240,11,0,1),t=0;t<Wee.length;t++)zee[t]=new ktt(t,0),Wee[t]=new ktt(0,t),Vee[t]=48;for(;t<Vee.length;t++)Vee[t]=48;for(n=0;n<qee.length;n++)qee[n]=oDt(Hee[n]);for(e=0;e<Gee.length;e++)Gee[e]=oDt(Uee[e]);BIt()}function dGt(){function t(){this.obj=this.createObject()}return t.prototype.createObject=function(t){return Object.create(null)},t.prototype.get=function(t){return this.obj[t]},t.prototype.set=function(t,e){this.obj[t]=e},t.prototype[nZt]=function(t){delete this.obj[t]},t.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},t.prototype.entries=function(){var t=this.keys(),e=this,n=0;return{next:function(){if(n>=t.length)return{done:!0};var i=t[n++];return{value:[i,e.get(i)],done:!1}}}},qNt()||(t.prototype.createObject=function(){return{}},t.prototype.get=function(t){return this.obj[":"+t]},t.prototype.set=function(t,e){this.obj[":"+t]=e},t.prototype[nZt]=function(t){delete this.obj[":"+t]},t.prototype.keys=function(){var t=[];for(var e in this.obj)58==e.charCodeAt(0)&&t.push(e.substring(1));return t}),t}function fGt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g,p;if(E$t(),null==t)return null;if(0==(h=8*t.length))return"";for(d=h/24|0,o=null,o=P7(TLe,WYt,25,4*(0!=(s=h%24)?d+1:d),15,1),l=0,u=0,e=0,n=0,i=0,a=0,r=0,c=0;c<d;c++)e=t[r++],u=(15&(n=t[r++]))<<24>>24,l=(3&e)<<24>>24,f=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,g=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,p=-128&(i=t[r++])?(i>>6^252)<<24>>24:i>>6<<24>>24,o[a++]=GPe[f],o[a++]=GPe[g|l<<4],o[a++]=GPe[u<<2|p],o[a++]=GPe[63&i];return 8==s?(l=(3&(e=t[r]))<<24>>24,f=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,o[a++]=GPe[f],o[a++]=GPe[l<<4],o[a++]=61,o[a++]=61):16==s&&(e=t[r],u=(15&(n=t[r+1]))<<24>>24,l=(3&e)<<24>>24,f=-128&e?(e>>2^192)<<24>>24:e>>2<<24>>24,g=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,o[a++]=GPe[f],o[a++]=GPe[g|l<<4],o[a++]=GPe[u<<2],o[a++]=61),$pt(o,0,o.length)}function gGt(t,e){var n,r,o,a,s,c;if(0==t.e&&t.p>0&&(t.p=-(t.p-1)),t.p>FYt&&t5(e,t.p-cXt),s=e.q.getDate(),FQ(e,1),t.k>=0&&mJ(e,t.k),t.c>=0?FQ(e,t.c):t.k>=0?(r=35-new bct(e.q.getFullYear()-cXt,e.q.getMonth(),35).q.getDate(),FQ(e,i.Math.min(r,s))):FQ(e,s),t.f<0&&(t.f=e.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),rP(e,24==t.f&&t.g?0:t.f),t.j>=0&&g6(e,t.j),t.n>=0&&q7(e,t.n),t.i>=0&&fI(e,ift(rft(D_t(uat(e.q.getTime()),KYt),KYt),t.i)),t.a&&(t5(o=new DA,o.q.getFullYear()-cXt-80),sE(uat(e.q.getTime()),uat(o.q.getTime()))&&t5(e,o.q.getFullYear()-cXt+100)),t.d>=0)if(-1==t.c)(n=(7+t.d-e.q.getDay())%7)>3&&(n-=7),c=e.q.getMonth(),FQ(e,e.q.getDate()+n),e.q.getMonth()!=c&&FQ(e,e.q.getDate()+(n>0?-7:7));else if(e.q.getDay()!=t.d)return!1;return t.o>FYt&&(a=e.q.getTimezoneOffset(),fI(e,ift(uat(e.q.getTime()),60*(t.o-a)*KYt))),!0}function pGt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b;if(iP(r=wxt(e,(lKt(),fde)),239)){for(f=jz(r,33),g=e.e,h=new dB(e.c),o=e.d,h.a+=o.b,h.b+=o.d,AL(jz(QBt(f,(zWt(),zme)),174),(JFt(),zDe))&&(Td(d=jz(QBt(f,Hme),116),o.a),Nd(d,o.d),Sd(d,o.b),Rd(d,o.c)),n=new Mb,l=new Gf(e.a);l.a<l.c.c.length;)for(iP(wxt(s=jz(Q1(l),10),fde),239)?TGt(s,h):iP(wxt(s,fde),186)&&!g&&AB(i=jz(wxt(s,fde),118),(m=k$t(e,s,i.g,i.f)).a,m.b),p=new Gf(s.j);p.a<p.c.c.length;)XA(DY(new OH(null,new d1(jz(Q1(p),11).g,16)),new Kg(s)),new Yg(n));if(g)for(p=new Gf(g.j);p.a<p.c.c.length;)XA(DY(new OH(null,new d1(jz(Q1(p),11).g,16)),new Xg(g)),new Zg(n));for(b=jz(QBt(f,Zpe),218),a=new Gf(n);a.a<a.c.c.length;)mUt(jz(Q1(a),17),b,h);for(wjt(e),c=new Gf(e.a);c.a<c.c.c.length;)(u=(s=jz(Q1(c),10)).e)&&pGt(t,u)}}function mGt(t){Mx(t,new AAt(b_(f_(m_(d_(p_(g_(new ms,pJt),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new ge),pJt),yq((lBt(),QIe),Est(Vy(iBe,1),BYt,237,0,[XIe]))))),o2(t,pJt,mJt,ndt(1)),o2(t,pJt,bJt,80),o2(t,pJt,wJt,5),o2(t,pJt,KQt,gJt),o2(t,pJt,kJt,ndt(1)),o2(t,pJt,vJt,(cL(),!0)),o2(t,pJt,YQt,Koe),o2(t,pJt,yJt,wbt($oe)),o2(t,pJt,_Jt,wbt(Yoe)),o2(t,pJt,CJt,!1),o2(t,pJt,AJt,wbt(Goe)),o2(t,pJt,xJt,wbt(Uoe)),o2(t,pJt,EJt,wbt(qoe)),o2(t,pJt,TJt,wbt(Hoe)),o2(t,pJt,SJt,wbt(Xoe)),o2(t,pJt,sJt,wbt(Voe)),o2(t,pJt,uJt,wbt(rae)),o2(t,pJt,cJt,wbt(zoe)),o2(t,pJt,dJt,wbt(Joe)),o2(t,pJt,lJt,wbt(tae))}function bGt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g;if(!jz(jz(c6(t.r,e),21),84).dc()){if(l=(s=jz(aY(t.b,e),124)).i,c=s.n,h=ENt(t,e),r=l.b-c.b-c.c,o=s.a.a,a=l.c+c.b,g=t.w,h!=(rbt(),jSe)&&h!=zSe||1!=jz(jz(c6(t.r,e),21),84).gc()||(o=h==jSe?o-2*t.w:o,h=FSe),r<o&&!t.B.Hc((JFt(),GDe)))h==jSe?a+=g+=(r-o)/(jz(jz(c6(t.r,e),21),84).gc()+1):g+=(r-o)/(jz(jz(c6(t.r,e),21),84).gc()-1);else switch(r<o&&(o=h==jSe?o-2*t.w:o,h=FSe),h.g){case 3:a+=(r-o)/2;break;case 4:a+=r-o;break;case 0:n=(r-o)/(jz(jz(c6(t.r,e),21),84).gc()+1),a+=g+=i.Math.max(0,n);break;case 1:n=(r-o)/(jz(jz(c6(t.r,e),21),84).gc()-1),g+=i.Math.max(0,n)}for(f=jz(jz(c6(t.r,e),21),84).Kc();f.Ob();)(d=jz(f.Pb(),111)).e.a=a+d.d.b,d.e.b=(u=d.b).Xe((cKt(),rTe))?u.Hf()==(vGt(),sDe)?-u.rf().b-Vv(CN(u.We(rTe))):Vv(CN(u.We(rTe))):u.Hf()==(vGt(),sDe)?-u.rf().b:0,a+=d.d.b+d.b.rf().a+d.d.c+g}}function wGt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p;if(!jz(jz(c6(t.r,e),21),84).dc()){if(l=(s=jz(aY(t.b,e),124)).i,c=s.n,d=ENt(t,e),r=l.a-c.d-c.a,o=s.a.b,a=l.d+c.d,p=t.w,u=t.o.a,d!=(rbt(),jSe)&&d!=zSe||1!=jz(jz(c6(t.r,e),21),84).gc()||(o=d==jSe?o-2*t.w:o,d=FSe),r<o&&!t.B.Hc((JFt(),GDe)))d==jSe?a+=p+=(r-o)/(jz(jz(c6(t.r,e),21),84).gc()+1):p+=(r-o)/(jz(jz(c6(t.r,e),21),84).gc()-1);else switch(r<o&&(o=d==jSe?o-2*t.w:o,d=FSe),d.g){case 3:a+=(r-o)/2;break;case 4:a+=r-o;break;case 0:n=(r-o)/(jz(jz(c6(t.r,e),21),84).gc()+1),a+=p+=i.Math.max(0,n);break;case 1:n=(r-o)/(jz(jz(c6(t.r,e),21),84).gc()-1),p+=i.Math.max(0,n)}for(g=jz(jz(c6(t.r,e),21),84).Kc();g.Ob();)(f=jz(g.Pb(),111)).e.a=(h=f.b).Xe((cKt(),rTe))?h.Hf()==(vGt(),EDe)?-h.rf().a-Vv(CN(h.We(rTe))):u+Vv(CN(h.We(rTe))):h.Hf()==(vGt(),EDe)?-h.rf().a:u,f.e.b=a+f.d.d,a+=f.d.d+f.b.rf().b+f.d.a+p}}function kGt(t){var e,n,r,o,a,s,c,l,h,d,f,g,p,m,b;for(t.n=Vv(CN(wxt(t.g,(zWt(),Sbe)))),t.e=Vv(CN(wxt(t.g,_be))),t.i=t.g.b.c.length,c=t.i-1,g=0,t.j=0,t.k=0,t.a=o6(P7(Iee,cYt,19,t.i,0,1)),t.b=o6(P7(Eee,cYt,333,t.i,7,1)),s=new Gf(t.g.b);s.a<s.c.c.length;){for((o=jz(Q1(s),29)).p=c,f=new Gf(o.a);f.a<f.c.c.length;)(d=jz(Q1(f),10)).p=g,++g;--c}for(t.f=P7(SLe,lXt,25,g,15,1),t.c=kH(SLe,[cYt,lXt],[48,25],15,[g,3],2),t.o=new Mb,t.p=new Mb,e=0,t.d=0,a=new Gf(t.g.b);a.a<a.c.c.length;){for(c=(o=jz(Q1(a),29)).p,r=0,b=0,l=o.a.c.length,h=0,f=new Gf(o.a);f.a<f.c.c.length;)g=(d=jz(Q1(f),10)).p,t.f[g]=d.c.p,h+=d.o.b+t.n,n=F3(new aU(ZP(uft(d).a.Kc(),new u))),m=F3(new aU(ZP(hft(d).a.Kc(),new u))),t.c[g][0]=m-n,t.c[g][1]=n,t.c[g][2]=m,r+=n,b+=m,n>0&&Gz(t.p,d),Gz(t.o,d);p=l+(e-=r),h+=e*t.e,i4(t.a,c,ndt(p)),i4(t.b,c,h),t.j=i.Math.max(t.j,p),t.k=i.Math.max(t.k,h),t.d+=e,e+=b}}function vGt(){var t;vGt=I,xDe=new GS(lQt,0),sDe=new GS(wQt,1),aDe=new GS(kQt,2),ADe=new GS(vQt,3),EDe=new GS(yQt,4),AX(),dDe=new Dy(new YF(t=jz(W_(FDe),9),jz(AR(t,t.length),9),0)),fDe=uht(yq(sDe,Est(Vy(FDe,1),XJt,61,0,[]))),cDe=uht(yq(aDe,Est(Vy(FDe,1),XJt,61,0,[]))),yDe=uht(yq(ADe,Est(Vy(FDe,1),XJt,61,0,[]))),CDe=uht(yq(EDe,Est(Vy(FDe,1),XJt,61,0,[]))),wDe=uht(yq(sDe,Est(Vy(FDe,1),XJt,61,0,[ADe]))),hDe=uht(yq(aDe,Est(Vy(FDe,1),XJt,61,0,[EDe]))),vDe=uht(yq(sDe,Est(Vy(FDe,1),XJt,61,0,[EDe]))),gDe=uht(yq(sDe,Est(Vy(FDe,1),XJt,61,0,[aDe]))),_De=uht(yq(ADe,Est(Vy(FDe,1),XJt,61,0,[EDe]))),lDe=uht(yq(aDe,Est(Vy(FDe,1),XJt,61,0,[ADe]))),bDe=uht(yq(sDe,Est(Vy(FDe,1),XJt,61,0,[aDe,EDe]))),uDe=uht(yq(aDe,Est(Vy(FDe,1),XJt,61,0,[ADe,EDe]))),kDe=uht(yq(sDe,Est(Vy(FDe,1),XJt,61,0,[ADe,EDe]))),pDe=uht(yq(sDe,Est(Vy(FDe,1),XJt,61,0,[aDe,ADe]))),mDe=uht(yq(sDe,Est(Vy(FDe,1),XJt,61,0,[aDe,ADe,EDe])))}function yGt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;if(0!=e.b){for(d=new YA,a=null,f=null,n=EQ(i.Math.floor(i.Math.log(e.b)*i.Math.LOG10E)+1),s=0,w=cbt(e,0);w.b!=w.d.c;)for(m=jz(h3(w),86),VD(f)!==VD(wxt(m,(VHt(),nye)))&&(f=AN(wxt(m,nye)),s=0),a=null!=f?f+f0(s++,n):f0(s++,n),lct(m,nye,a),p=new dm(cbt(new hm(m).a.d,0));yC(p.a);)n4(d,g=jz(h3(p.a),188).c,d.c.b,d.c),lct(g,nye,a);for(h=new Pb,o=0;o<a.length-n;o++)for(b=cbt(e,0);b.b!=b.d.c;)bJ(h,c=lO(AN(wxt(m=jz(h3(b),86),(VHt(),nye))),0,o+1),ndt(null!=(null==c?zD(DZ(h.f,null)):cE(h.g,c))?jz(null==c?zD(DZ(h.f,null)):cE(h.g,c),19).a+1:1));for(u=new alt(new xf(h).a);u.b;)l=tnt(u),r=ndt(null!=OW(t.a,l.cd())?jz(OW(t.a,l.cd()),19).a:0),bJ(t.a,AN(l.cd()),ndt(jz(l.dd(),19).a+r.a)),(!(r=jz(OW(t.b,l.cd()),19))||r.a<jz(l.dd(),19).a)&&bJ(t.b,AN(l.cd()),jz(l.dd(),19));yGt(t,d)}}function _Gt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;for(DAt(n,"Interactive node layering",1),r=new Mb,g=new Gf(e.a);g.a<g.c.c.length;){for(l=(u=(d=jz(Q1(g),10)).n.a)+d.o.a,l=i.Math.max(u+1,l),w=new C2(r,0),o=null;w.b<w.d.gc();){if(xO(w.b<w.d.gc()),(m=jz(w.d.Xb(w.c=w.b++),569)).c>=l){xO(w.b>0),w.a.Xb(w.c=--w.b);break}m.a>u&&(o?(pst(o.b,m.b),o.a=i.Math.max(o.a,m.a),lK(w)):(Gz(m.b,d),m.c=i.Math.min(m.c,u),m.a=i.Math.max(m.a,l),o=m))}o||((o=new ek).c=u,o.a=l,wR(w,o),Gz(o.b,d))}for(c=e.b,h=0,b=new Gf(r);b.a<b.c.c.length;)for(m=jz(Q1(b),569),(a=new $W(e)).p=h++,c.c[c.c.length]=a,p=new Gf(m.b);p.a<p.c.c.length;)xJ(d=jz(Q1(p),10),a),d.p=0;for(f=new Gf(e.a);f.a<f.c.c.length;)0==(d=jz(Q1(f),10)).p&&TNt(t,d,e);for(s=new C2(c,0);s.b<s.d.gc();)0==(xO(s.b<s.d.gc()),jz(s.d.Xb(s.c=s.b++),29)).a.c.length&&lK(s);e.a.c=P7(Ite,zKt,1,0,5,1),zEt(n)}function CGt(t,e,n){var i,r,o,a,s,c,l,u,h,d;if(0!=e.e.c.length&&0!=n.e.c.length){if((i=jz(PH(e.e,0),17).c.i)==(a=jz(PH(n.e,0),17).c.i))return yM(jz(wxt(jz(PH(e.e,0),17),(lKt(),dde)),19).a,jz(wxt(jz(PH(n.e,0),17),dde),19).a);for(h=0,d=(u=t.a).length;h<d;++h){if((l=u[h])==i)return 1;if(l==a)return-1}}return 0!=e.g.c.length&&0!=n.g.c.length?(o=jz(wxt(e,(lKt(),ude)),10),c=jz(wxt(n,ude),10),r=0,s=0,BO(jz(PH(e.g,0),17),dde)&&(r=jz(wxt(jz(PH(e.g,0),17),dde),19).a),BO(jz(PH(n.g,0),17),dde)&&(s=jz(wxt(jz(PH(e.g,0),17),dde),19).a),o&&o==c?zv(_N(wxt(jz(PH(e.g,0),17),Ede)))&&!zv(_N(wxt(jz(PH(n.g,0),17),Ede)))?1:!zv(_N(wxt(jz(PH(e.g,0),17),Ede)))&&zv(_N(wxt(jz(PH(n.g,0),17),Ede)))||r<s?-1:r>s?1:0:(t.b&&(t.b._b(o)&&(r=jz(t.b.xc(o),19).a),t.b._b(c)&&(s=jz(t.b.xc(c),19).a)),r<s?-1:r>s?1:0)):0!=e.e.c.length&&0!=n.g.c.length?1:-1}function AGt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;for(DAt(e,D1t,1),g=new Mb,v=new Mb,l=new Gf(t.b);l.a<l.c.c.length;)for(m=-1,d=0,f=(h=Q0((c=jz(Q1(l),29)).a)).length;d<f;++d)if(++m,(u=h[d]).k==(aEt(),Ese)&&mB(jz(wxt(u,(zWt(),tbe)),98))){for(BF(jz(wxt(u,(zWt(),tbe)),98))||zLt(u),lct(u,(lKt(),nde),u),g.c=P7(Ite,zKt,1,0,5,1),v.c=P7(Ite,zKt,1,0,5,1),n=new Mb,Vrt(w=new YA,OEt(u,(vGt(),sDe))),IWt(t,w,g,v,n),s=m,y=u,o=new Gf(g);o.a<o.c.c.length;)Yvt(i=jz(Q1(o),10),s,c),++m,lct(i,nde,u),a=jz(PH(i.j,0),11),p=jz(wxt(a,fde),11),zv(_N(wxt(p,vpe)))||jz(wxt(i,ide),15).Fc(y);for(wX(w),b=OEt(u,ADe).Kc();b.Ob();)n4(w,jz(b.Pb(),11),w.a,w.a.a);for(IWt(t,w,v,null,n),k=u,r=new Gf(v);r.a<r.c.c.length;)Yvt(i=jz(Q1(r),10),++m,c),lct(i,nde,u),a=jz(PH(i.j,0),11),p=jz(wxt(a,fde),11),zv(_N(wxt(p,vpe)))||jz(wxt(k,ide),15).Fc(i);0==n.c.length||lct(u,Phe,n)}zEt(e)}function xGt(t){var e,n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T;for(u=jz(wxt(t,(Art(),sae)),33),p=OKt,m=OKt,f=FYt,g=FYt,w=new Gf(t.e);w.a<w.c.c.length;)C=(b=jz(Q1(w),144)).d,A=b.e,p=i.Math.min(p,C.a-A.a/2),m=i.Math.min(m,C.b-A.b/2),f=i.Math.max(f,C.a+A.a/2),g=i.Math.max(g,C.b+A.b/2);for(y=new PS((_=jz(QBt(u,(uRt(),Woe)),116)).b-p,_.d-m),c=new Gf(t.e);c.a<c.c.c.length;)iP(v=wxt(s=jz(Q1(c),144),sae),239)&&AB(h=jz(v,33),(k=qR(s.d,y)).a-h.g/2,k.b-h.f/2);for(r=new Gf(t.c);r.a<r.c.c.length;)n=jz(Q1(r),282),l=rNt(jz(wxt(n,sae),79),!0,!0),Uyt(E=UR(jM(n.d.d),n.c.d),n.c.e.a,n.c.e.b),EB(l,(x=qR(E,n.c.d)).a,x.b),Uyt(T=UR(jM(n.c.d),n.d.d),n.d.e.a,n.d.e.b),xB(l,(e=qR(T,n.d.d)).a,e.b);for(a=new Gf(t.d);a.a<a.c.c.length;)o=jz(Q1(a),447),AB(jz(wxt(o,sae),137),(d=qR(o.d,y)).a,d.b);RGt(u,f-p+(_.b+_.c),g-m+(_.d+_.a),!1,!0)}function EGt(t){var e,n,i,r,o,a,s,c,l,u,h;for(n=null,s=null,(r=jz(wxt(t.b,(zWt(),eme)),376))==(D6(),Xwe)&&(n=new Mb,s=new Mb),a=new Gf(t.d);a.a<a.c.c.length;)if((o=jz(Q1(a),101)).i)switch(o.e.g){case 0:e=jz(o5(new KA(o.b)),61),r==Xwe&&e==(vGt(),sDe)?n.c[n.c.length]=o:r==Xwe&&e==(vGt(),ADe)?s.c[s.c.length]=o:Pkt(o,e);break;case 1:c=o.a.d.j,l=o.c.d.j,c==(vGt(),sDe)?hG(o,sDe,(Dst(),ble),o.a):l==sDe?hG(o,sDe,(Dst(),wle),o.c):c==ADe?hG(o,ADe,(Dst(),wle),o.a):l==ADe&&hG(o,ADe,(Dst(),ble),o.c);break;case 2:case 3:AL(i=o.b,(vGt(),sDe))?AL(i,ADe)?AL(i,EDe)?AL(i,aDe)||hG(o,sDe,(Dst(),wle),o.c):hG(o,sDe,(Dst(),ble),o.a):hG(o,sDe,(Dst(),mle),null):hG(o,ADe,(Dst(),mle),null);break;case 4:u=o.a.d.j,h=o.a.d.j,u==(vGt(),sDe)||h==sDe?hG(o,ADe,(Dst(),mle),null):hG(o,sDe,(Dst(),mle),null)}n&&(0==n.c.length||Y$t(n,(vGt(),sDe)),0==s.c.length||Y$t(s,(vGt(),ADe)))}function TGt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g;for(i=jz(wxt(t,(lKt(),fde)),33),f=jz(wxt(t,(zWt(),jpe)),19).a,o=jz(wxt(t,vme),19).a,Xbt(i,jpe,ndt(f)),Xbt(i,vme,ndt(o)),Ent(i,t.n.a+e.a),Tnt(i,t.n.b+e.b),(0!=jz(QBt(i,Fme),174).gc()||t.e||VD(wxt(mK(t),Rme))===VD((Pwt(),bwe))&&pB((dwt(),(t.q?t.q:(AX(),AX(),lne))._b(Ome)?jz(wxt(t,Ome),197):jz(wxt(mK(t),Nme),197))))&&(xnt(i,t.o.a),Ant(i,t.o.b)),h=new Gf(t.j);h.a<h.c.c.length;)iP(g=wxt(l=jz(Q1(h),11),fde),186)&&(AB(r=jz(g,118),l.n.a,l.n.b),Xbt(r,obe,l.j));for(d=0!=jz(wxt(t,Ime),174).gc(),c=new Gf(t.b);c.a<c.c.c.length;)a=jz(Q1(c),70),(d||0!=jz(wxt(a,Ime),174).gc())&&(CB(n=jz(wxt(a,fde),137),a.o.a,a.o.b),AB(n,a.n.a,a.n.b));if(!$U(jz(wxt(t,ibe),21)))for(u=new Gf(t.j);u.a<u.c.c.length;)for(s=new Gf((l=jz(Q1(u),11)).f);s.a<s.c.c.length;)a=jz(Q1(s),70),xnt(n=jz(wxt(a,fde),137),a.o.a),Ant(n,a.o.b),AB(n,a.n.a,a.n.b)}function SGt(t){var e,n,i,r,o;switch(SZ(t,n7t),(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b).i+(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c).i){case 0:throw $b(new Rv("The edge must have at least one source or target."));case 1:return 0==(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b).i?XQ(EAt(jz(Wet((!t.c&&(t.c=new cF(OIe,t,5,8)),t.c),0),82))):XQ(EAt(jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82)))}if(1==(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b).i&&1==(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c).i){if(r=EAt(jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82)),o=EAt(jz(Wet((!t.c&&(t.c=new cF(OIe,t,5,8)),t.c),0),82)),XQ(r)==XQ(o))return XQ(r);if(r==XQ(o))return r;if(o==XQ(r))return o}for(e=EAt(jz(q4(i=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[(!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),(!t.c&&(t.c=new cF(OIe,t,5,8)),t.c)])))),82));gBt(i);)if((n=EAt(jz(q4(i),82)))!=e&&!Tet(n,e))if(XQ(n)==XQ(e))e=XQ(n);else if(!(e=$Mt(e,n)))return null;return e}function DGt(t,e,n){var r,o,a,s,c,l,h,d,f,g,p,m,b,w,k,v,y,_;for(DAt(n,"Polyline edge routing",1),w=Vv(CN(wxt(e,(zWt(),Jpe)))),p=Vv(CN(wxt(e,Dbe))),o=Vv(CN(wxt(e,kbe))),r=i.Math.min(1,o/p),y=0,l=0,0!=e.b.c.length&&(y=.4*r*(_=lPt(jz(PH(e.b,0),29)))),c=new C2(e.b,0);c.b<c.d.gc();){for(xO(c.b<c.d.gc()),(a=WD(s=jz(c.d.Xb(c.c=c.b++),29),vve))&&y>0&&(y-=p),CHt(s,y),d=0,g=new Gf(s.a);g.a<g.c.c.length;){for(h=0,b=new aU(ZP(hft(f=jz(Q1(g),10)).a.Kc(),new u));gBt(b);)k=g1((m=jz(q4(b),17)).c).b,v=g1(m.d).b,s!=m.d.i.c||h4(m)||(KDt(m,y,.4*r*i.Math.abs(k-v)),m.c.j==(vGt(),EDe)&&(k=0,v=0)),h=i.Math.max(h,i.Math.abs(v-k));switch(f.k.g){case 0:case 4:case 1:case 3:case 5:HHt(t,f,y,w)}d=i.Math.max(d,h)}c.b<c.d.gc()&&(_=lPt((xO(c.b<c.d.gc()),jz(c.d.Xb(c.c=c.b++),29))),d=i.Math.max(d,_),xO(c.b>0),c.a.Xb(c.c=--c.b)),l=.4*r*d,!a&&c.b<c.d.gc()&&(l+=p),y+=s.c.a+l}t.a.a.$b(),e.f.a=y,zEt(n)}function IGt(t){var e,n,i,r,o,a,s,c,l,h,d,f,g,p,m,b,w;for(l=new Pb,s=new pQ,i=new Gf(t.a.a.b);i.a<i.c.c.length;)if(c=l2(e=jz(Q1(i),57)))ySt(l.f,c,e);else if(w=l3(e))for(r=new Gf(w.k);r.a<r.c.c.length;)ZDt(s,jz(Q1(r),17),e);for(n=new Gf(t.a.a.b);n.a<n.c.c.length;)if(c=l2(e=jz(Q1(n),57)))for(a=new aU(ZP(hft(c).a.Kc(),new u));gBt(a);)if(!h4(o=jz(q4(a),17))&&(g=o.c,b=o.d,!(vGt(),wDe).Hc(o.c.j)||!wDe.Hc(o.d.j))){if(p=jz(OW(l,o.d.i),57),ULt(rx(ix(ox(nx(new $w,0),100),t.c[e.a.d]),t.c[p.a.d])),g.j==EDe&&IU((pot(),g)))for(d=jz(c6(s,o),21).Kc();d.Ob();)if((h=jz(d.Pb(),57)).d.c<e.d.c){if((f=t.c[h.a.d])==(m=t.c[e.a.d]))continue;ULt(rx(ix(ox(nx(new $w,1),100),f),m))}if(b.j==aDe&&DU((pot(),b)))for(d=jz(c6(s,o),21).Kc();d.Ob();)if((h=jz(d.Pb(),57)).d.c>e.d.c){if((f=t.c[e.a.d])==(m=t.c[h.a.d]))continue;ULt(rx(ix(ox(nx(new $w,1),100),f),m))}}}function BGt(t){var e,n,i,r,o,a,s,c;if(NVt(),null==t)return null;if((r=VI(t,XAt(37)))<0)return t;for(c=new uL(t.substr(0,r)),e=P7(BLe,b6t,25,4,15,1),s=0,i=0,a=t.length;r<a;r++)if(h1(r,t.length),37==t.charCodeAt(r)&&t.length>r+2&&tct((h1(r+1,t.length),t.charCodeAt(r+1)),EBe,TBe)&&tct((h1(r+2,t.length),t.charCodeAt(r+2)),EBe,TBe))if(n=EV((h1(r+1,t.length),t.charCodeAt(r+1)),(h1(r+2,t.length),t.charCodeAt(r+2))),r+=2,i>0?128==(192&n)?e[s++]=n<<24>>24:i=0:n>=128&&(192==(224&n)?(e[s++]=n<<24>>24,i=2):224==(240&n)?(e[s++]=n<<24>>24,i=3):240==(248&n)&&(e[s++]=n<<24>>24,i=4)),i>0){if(s==i){switch(s){case 2:PW(c,((31&e[0])<<6|63&e[1])&YYt);break;case 3:PW(c,((15&e[0])<<12|(63&e[1])<<6|63&e[2])&YYt)}s=0,i=0}}else{for(o=0;o<s;++o)PW(c,e[o]&YYt);s=0,c.a+=String.fromCharCode(n)}else{for(o=0;o<s;++o)PW(c,e[o]&YYt);s=0,PW(c,(h1(r,t.length),t.charCodeAt(r)))}return c.a}function MGt(t,e,n,i,r){var o,a,s;if(wtt(t,e),a=e[0],o=lY(n.c,0),s=-1,Xct(n))if(i>0){if(a+i>t.length)return!1;s=UDt(t.substr(0,a+i),e)}else s=UDt(t,e);switch(o){case 71:return s=qAt(t,a,Est(Vy(Yee,1),cYt,2,6,[uXt,hXt]),e),r.e=s,!0;case 77:return pNt(t,e,r,s,a);case 76:return mNt(t,e,r,s,a);case 69:return iSt(t,e,a,r);case 99:return rSt(t,e,a,r);case 97:return s=qAt(t,a,Est(Vy(Yee,1),cYt,2,6,["AM","PM"]),e),r.b=s,!0;case 121:return bNt(t,e,a,s,n,r);case 100:return!(s<=0||(r.c=s,0));case 83:return!(s<0)&&ygt(s,a,e[0],r);case 104:12==s&&(s=0);case 75:case 72:return!(s<0||(r.f=s,r.g=!1,0));case 107:return!(s<0||(r.f=s,r.g=!0,0));case 109:return!(s<0||(r.j=s,0));case 115:return!(s<0||(r.n=s,0));case 90:if(a<t.length&&(h1(a,t.length),90==t.charCodeAt(a)))return++e[0],r.o=0,!0;case 122:case 118:return TAt(t,a,e,r);default:return!1}}function PGt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;if(f=jz(jz(c6(t.r,e),21),84),e!=(vGt(),aDe)&&e!=EDe){for(a=e==sDe?(Oat(),Mre):(Oat(),Ore),y=e==sDe?(V9(),ire):(V9(),ere),o=(r=(n=jz(aY(t.b,e),124)).i).c+Mct(Est(Vy(MLe,1),VXt,25,15,[n.n.b,t.C.b,t.k])),w=r.c+r.b-Mct(Est(Vy(MLe,1),VXt,25,15,[n.n.c,t.C.c,t.k])),s=Zy($j(a),t.t),k=e==sDe?RXt:NXt,d=f.Kc();d.Ob();)!(u=jz(d.Pb(),111)).c||u.c.d.c.length<=0||(b=u.b.rf(),m=u.e,(p=(g=u.c).i).b=(l=g.n,g.e.a+l.b+l.c),p.a=(c=g.n,g.e.b+c.d+c.a),SZ(y,aQt),g.f=y,u8(g,(X8(),Xie)),p.c=m.a-(p.b-b.a)/2,_=i.Math.min(o,m.a),C=i.Math.max(w,m.a+b.a),p.c<_?p.c=_:p.c+p.b>C&&(p.c=C-p.b),Gz(s.d,new Pq(p,vdt(s,p))),k=e==sDe?i.Math.max(k,m.b+u.b.rf().b):i.Math.min(k,m.b));for(k+=e==sDe?t.t:-t.t,(v=Egt((s.e=k,s)))>0&&(jz(aY(t.b,e),124).a.b=v),h=f.Kc();h.Ob();)!(u=jz(h.Pb(),111)).c||u.c.d.c.length<=0||((p=u.c.i).c-=u.e.a,p.d-=u.e.b)}else oGt(t,e)}function LGt(t){var e,n,i,r,o,a,s,c,l,h;for(e=new Pb,a=new DP(t);a.e!=a.i.gc();){for(o=jz(vbt(a),33),n=new Ow,WK(Coe,o,n),h=new ae,i=jz(x5(new OH(null,new HG(new aU(ZP(fPt(o).a.Kc(),new u)))),Aq(h,b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[(Vlt(),qne)])))),83),Znt(n,jz(i.xc((cL(),!0)),14),new se),r=jz(x5(DY(jz(i.xc(!1),15).Lc(),new ce),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[qne]))),15).Kc();r.Ob();)(l=Txt(jz(r.Pb(),79)))&&((s=jz(zD(DZ(e.f,l)),21))||(s=DOt(l),ySt(e.f,l,s)),jrt(n,s));for(i=jz(x5(new OH(null,new HG(new aU(ZP(gPt(o).a.Kc(),new u)))),Aq(h,b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[qne])))),83),Znt(n,jz(i.xc(!0),14),new le),c=jz(x5(DY(jz(i.xc(!1),15).Lc(),new ue),b8(new V,new z,new it,Est(Vy(Qne,1),BYt,132,0,[qne]))),15).Kc();c.Ob();)(l=Sxt(jz(c.Pb(),79)))&&((s=jz(zD(DZ(e.f,l)),21))||(s=DOt(l),ySt(e.f,l,s)),jrt(n,s))}}function OGt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p;if(aVt(),(c=Kut(t,0)<0)&&(t=v9(t)),0==Kut(t,0))switch(e){case 0:return"0";case 1:return WXt;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(f=new Ey).a+=e<0?"0E+":"0E",f.a+=e==FYt?"2147483648":""+-e,f.a}h=P7(TLe,WYt,25,1+(u=18),15,1),n=u,p=t;do{l=p,p=D_t(p,10),h[--n]=fq(ift(48,nft(l,rft(p,10))))&YYt}while(0!=Kut(p,0));if(r=nft(nft(nft(u,n),e),1),0==e)return c&&(h[--n]=45),$pt(h,n,u-n);if(e>0&&Kut(r,-6)>=0){if(Kut(r,0)>=0){for(o=n+fq(r),s=u-1;s>=o;s--)h[s+1]=h[s];return h[++o]=46,c&&(h[--n]=45),$pt(h,n,u-n+1)}for(a=2;sE(a,ift(v9(r),1));a++)h[--n]=48;return h[--n]=46,h[--n]=48,c&&(h[--n]=45),$pt(h,n,u-n)}return g=n+1,i=u,d=new Ty,c&&(d.a+="-"),i-g>=1?(PW(d,h[n]),d.a+=".",d.a+=$pt(h,n+1,u-n-1)):d.a+=$pt(h,n,u-n),d.a+="E",Kut(r,0)>0&&(d.a+="+"),d.a+=""+mU(r),d.a}function NGt(t,e,n){var i,r,o,a,s,c,l,u,h,d;if(t.e.a.$b(),t.f.a.$b(),t.c.c=P7(Ite,zKt,1,0,5,1),t.i.c=P7(Ite,zKt,1,0,5,1),t.g.a.$b(),e)for(a=new Gf(e.a);a.a<a.c.c.length;)for(u=OEt(o=jz(Q1(a),10),(vGt(),aDe)).Kc();u.Ob();)for(l=jz(u.Pb(),11),_G(t.e,l),r=new Gf(l.g);r.a<r.c.c.length;)h4(i=jz(Q1(r),17))||(Gz(t.c,i),mbt(t,i),((s=i.c.i.k)==(aEt(),Ese)||s==Tse||s==Cse||s==_se)&&Gz(t.j,i),(h=(d=i.d).i.c)==n?_G(t.f,d):h==e?_G(t.e,d):w9(t.c,i));if(n)for(a=new Gf(n.a);a.a<a.c.c.length;){for(c=new Gf((o=jz(Q1(a),10)).j);c.a<c.c.c.length;)for(r=new Gf(jz(Q1(c),11).g);r.a<r.c.c.length;)h4(i=jz(Q1(r),17))&&_G(t.g,i);for(u=OEt(o,(vGt(),EDe)).Kc();u.Ob();)for(l=jz(u.Pb(),11),_G(t.f,l),r=new Gf(l.g);r.a<r.c.c.length;)h4(i=jz(Q1(r),17))||(Gz(t.c,i),mbt(t,i),((s=i.c.i.k)==(aEt(),Ese)||s==Tse||s==Cse||s==_se)&&Gz(t.j,i),(h=(d=i.d).i.c)==n?_G(t.f,d):h==e?_G(t.e,d):w9(t.c,i))}}function RGt(t,e,n,r,o){var a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;if(b=new PS(t.g,t.f),(m=GTt(t)).a=i.Math.max(m.a,e),m.b=i.Math.max(m.b,n),C=m.a/b.a,h=m.b/b.b,y=m.a-b.a,l=m.b-b.b,r)for(s=XQ(t)?jz(QBt(XQ(t),(cKt(),hEe)),103):jz(QBt(t,(cKt(),hEe)),103),c=VD(QBt(t,(cKt(),oTe)))===VD((YCt(),USe)),k=new DP((!t.c&&(t.c=new tG(qIe,t,9,9)),t.c));k.e!=k.i.gc();)switch(w=jz(vbt(k),118),(v=jz(QBt(w,dTe),61))==(vGt(),xDe)&&(v=D$t(w,s),Xbt(w,dTe,v)),v.g){case 1:c||Ent(w,w.i*C);break;case 2:Ent(w,w.i+y),c||Tnt(w,w.j*h);break;case 3:c||Ent(w,w.i*C),Tnt(w,w.j+l);break;case 4:c||Tnt(w,w.j*h)}if(CB(t,m.a,m.b),o)for(f=new DP((!t.n&&(t.n=new tG(VIe,t,1,7)),t.n));f.e!=f.i.gc();)g=(d=jz(vbt(f),137)).i+d.g/2,p=d.j+d.f/2,(_=g/b.a)+(u=p/b.b)>=1&&(_-u>0&&p>=0?(Ent(d,d.i+y),Tnt(d,d.j+l*u)):_-u<0&&g>=0&&(Ent(d,d.i+y*_),Tnt(d,d.j+l)));return Xbt(t,(cKt(),NEe),(wpt(),new YF(a=jz(W_(YDe),9),jz(AR(a,a.length),9),0))),new PS(C,h)}function FGt(t){var e,n,r,o,a,s,c,l,u,h,d;if(h=XQ(EAt(jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82)))==XQ(EAt(jz(Wet((!t.c&&(t.c=new cF(OIe,t,5,8)),t.c),0),82))),s=new V_,(e=jz(QBt(t,(Glt(),cSe)),74))&&e.b>=2){if(0==(!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i)J_(),n=new ac,l8((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a),n);else if((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i>1)for(d=new iO((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a));d.e!=d.i.gc();)Y_t(d);K$t(e,jz(Wet((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a),0),202))}if(h)for(r=new DP((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a));r.e!=r.i.gc();)for(l=new DP((!(n=jz(vbt(r),202)).a&&(n.a=new IP(MIe,n,5)),n.a));l.e!=l.i.gc();)c=jz(vbt(l),469),s.a=i.Math.max(s.a,c.a),s.b=i.Math.max(s.b,c.b);for(a=new DP((!t.n&&(t.n=new tG(VIe,t,1,7)),t.n));a.e!=a.i.gc();)o=jz(vbt(a),137),(u=jz(QBt(o,gSe),8))&&AB(o,u.a,u.b),h&&(s.a=i.Math.max(s.a,o.i+o.g),s.b=i.Math.max(s.b,o.j+o.f));return s}function jGt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;for(w=e.c.length,o=new VFt(t.a,n,null,null),C=P7(MLe,VXt,25,w,15,1),g=P7(MLe,VXt,25,w,15,1),f=P7(MLe,VXt,25,w,15,1),p=0,c=0;c<w;c++)g[c]=OKt,f[c]=FYt;for(l=0;l<w;l++)for(u1(l,e.c.length),r=jz(e.c[l],180),C[l]=bMt(r),C[p]>C[l]&&(p=l),h=new Gf(t.a.b);h.a<h.c.c.length;)for(b=new Gf(jz(Q1(h),29).a);b.a<b.c.c.length;)m=jz(Q1(b),10),y=Vv(r.p[m.p])+Vv(r.d[m.p]),g[l]=i.Math.min(g[l],y),f[l]=i.Math.max(f[l],y+m.o.b);for(_=P7(MLe,VXt,25,w,15,1),u=0;u<w;u++)(u1(u,e.c.length),jz(e.c[u],180)).o==(aJ(),nve)?_[u]=g[p]-g[u]:_[u]=f[p]-f[u];for(a=P7(MLe,VXt,25,w,15,1),d=new Gf(t.a.b);d.a<d.c.c.length;)for(v=new Gf(jz(Q1(d),29).a);v.a<v.c.c.length;){for(k=jz(Q1(v),10),s=0;s<w;s++)a[s]=Vv((u1(s,e.c.length),jz(e.c[s],180)).p[k.p])+Vv((u1(s,e.c.length),jz(e.c[s],180)).d[k.p])+_[s];a.sort(nnt(A.prototype.te,A,[])),o.p[k.p]=(a[1]+a[2])/2,o.d[k.p]=0}return o}function $Gt(t,e,n){var i,r,o,a,s;switch(i=e.i,o=t.i.o,r=t.i.d,s=t.n,a=Ict(Est(Vy(xxe,1),cYt,8,0,[s,t.a])),t.j.g){case 1:GN(e,(V9(),ere)),i.d=-r.d-n-i.a,jz(jz(PH(e.d,0),181).We((lKt(),ode)),285)==(Gvt(),vSe)?(u8(e,(X8(),Xie)),i.c=a.a-Vv(CN(wxt(t,hde)))-n-i.b):(u8(e,(X8(),Yie)),i.c=a.a+Vv(CN(wxt(t,hde)))+n);break;case 2:u8(e,(X8(),Yie)),i.c=o.a+r.c+n,jz(jz(PH(e.d,0),181).We((lKt(),ode)),285)==(Gvt(),vSe)?(GN(e,(V9(),ere)),i.d=a.b-Vv(CN(wxt(t,hde)))-n-i.a):(GN(e,(V9(),ire)),i.d=a.b+Vv(CN(wxt(t,hde)))+n);break;case 3:GN(e,(V9(),ire)),i.d=o.b+r.a+n,jz(jz(PH(e.d,0),181).We((lKt(),ode)),285)==(Gvt(),vSe)?(u8(e,(X8(),Xie)),i.c=a.a-Vv(CN(wxt(t,hde)))-n-i.b):(u8(e,(X8(),Yie)),i.c=a.a+Vv(CN(wxt(t,hde)))+n);break;case 4:u8(e,(X8(),Xie)),i.c=-r.b-n-i.b,jz(jz(PH(e.d,0),181).We((lKt(),ode)),285)==(Gvt(),vSe)?(GN(e,(V9(),ere)),i.d=a.b-Vv(CN(wxt(t,hde)))-n-i.a):(GN(e,(V9(),ire)),i.d=a.b+Vv(CN(wxt(t,hde)))+n)}}function zGt(t,e,n,r,o,a,s){var c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S,D,I;for(g=0,E=0,l=new Gf(t);l.a<l.c.c.length;)sUt(c=jz(Q1(l),33)),g=i.Math.max(g,c.g),E+=c.g*c.f;for(x=Qvt(t,E/t.c.length),E+=t.c.length*x,g=i.Math.max(g,i.Math.sqrt(E*s))+n.b,D=n.b,I=n.d,f=0,h=n.b+n.c,LV(A=new YA,ndt(0)),_=new YA,u=new C2(t,0);u.b<u.d.gc();)xO(u.b<u.d.gc()),S=(c=jz(u.d.Xb(u.c=u.b++),33)).g,d=c.f,D+S>g&&(a&&(lI(_,f),lI(A,ndt(u.b-1))),D=n.b,I+=f+e,f=0,h=i.Math.max(h,n.b+n.c+S)),Ent(c,D),Tnt(c,I),h=i.Math.max(h,D+S+n.c),f=i.Math.max(f,d),D+=S+e;if(h=i.Math.max(h,r),(T=I+f+n.a)<o&&(f+=o-T,T=o),a)for(D=n.b,u=new C2(t,0),lI(A,ndt(t.c.length)),b=jz(h3(C=cbt(A,0)),19).a,lI(_,f),y=cbt(_,0),v=0;u.b<u.d.gc();)u.b==b&&(D=n.b,v=Vv(CN(h3(y))),b=jz(h3(C),19).a),xO(u.b<u.d.gc()),w=(c=jz(u.d.Xb(u.c=u.b++),33)).f,Ant(c,v),p=v,u.b==b&&(m=h-D-n.c,k=c.g,xnt(c,m),hSt(c,new PS(m,p),new PS(k,w))),D+=c.g+e;return new PS(h,T)}function VGt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E;for(DAt(e,"Compound graph postprocessor",1),n=zv(_N(wxt(t,(zWt(),Lbe)))),c=jz(wxt(t,(lKt(),$he)),224),h=new Ow,w=c.ec().Kc();w.Ob();){for(b=jz(w.Pb(),17),s=new JF(c.cc(b)),AX(),bM(s,new Rg(t)),_=rot((u1(0,s.c.length),jz(s.c[0],243))),A=oot(jz(PH(s,s.c.length-1),243)),v=_.i,k=fat(A.i,v)?v.e:mK(v),d=Ibt(b,s),wX(b.a),f=null,a=new Gf(s);a.a<a.c.c.length;)o=jz(Q1(a),243),DTt(m=new V_,o.a,k),g=o.b,Wlt(r=new kk,0,g.a),Qet(r,m),y=new dB(g1(g.c)),C=new dB(g1(g.d)),qR(y,m),qR(C,m),f&&(0==r.b?p=C:(xO(0!=r.b),p=jz(r.a.a.c,8)),x=i.Math.abs(f.a-p.a)>hJt,E=i.Math.abs(f.b-p.b)>hJt,(!n&&x&&E||n&&(x||E))&&LV(b.a,y)),jrt(b.a,r),0==r.b?f=y:(xO(0!=r.b),f=jz(r.c.b.c,8)),Xat(g,d,m),oot(o)==A&&(mK(A.i)!=o.a&&DTt(m=new V_,mK(A.i),k),lct(b,Ode,m)),AEt(g,b,k),h.a.zc(g,h);AJ(b,_),CJ(b,A)}for(u=h.a.ec().Kc();u.Ob();)AJ(l=jz(u.Pb(),17),null),CJ(l,null);zEt(e)}function HGt(t){var e,n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;if(1==t.gc())return jz(t.Xb(0),231);if(t.gc()<=0)return new w6;for(o=t.Kc();o.Ob();){for(n=jz(o.Pb(),231),p=0,h=OKt,d=OKt,l=FYt,u=FYt,g=new Gf(n.e);g.a<g.c.c.length;)f=jz(Q1(g),144),p+=jz(wxt(f,(uRt(),Zoe)),19).a,h=i.Math.min(h,f.d.a-f.e.a/2),d=i.Math.min(d,f.d.b-f.e.b/2),l=i.Math.max(l,f.d.a+f.e.a/2),u=i.Math.max(u,f.d.b+f.e.b/2);lct(n,(uRt(),Zoe),ndt(p)),lct(n,(Art(),aae),new PS(h,d)),lct(n,oae,new PS(l,u))}for(AX(),t.ad(new fe),Vat(m=new w6,jz(t.Xb(0),94)),c=0,k=0,a=t.Kc();a.Ob();)n=jz(a.Pb(),231),b=UR(jM(jz(wxt(n,(Art(),oae)),8)),jz(wxt(n,aae),8)),c=i.Math.max(c,b.a),k+=b.a*b.b;for(c=i.Math.max(c,i.Math.sqrt(k)*Vv(CN(wxt(m,(uRt(),Foe))))),v=0,y=0,s=0,e=w=Vv(CN(wxt(m,iae))),r=t.Kc();r.Ob();)n=jz(r.Pb(),231),v+(b=UR(jM(jz(wxt(n,(Art(),oae)),8)),jz(wxt(n,aae),8))).a>c&&(v=0,y+=s+w,s=0),KFt(m,n,v,y),e=i.Math.max(e,v+b.a),s=i.Math.max(s,b.b),v+=b.a+w;return m}function qGt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g;switch(u=new kk,t.a.g){case 3:d=jz(wxt(e.e,(lKt(),Mde)),15),f=jz(wxt(e.j,Mde),15),g=jz(wxt(e.f,Mde),15),n=jz(wxt(e.e,Ide),15),i=jz(wxt(e.j,Ide),15),r=jz(wxt(e.f,Ide),15),pst(a=new Mb,d),f.Jc(new yo),pst(a,iP(f,152)?a6(jz(f,152)):iP(f,131)?jz(f,131).a:iP(f,54)?new lv(f):new EA(f)),pst(a,g),pst(o=new Mb,n),pst(o,iP(i,152)?a6(jz(i,152)):iP(i,131)?jz(i,131).a:iP(i,54)?new lv(i):new EA(i)),pst(o,r),lct(e.f,Mde,a),lct(e.f,Ide,o),lct(e.f,Pde,e.f),lct(e.e,Mde,null),lct(e.e,Ide,null),lct(e.j,Mde,null),lct(e.j,Ide,null);break;case 1:jrt(u,e.e.a),LV(u,e.i.n),jrt(u,eat(e.j.a)),LV(u,e.a.n),jrt(u,e.f.a);break;default:jrt(u,e.e.a),jrt(u,eat(e.j.a)),jrt(u,e.f.a)}wX(e.f.a),jrt(e.f.a,u),AJ(e.f,e.e.c),s=jz(wxt(e.e,(zWt(),mme)),74),l=jz(wxt(e.j,mme),74),c=jz(wxt(e.f,mme),74),(s||l||c)&&(xG(h=new kk,c),xG(h,l),xG(h,s),lct(e.f,mme,h)),AJ(e.j,null),CJ(e.j,null),AJ(e.e,null),CJ(e.e,null),xJ(e.a,null),xJ(e.i,null),e.g&&qGt(t,e.g)}function UGt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f,g,p,m;if(E$t(),null==t)return null;if((g=ddt(o=W9(t)))%4!=0)return null;if(0==(p=g/4|0))return P7(BLe,b6t,25,0,15,1);for(h=null,e=0,n=0,i=0,r=0,a=0,s=0,c=0,l=0,f=0,d=0,u=0,h=P7(BLe,b6t,25,3*p,15,1);f<p-1;f++){if(!(WC(a=o[u++])&&WC(s=o[u++])&&WC(c=o[u++])&&WC(l=o[u++])))return null;e=UPe[a],n=UPe[s],i=UPe[c],r=UPe[l],h[d++]=(e<<2|n>>4)<<24>>24,h[d++]=((15&n)<<4|i>>2&15)<<24>>24,h[d++]=(i<<6|r)<<24>>24}return WC(a=o[u++])&&WC(s=o[u++])?(e=UPe[a],n=UPe[s],c=o[u++],l=o[u++],-1==UPe[c]||-1==UPe[l]?61==c&&61==l?15&n?null:(oVt(h,0,m=P7(BLe,b6t,25,3*f+1,15,1),0,3*f),m[d]=(e<<2|n>>4)<<24>>24,m):61!=c&&61==l?3&(i=UPe[c])?null:(oVt(h,0,m=P7(BLe,b6t,25,3*f+2,15,1),0,3*f),m[d++]=(e<<2|n>>4)<<24>>24,m[d]=((15&n)<<4|i>>2&15)<<24>>24,m):null:(i=UPe[c],r=UPe[l],h[d++]=(e<<2|n>>4)<<24>>24,h[d++]=((15&n)<<4|i>>2&15)<<24>>24,h[d++]=(i<<6|r)<<24>>24,h)):null}function GGt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;for(DAt(e,D1t,1),d=jz(wxt(t,(zWt(),Zpe)),218),i=new Gf(t.b);i.a<i.c.c.length;)for(a=0,s=(o=Q0(jz(Q1(i),29).a)).length;a<s;++a)if((r=o[a]).k==(aEt(),Tse)){if(d==(Aft(),XTe))for(l=new Gf(r.j);l.a<l.c.c.length;)0==(c=jz(Q1(l),11)).e.c.length||Imt(c),0==c.g.c.length||Bmt(c);else if(iP(wxt(r,(lKt(),fde)),17))g=jz(wxt(r,fde),17),p=jz(OEt(r,(vGt(),EDe)).Kc().Pb(),11),m=jz(OEt(r,aDe).Kc().Pb(),11),b=jz(wxt(p,fde),11),AJ(g,w=jz(wxt(m,fde),11)),CJ(g,b),(k=new dB(m.i.n)).a=Ict(Est(Vy(xxe,1),cYt,8,0,[w.i.n,w.n,w.a])).a,LV(g.a,k),(k=new dB(p.i.n)).a=Ict(Est(Vy(xxe,1),cYt,8,0,[b.i.n,b.n,b.a])).a,LV(g.a,k);else{if(r.j.c.length>=2){for(f=!0,n=jz(Q1(u=new Gf(r.j)),11),h=null;u.a<u.c.c.length;)if(h=n,n=jz(Q1(u),11),!Pht(wxt(h,fde),wxt(n,fde))){f=!1;break}}else f=!1;for(l=new Gf(r.j);l.a<l.c.c.length;)0==(c=jz(Q1(l),11)).e.c.length||aOt(c,f),0==c.g.c.length||sOt(c,f)}xJ(r,null)}zEt(e)}function WGt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x;return v=t.c[(u1(0,e.c.length),jz(e.c[0],17)).p],A=t.c[(u1(1,e.c.length),jz(e.c[1],17)).p],!(v.a.e.e-v.a.a-(v.b.e.e-v.b.a)==0&&A.a.e.e-A.a.a-(A.b.e.e-A.b.a)==0||!iP(w=v.b.e.f,10)||(b=jz(w,10),_=t.i[b.p],C=b.c?y9(b.c.a,b,0):-1,a=NXt,C>0&&(o=jz(PH(b.c.a,C-1),10),s=t.i[o.p],x=i.Math.ceil(NM(t.n,o,b)),a=_.a.e-b.d.d-(s.a.e+o.o.b+o.d.a)-x),u=NXt,C<b.c.a.c.length-1&&(l=jz(PH(b.c.a,C+1),10),h=t.i[l.p],x=i.Math.ceil(NM(t.n,l,b)),u=h.a.e-l.d.d-(_.a.e+b.o.b+b.d.a)-x),!(n&&(cM(),iit(I3t),i.Math.abs(a-u)<=I3t||a==u||isNaN(a)&&isNaN(u)))&&(r=rW(v.a),c=-rW(v.b),d=-rW(A.a),k=rW(A.b),m=v.a.e.e-v.a.a-(v.b.e.e-v.b.a)>0&&A.a.e.e-A.a.a-(A.b.e.e-A.b.a)<0,p=v.a.e.e-v.a.a-(v.b.e.e-v.b.a)<0&&A.a.e.e-A.a.a-(A.b.e.e-A.b.a)>0,g=v.a.e.e+v.b.a<A.b.e.e+A.a.a,f=v.a.e.e+v.b.a>A.b.e.e+A.a.a,y=0,!m&&!p&&(f?a+d>0?y=d:u-r>0&&(y=r):g&&(a+c>0?y=c:u-k>0&&(y=k))),_.a.e+=y,_.b&&(_.d.e+=y),1)))}function KGt(t,e,n){var r,o,a,s,c,l,u,h,d,f;if(r=new qY(e.qf().a,e.qf().b,e.rf().a,e.rf().b),o=new hB,t.c)for(s=new Gf(e.wf());s.a<s.c.c.length;)a=jz(Q1(s),181),o.c=a.qf().a+e.qf().a,o.d=a.qf().b+e.qf().b,o.b=a.rf().a,o.a=a.rf().b,TTt(r,o);for(u=new Gf(e.Cf());u.a<u.c.c.length;){if(h=(l=jz(Q1(u),838)).qf().a+e.qf().a,d=l.qf().b+e.qf().b,t.e&&(o.c=h,o.d=d,o.b=l.rf().a,o.a=l.rf().b,TTt(r,o)),t.d)for(s=new Gf(l.wf());s.a<s.c.c.length;)a=jz(Q1(s),181),o.c=a.qf().a+h,o.d=a.qf().b+d,o.b=a.rf().a,o.a=a.rf().b,TTt(r,o);if(t.b){if(f=new PS(-n,-n),jz(e.We((cKt(),lTe)),174).Hc((hDt(),nDe)))for(s=new Gf(l.wf());s.a<s.c.c.length;)a=jz(Q1(s),181),f.a+=a.rf().a+n,f.b+=a.rf().b+n;f.a=i.Math.max(f.a,0),f.b=i.Math.max(f.b,0),Gjt(r,l.Bf(),l.zf(),e,l,f,n)}}t.b&&Gjt(r,e.Bf(),e.zf(),e,null,null,n),(c=new Dj(e.Af())).d=i.Math.max(0,e.qf().b-r.d),c.a=i.Math.max(0,r.d+r.a-(e.qf().b+e.rf().b)),c.b=i.Math.max(0,e.qf().a-r.c),c.c=i.Math.max(0,r.c+r.b-(e.qf().a+e.rf().a)),e.Ef(c)}function YGt(){var t=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return t[34]='\\"',t[92]="\\\\",t[173]="\\u00ad",t[1536]="\\u0600",t[1537]="\\u0601",t[1538]="\\u0602",t[1539]="\\u0603",t[1757]="\\u06dd",t[1807]="\\u070f",t[6068]="\\u17b4",t[6069]="\\u17b5",t[8203]="\\u200b",t[8204]="\\u200c",t[8205]="\\u200d",t[8206]="\\u200e",t[8207]="\\u200f",t[8232]="\\u2028",t[8233]="\\u2029",t[8234]="\\u202a",t[8235]="\\u202b",t[8236]="\\u202c",t[8237]="\\u202d",t[8238]="\\u202e",t[8288]="\\u2060",t[8289]="\\u2061",t[8290]="\\u2062",t[8291]="\\u2063",t[8292]="\\u2064",t[8298]="\\u206a",t[8299]="\\u206b",t[8300]="\\u206c",t[8301]="\\u206d",t[8302]="\\u206e",t[8303]="\\u206f",t[65279]="\\ufeff",t[65529]="\\ufff9",t[65530]="\\ufffa",t[65531]="\\ufffb",t}function XGt(t,e,n){var i,r,o,a,s,c,l,u,h,d;for(c=new Mb,h=e.length,a=Sct(n),l=0;l<h;++l){switch(u=wL(e,XAt(61),l),o=(r=ast(i=udt(a,e.substr(l,u-l)))).Aj().Nh(),lY(e,++u)){case 39:s=uO(e,39,++u),Gz(c,new ED(i,YY(e.substr(u,s-u),o,r))),l=s+1;break;case 34:s=uO(e,34,++u),Gz(c,new ED(i,YY(e.substr(u,s-u),o,r))),l=s+1;break;case 91:Gz(c,new ED(i,d=new Mb));t:for(;;){switch(lY(e,++u)){case 39:s=uO(e,39,++u),Gz(d,YY(e.substr(u,s-u),o,r)),u=s+1;break;case 34:s=uO(e,34,++u),Gz(d,YY(e.substr(u,s-u),o,r)),u=s+1;break;case 110:if(++u,e.indexOf("ull",u)!=u)throw $b(new fv(o6t));d.c[d.c.length]=null,u+=3}if(!(u<h))break;switch(h1(u,e.length),e.charCodeAt(u)){case 44:break;case 93:break t;default:throw $b(new fv("Expecting , or ]"))}}l=u+1;break;case 110:if(++u,e.indexOf("ull",u)!=u)throw $b(new fv(o6t));Gz(c,new ED(i,null)),l=u+3}if(!(l<h))break;if(h1(l,e.length),44!=e.charCodeAt(l))throw $b(new fv("Expecting ,"))}return nNt(t,c,n)}function ZGt(t,e){var n,i,r,o,a,s,c,l,u,h,d;for(l=jz(jz(c6(t.r,e),21),84),a=ZAt(t,e),n=t.u.Hc((hDt(),QSe)),c=l.Kc();c.Ob();)if((s=jz(c.Pb(),111)).c&&!(s.c.d.c.length<=0)){switch(d=s.b.rf(),(h=(u=s.c).i).b=(o=u.n,u.e.a+o.b+o.c),h.a=(r=u.n,u.e.b+r.d+r.a),e.g){case 1:s.a?(h.c=(d.a-h.b)/2,u8(u,(X8(),Kie))):a||n?(h.c=-h.b-t.s,u8(u,(X8(),Xie))):(h.c=d.a+t.s,u8(u,(X8(),Yie))),h.d=-h.a-t.t,GN(u,(V9(),ere));break;case 3:s.a?(h.c=(d.a-h.b)/2,u8(u,(X8(),Kie))):a||n?(h.c=-h.b-t.s,u8(u,(X8(),Xie))):(h.c=d.a+t.s,u8(u,(X8(),Yie))),h.d=d.b+t.t,GN(u,(V9(),ire));break;case 2:s.a?(i=t.v?h.a:jz(PH(u.d,0),181).rf().b,h.d=(d.b-i)/2,GN(u,(V9(),nre))):a||n?(h.d=-h.a-t.t,GN(u,(V9(),ere))):(h.d=d.b+t.t,GN(u,(V9(),ire))),h.c=d.a+t.s,u8(u,(X8(),Yie));break;case 4:s.a?(i=t.v?h.a:jz(PH(u.d,0),181).rf().b,h.d=(d.b-i)/2,GN(u,(V9(),nre))):a||n?(h.d=-h.a-t.t,GN(u,(V9(),ere))):(h.d=d.b+t.t,GN(u,(V9(),ire))),h.c=-h.b-t.s,u8(u,(X8(),Xie))}a=!1}}function QGt(t,e){var n,i,r,o,a,s,c,l,u,h,d;if(fKt(),0==MA(tLe)){for(h=P7(ELe,cYt,117,nLe.length,0,1),a=0;a<h.length;a++)h[a]=new C0(4);for(i=new xy,o=0;o<JPe.length;o++){if(u=new C0(4),o<84?(h1(s=2*o,bte.length),d=bte.charCodeAt(s),h1(s+1,bte.length),XOt(u,d,bte.charCodeAt(s+1))):XOt(u,iLe[s=2*(o-84)],iLe[s+1]),bF(c=JPe[o],"Specials")&&XOt(u,65520,65533),bF(c,pte)&&(XOt(u,983040,1048573),XOt(u,1048576,1114109)),bJ(tLe,c,u),bJ(eLe,c,B$t(u)),0<(l=i.a.length)?i.a=i.a.substr(0,0):0>l&&(i.a+=nP(P7(TLe,WYt,25,-l,15,1))),i.a+="Is",VI(c,XAt(32))>=0)for(r=0;r<c.length;r++)h1(r,c.length),32!=c.charCodeAt(r)&&MW(i,(h1(r,c.length),c.charCodeAt(r)));else i.a+=""+c;Cpt(i.a,c,!0)}Cpt(mte,"Cn",!1),Cpt(wte,"Cn",!0),XOt(n=new C0(4),0,ate),bJ(tLe,"ALL",n),bJ(eLe,"ALL",B$t(n)),!CLe&&(CLe=new Pb),bJ(CLe,mte,mte),!CLe&&(CLe=new Pb),bJ(CLe,wte,wte),!CLe&&(CLe=new Pb),bJ(CLe,"ALL","ALL")}return jz(AQ(e?tLe:eLe,t),136)}function JGt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p,m,b;if(d=!1,h=!1,mB(jz(wxt(i,(zWt(),tbe)),98))){a=!1,s=!1;t:for(g=new Gf(i.j);g.a<g.c.c.length;)for(f=jz(Q1(g),11),p=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[new $g(f),new Vg(f)])));gBt(p);)if(!zv(_N(wxt(jz(q4(p),11).i,_pe)))){if(f.j==(vGt(),sDe)){a=!0;break t}if(f.j==ADe){s=!0;break t}}d=s&&!a,h=a&&!s}if(d||h||0==i.b.c.length)b=!h;else{for(u=0,l=new Gf(i.b);l.a<l.c.c.length;)u+=(c=jz(Q1(l),70)).n.b+c.o.b/2;b=(u/=i.b.c.length)>=i.o.b/2}b?(m=jz(wxt(i,(lKt(),Nde)),15))?d?o=m:(r=jz(wxt(i,Lhe),15))?o=m.gc()<=r.gc()?m:r:(o=new Mb,lct(i,Lhe,o)):(o=new Mb,lct(i,Nde,o)):(r=jz(wxt(i,(lKt(),Lhe)),15))?h?o=r:(m=jz(wxt(i,Nde),15))?o=r.gc()<=m.gc()?r:m:(o=new Mb,lct(i,Nde,o)):(o=new Mb,lct(i,Lhe,o)),o.Fc(t),lct(t,(lKt(),Nhe),n),e.d==n?(CJ(e,null),n.e.c.length+n.g.c.length==0&&EJ(n,null),plt(n)):(AJ(e,null),n.e.c.length+n.g.c.length==0&&EJ(n,null)),wX(e.a)}function tWt(t,e){var n,i,r,o,a,s,c,l,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S,D;for(w=new C2(t.b,0),p=0,l=jz((h=e.Kc()).Pb(),19).a,y=0,n=new Ow,C=new lB;w.b<w.d.gc();){for(xO(w.b<w.d.gc()),v=new Gf(jz(w.d.Xb(w.c=w.b++),29).a);v.a<v.c.c.length;){for(g=new aU(ZP(hft(k=jz(Q1(v),10)).a.Kc(),new u));gBt(g);)d=jz(q4(g),17),C.a.zc(d,C);for(f=new aU(ZP(uft(k).a.Kc(),new u));gBt(f);)d=jz(q4(f),17),C.a.Bc(d)}if(p+1==l){for(wR(w,r=new $W(t)),wR(w,o=new $W(t)),x=C.a.ec().Kc();x.Ob();)A=jz(x.Pb(),17),n.a._b(A)||(++y,n.a.zc(A,n)),lct(a=new Bwt(t),(zWt(),tbe),(YCt(),WSe)),xJ(a,r),Fd(a,(aEt(),_se)),EJ(m=new TEt,a),VSt(m,(vGt(),EDe)),EJ(E=new TEt,a),VSt(E,aDe),lct(i=new Bwt(t),tbe,WSe),xJ(i,o),Fd(i,_se),EJ(b=new TEt,i),VSt(b,EDe),EJ(T=new TEt,i),VSt(T,aDe),AJ(_=new dZ,A.c),CJ(_,m),AJ(D=new dZ,E),CJ(D,b),AJ(A,T),s=new m3(a,i,_,D,A),lct(a,(lKt(),Ohe),s),lct(i,Ohe,s),(S=_.c.i).k==_se&&((c=jz(wxt(S,Ohe),305)).d=s,s.g=c);if(!h.Ob())break;l=jz(h.Pb(),19).a}++p}return ndt(y)}function eWt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p;for(h=0,r=new DP((!e.a&&(e.a=new tG(HIe,e,10,11)),e.a));r.e!=r.i.gc();)zv(_N(QBt(i=jz(vbt(r),33),(zWt(),Vme))))||(VD(QBt(e,Bpe))===VD((wct(),Mwe))&&VD(QBt(e,Vpe))!==VD((Kwt(),yue))&&VD(QBt(e,Vpe))!==VD((Kwt(),kue))&&!zv(_N(QBt(e,Ppe)))&&VD(QBt(e,Epe))===VD(($ht(),dse))||zv(_N(QBt(i,Ipe)))||(Xbt(i,(lKt(),dde),ndt(h)),++h),fUt(t,i,n));for(h=0,l=new DP((!e.b&&(e.b=new tG(NIe,e,12,3)),e.b));l.e!=l.i.gc();)s=jz(vbt(l),79),(VD(QBt(e,(zWt(),Bpe)))!==VD((wct(),Mwe))||VD(QBt(e,Vpe))===VD((Kwt(),yue))||VD(QBt(e,Vpe))===VD((Kwt(),kue))||zv(_N(QBt(e,Ppe)))||VD(QBt(e,Epe))!==VD(($ht(),dse)))&&(Xbt(s,(lKt(),dde),ndt(h)),++h),g=Ext(s),p=Dxt(s),u=zv(_N(QBt(g,dme))),f=!zv(_N(QBt(s,Vme))),d=u&&YDt(s)&&zv(_N(QBt(s,fme))),o=XQ(g)==e&&XQ(g)==XQ(p),a=(XQ(g)==e&&p==e)^(XQ(p)==e&&g==e),f&&!d&&(a||o)&&aKt(t,s,e,n);if(XQ(e))for(c=new DP(eX(XQ(e)));c.e!=c.i.gc();)(g=Ext(s=jz(vbt(c),79)))==e&&YDt(s)&&(d=zv(_N(QBt(g,(zWt(),dme))))&&zv(_N(QBt(s,fme))))&&aKt(t,s,e,n)}function nWt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S,D,I,B;for(DAt(n,"MinWidth layering",1),g=e.b,A=e.a,B=jz(wxt(e,(zWt(),yme)),19).a,c=jz(wxt(e,_me),19).a,t.b=Vv(CN(wxt(e,wbe))),t.d=NXt,y=new Gf(A);y.a<y.c.c.length;)(k=jz(Q1(y),10)).k==(aEt(),Ese)&&(T=k.o.b,t.d=i.Math.min(t.d,T));for(t.d=i.Math.max(1,t.d),x=A.c.length,t.c=P7(SLe,lXt,25,x,15,1),t.f=P7(SLe,lXt,25,x,15,1),t.e=P7(MLe,VXt,25,x,15,1),u=0,t.a=0,_=new Gf(A);_.a<_.c.c.length;)(k=jz(Q1(_),10)).p=u++,t.c[k.p]=fut(uft(k)),t.f[k.p]=fut(hft(k)),t.e[k.p]=k.o.b/t.d,t.a+=t.e[k.p];for(t.b/=t.d,t.a/=x,C=yIt(A),bM(A,KK(new Np(t))),m=NXt,p=OKt,s=null,I=B,D=B,a=c,o=c,B<0&&(I=jz(_ke.a.zd(),19).a,D=jz(_ke.b.zd(),19).a),c<0&&(a=jz(yke.a.zd(),19).a,o=jz(yke.b.zd(),19).a),S=I;S<=D;S++)for(r=a;r<=o;r++)w=Vv(CN((E=Mzt(t,S,r,A,C)).a)),b=(f=jz(E.b,15)).gc(),(w<m||w==m&&b<p)&&(m=w,p=b,s=f);for(d=s.Kc();d.Ob();){for(h=jz(d.Pb(),15),l=new $W(e),v=h.Kc();v.Ob();)xJ(k=jz(v.Pb(),10),l);g.c[g.c.length]=l}ZTt(g),A.c=P7(Ite,zKt,1,0,5,1),zEt(n)}function iWt(t,e){var n,r,o,a,s,c,l,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x;for(t.b=e,t.a=jz(wxt(e,(zWt(),cme)),19).a,t.c=jz(wxt(e,ume),19).a,0==t.c&&(t.c=OKt),m=new C2(e.b,0);m.b<m.d.gc();){for(xO(m.b<m.d.gc()),p=jz(m.d.Xb(m.c=m.b++),29),c=new Mb,d=-1,v=-1,k=new Gf(p.a);k.a<k.c.c.length;)w=jz(Q1(k),10),F3((zj(),new aU(ZP(lft(w).a.Kc(),new u))))>=t.a&&(r=kzt(t,w),d=i.Math.max(d,r.b),v=i.Math.max(v,r.d),Gz(c,new nD(w,r)));for(C=new Mb,h=0;h<d;++h)kq(C,0,(xO(m.b>0),m.a.Xb(m.c=--m.b),wR(m,A=new $W(t.b)),xO(m.b<m.d.gc()),m.d.Xb(m.c=m.b++),A));for(s=new Gf(c);s.a<s.c.c.length;)if(o=jz(Q1(s),46),g=jz(o.b,571).a)for(f=new Gf(g);f.a<f.c.c.length;)ayt(t,jz(Q1(f),10),qse,C);for(n=new Mb,l=0;l<v;++l)Gz(n,(wR(m,x=new $W(t.b)),x));for(a=new Gf(c);a.a<a.c.c.length;)if(o=jz(Q1(a),46),_=jz(o.b,571).c)for(y=new Gf(_);y.a<y.c.c.length;)ayt(t,jz(Q1(y),10),Use,n)}for(b=new C2(e.b,0);b.b<b.d.gc();)xO(b.b<b.d.gc()),0==jz(b.d.Xb(b.c=b.b++),29).a.c.length&&lK(b)}function rWt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S;if(DAt(n,"Spline edge routing",1),0==e.b.c.length)return e.f.a=0,void zEt(n);w=Vv(CN(wxt(e,(zWt(),Dbe)))),c=Vv(CN(wxt(e,_be))),s=Vv(CN(wxt(e,kbe))),A=jz(wxt(e,nme),336)==(Ult(),nke),C=Vv(CN(wxt(e,ime))),t.d=e,t.j.c=P7(Ite,zKt,1,0,5,1),t.a.c=P7(Ite,zKt,1,0,5,1),IG(t.k),h=WD((l=jz(PH(e.b,0),29)).a,(gOt(),vve)),d=WD((p=jz(PH(e.b,e.b.c.length-1),29)).a,vve),m=new Gf(e.b),b=null,S=0;do{for(NGt(t,b,k=m.a<m.c.c.length?jz(Q1(m),29):null),A$t(t),T=0,v=S,f=!b||h&&b==l,g=!k||d&&k==p,(x=Ry(iot(MY(DY(new OH(null,new d1(t.i,16)),new ya),new va))))>0?(u=0,b&&(u+=c),u+=(x-1)*s,k&&(u+=c),A&&k&&(u=i.Math.max(u,JLt(k,s,w,C))),u<w&&!f&&!g&&(T=(w-u)/2,u=w),v+=u):!f&&!g&&(v+=w),k&&CHt(k,v),_=new Gf(t.i);_.a<_.c.c.length;)(y=jz(Q1(_),128)).a.c=S,y.a.b=v-S,y.F=T,y.p=!b;pst(t.a,t.i),S=v,k&&(S+=k.c.a),b=k,f=g}while(k);for(o=new Gf(t.j);o.a<o.c.c.length;)a=wat(t,r=jz(Q1(o),17)),lct(r,(lKt(),Ide),a),E=OOt(t,r),lct(r,Mde,E);e.f.a=S,t.d=null,zEt(n)}function oWt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k;if(p=0!=t.i,w=!1,m=null,bB(t.e)){if((u=e.gc())>0){for(d=u<100?null:new F_(u),g=(l=new yot(e)).g,m=P7(SLe,lXt,25,u,15,1),i=0,k=new pet(u),r=0;r<t.i;++r){f=s=t.g[r];t:for(b=0;b<2;++b){for(c=u;--c>=0;)if(null!=f?Pht(f,g[c]):VD(f)===VD(g[c])){m.length<=i&&oVt(m,0,m=P7(SLe,lXt,25,2*m.length,15,1),0,i),m[i++]=r,l8(k,g[c]);break t}if(VD(f)===VD(s))break}}if(l=k,g=k.g,u=i,i>m.length&&oVt(m,0,m=P7(SLe,lXt,25,i,15,1),0,i),i>0){for(w=!0,o=0;o<i;++o)d=HF(t,jz(f=g[o],72),d);for(a=i;--a>=0;)Mvt(t,m[a]);if(i!=u){for(r=u;--r>=i;)Mvt(l,r);oVt(m,0,m=P7(SLe,lXt,25,i,15,1),0,i)}e=l}}}else for(e=yvt(t,e),r=t.i;--r>=0;)e.Hc(t.g[r])&&(Mvt(t,r),w=!0);if(w){if(null!=m){for(h=1==(n=e.gc())?wJ(t,4,e.Kc().Pb(),null,m[0],p):wJ(t,6,e,m,m[0],p),d=n<100?null:new F_(n),r=e.Kc();r.Ob();)d=zF(t,jz(f=r.Pb(),72),d);d?(d.Ei(h),d.Fi()):dat(t.e,h)}else{for(d=IF(e.gc()),r=e.Kc();r.Ob();)d=zF(t,jz(f=r.Pb(),72),d);d&&d.Fi()}return!0}return!1}function aWt(t,e){var n,i,r,o,a,s,c,l,h,d,f,g,p,m,b,w,k;for((n=new lwt(e)).a||pjt(e),l=hRt(e),c=new pQ,m=new YOt,p=new Gf(e.a);p.a<p.c.c.length;)for(r=new aU(ZP(hft(jz(Q1(p),10)).a.Kc(),new u));gBt(r);)(i=jz(q4(r),17)).c.i.k!=(aEt(),Cse)&&i.d.i.k!=Cse||ZDt(c,abt((h=hUt(t,i,l,m)).d),h.a);for(a=new Mb,k=jz(wxt(n.c,(lKt(),Uhe)),21).Kc();k.Ob();){switch(w=jz(k.Pb(),61),g=m.c[w.g],f=m.b[w.g],s=m.a[w.g],o=null,b=null,w.g){case 4:o=new qY(t.d.a,g,l.b.a-t.d.a,f-g),b=new qY(t.d.a,g,s,f-g),HV(l,new PS(o.c+o.b,o.d)),HV(l,new PS(o.c+o.b,o.d+o.a));break;case 2:o=new qY(l.a.a,g,t.c.a-l.a.a,f-g),b=new qY(t.c.a-s,g,s,f-g),HV(l,new PS(o.c,o.d)),HV(l,new PS(o.c,o.d+o.a));break;case 1:o=new qY(g,t.d.b,f-g,l.b.b-t.d.b),b=new qY(g,t.d.b,f-g,s),HV(l,new PS(o.c,o.d+o.a)),HV(l,new PS(o.c+o.b,o.d+o.a));break;case 3:o=new qY(g,l.a.b,f-g,t.c.b-l.a.b),b=new qY(g,t.c.b-s,f-g,s),HV(l,new PS(o.c,o.d)),HV(l,new PS(o.c+o.b,o.d))}o&&((d=new Qw).d=w,d.b=o,d.c=b,d.a=XX(jz(c6(c,abt(w)),21)),a.c[a.c.length]=d)}return pst(n.b,a),n.d=$ut(JHt(l)),n}function sWt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p;if(null==n.p[e.p]){c=!0,n.p[e.p]=0,s=e,p=n.o==(aJ(),nve)?RXt:NXt;do{o=t.b.e[s.p],a=s.c.a.c.length,n.o==nve&&o>0||n.o==ive&&o<a-1?(l=null,u=null,l=n.o==ive?jz(PH(s.c.a,o+1),10):jz(PH(s.c.a,o-1),10),sWt(t,u=n.g[l.p],n),p=t.e.bg(p,e,s),n.j[e.p]==e&&(n.j[e.p]=n.j[u.p]),n.j[e.p]==n.j[u.p]?(g=NM(t.d,s,l),n.o==ive?(r=Vv(n.p[e.p]),d=Vv(n.p[u.p])+Vv(n.d[l.p])-l.d.d-g-s.d.a-s.o.b-Vv(n.d[s.p]),c?(c=!1,n.p[e.p]=i.Math.min(d,p)):n.p[e.p]=i.Math.min(r,i.Math.min(d,p))):(r=Vv(n.p[e.p]),d=Vv(n.p[u.p])+Vv(n.d[l.p])+l.o.b+l.d.a+g+s.d.d-Vv(n.d[s.p]),c?(c=!1,n.p[e.p]=i.Math.max(d,p)):n.p[e.p]=i.Math.max(r,i.Math.max(d,p)))):(g=Vv(CN(wxt(t.a,(zWt(),Sbe)))),f=vrt(t,n.j[e.p]),h=vrt(t,n.j[u.p]),n.o==ive?q1(f,h,Vv(n.p[e.p])+Vv(n.d[s.p])+s.o.b+s.d.a+g-(Vv(n.p[u.p])+Vv(n.d[l.p])-l.d.d)):q1(f,h,Vv(n.p[e.p])+Vv(n.d[s.p])-s.d.d-Vv(n.p[u.p])-Vv(n.d[l.p])-l.o.b-l.d.a-g))):p=t.e.bg(p,e,s),s=n.a[s.p]}while(s!=e);Sw(t.e,e)}}function cWt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;for(h=e,u=new pQ,d=new pQ,o=M2(h,L6t),HEt((i=new lX(t,n,u,d)).a,i.b,i.c,i.d,o),p=(u.i||(u.i=new $P(u,u.c))).Kc();p.Ob();)for(g=jz(p.Pb(),202),s=jz(c6(u,g),21).Kc();s.Ob();){if(a=s.Pb(),!(f=jz(cnt(t.d,a),202)))throw r=O2(h,V6t),$b(new ty(K6t+a+Y6t+r+W6t));!g.e&&(g.e=new cF(RIe,g,10,9)),l8(g.e,f)}for(b=(d.i||(d.i=new $P(d,d.c))).Kc();b.Ob();)for(m=jz(b.Pb(),202),l=jz(c6(d,m),21).Kc();l.Ob();){if(c=l.Pb(),!(f=jz(cnt(t.d,c),202)))throw r=O2(h,V6t),$b(new ty(K6t+c+Y6t+r+W6t));!m.g&&(m.g=new cF(RIe,m,9,10)),l8(m.g,f)}!n.b&&(n.b=new cF(OIe,n,4,7)),0!=n.b.i&&(!n.c&&(n.c=new cF(OIe,n,5,8)),0!=n.c.i)&&(!n.b&&(n.b=new cF(OIe,n,4,7)),n.b.i<=1&&(!n.c&&(n.c=new cF(OIe,n,5,8)),n.c.i<=1))&&1==(!n.a&&(n.a=new tG(RIe,n,6,6)),n.a).i&&(xwt(w=jz(Wet((!n.a&&(n.a=new tG(RIe,n,6,6)),n.a),0),202))||Ewt(w)||(Mit(w,jz(Wet((!n.b&&(n.b=new cF(OIe,n,4,7)),n.b),0),82)),Pit(w,jz(Wet((!n.c&&(n.c=new cF(OIe,n,5,8)),n.c),0),82))))}function lWt(t){var e,n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E;for(v=0,y=(k=t.a).length;v<y;++v){for(w=k[v],l=OKt,u=OKt,g=new Gf(w.e);g.a<g.c.c.length;)(a=(d=jz(Q1(g),10)).c?y9(d.c.a,d,0):-1)>0?(h=jz(PH(d.c.a,a-1),10),A=NM(t.b,d,h),m=d.n.b-d.d.d-(h.n.b+h.o.b+h.d.a+A)):m=d.n.b-d.d.d,l=i.Math.min(m,l),a<d.c.a.c.length-1?(h=jz(PH(d.c.a,a+1),10),A=NM(t.b,d,h),b=h.n.b-h.d.d-(d.n.b+d.o.b+d.d.a+A)):b=2*d.n.b,u=i.Math.min(b,u);for(c=OKt,o=!1,E=new Gf((r=jz(PH(w.e,0),10)).j);E.a<E.c.c.length;)for(x=jz(Q1(E),11),p=r.n.b+x.n.b+x.a.b,n=new Gf(x.e);n.a<n.c.c.length;)e=(_=jz(Q1(n),17).c).i.n.b+_.n.b+_.a.b-p,i.Math.abs(e)<i.Math.abs(c)&&i.Math.abs(e)<(e<0?l:u)&&(c=e,o=!0);for(C=new Gf((s=jz(PH(w.e,w.e.c.length-1),10)).j);C.a<C.c.c.length;)for(_=jz(Q1(C),11),p=s.n.b+_.n.b+_.a.b,n=new Gf(_.g);n.a<n.c.c.length;)e=(x=jz(Q1(n),17).d).i.n.b+x.n.b+x.a.b-p,i.Math.abs(e)<i.Math.abs(c)&&i.Math.abs(e)<(e<0?l:u)&&(c=e,o=!0);if(o&&0!=c)for(f=new Gf(w.e);f.a<f.c.c.length;)(d=jz(Q1(f),10)).n.b+=c}}function uWt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m;if(cG(t.a,e)){if(FA(jz(OW(t.a,e),53),n))return 1}else WK(t.a,e,new Ow);if(cG(t.a,n)){if(FA(jz(OW(t.a,n),53),e))return-1}else WK(t.a,n,new Ow);if(cG(t.e,e)){if(FA(jz(OW(t.e,e),53),n))return-1}else WK(t.e,e,new Ow);if(cG(t.e,n)){if(FA(jz(OW(t.a,n),53),e))return 1}else WK(t.e,n,new Ow);if(t.c==(wct(),Pwe)||!BO(e,(lKt(),dde))||!BO(n,(lKt(),dde))){if(c=jz(yL(C5(Yct(DY(new OH(null,new d1(e.j,16)),new lo)),new uo)),11),u=jz(yL(C5(Yct(DY(new OH(null,new d1(n.j,16)),new ho)),new fo)),11),c&&u){if(s=c.i,l=u.i,s&&s==l){for(d=new Gf(s.j);d.a<d.c.c.length;){if((h=jz(Q1(d),11))==c)return oFt(t,n,e),-1;if(h==u)return oFt(t,e,n),1}return yM(nCt(t,e),nCt(t,n))}for(p=0,m=(g=t.d).length;p<m;++p){if((f=g[p])==s)return oFt(t,n,e),-1;if(f==l)return oFt(t,e,n),1}}if(!BO(e,(lKt(),dde))||!BO(n,dde))return(r=nCt(t,e))>(a=nCt(t,n))?oFt(t,e,n):oFt(t,n,e),r<a?-1:r>a?1:0}return(i=jz(wxt(e,(lKt(),dde)),19).a)>(o=jz(wxt(n,dde),19).a)?oFt(t,e,n):oFt(t,n,e),i<o?-1:i>o?1:0}function hWt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p;if(zv(_N(QBt(e,(cKt(),HEe)))))return AX(),AX(),cne;if(c=0!=(!e.a&&(e.a=new tG(HIe,e,10,11)),e.a).i,l=!(u=kDt(e)).dc(),c||l){if(!(r=jz(QBt(e,bTe),149)))throw $b(new ny("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(p=SS(r,(lBt(),ZIe)),Pmt(e),!c&&l&&!p)return AX(),AX(),cne;if(s=new Mb,VD(QBt(e,yEe))===VD((aht(),pSe))&&(SS(r,KIe)||SS(r,WIe)))for(d=mRt(t,e),jrt(f=new YA,(!e.a&&(e.a=new tG(HIe,e,10,11)),e.a));0!=f.b;)Pmt(h=jz(0==f.b?null:(xO(0!=f.b),Iet(f,f.a.a)),33)),VD(QBt(h,yEe))===VD(bSe)||x7(h,tEe)&&!v4(r,QBt(h,bTe))?(pst(s,hWt(t,h,n,i)),Xbt(h,yEe,bSe),RFt(h)):jrt(f,(!h.a&&(h.a=new tG(HIe,h,10,11)),h.a));else for(d=(!e.a&&(e.a=new tG(HIe,e,10,11)),e.a).i,a=new DP((!e.a&&(e.a=new tG(HIe,e,10,11)),e.a));a.e!=a.i.gc();)pst(s,hWt(t,o=jz(vbt(a),33),n,i)),RFt(o);for(g=new Gf(s);g.a<g.c.c.length;)Xbt(jz(Q1(g),79),HEe,(cL(),!0));return Umt(e,r,wot(i,d)),fjt(s),l&&p?u:(AX(),AX(),cne)}return AX(),AX(),cne}function dWt(t,e,n,i,r,o,a,s,c){var l,u,h,d,f,g,p;switch(f=n,Fd(u=new Bwt(c),(aEt(),Cse)),lct(u,(lKt(),Yhe),a),lct(u,(zWt(),tbe),(YCt(),USe)),p=Vv(CN(t.We(Jme))),lct(u,Jme,p),EJ(h=new TEt,u),e!=KSe&&e!=YSe||(f=i>=0?lgt(s):Cdt(lgt(s)),t.Ye(obe,f)),l=new V_,d=!1,t.Xe(Qme)?($O(l,jz(t.We(Qme),8)),d=!0):wP(l,a.a/2,a.b/2),f.g){case 4:lct(u,kme,(Cft(),Fde)),lct(u,Vhe,(Zst(),Iue)),u.o.b=a.b,p<0&&(u.o.a=-p),VSt(h,(vGt(),aDe)),d||(l.a=a.a),l.a-=a.a;break;case 2:lct(u,kme,(Cft(),$de)),lct(u,Vhe,(Zst(),Sue)),u.o.b=a.b,p<0&&(u.o.a=-p),VSt(h,(vGt(),EDe)),d||(l.a=0);break;case 1:lct(u,ede,(H9(),Ehe)),u.o.a=a.a,p<0&&(u.o.b=-p),VSt(h,(vGt(),ADe)),d||(l.b=a.b),l.b-=a.b;break;case 3:lct(u,ede,(H9(),Ahe)),u.o.a=a.a,p<0&&(u.o.b=-p),VSt(h,(vGt(),sDe)),d||(l.b=0)}if($O(h.n,l),lct(u,Qme,l),e==qSe||e==GSe||e==USe){if(g=0,e==qSe&&t.Xe(ebe))switch(f.g){case 1:case 2:g=jz(t.We(ebe),19).a;break;case 3:case 4:g=-jz(t.We(ebe),19).a}else switch(f.g){case 4:case 2:g=o.b,e==GSe&&(g/=r.b);break;case 1:case 3:g=o.a,e==GSe&&(g/=r.a)}lct(u,_de,g)}return lct(u,Khe,f),u}function fWt(t){var e,n,i,r,o,a,s,c,l,h,d,f,g,p,m,b,w,k,v,y,_,C;if((n=Vv(CN(wxt(t.a.j,(zWt(),Rpe)))))<-1||!t.a.i||BF(jz(wxt(t.a.o,tbe),98))||oft(t.a.o,(vGt(),aDe)).gc()<2&&oft(t.a.o,EDe).gc()<2)return!0;if(t.a.c.Rf())return!1;for(v=0,k=0,w=new Mb,c=0,l=(s=t.a.e).length;c<l;++c){for(f=0,p=(d=s[c]).length;f<p;++f)if((h=d[f]).k!=(aEt(),Tse)){for(i=t.b[h.c.p][h.p],h.k==Cse?(i.b=1,jz(wxt(h,(lKt(),fde)),11).j==(vGt(),aDe)&&(k+=i.a)):(C=oft(h,(vGt(),EDe))).dc()||!JM(C,new Oo)?i.c=1:((r=oft(h,aDe)).dc()||!JM(r,new Lo))&&(v+=i.a),a=new aU(ZP(hft(h).a.Kc(),new u));gBt(a);)o=jz(q4(a),17),v+=i.c,k+=i.b,U7(t,i,o.d.i);for(_=new aU(new GP((m=Wnt(Est(Vy(Lte,1),zKt,20,0,[oft(h,(vGt(),sDe)),oft(h,ADe)]))).a.length,m.a));gBt(_);)y=jz(q4(_),11),(b=jz(wxt(y,(lKt(),yde)),10))&&(v+=i.c,k+=i.b,U7(t,i,b))}else w.c[w.c.length]=h;for(g=new Gf(w);g.a<g.c.c.length;)for(h=jz(Q1(g),10),i=t.b[h.c.p][h.p],a=new aU(ZP(hft(h).a.Kc(),new u));gBt(a);)o=jz(q4(a),17),v+=i.c,k+=i.b,U7(t,i,o.d.i);w.c=P7(Ite,zKt,1,0,5,1)}return(0==(e=v+k)?NXt:(v-k)/e)>=n}function gWt(){function t(t){var e=this;this.dispatch=function(e){var n=e.data;switch(n.cmd){case"algorithms":var i=xgt((AX(),new $f(new Sf(lBe.b))));t.postMessage({id:n.id,data:i});break;case"categories":var r=xgt((AX(),new $f(new Sf(lBe.c))));t.postMessage({id:n.id,data:r});break;case"options":var o=xgt((AX(),new $f(new Sf(lBe.d))));t.postMessage({id:n.id,data:o});break;case"register":hqt(n.algorithms),t.postMessage({id:n.id});break;case"layout":Lzt(n.graph,n.layoutOptions||{},n.options||{}),t.postMessage({id:n.id,data:n.graph})}},this.saveDispatch=function(n){try{e.dispatch(n)}catch(e){t.postMessage({id:n.data.id,error:e})}}}function i(e){var n=this;this.dispatcher=new t({postMessage:function(t){n.onmessage({data:t})}}),this.postMessage=function(t){setTimeout((function(){n.dispatcher.saveDispatch({data:t})}),0)}}if(rC(),typeof document===pZt&&typeof self!==pZt){var r=new t(self);self.onmessage=r.saveDispatch}else typeof e!==pZt&&e.exports&&(Object.defineProperty(n,"__esModule",{value:!0}),e.exports={default:i,Worker:i})}function pWt(t){t.N||(t.N=!0,t.b=vat(t,0),Nrt(t.b,0),Nrt(t.b,1),Nrt(t.b,2),t.bb=vat(t,1),Nrt(t.bb,0),Nrt(t.bb,1),t.fb=vat(t,2),Nrt(t.fb,3),Nrt(t.fb,4),Rrt(t.fb,5),t.qb=vat(t,3),Nrt(t.qb,0),Rrt(t.qb,1),Rrt(t.qb,2),Nrt(t.qb,3),Nrt(t.qb,4),Rrt(t.qb,5),Nrt(t.qb,6),t.a=yat(t,4),t.c=yat(t,5),t.d=yat(t,6),t.e=yat(t,7),t.f=yat(t,8),t.g=yat(t,9),t.i=yat(t,10),t.j=yat(t,11),t.k=yat(t,12),t.n=yat(t,13),t.o=yat(t,14),t.p=yat(t,15),t.q=yat(t,16),t.s=yat(t,17),t.r=yat(t,18),t.t=yat(t,19),t.u=yat(t,20),t.v=yat(t,21),t.w=yat(t,22),t.B=yat(t,23),t.A=yat(t,24),t.C=yat(t,25),t.D=yat(t,26),t.F=yat(t,27),t.G=yat(t,28),t.H=yat(t,29),t.J=yat(t,30),t.I=yat(t,31),t.K=yat(t,32),t.M=yat(t,33),t.L=yat(t,34),t.P=yat(t,35),t.Q=yat(t,36),t.R=yat(t,37),t.S=yat(t,38),t.T=yat(t,39),t.U=yat(t,40),t.V=yat(t,41),t.X=yat(t,42),t.W=yat(t,43),t.Y=yat(t,44),t.Z=yat(t,45),t.$=yat(t,46),t._=yat(t,47),t.ab=yat(t,48),t.cb=yat(t,49),t.db=yat(t,50),t.eb=yat(t,51),t.gb=yat(t,52),t.hb=yat(t,53),t.ib=yat(t,54),t.jb=yat(t,55),t.kb=yat(t,56),t.lb=yat(t,57),t.mb=yat(t,58),t.nb=yat(t,59),t.ob=yat(t,60),t.pb=yat(t,61))}function mWt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;if(k=0,0==e.f.a)for(b=new Gf(t);b.a<b.c.c.length;)p=jz(Q1(b),10),k=i.Math.max(k,p.n.a+p.o.a+p.d.c);else k=e.f.a-e.c.a;for(k-=e.c.a,m=new Gf(t);m.a<m.c.c.length;){switch(Zb((p=jz(Q1(m),10)).n,k-p.o.a),iV(p.f),Kkt(p),(p.q?p.q:(AX(),AX(),lne))._b((zWt(),sbe))&&Zb(jz(wxt(p,sbe),8),k-p.o.a),jz(wxt(p,kpe),248).g){case 1:lct(p,kpe,(fwt(),Ixe));break;case 2:lct(p,kpe,(fwt(),Dxe))}for(w=p.o,y=new Gf(p.j);y.a<y.c.c.length;){for(Zb((v=jz(Q1(y),11)).n,w.a-v.o.a),Zb(v.a,v.o.a),VSt(v,Sot(v.j)),(s=jz(wxt(v,ebe),19))&&lct(v,ebe,ndt(-s.a)),a=new Gf(v.g);a.a<a.c.c.length;){for(r=cbt((o=jz(Q1(a),17)).a,0);r.b!=r.d.c;)(n=jz(h3(r),8)).a=k-n.a;if(u=jz(wxt(o,mme),74))for(l=cbt(u,0);l.b!=l.d.c;)(c=jz(h3(l),8)).a=k-c.a;for(f=new Gf(o.b);f.a<f.c.c.length;)Zb((h=jz(Q1(f),70)).n,k-h.o.a)}for(g=new Gf(v.f);g.a<g.c.c.length;)Zb((h=jz(Q1(g),70)).n,v.o.a-h.o.a)}for(p.k==(aEt(),Cse)&&(lct(p,(lKt(),Khe),Sot(jz(wxt(p,Khe),61))),Xxt(p)),d=new Gf(p.b);d.a<d.c.c.length;)Kkt(h=jz(Q1(d),70)),Zb(h.n,w.a-h.o.a)}}function bWt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;if(k=0,0==e.f.b)for(b=new Gf(t);b.a<b.c.c.length;)p=jz(Q1(b),10),k=i.Math.max(k,p.n.b+p.o.b+p.d.a);else k=e.f.b-e.c.b;for(k-=e.c.b,m=new Gf(t);m.a<m.c.c.length;){switch(Xb((p=jz(Q1(m),10)).n,k-p.o.b),rV(p.f),Ykt(p),(p.q?p.q:(AX(),AX(),lne))._b((zWt(),sbe))&&Xb(jz(wxt(p,sbe),8),k-p.o.b),jz(wxt(p,kpe),248).g){case 3:lct(p,kpe,(fwt(),Txe));break;case 4:lct(p,kpe,(fwt(),Bxe))}for(w=p.o,y=new Gf(p.j);y.a<y.c.c.length;){for(Xb((v=jz(Q1(y),11)).n,w.b-v.o.b),Xb(v.a,v.o.b),VSt(v,Dot(v.j)),(s=jz(wxt(v,ebe),19))&&lct(v,ebe,ndt(-s.a)),a=new Gf(v.g);a.a<a.c.c.length;){for(r=cbt((o=jz(Q1(a),17)).a,0);r.b!=r.d.c;)(n=jz(h3(r),8)).b=k-n.b;if(u=jz(wxt(o,mme),74))for(l=cbt(u,0);l.b!=l.d.c;)(c=jz(h3(l),8)).b=k-c.b;for(f=new Gf(o.b);f.a<f.c.c.length;)Xb((h=jz(Q1(f),70)).n,k-h.o.b)}for(g=new Gf(v.f);g.a<g.c.c.length;)Xb((h=jz(Q1(g),70)).n,v.o.b-h.o.b)}for(p.k==(aEt(),Cse)&&(lct(p,(lKt(),Khe),Dot(jz(wxt(p,Khe),61))),pdt(p)),d=new Gf(p.b);d.a<d.c.c.length;)Ykt(h=jz(Q1(d),70)),Xb(h.n,w.b-h.o.b)}}function wWt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f;for(h=!1,l=t+1,u1(t,e.c.length),a=(u=jz(e.c[t],200)).a,s=null,o=0;o<u.a.c.length;o++)if(u1(o,a.c.length),!(r=jz(a.c[o],187)).c)if(0!=r.b.c.length){if(r.k||(s&&Hkt(s),Cwt(r,(s=new NQ(s?s.e+s.d+i:0,u.f,i)).e+s.d,u.f),Gz(u.d,s),Lot(s,r),r.k=!0),c=null,f=null,o<u.a.c.length-1?f=jz(PH(u.a,o+1),187):l<e.c.length&&0!=(u1(l,e.c.length),jz(e.c[l],200)).a.c.length&&(f=jz(PH((u1(l,e.c.length),jz(e.c[l],200)).a,0),187)),d=!1,(c=f)&&(d=!Pht(c.j,u)),c){if(0==c.b.c.length){Cyt(u,c);break}if(p8(r,n-r.s),Hkt(r.q),h|=Jxt(u,r,c,n,i),0==c.b.c.length)for(Cyt((u1(l,e.c.length),jz(e.c[l],200)),c),c=null;e.c.length>l&&0==(u1(l,e.c.length),jz(e.c[l],200)).a.c.length;)w9(e,(u1(l,e.c.length),e.c[l]));if(!c){--o;continue}if(Ijt(e,u,r,c,d,n,l,i)){h=!0;continue}if(d){if(Zzt(e,u,r,c,n,l,i)){h=!0;continue}if(Iut(u,r)){r.c=!0,h=!0;continue}}else if(Iut(u,r)){r.c=!0,h=!0;continue}if(h)continue}Iut(u,r)?(r.c=!0,h=!0,c&&(c.k=!1)):Hkt(r.q)}else IA(),Cyt(u,r),--o,h=!0;return h}function kWt(t,e,n,r,o,a,s){var c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S,D,I,B;for(m=0,T=0,u=new Gf(t.b);u.a<u.c.c.length;)(l=jz(Q1(u),157)).c&&sUt(l.c),m=i.Math.max(m,eq(l)),T+=eq(l)*tq(l);for(b=T/t.b.c.length,E=l_t(t.b,b),T+=t.b.c.length*E,m=i.Math.max(m,i.Math.sqrt(T*s))+n.b,I=n.b,B=n.d,g=0,d=n.b+n.c,LV(x=new YA,ndt(0)),C=new YA,h=new C2(t.b,0),p=null,c=new Mb;h.b<h.d.gc();)xO(h.b<h.d.gc()),D=eq(l=jz(h.d.Xb(h.c=h.b++),157)),f=tq(l),I+D>m&&(a&&(lI(C,g),lI(x,ndt(h.b-1)),Gz(t.d,p),c.c=P7(Ite,zKt,1,0,5,1)),I=n.b,B+=g+e,g=0,d=i.Math.max(d,n.b+n.c+D)),c.c[c.c.length]=l,Abt(l,I,B),d=i.Math.max(d,I+D+n.c),g=i.Math.max(g,f),I+=D+e,p=l;if(pst(t.a,c),Gz(t.d,jz(PH(c,c.c.length-1),157)),d=i.Math.max(d,r),(S=B+g+n.a)<o&&(g+=o-S,S=o),a)for(I=n.b,h=new C2(t.b,0),lI(x,ndt(t.b.c.length)),k=jz(h3(A=cbt(x,0)),19).a,lI(C,g),_=cbt(C,0),y=0;h.b<h.d.gc();)h.b==k&&(I=n.b,y=Vv(CN(h3(_))),k=jz(h3(A),19).a),xO(h.b<h.d.gc()),Upt(l=jz(h.d.Xb(h.c=h.b++),157),y),h.b==k&&(w=d-I-n.c,v=eq(l),qpt(l,w),jdt(l,(w-v)/2,0)),I+=eq(l)+e;return new PS(d,S)}function vWt(t){var e,n,i,r;switch(r=null,t.c){case 6:return t.Vl();case 13:return t.Wl();case 23:return t.Nl();case 22:return t.Sl();case 18:return t.Pl();case 8:YWt(t),fKt(),r=oLe;break;case 9:return t.vl(!0);case 19:return t.wl();case 10:switch(t.a){case 100:case 68:case 119:case 87:case 115:case 83:return r=t.ul(t.a),YWt(t),r;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:(e=t.tl())<$Xt?(fKt(),fKt(),r=new aq(0,e)):r=pU(Gdt(e));break;case 99:return t.Fl();case 67:return t.Al();case 105:return t.Il();case 73:return t.Bl();case 103:return t.Gl();case 88:return t.Cl();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t.xl();case 80:case 112:if(!(r=ODt(t,t.a)))throw $b(new ry(vKt((oM(),D7t))));break;default:r=KV(t.a)}YWt(t);break;case 0:if(93==t.a||123==t.a||125==t.a)throw $b(new ry(vKt((oM(),S7t))));r=KV(t.a),n=t.a,YWt(t),(64512&n)==zXt&&0==t.c&&56320==(64512&t.a)&&((i=P7(TLe,WYt,25,2,15,1))[0]=n&YYt,i[1]=t.a&YYt,r=aG(pU($pt(i,0,i.length)),0),YWt(t));break;default:throw $b(new ry(vKt((oM(),S7t))))}return r}function yWt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m;if(r=new Mb,o=OKt,a=OKt,s=OKt,n)for(o=t.f.a,p=new Gf(e.j);p.a<p.c.c.length;)for(l=new Gf(jz(Q1(p),11).g);l.a<l.c.c.length;)0!=(c=jz(Q1(l),17)).a.b&&((h=jz(gO(c.a),8)).a<o&&(a=o-h.a,s=OKt,r.c=P7(Ite,zKt,1,0,5,1),o=h.a),h.a<=o&&(r.c[r.c.length]=c,c.a.b>1&&(s=i.Math.min(s,i.Math.abs(jz(Obt(c.a,1),8).b-h.b)))));else for(p=new Gf(e.j);p.a<p.c.c.length;)for(l=new Gf(jz(Q1(p),11).e);l.a<l.c.c.length;)0!=(c=jz(Q1(l),17)).a.b&&((f=jz(pO(c.a),8)).a>o&&(a=f.a-o,s=OKt,r.c=P7(Ite,zKt,1,0,5,1),o=f.a),f.a>=o&&(r.c[r.c.length]=c,c.a.b>1&&(s=i.Math.min(s,i.Math.abs(jz(Obt(c.a,c.a.b-2),8).b-f.b)))));if(0!=r.c.length&&a>e.o.a/2&&s>e.o.b/2){for(EJ(g=new TEt,e),VSt(g,(vGt(),sDe)),g.n.a=e.o.a/2,EJ(m=new TEt,e),VSt(m,ADe),m.n.a=e.o.a/2,m.n.b=e.o.b,l=new Gf(r);l.a<l.c.c.length;)c=jz(Q1(l),17),n?(u=jz(fV(c.a),8),(0==c.a.b?g1(c.d):jz(gO(c.a),8)).b>=u.b?AJ(c,m):AJ(c,g)):(u=jz(gV(c.a),8),(0==c.a.b?g1(c.c):jz(pO(c.a),8)).b>=u.b?CJ(c,m):CJ(c,g)),(d=jz(wxt(c,(zWt(),mme)),74))&&kgt(d,u,!0);e.n.a=o-e.o.a/2}}function _Wt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;if(l=e,Bit(c=K3(t,B3(n),l),O2(l,V6t)),u=jz(cnt(t.g,vDt(HQ(l,C6t))),33),i=null,(a=HQ(l,"sourcePort"))&&(i=vDt(a)),h=jz(cnt(t.j,i),118),!u)throw $b(new ty("An edge must have a source node (edge id: '"+Ypt(l)+W6t));if(h&&!dK(GQ(h),u))throw $b(new ty("The source port of an edge must be a port of the edge's source node (edge id: '"+O2(l,V6t)+W6t));if(!c.b&&(c.b=new cF(OIe,c,4,7)),l8(c.b,h||u),d=jz(cnt(t.g,vDt(HQ(l,X6t))),33),r=null,(s=HQ(l,"targetPort"))&&(r=vDt(s)),f=jz(cnt(t.j,r),118),!d)throw $b(new ty("An edge must have a target node (edge id: '"+Ypt(l)+W6t));if(f&&!dK(GQ(f),d))throw $b(new ty("The target port of an edge must be a port of the edge's target node (edge id: '"+O2(l,V6t)+W6t));if(!c.c&&(c.c=new cF(OIe,c,5,8)),l8(c.c,f||d),0==(!c.b&&(c.b=new cF(OIe,c,4,7)),c.b).i||0==(!c.c&&(c.c=new cF(OIe,c,5,8)),c.c).i)throw o=O2(l,V6t),$b(new ty(G6t+o+W6t));return xAt(l,c),cMt(l,c),Lct(t,l,c)}function CWt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E;return h=T$t($L(t,(vGt(),dDe)),e),g=ovt($L(t,fDe),e),v=ovt($L(t,yDe),e),A=avt($L(t,CDe),e),d=avt($L(t,cDe),e),w=ovt($L(t,vDe),e),p=ovt($L(t,gDe),e),_=ovt($L(t,_De),e),y=ovt($L(t,lDe),e),x=avt($L(t,hDe),e),b=ovt($L(t,wDe),e),k=ovt($L(t,bDe),e),C=ovt($L(t,uDe),e),E=avt($L(t,kDe),e),f=avt($L(t,pDe),e),m=ovt($L(t,mDe),e),n=Mct(Est(Vy(MLe,1),VXt,25,15,[w.a,A.a,_.a,E.a])),i=Mct(Est(Vy(MLe,1),VXt,25,15,[g.a,h.a,v.a,m.a])),r=b.a,o=Mct(Est(Vy(MLe,1),VXt,25,15,[p.a,d.a,y.a,f.a])),l=Mct(Est(Vy(MLe,1),VXt,25,15,[w.b,g.b,p.b,k.b])),c=Mct(Est(Vy(MLe,1),VXt,25,15,[A.b,h.b,d.b,m.b])),u=x.b,s=Mct(Est(Vy(MLe,1),VXt,25,15,[_.b,v.b,y.b,C.b])),d8($L(t,dDe),n+r,l+u),d8($L(t,mDe),n+r,l+u),d8($L(t,fDe),n+r,0),d8($L(t,yDe),n+r,l+u+c),d8($L(t,CDe),0,l+u),d8($L(t,cDe),n+r+i,l+u),d8($L(t,gDe),n+r+i,0),d8($L(t,_De),0,l+u+c),d8($L(t,lDe),n+r+i,l+u+c),d8($L(t,hDe),0,l),d8($L(t,wDe),n,0),d8($L(t,uDe),0,l+u+c),d8($L(t,pDe),n+r+i,0),(a=new V_).a=Mct(Est(Vy(MLe,1),VXt,25,15,[n+i+r+o,x.a,k.a,C.a])),a.b=Mct(Est(Vy(MLe,1),VXt,25,15,[l+c+u+s,b.b,E.b,f.b])),a}function AWt(t){var e,n,i,r,o,a,s,c,l,h,d,f,g,p,m;for(p=new Mb,d=new Gf(t.d.b);d.a<d.c.c.length;)for(g=new Gf(jz(Q1(d),29).a);g.a<g.c.c.length;){for(f=jz(Q1(g),10),r=jz(OW(t.f,f),57),c=new aU(ZP(hft(f).a.Kc(),new u));gBt(c);)if(l=!0,h=null,(i=cbt((a=jz(q4(c),17)).a,0)).b!=i.d.c){for(e=jz(h3(i),8),n=null,a.c.j==(vGt(),sDe)&&((m=new Ezt(e,new PS(e.a,r.d.d),r,a)).f.a=!0,m.a=a.c,p.c[p.c.length]=m),a.c.j==ADe&&((m=new Ezt(e,new PS(e.a,r.d.d+r.d.a),r,a)).f.d=!0,m.a=a.c,p.c[p.c.length]=m);i.b!=i.d.c;)n=jz(h3(i),8),ont(e.b,n.b)||(h=new Ezt(e,n,null,a),p.c[p.c.length]=h,l&&(l=!1,n.b<r.d.d?h.f.a=!0:n.b>r.d.d+r.d.a?h.f.d=!0:(h.f.d=!0,h.f.a=!0))),i.b!=i.d.c&&(e=n);h&&(o=jz(OW(t.f,a.d.i),57),e.b<o.d.d?h.f.a=!0:e.b>o.d.d+o.d.a?h.f.d=!0:(h.f.d=!0,h.f.a=!0))}for(s=new aU(ZP(uft(f).a.Kc(),new u));gBt(s);)0!=(a=jz(q4(s),17)).a.b&&(e=jz(pO(a.a),8),a.d.j==(vGt(),sDe)&&((m=new Ezt(e,new PS(e.a,r.d.d),r,a)).f.a=!0,m.a=a.d,p.c[p.c.length]=m),a.d.j==ADe&&((m=new Ezt(e,new PS(e.a,r.d.d+r.d.a),r,a)).f.d=!0,m.a=a.d,p.c[p.c.length]=m))}return p}function xWt(t,e,n){var i,r,o,a,s,c,l;if(DAt(n,"Network simplex node placement",1),t.e=e,t.n=jz(wxt(e,(lKt(),Dde)),304),sHt(t),NCt(t),XA(dtt(new OH(null,new d1(t.e.b,16)),new Ho),new im(t)),XA(DY(dtt(DY(dtt(new OH(null,new d1(t.e.b,16)),new na),new ia),new ra),new oa),new nm(t)),zv(_N(wxt(t.e,(zWt(),Pme))))&&(DAt(o=wot(n,1),"Straight Edges Pre-Processing",1),yUt(t),zEt(o)),Awt(t.f),r=jz(wxt(e,Pbe),19).a*t.f.a.c.length,WFt(Ky(Yy(jj(t.f),r),!1),wot(n,1)),0!=t.d.a.gc()){for(DAt(o=wot(n,1),"Flexible Where Space Processing",1),a=jz(IL(SU(IY(new OH(null,new d1(t.f.a,16)),new qo),new Ro)),19).a,s=jz(IL(TU(IY(new OH(null,new d1(t.f.a,16)),new Uo),new Fo)),19).a-a,c=DL(new zw,t.f),l=DL(new zw,t.f),ULt(rx(ix(nx(ox(new $w,2e4),s),c),l)),XA(DY(DY(BG(t.i),new Go),new Wo),new HY(a,c,s,l)),i=t.d.a.ec().Kc();i.Ob();)jz(i.Pb(),213).g=1;WFt(Ky(Yy(jj(t.f),r),!1),wot(o,1)),zEt(o)}zv(_N(wxt(e,Pme)))&&(DAt(o=wot(n,1),"Straight Edges Post-Processing",1),xTt(t),zEt(o)),Yqt(t),t.e=null,t.f=null,t.i=null,t.c=null,IG(t.k),t.j=null,t.a=null,t.o=null,t.d.a.$b(),zEt(n)}function EWt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;for(s=new Gf(t.a.b);s.a<s.c.c.length;)for(k=new Gf(jz(Q1(s),29).a);k.a<k.c.c.length;)w=jz(Q1(k),10),e.g[w.p]=w,e.a[w.p]=w,e.d[w.p]=0;for(c=t.a.b,e.c==(gQ(),Qke)&&(c=iP(c,152)?a6(jz(c,152)):iP(c,131)?jz(c,131).a:iP(c,54)?new lv(c):new EA(c)),a=c.Kc();a.Ob();)for(f=-1,d=jz(a.Pb(),29).a,e.o==(aJ(),ive)&&(f=OKt,d=iP(d,152)?a6(jz(d,152)):iP(d,131)?jz(d,131).a:iP(d,54)?new lv(d):new EA(d)),y=d.Kc();y.Ob();)if(v=jz(y.Pb(),10),h=null,(h=e.c==Qke?jz(PH(t.b.f,v.p),15):jz(PH(t.b.b,v.p),15)).gc()>0)if(r=h.gc(),l=EQ(i.Math.floor((r+1)/2))-1,o=EQ(i.Math.ceil((r+1)/2))-1,e.o==ive)for(u=o;u>=l;u--)e.a[v.p]==v&&(p=jz(h.Xb(u),46),g=jz(p.a,10),!FA(n,p.b)&&f>t.b.e[g.p]&&(e.a[g.p]=v,e.g[v.p]=e.g[g.p],e.a[v.p]=e.g[v.p],e.f[e.g[v.p].p]=(cL(),!!(zv(e.f[e.g[v.p].p])&v.k==(aEt(),xse))),f=t.b.e[g.p]));else for(u=l;u<=o;u++)e.a[v.p]==v&&(b=jz(h.Xb(u),46),m=jz(b.a,10),!FA(n,b.b)&&f<t.b.e[m.p]&&(e.a[m.p]=v,e.g[v.p]=e.g[m.p],e.a[v.p]=e.g[v.p],e.f[e.g[v.p].p]=(cL(),!!(zv(e.f[e.g[v.p].p])&v.k==(aEt(),xse))),f=t.b.e[m.p]))}function TWt(){TWt=I,tC(),xIe=gIe.a,jz(Wet(KX(gIe.a),0),18),kIe=gIe.f,jz(Wet(KX(gIe.f),0),18),jz(Wet(KX(gIe.f),1),34),AIe=gIe.n,jz(Wet(KX(gIe.n),0),34),jz(Wet(KX(gIe.n),1),34),jz(Wet(KX(gIe.n),2),34),jz(Wet(KX(gIe.n),3),34),vIe=gIe.g,jz(Wet(KX(gIe.g),0),18),jz(Wet(KX(gIe.g),1),34),mIe=gIe.c,jz(Wet(KX(gIe.c),0),18),jz(Wet(KX(gIe.c),1),18),yIe=gIe.i,jz(Wet(KX(gIe.i),0),18),jz(Wet(KX(gIe.i),1),18),jz(Wet(KX(gIe.i),2),18),jz(Wet(KX(gIe.i),3),18),jz(Wet(KX(gIe.i),4),34),_Ie=gIe.j,jz(Wet(KX(gIe.j),0),18),bIe=gIe.d,jz(Wet(KX(gIe.d),0),18),jz(Wet(KX(gIe.d),1),18),jz(Wet(KX(gIe.d),2),18),jz(Wet(KX(gIe.d),3),18),jz(Wet(KX(gIe.d),4),34),jz(Wet(KX(gIe.d),5),34),jz(Wet(KX(gIe.d),6),34),jz(Wet(KX(gIe.d),7),34),pIe=gIe.b,jz(Wet(KX(gIe.b),0),34),jz(Wet(KX(gIe.b),1),34),wIe=gIe.e,jz(Wet(KX(gIe.e),0),34),jz(Wet(KX(gIe.e),1),34),jz(Wet(KX(gIe.e),2),34),jz(Wet(KX(gIe.e),3),34),jz(Wet(KX(gIe.e),4),18),jz(Wet(KX(gIe.e),5),18),jz(Wet(KX(gIe.e),6),18),jz(Wet(KX(gIe.e),7),18),jz(Wet(KX(gIe.e),8),18),jz(Wet(KX(gIe.e),9),18),jz(Wet(KX(gIe.e),10),34),CIe=gIe.k,jz(Wet(KX(gIe.k),0),34),jz(Wet(KX(gIe.k),1),34)}function SWt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T;for(x=new YA,_=new YA,m=-1,c=new Gf(t);c.a<c.c.c.length;){for((a=jz(Q1(c),128)).s=m--,u=0,k=0,o=new Gf(a.t);o.a<o.c.c.length;)k+=(i=jz(Q1(o),268)).c;for(r=new Gf(a.i);r.a<r.c.c.length;)u+=(i=jz(Q1(r),268)).c;a.n=u,a.u=k,0==k?n4(_,a,_.c.b,_.c):0==u&&n4(x,a,x.c.b,x.c)}for(T=A5(t),p=(h=t.c.length)+1,b=h-1,f=new Mb;0!=T.a.gc();){for(;0!=_.b;)xO(0!=_.b),y=jz(Iet(_,_.a.a),128),T.a.Bc(y),y.s=b--,rPt(y,x,_);for(;0!=x.b;)xO(0!=x.b),C=jz(Iet(x,x.a.a),128),T.a.Bc(C),C.s=p++,rPt(C,x,_);for(g=FYt,l=T.a.ec().Kc();l.Ob();)(w=(a=jz(l.Pb(),128)).u-a.n)>=g&&(w>g&&(f.c=P7(Ite,zKt,1,0,5,1),g=w),f.c[f.c.length]=a);0!=f.c.length&&(d=jz(PH(f,mwt(e,f.c.length)),128),T.a.Bc(d),d.s=p++,rPt(d,x,_),f.c=P7(Ite,zKt,1,0,5,1))}for(v=t.c.length+1,s=new Gf(t);s.a<s.c.c.length;)(a=jz(Q1(s),128)).s<h&&(a.s+=v);for(A=new Gf(t);A.a<A.c.c.length;)for(n=new C2((C=jz(Q1(A),128)).t,0);n.b<n.d.gc();)xO(n.b<n.d.gc()),E=(i=jz(n.d.Xb(n.c=n.b++),268)).b,C.s>E.s&&(lK(n),w9(E.i,i),i.c>0&&(i.a=E,Gz(E.t,i),i.b=C,Gz(C.i,i)))}function DWt(t){var e,n,i,r,o;switch(e=t.c){case 11:return t.Ml();case 12:return t.Ol();case 14:return t.Ql();case 15:return t.Tl();case 16:return t.Rl();case 17:return t.Ul();case 21:return YWt(t),fKt(),fKt(),aLe;case 10:switch(t.a){case 65:return t.yl();case 90:return t.Dl();case 122:return t.Kl();case 98:return t.El();case 66:return t.zl();case 60:return t.Jl();case 62:return t.Hl()}}switch(o=vWt(t),e=t.c){case 3:return t.Zl(o);case 4:return t.Xl(o);case 5:return t.Yl(o);case 0:if(123==t.a&&t.d<t.j){if(r=t.d,i=0,n=-1,!((e=lY(t.i,r++))>=48&&e<=57))throw $b(new ry(vKt((oM(),G7t))));for(i=e-48;r<t.j&&(e=lY(t.i,r++))>=48&&e<=57;)if((i=10*i+e-48)<0)throw $b(new ry(vKt((oM(),X7t))));if(n=i,44==e){if(r>=t.j)throw $b(new ry(vKt((oM(),K7t))));if((e=lY(t.i,r++))>=48&&e<=57){for(n=e-48;r<t.j&&(e=lY(t.i,r++))>=48&&e<=57;)if((n=10*n+e-48)<0)throw $b(new ry(vKt((oM(),X7t))));if(i>n)throw $b(new ry(vKt((oM(),Y7t))))}else n=-1}if(125!=e)throw $b(new ry(vKt((oM(),W7t))));t.sl(r)?(fKt(),fKt(),o=new c5(9,o),t.d=r+1):(fKt(),fKt(),o=new c5(3,o),t.d=r),o.dm(i),o.cm(n),YWt(t)}}return o}function IWt(t,e,n,i,r){var o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x;for(g=new X6(e.b),w=new X6(e.b),d=new X6(e.b),_=new X6(e.b),p=new X6(e.b),y=cbt(e,0);y.b!=y.d.c;)for(s=new Gf((k=jz(h3(y),11)).g);s.a<s.c.c.length;)if((o=jz(Q1(s),17)).c.i==o.d.i){if(k.j==o.d.j){_.c[_.c.length]=o;continue}if(k.j==(vGt(),sDe)&&o.d.j==ADe){p.c[p.c.length]=o;continue}}for(c=new Gf(p);c.a<c.c.c.length;)Fjt(t,o=jz(Q1(c),17),n,i,(vGt(),aDe));for(a=new Gf(_);a.a<a.c.c.length;)o=jz(Q1(a),17),Fd(C=new Bwt(t),(aEt(),Tse)),lct(C,(zWt(),tbe),(YCt(),USe)),lct(C,(lKt(),fde),o),lct(A=new TEt,fde,o.d),VSt(A,(vGt(),EDe)),EJ(A,C),lct(x=new TEt,fde,o.c),VSt(x,aDe),EJ(x,C),lct(o.c,yde,C),lct(o.d,yde,C),AJ(o,null),CJ(o,null),n.c[n.c.length]=C,lct(C,jhe,ndt(2));for(v=cbt(e,0);v.b!=v.d.c;)l=(k=jz(h3(v),11)).e.c.length>0,m=k.g.c.length>0,l&&m?d.c[d.c.length]=k:l?g.c[g.c.length]=k:m&&(w.c[w.c.length]=k);for(f=new Gf(g);f.a<f.c.c.length;)Gz(r,zzt(t,jz(Q1(f),11),null,n));for(b=new Gf(w);b.a<b.c.c.length;)Gz(r,zzt(t,null,jz(Q1(b),11),n));for(h=new Gf(d);h.a<h.c.c.length;)Gz(r,zzt(t,u=jz(Q1(h),11),u,n))}function BWt(t){var e,n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;for(p=new PS(NXt,NXt),e=new PS(RXt,RXt),y=new Gf(t);y.a<y.c.c.length;)v=jz(Q1(y),8),p.a=i.Math.min(p.a,v.a),p.b=i.Math.min(p.b,v.b),e.a=i.Math.max(e.a,v.a),e.b=i.Math.max(e.b,v.b);for(l=new PS(e.a-p.a,e.b-p.b),u=new Q$t(new PS(p.a-50,p.b-l.a-50),new PS(p.a-50,e.b+l.a+50),new PS(e.a+l.b/2+50,p.b+l.b/2)),k=new Ow,o=new Mb,n=new Mb,k.a.zc(u,k),C=new Gf(t);C.a<C.c.c.length;){for(_=jz(Q1(C),8),o.c=P7(Ite,zKt,1,0,5,1),w=k.a.ec().Kc();w.Ob();)G7((m=jz(w.Pb(),308)).d,m.a),Sft(G7(m.d,_),G7(m.d,m.a))<0&&(o.c[o.c.length]=m);for(n.c=P7(Ite,zKt,1,0,5,1),b=new Gf(o);b.a<b.c.c.length;)for(f=new Gf((m=jz(Q1(b),308)).e);f.a<f.c.c.length;){for(h=jz(Q1(f),168),a=!0,c=new Gf(o);c.a<c.c.c.length;)(s=jz(Q1(c),308))!=m&&(iY(h,PH(s.e,0))||iY(h,PH(s.e,1))||iY(h,PH(s.e,2)))&&(a=!1);a&&(n.c[n.c.length]=h)}for(sxt(k,o),t4(k,new dt),d=new Gf(n);d.a<d.c.c.length;)_G(k,new Q$t(_,(h=jz(Q1(d),168)).a,h.b))}for(t4(k,new vg(g=new Ow)),r=g.a.ec().Kc();r.Ob();)(N9(u,(h=jz(r.Pb(),168)).a)||N9(u,h.b))&&r.Qb();return t4(g,new ft),g}function MWt(t){var e,n,i;switch(n=jz(wxt(t,(lKt(),Zhe)),21),e=kB(Mae),jz(wxt(t,(zWt(),sme)),334)==(aht(),pSe)&&Zot(e,Pae),zv(_N(wxt(t,ome)))?fH(e,(kxt(),Oae),(hKt(),$ce)):fH(e,(kxt(),Rae),(hKt(),$ce)),null!=wxt(t,(E6(),_xe))&&Zot(e,Lae),(zv(_N(wxt(t,gme)))||zv(_N(wxt(t,ame))))&&Gq(e,(kxt(),jae),(hKt(),tce)),jz(wxt(t,qpe),103).g){case 2:case 3:case 4:Gq(fH(e,(kxt(),Oae),(hKt(),nce)),jae,ece)}switch(n.Hc((dNt(),che))&&Gq(fH(fH(e,(kxt(),Oae),(hKt(),Jse)),Fae,Zse),jae,Qse),VD(wxt(t,Ame))!==VD((cLt(),Twe))&&fH(e,(kxt(),Rae),(hKt(),Mce)),n.Hc(phe)&&(fH(e,(kxt(),Oae),(hKt(),Fce)),fH(e,Nae,Nce),fH(e,Rae,Rce)),VD(wxt(t,xpe))!==VD((Zxt(),ihe))&&VD(wxt(t,Zpe))!==VD((Aft(),YTe))&&Gq(e,(kxt(),jae),(hKt(),pce)),zv(_N(wxt(t,lme)))&&fH(e,(kxt(),Rae),(hKt(),gce)),zv(_N(wxt(t,$pe)))&&fH(e,(kxt(),Rae),(hKt(),Gce)),RPt(t)&&(i=(VD(wxt(t,sme))===VD(pSe)?jz(wxt(t,Ope),292):jz(wxt(t,Npe),292))==(Rat(),vhe)?(hKt(),Oce):(hKt(),Yce),fH(e,(kxt(),Fae),i)),jz(wxt(t,Hbe),377).g){case 1:fH(e,(kxt(),Fae),(hKt(),Wce));break;case 2:Gq(fH(fH(e,(kxt(),Rae),(hKt(),Wse)),Fae,Kse),jae,Yse)}return VD(wxt(t,Bpe))!==VD((wct(),Mwe))&&fH(e,(kxt(),Rae),(hKt(),Kce)),e}function PWt(t){Mx(t,new AAt(m_(d_(p_(g_(new ms,B5t),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new ts))),o2(t,B5t,KQt,1.3),o2(t,B5t,I5t,wbt(gCe)),o2(t,B5t,YQt,TCe),o2(t,B5t,bJt,15),o2(t,B5t,a3t,wbt(hCe)),o2(t,B5t,EJt,wbt(vCe)),o2(t,B5t,$Jt,wbt(yCe)),o2(t,B5t,xJt,wbt(_Ce)),o2(t,B5t,TJt,wbt(kCe)),o2(t,B5t,AJt,wbt(CCe)),o2(t,B5t,SJt,wbt(SCe)),o2(t,B5t,_5t,wbt(xCe)),o2(t,B5t,C5t,wbt(wCe)),o2(t,B5t,E5t,wbt(ACe)),o2(t,B5t,T5t,wbt(DCe)),o2(t,B5t,S5t,wbt(pCe)),o2(t,B5t,yJt,wbt(mCe)),o2(t,B5t,w3t,wbt(bCe)),o2(t,B5t,x5t,wbt(fCe)),o2(t,B5t,A5t,wbt(dCe)),o2(t,B5t,D5t,wbt(BCe))}function LWt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p;if(null==n)return null;if(t.a!=e.Aj())throw $b(new Rv(g6t+e.ne()+p6t));if(iP(e,457)){if(!(p=xNt(jz(e,671),n)))throw $b(new Rv(m6t+n+"' is not a valid enumerator of '"+e.ne()+"'"));return p}switch(Tht((STt(),XMe),e).cl()){case 2:n=jzt(n,!1);break;case 3:n=jzt(n,!0)}if(i=Tht(XMe,e).$k())return i.Aj().Nh().Kh(i,n);if(h=Tht(XMe,e).al()){for(p=new Mb,l=0,u=(c=klt(n)).length;l<u;++l)s=c[l],Gz(p,h.Aj().Nh().Kh(h,s));return p}if(!(g=Tht(XMe,e).bl()).dc()){for(f=g.Kc();f.Ob();){d=jz(f.Pb(),148);try{if(null!=(p=d.Aj().Nh().Kh(d,n)))return p}catch(t){if(!iP(t=hst(t),60))throw $b(t)}}throw $b(new Rv(m6t+n+"' does not match any member types of the union datatype '"+e.ne()+"'"))}if(jz(e,834).Fj(),!(r=Lht(e.Bj())))return null;if(r==xee){o=0;try{o=hjt(n,FYt,OKt)&YYt}catch(t){if(!iP(t=hst(t),127))throw $b(t);o=W9(n)[0]}return ust(o)}if(r==wee){for(a=0;a<TIe.length;++a)try{return jx(TIe[a],n)}catch(t){if(!iP(t=hst(t),32))throw $b(t)}throw $b(new Rv(m6t+n+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw $b(new Rv(m6t+n+"' is invalid. "))}function OWt(t,e){var n,i,r,o,a,s,c,l;if(n=0,a=0,o=e.length,s=null,l=new Ty,a<o&&(h1(a,e.length),43==e.charCodeAt(a))&&(++n,++a<o&&(h1(a,e.length),43==e.charCodeAt(a)||(h1(a,e.length),45==e.charCodeAt(a)))))throw $b(new Cy(OXt+e+'"'));for(;a<o&&(h1(a,e.length),46!=e.charCodeAt(a))&&(h1(a,e.length),101!=e.charCodeAt(a))&&(h1(a,e.length),69!=e.charCodeAt(a));)++a;if(l.a+=""+lO(null==e?qKt:(kK(e),e),n,a),a<o&&(h1(a,e.length),46==e.charCodeAt(a))){for(n=++a;a<o&&(h1(a,e.length),101!=e.charCodeAt(a))&&(h1(a,e.length),69!=e.charCodeAt(a));)++a;t.e=a-n,l.a+=""+lO(null==e?qKt:(kK(e),e),n,a)}else t.e=0;if(a<o&&(h1(a,e.length),101==e.charCodeAt(a)||(h1(a,e.length),69==e.charCodeAt(a)))&&(n=++a,a<o&&(h1(a,e.length),43==e.charCodeAt(a))&&++a<o&&(h1(a,e.length),45!=e.charCodeAt(a))&&++n,s=e.substr(n,o-n),t.e=t.e-hjt(s,FYt,OKt),t.e!=EQ(t.e)))throw $b(new Cy("Scale out of range."));if((c=l.a).length<16){if(t.f=(null==Kee&&(Kee=new RegExp("^[+-]?\\d*$","i")),Kee.test(c)?parseInt(c,10):NaN),isNaN(t.f))throw $b(new Cy(OXt+e+'"'));t.a=oDt(t.f)}else upt(t,new IB(c));for(t.d=l.a.length,r=0;r<l.a.length&&(45==(i=lY(l.a,r))||48==i);++r)--t.d;0==t.d&&(t.d=1)}function NWt(){NWt=I,ZDt(lse=new pQ,(vGt(),dDe),mDe),ZDt(lse,CDe,mDe),ZDt(lse,CDe,kDe),ZDt(lse,cDe,pDe),ZDt(lse,cDe,mDe),ZDt(lse,fDe,mDe),ZDt(lse,fDe,bDe),ZDt(lse,yDe,uDe),ZDt(lse,yDe,mDe),ZDt(lse,wDe,hDe),ZDt(lse,wDe,mDe),ZDt(lse,wDe,bDe),ZDt(lse,wDe,uDe),ZDt(lse,hDe,wDe),ZDt(lse,hDe,kDe),ZDt(lse,hDe,pDe),ZDt(lse,hDe,mDe),ZDt(lse,vDe,vDe),ZDt(lse,vDe,bDe),ZDt(lse,vDe,kDe),ZDt(lse,gDe,gDe),ZDt(lse,gDe,bDe),ZDt(lse,gDe,pDe),ZDt(lse,_De,_De),ZDt(lse,_De,uDe),ZDt(lse,_De,kDe),ZDt(lse,lDe,lDe),ZDt(lse,lDe,uDe),ZDt(lse,lDe,pDe),ZDt(lse,bDe,fDe),ZDt(lse,bDe,wDe),ZDt(lse,bDe,vDe),ZDt(lse,bDe,gDe),ZDt(lse,bDe,mDe),ZDt(lse,bDe,bDe),ZDt(lse,bDe,kDe),ZDt(lse,bDe,pDe),ZDt(lse,uDe,yDe),ZDt(lse,uDe,wDe),ZDt(lse,uDe,_De),ZDt(lse,uDe,lDe),ZDt(lse,uDe,uDe),ZDt(lse,uDe,kDe),ZDt(lse,uDe,pDe),ZDt(lse,uDe,mDe),ZDt(lse,kDe,CDe),ZDt(lse,kDe,hDe),ZDt(lse,kDe,vDe),ZDt(lse,kDe,_De),ZDt(lse,kDe,bDe),ZDt(lse,kDe,uDe),ZDt(lse,kDe,kDe),ZDt(lse,kDe,mDe),ZDt(lse,pDe,cDe),ZDt(lse,pDe,hDe),ZDt(lse,pDe,gDe),ZDt(lse,pDe,lDe),ZDt(lse,pDe,bDe),ZDt(lse,pDe,uDe),ZDt(lse,pDe,pDe),ZDt(lse,pDe,mDe),ZDt(lse,mDe,dDe),ZDt(lse,mDe,CDe),ZDt(lse,mDe,cDe),ZDt(lse,mDe,fDe),ZDt(lse,mDe,yDe),ZDt(lse,mDe,wDe),ZDt(lse,mDe,hDe),ZDt(lse,mDe,bDe),ZDt(lse,mDe,uDe),ZDt(lse,mDe,kDe),ZDt(lse,mDe,pDe),ZDt(lse,mDe,mDe)}function RWt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A;for(t.d=new PS(NXt,NXt),t.c=new PS(RXt,RXt),d=e.Kc();d.Ob();)for(k=new Gf(jz(d.Pb(),37).a);k.a<k.c.c.length;)w=jz(Q1(k),10),t.d.a=i.Math.min(t.d.a,w.n.a-w.d.b),t.d.b=i.Math.min(t.d.b,w.n.b-w.d.d),t.c.a=i.Math.max(t.c.a,w.n.a+w.o.a+w.d.c),t.c.b=i.Math.max(t.c.b,w.n.b+w.o.b+w.d.a);for(c=new Yw,h=e.Kc();h.Ob();)r=aWt(t,jz(h.Pb(),37)),Gz(c.a,r),r.a=r.a|!jz(wxt(r.c,(lKt(),Uhe)),21).dc();for(t.b=(xut(),(A=new ve).f=new bit(n),A.b=sqt(A.f,c),A),yqt((g=t.b,new Uk,g)),t.e=new V_,t.a=t.b.f.e,s=new Gf(c.a);s.a<s.c.c.length;)for(o=jz(Q1(s),841),v=DQ(t.b,o),JRt(o.c,v.a,v.b),m=new Gf(o.c.a);m.a<m.c.c.length;)(p=jz(Q1(m),10)).k==(aEt(),Cse)&&(b=hPt(t,p.n,jz(wxt(p,(lKt(),Khe)),61)),qR(kI(p.n),b));for(a=new Gf(c.a);a.a<a.c.c.length;)for(u=new Gf(fdt(o=jz(Q1(a),841)));u.a<u.c.c.length;)for(NO(C=new N_((l=jz(Q1(u),17)).a),0,g1(l.c)),LV(C,g1(l.d)),f=null,_=cbt(C,0);_.b!=_.d.c;)y=jz(h3(_),8),f?(ant(f.a,y.a)?(t.e.a=i.Math.min(t.e.a,f.a),t.a.a=i.Math.max(t.a.a,f.a)):ant(f.b,y.b)&&(t.e.b=i.Math.min(t.e.b,f.b),t.a.b=i.Math.max(t.a.b,f.b)),f=y):f=y;zO(t.e),qR(t.a,t.e)}function FWt(t){KMt(t.b,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"ConsistentTransient"])),KMt(t.a,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"WellFormedSourceURI"])),KMt(t.o,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),KMt(t.p,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),KMt(t.v,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),KMt(t.R,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"WellFormedName"])),KMt(t.T,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),KMt(t.U,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),KMt(t.W,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),KMt(t.bb,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"ValidDefaultValueLiteral"])),KMt(t.eb,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),KMt(t.H,K8t,Est(Vy(Yee,1),cYt,2,6,[X8t,"ConsistentType ConsistentBounds ConsistentArguments"]))}function jWt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;if(!e.dc()){if(r=new kk,h=(a=n||jz(e.Xb(0),17)).c,pOt(),(l=h.i.k)!=(aEt(),Ese)&&l!=Tse&&l!=Cse&&l!=_se)throw $b(new Rv("The target node of the edge must be a normal node or a northSouthPort."));for(lI(r,Ict(Est(Vy(xxe,1),cYt,8,0,[h.i.n,h.n,h.a]))),(vGt(),wDe).Hc(h.j)&&(f=Vv(CN(wxt(h,(lKt(),Bde)))),n4(r,new PS(Ict(Est(Vy(xxe,1),cYt,8,0,[h.i.n,h.n,h.a])).a,f),r.c.b,r.c)),c=null,i=!1,s=e.Kc();s.Ob();)0!=(o=jz(s.Pb(),17).a).b&&(i?(n4(r,kP(qR(c,(xO(0!=o.b),jz(o.a.a.c,8))),.5),r.c.b,r.c),i=!1):i=!0,c=jM((xO(0!=o.b),jz(o.c.b.c,8))),jrt(r,o),wX(o));d=a.d,wDe.Hc(d.j)&&(f=Vv(CN(wxt(d,(lKt(),Bde)))),n4(r,new PS(Ict(Est(Vy(xxe,1),cYt,8,0,[d.i.n,d.n,d.a])).a,f),r.c.b,r.c)),lI(r,Ict(Est(Vy(xxe,1),cYt,8,0,[d.i.n,d.n,d.a]))),t.d==(Ult(),tke)&&(xO(0!=r.b),g=jz(r.a.a.c,8),p=jz(Obt(r,1),8),(m=new UJ(llt(h.j))).a*=5,m.b*=5,b=UR(new PS(p.a,p.b),g),qR(w=new PS(eJ(m.a,b.a),eJ(m.b,b.b)),g),QG(cbt(r,1),w),xO(0!=r.b),k=jz(r.c.b.c,8),v=jz(Obt(r,r.b-2),8),(m=new UJ(llt(d.j))).a*=5,m.b*=5,b=UR(new PS(v.a,v.b),k),qR(y=new PS(eJ(m.a,b.a),eJ(m.b,b.b)),k),NO(r,r.b-1,y)),u=new szt(r),jrt(a.a,jwt(u))}}function $Wt(t,e,n,r){var o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S,D,I,B,M,P,L,O;if(v=(w=jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82)).Dg(),y=w.Eg(),k=w.Cg()/2,g=w.Bg()/2,iP(w,186)&&(v+=GQ(b=jz(w,118)).i,v+=GQ(b).i),v+=k,y+=g,S=(E=jz(Wet((!t.b&&(t.b=new cF(OIe,t,4,7)),t.b),0),82)).Dg(),D=E.Eg(),T=E.Cg()/2,_=E.Bg()/2,iP(E,186)&&(S+=GQ(x=jz(E,118)).i,S+=GQ(x).i),S+=T,D+=_,0==(!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i)J_(),c=new ac,l8((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a),c);else if((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i>1)for(f=new iO((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a));f.e!=f.i.gc();)Y_t(f);for(p=S,S>v+k?p=v+k:S<v-k&&(p=v-k),m=D,D>y+g?m=y+g:D<y-g&&(m=y-g),p>v-k&&p<v+k&&m>y-g&&m<y+g&&(p=v+k),Snt(s=jz(Wet((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a),0),202),p),Int(s,m),C=v,v>S+T?C=S+T:v<S-T&&(C=S-T),A=y,y>D+_?A=D+_:y<D-_&&(A=D-_),C>S-T&&C<S+T&&A>D-_&&A<D+_&&(A=D+_),Cnt(s,C),Dnt(s,A),cHt((!s.a&&(s.a=new IP(MIe,s,5)),s.a)),a=mwt(e,5),w==E&&++a,B=C-p,L=A-m,u=.20000000298023224*i.Math.sqrt(B*B+L*L),M=B/(a+1),O=L/(a+1),I=p,P=m,l=0;l<a;l++)P+=O,(h=(I+=M)+zMt(e,24)*aZt*u-u/2)<0?h=1:h>n&&(h=n-1),(d=P+zMt(e,24)*aZt*u-u/2)<0?d=1:d>r&&(d=r-1),J_(),ynt(o=new oc,h),_nt(o,d),l8((!s.a&&(s.a=new IP(MIe,s,5)),s.a),o)}function zWt(){zWt=I,cKt(),pbe=vTe,mbe=yTe,bbe=_Te,wbe=CTe,vbe=ATe,ybe=xTe,Abe=TTe,Ebe=DTe,Tbe=ITe,xbe=STe,Sbe=BTe,Ibe=MTe,Mbe=OTe,Cbe=ETe,uKt(),gbe=Rge,kbe=Fge,_be=jge,Dbe=$ge,cbe=new UB(pTe,ndt(0)),lbe=Lge,ube=Oge,hbe=Nge,Hbe=upe,Obe=Hge,Nbe=Gge,jbe=tpe,Rbe=Yge,Fbe=Zge,Ube=ppe,qbe=dpe,zbe=ape,$be=rpe,Vbe=cpe,Ome=xge,Nme=Ege,nme=Nfe,ime=jfe,qme=new GB(12),Hme=new UB(UEe,qme),Aft(),Zpe=new UB(mEe,Qpe=KTe),Jme=new UB(rTe,0),dbe=new UB(mTe,ndt(1)),ype=new UB(iEe,gJt),Vme=HEe,tbe=oTe,obe=dTe,Hpe=uEe,kpe=eEe,sme=yEe,fbe=new UB(kTe,(cL(),!0)),dme=AEe,fme=xEe,Fme=NEe,zme=zEe,jme=FEe,jht(),qpe=new UB(hEe,Gpe=jTe),Ime=LEe,Dme=MEe,ibe=lTe,nbe=cTe,rbe=hTe,rbt(),new UB(ZEe,Wme=zSe),Yme=tTe,Xme=eTe,Zme=nTe,Kme=JEe,Lbe=Vge,xme=uge,Ame=cge,Pbe=zge,kme=tge,Vpe=_fe,zpe=vfe,Ppe=ofe,Lpe=afe,Npe=hfe,Ope=sfe,$pe=wfe,Tme=dge,Sme=fge,pme=Wfe,Rme=Ige,Mme=bge,ome=Vfe,Lme=Cge,tme=Mfe,eme=Lfe,Mpe=cEe,Bme=gge,xpe=Kde,Ape=Gde,Cpe=Ude,lme=Ufe,cme=qfe,ume=Gfe,$me=jEe,mme=SEe,rme=wEe,Ype=gEe,Kpe=fEe,Rpe=gfe,ebe=sTe,_pe=sEe,hme=CEe,Qme=iTe,Ume=WEe,Gme=YEe,yme=ige,_me=oge,sbe=gTe,vpe=qde,Cme=sge,Xpe=Sfe,Wpe=Efe,Eme=IEe,bme=Zfe,Pme=vge,Bbe=PTe,Upe=Afe,abe=Mge,Jpe=Ife,wme=Jfe,Fpe=mfe,gme=TEe,vme=nge,jpe=bfe,Bpe=ife,Dpe=tfe,Tpe=Qde,Spe=Jde,Ipe=nfe,Epe=Xde,ame=Hfe}function VWt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S;if(aVt(),A=t.e,g=t.d,r=t.a,0==A)switch(e){case 0:return"0";case 1:return WXt;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(_=new Ey).a+=e<0?"0E+":"0E",_.a+=-e,_.a}if(v=P7(TLe,WYt,25,1+(k=10*g+1+7),15,1),n=k,1==g)if((s=r[0])<0){S=t0(s,UXt);do{p=S,S=D_t(S,10),v[--n]=48+fq(nft(p,rft(S,10)))&YYt}while(0!=Kut(S,0))}else{S=s;do{p=S,S=S/10|0,v[--n]=p-10*S+48&YYt}while(0!=S)}else{oVt(r,0,E=P7(SLe,lXt,25,g,15,1),0,T=g);t:for(;;){for(C=0,l=T-1;l>=0;l--)b=uAt(ift(wU(C,32),t0(E[l],UXt))),E[l]=fq(b),C=fq(kU(b,32));w=fq(C),m=n;do{v[--n]=48+w%10&YYt}while(0!=(w=w/10|0)&&0!=n);for(i=9-m+n,c=0;c<i&&n>0;c++)v[--n]=48;for(h=T-1;0==E[h];h--)if(0==h)break t;T=h+1}for(;48==v[n];)++n}if(f=A<0,a=k-n-e-1,0==e)return f&&(v[--n]=45),$pt(v,n,k-n);if(e>0&&a>=-6){if(a>=0){for(u=n+a,d=k-1;d>=u;d--)v[d+1]=v[d];return v[++u]=46,f&&(v[--n]=45),$pt(v,n,k-n+1)}for(h=2;h<1-a;h++)v[--n]=48;return v[--n]=46,v[--n]=48,f&&(v[--n]=45),$pt(v,n,k-n)}return x=n+1,o=k,y=new Ty,f&&(y.a+="-"),o-x>=1?(PW(y,v[n]),y.a+=".",y.a+=$pt(v,n+1,k-n-1)):y.a+=$pt(v,n,k-n),y.a+="E",a>0&&(y.a+="+"),y.a+=""+a,y.a}function HWt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;switch(t.c=e,t.g=new Pb,Vx(),tgt(new xg(new Lv(t.c))),w=AN(QBt(t.c,(Axt(),fAe))),s=jz(QBt(t.c,pAe),316),v=jz(QBt(t.c,mAe),429),o=jz(QBt(t.c,cAe),482),k=jz(QBt(t.c,gAe),430),t.j=Vv(CN(QBt(t.c,bAe))),a=t.a,s.g){case 0:a=t.a;break;case 1:a=t.b;break;case 2:a=t.i;break;case 3:a=t.e;break;case 4:a=t.f;break;default:throw $b(new Rv(P5t+(null!=s.f?s.f:""+s.g)))}if(t.d=new LQ(a,v,o),lct(t.d,(Got(),Kre),_N(QBt(t.c,uAe))),t.d.c=zv(_N(QBt(t.c,lAe))),0==YX(t.c).i)return t.d;for(u=new DP(YX(t.c));u.e!=u.i.gc();){for(d=(l=jz(vbt(u),33)).g/2,h=l.f/2,y=new PS(l.i+d,l.j+h);cG(t.g,y);)RO(y,(i.Math.random()-.5)*hJt,(i.Math.random()-.5)*hJt);g=jz(QBt(l,(cKt(),IEe)),142),p=new DJ(y,new qY(y.a-d-t.j/2-g.b,y.b-h-t.j/2-g.d,l.g+t.j+(g.b+g.c),l.f+t.j+(g.d+g.a))),Gz(t.d.i,p),WK(t.g,y,new nD(p,l))}switch(k.g){case 0:if(null==w)t.d.d=jz(PH(t.d.i,0),65);else for(b=new Gf(t.d.i);b.a<b.c.c.length;)p=jz(Q1(b),65),null!=(f=jz(jz(OW(t.g,p.a),46).b,33).zg())&&bF(f,w)&&(t.d.d=p);break;case 1:for((n=new PS(t.c.g,t.c.f)).a*=.5,n.b*=.5,RO(n,t.c.i,t.c.j),r=NXt,m=new Gf(t.d.i);m.a<m.c.c.length;)(c=G7((p=jz(Q1(m),65)).a,n))<r&&(r=c,t.d.d=p);break;default:throw $b(new Rv(P5t+(null!=k.f?k.f:""+k.g)))}return t.d}function qWt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C;for(_=jz(Wet((!t.a&&(t.a=new tG(RIe,t,6,6)),t.a),0),202),h=new kk,y=new Pb,C=t$t(_),ySt(y.f,_,C),f=new Pb,r=new YA,p=MG(Wnt(Est(Vy(Lte,1),zKt,20,0,[(!e.d&&(e.d=new cF(NIe,e,8,5)),e.d),(!e.e&&(e.e=new cF(NIe,e,7,4)),e.e)])));gBt(p);){if(g=jz(q4(p),79),1!=(!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i)throw $b(new Rv($4t+(!t.a&&(t.a=new tG(RIe,t,6,6)),t.a).i));g!=t&&(n4(r,b=jz(Wet((!g.a&&(g.a=new tG(RIe,g,6,6)),g.a),0),202),r.c.b,r.c),(m=jz(zD(DZ(y.f,b)),12))||(m=t$t(b),ySt(y.f,b,m)),d=n?UR(new dB(jz(PH(C,C.c.length-1),8)),jz(PH(m,m.c.length-1),8)):UR(new dB((u1(0,C.c.length),jz(C.c[0],8))),(u1(0,m.c.length),jz(m.c[0],8))),ySt(f.f,b,d))}if(0!=r.b)for(w=jz(PH(C,n?C.c.length-1:0),8),u=1;u<C.c.length;u++){for(k=jz(PH(C,n?C.c.length-1-u:u),8),o=cbt(r,0);o.b!=o.d.c;)b=jz(h3(o),202),(m=jz(zD(DZ(y.f,b)),12)).c.length<=u?wet(o):(v=qR(new dB(jz(PH(m,n?m.c.length-1-u:u),8)),jz(zD(DZ(f.f,b)),8)),k.a==v.a&&k.b==v.b||(a=k.a-w.a,c=k.b-w.b,(s=v.a-w.a)*c==(l=v.b-w.b)*a&&(0==a||isNaN(a)?a:a<0?-1:1)==(0==s||isNaN(s)?s:s<0?-1:1)&&(0==c||isNaN(c)?c:c<0?-1:1)==(0==l||isNaN(l)?l:l<0?-1:1)?(i.Math.abs(a)<i.Math.abs(s)||i.Math.abs(c)<i.Math.abs(l))&&n4(h,k,h.c.b,h.c):u>1&&n4(h,w,h.c.b,h.c),wet(o)));w=k}return h}function UWt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S,D,I,B;for(DAt(n,"Greedy cycle removal",1),B=(k=e.a).c.length,t.a=P7(SLe,lXt,25,B,15,1),t.c=P7(SLe,lXt,25,B,15,1),t.b=P7(SLe,lXt,25,B,15,1),l=0,b=new Gf(k);b.a<b.c.c.length;){for((p=jz(Q1(b),10)).p=l,A=new Gf(p.j);A.a<A.c.c.length;){for(s=new Gf((y=jz(Q1(A),11)).e);s.a<s.c.c.length;)(i=jz(Q1(s),17)).c.i!=p&&(E=jz(wxt(i,(zWt(),lbe)),19).a,t.a[l]+=E>0?E+1:1);for(a=new Gf(y.g);a.a<a.c.c.length;)(i=jz(Q1(a),17)).d.i!=p&&(E=jz(wxt(i,(zWt(),lbe)),19).a,t.c[l]+=E>0?E+1:1)}0==t.c[l]?LV(t.e,p):0==t.a[l]&&LV(t.f,p),++l}for(g=-1,f=1,h=new Mb,t.d=jz(wxt(e,(lKt(),Ade)),230);B>0;){for(;0!=t.e.b;)S=jz(fV(t.e),10),t.b[S.p]=g--,YFt(t,S),--B;for(;0!=t.f.b;)D=jz(fV(t.f),10),t.b[D.p]=f++,YFt(t,D),--B;if(B>0){for(d=FYt,w=new Gf(k);w.a<w.c.c.length;)p=jz(Q1(w),10),0==t.b[p.p]&&(v=t.c[p.p]-t.a[p.p])>=d&&(v>d&&(h.c=P7(Ite,zKt,1,0,5,1),d=v),h.c[h.c.length]=p);u=t.Zf(h),t.b[u.p]=f++,YFt(t,u),--B}}for(T=k.c.length+1,l=0;l<k.c.length;l++)t.b[l]<0&&(t.b[l]+=T);for(m=new Gf(k);m.a<m.c.c.length;)for(C=0,x=(_=T2((p=jz(Q1(m),10)).j)).length;C<x;++C)for(o=0,c=(r=Z0((y=_[C]).g)).length;o<c;++o)I=(i=r[o]).d.i.p,t.b[p.p]>t.b[I]&&(tzt(i,!0),lct(e,zhe,(cL(),!0)));t.a=null,t.c=null,t.b=null,wX(t.f),wX(t.e),zEt(n)}function GWt(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b;for(i=new Mb,s=new Mb,m=e/2,f=t.gc(),r=jz(t.Xb(0),8),b=jz(t.Xb(1),8),Gz(i,(u1(0,(g=YBt(r.a,r.b,b.a,b.b,m)).c.length),jz(g.c[0],8))),Gz(s,(u1(1,g.c.length),jz(g.c[1],8))),l=2;l<f;l++)p=r,r=b,b=jz(t.Xb(l),8),Gz(i,(u1(1,(g=YBt(r.a,r.b,p.a,p.b,m)).c.length),jz(g.c[1],8))),Gz(s,(u1(0,g.c.length),jz(g.c[0],8))),Gz(i,(u1(0,(g=YBt(r.a,r.b,b.a,b.b,m)).c.length),jz(g.c[0],8))),Gz(s,(u1(1,g.c.length),jz(g.c[1],8)));for(Gz(i,(u1(1,(g=YBt(b.a,b.b,r.a,r.b,m)).c.length),jz(g.c[1],8))),Gz(s,(u1(0,g.c.length),jz(g.c[0],8))),n=new kk,a=new Mb,LV(n,(u1(0,i.c.length),jz(i.c[0],8))),u=1;u<i.c.length-2;u+=2)u1(u,i.c.length),o=jz(i.c[u],8),d=VTt((u1(u-1,i.c.length),jz(i.c[u-1],8)),o,(u1(u+1,i.c.length),jz(i.c[u+1],8)),(u1(u+2,i.c.length),jz(i.c[u+2],8))),isFinite(d.a)&&isFinite(d.b)?n4(n,d,n.c.b,n.c):n4(n,o,n.c.b,n.c);for(LV(n,jz(PH(i,i.c.length-1),8)),Gz(a,(u1(0,s.c.length),jz(s.c[0],8))),h=1;h<s.c.length-2;h+=2)u1(h,s.c.length),o=jz(s.c[h],8),d=VTt((u1(h-1,s.c.length),jz(s.c[h-1],8)),o,(u1(h+1,s.c.length),jz(s.c[h+1],8)),(u1(h+2,s.c.length),jz(s.c[h+2],8))),isFinite(d.a)&&isFinite(d.b)?a.c[a.c.length]=d:a.c[a.c.length]=o;for(Gz(a,jz(PH(s,s.c.length-1),8)),c=a.c.length-1;c>=0;c--)LV(n,(u1(c,a.c.length),jz(a.c[c],8)));return n}function WWt(t){var e,n,i,r,o,a,s,c,l,u,h,d,f;if(a=!0,h=null,i=null,r=null,e=!1,f=wBe,l=null,o=null,(c=Kmt(t,s=0,SBe,DBe))<t.length&&(h1(c,t.length),58==t.charCodeAt(c))&&(h=t.substr(s,c-s),s=c+1),n=null!=h&&PA(kBe,h.toLowerCase())){if(-1==(c=t.lastIndexOf("!/")))throw $b(new Rv("no archive separator"));a=!0,i=lO(t,s,++c),s=c}else s>=0&&bF(t.substr(s,2),"//")?(c=Kmt(t,s+=2,IBe,BBe),i=t.substr(s,c-s),s=c):null==h||s!=t.length&&(h1(s,t.length),47==t.charCodeAt(s))||(a=!1,-1==(c=wL(t,XAt(35),s))&&(c=t.length),i=t.substr(s,c-s),s=c);if(!n&&s<t.length&&(h1(s,t.length),47==t.charCodeAt(s))&&(c=Kmt(t,s+1,IBe,BBe),(u=t.substr(s+1,c-(s+1))).length>0&&58==lY(u,u.length-1)&&(r=u,s=c)),s<t.length&&(h1(s,t.length),47==t.charCodeAt(s))&&(++s,e=!0),s<t.length&&(h1(s,t.length),63!=t.charCodeAt(s))&&(h1(s,t.length),35!=t.charCodeAt(s))){for(d=new Mb;s<t.length&&(h1(s,t.length),63!=t.charCodeAt(s))&&(h1(s,t.length),35!=t.charCodeAt(s));)c=Kmt(t,s,IBe,BBe),Gz(d,t.substr(s,c-s)),(s=c)<t.length&&(h1(s,t.length),47==t.charCodeAt(s))&&(Yut(t,++s)||(d.c[d.c.length]=""));Ymt(d,f=P7(Yee,cYt,2,d.c.length,6,1))}return s<t.length&&(h1(s,t.length),63==t.charCodeAt(s))&&(-1==(c=uO(t,35,++s))&&(c=t.length),l=t.substr(s,c-s),s=c),s<t.length&&(o=QD(t,++s)),fqt(a,h,i,r,f,l),new iRt(a,h,i,r,e,f,l,o)}function KWt(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S,D,I,B,M;for(I=new Mb,g=new Gf(e.b);g.a<g.c.c.length;)for(y=new Gf(jz(Q1(g),29).a);y.a<y.c.c.length;){for((v=jz(Q1(y),10)).p=-1,d=FYt,A=FYt,E=new Gf(v.j);E.a<E.c.c.length;){for(o=new Gf((x=jz(Q1(E),11)).e);o.a<o.c.c.length;)n=jz(Q1(o),17),T=jz(wxt(n,(zWt(),hbe)),19).a,d=i.Math.max(d,T);for(r=new Gf(x.g);r.a<r.c.c.length;)n=jz(Q1(r),17),T=jz(wxt(n,(zWt(),hbe)),19).a,A=i.Math.max(A,T)}lct(v,Uke,ndt(d)),lct(v,Gke,ndt(A))}for(b=0,f=new Gf(e.b);f.a<f.c.c.length;)for(y=new Gf(jz(Q1(f),29).a);y.a<y.c.c.length;)(v=jz(Q1(y),10)).p<0&&((D=new nk).b=b++,yRt(t,v,D),I.c[I.c.length]=D);for(C=sO(I.c.length),h=sO(I.c.length),s=0;s<I.c.length;s++)Gz(C,new Mb),Gz(h,ndt(0));for(bUt(e,I,C,h),B=jz(Ymt(I,P7(Yke,D3t,257,I.c.length,0,1)),840),_=jz(Ymt(C,P7(Nte,JQt,15,C.c.length,0,1)),192),u=P7(SLe,lXt,25,h.c.length,15,1),c=0;c<u.length;c++)u[c]=(u1(c,h.c.length),jz(h.c[c],19)).a;for(w=0,k=new Mb,l=0;l<B.length;l++)0==u[l]&&Gz(k,B[l]);for(m=P7(SLe,lXt,25,B.length,15,1);0!=k.c.length;)for(m[(D=jz(s6(k,0),257)).b]=w++;!_[D.b].dc();)--u[(M=jz(_[D.b].$c(0),257)).b],0==u[M.b]&&(k.c[k.c.length]=M);for(t.a=P7(Yke,D3t,257,B.length,0,1),a=0;a<B.length;a++)for(p=B[a],S=m[a],t.a[S]=p,p.b=S,y=new Gf(p.e);y.a<y.c.c.length;)(v=jz(Q1(y),10)).p=S;return t.a}function YWt(t){var e,n,i;if(t.d>=t.j)return t.a=-1,void(t.c=1);if(e=lY(t.i,t.d++),t.a=e,1!=t.b){switch(e){case 124:i=2;break;case 42:i=3;break;case 43:i=4;break;case 63:i=5;break;case 41:i=7;break;case 46:i=8;break;case 91:i=9;break;case 94:i=11;break;case 36:i=12;break;case 40:if(i=6,t.d>=t.j)break;if(63!=lY(t.i,t.d))break;if(++t.d>=t.j)throw $b(new ry(vKt((oM(),m7t))));switch(e=lY(t.i,t.d++)){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(t.d>=t.j)throw $b(new ry(vKt((oM(),m7t))));if(61==(e=lY(t.i,t.d++)))i=16;else{if(33!=e)throw $b(new ry(vKt((oM(),b7t))));i=17}break;case 35:for(;t.d<t.j&&41!=(e=lY(t.i,t.d++)););if(41!=e)throw $b(new ry(vKt((oM(),w7t))));i=21;break;default:if(45==e||97<=e&&e<=122||65<=e&&e<=90){--t.d,i=22;break}if(40==e){i=23;break}throw $b(new ry(vKt((oM(),m7t))))}break;case 92:if(i=10,t.d>=t.j)throw $b(new ry(vKt((oM(),p7t))));t.a=lY(t.i,t.d++);break;default:i=0}t.c=i}else{switch(e){case 92:if(i=10,t.d>=t.j)throw $b(new ry(vKt((oM(),p7t))));t.a=lY(t.i,t.d++);break;case 45:!(512&~t.e)&&t.d<t.j&&91==lY(t.i,t.d)?(++t.d,i=24):i=0;break;case 91:if(512&~t.e&&t.d<t.j&&58==lY(t.i,t.d)){++t.d,i=20;break}default:(64512&e)==zXt&&t.d<t.j&&56320==(64512&(n=lY(t.i,t.d)))&&(t.a=$Xt+(e-zXt<<10)+n-56320,++t.d),i=0}t.c=i}}function XWt(t){var e,n,i,r,o,a,s,c,l,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T;if((_=jz(wxt(t,(zWt(),tbe)),98))!=(YCt(),KSe)&&_!=YSe){for(l=new X6((hit((f=(g=t.b).c.length)+2,PYt),Jtt(ift(ift(5,f+2),(f+2)/10|0)))),p=new X6((hit(f+2,PYt),Jtt(ift(ift(5,f+2),(f+2)/10|0)))),Gz(l,new Pb),Gz(l,new Pb),Gz(p,new Mb),Gz(p,new Mb),y=new Mb,e=0;e<f;e++)for(u1(e,g.c.length),n=jz(g.c[e],29),u1(e,l.c.length),C=jz(l.c[e],83),m=new Pb,l.c[l.c.length]=m,u1(e,p.c.length),x=jz(p.c[e],15),w=new Mb,p.c[p.c.length]=w,r=new Gf(n.a);r.a<r.c.c.length;)if(rdt(i=jz(Q1(r),10)))y.c[y.c.length]=i;else{for(c=new aU(ZP(uft(i).a.Kc(),new u));gBt(c);)rdt(E=(a=jz(q4(c),17)).c.i)&&((A=jz(C.xc(wxt(E,(lKt(),fde))),10))||(A=sDt(t,E),C.zc(wxt(E,fde),A),x.Fc(A)),AJ(a,jz(PH(A.j,1),11)));for(s=new aU(ZP(hft(i).a.Kc(),new u));gBt(s);)rdt(T=(a=jz(q4(s),17)).d.i)&&((b=jz(OW(m,wxt(T,(lKt(),fde))),10))||(b=sDt(t,T),WK(m,wxt(T,fde),b),w.c[w.c.length]=b),CJ(a,jz(PH(b.j,0),11)))}for(h=0;h<p.c.length;h++)if(u1(h,p.c.length),!(k=jz(p.c[h],15)).dc())for(d=null,0==h?(d=new $W(t),BJ(0,g.c.length),CE(g.c,0,d)):h==l.c.length-1?(d=new $W(t),g.c[g.c.length]=d):(u1(h-1,g.c.length),d=jz(g.c[h-1],29)),o=k.Kc();o.Ob();)xJ(jz(o.Pb(),10),d);for(v=new Gf(y);v.a<v.c.c.length;)xJ(jz(Q1(v),10),null);lct(t,(lKt(),Ghe),y)}}function ZWt(t,e,n){var i,r,o,a,s,c,l,h,d,f,g,p,m,b,w,k,v,y,_;if(DAt(n,"Coffman-Graham Layering",1),0!=e.a.c.length){for(_=jz(wxt(e,(zWt(),bme)),19).a,c=0,a=0,f=new Gf(e.a);f.a<f.c.c.length;)for((d=jz(Q1(f),10)).p=c++,o=new aU(ZP(hft(d).a.Kc(),new u));gBt(o);)(r=jz(q4(o),17)).p=a++;for(t.d=P7(DLe,QZt,25,c,16,1),t.a=P7(DLe,QZt,25,a,16,1),t.b=P7(SLe,lXt,25,c,15,1),t.e=P7(SLe,lXt,25,c,15,1),t.f=P7(SLe,lXt,25,c,15,1),fit(t.c),iCt(t,e),p=new UU(new Lp(t)),y=new Gf(e.a);y.a<y.c.c.length;){for(o=new aU(ZP(uft(k=jz(Q1(y),10)).a.Kc(),new u));gBt(o);)r=jz(q4(o),17),t.a[r.p]||++t.b[k.p];0==t.b[k.p]&&F7(ext(p,k))}for(s=0;0!=p.b.c.length;)for(k=jz(btt(p),10),t.f[k.p]=s++,o=new aU(ZP(hft(k).a.Kc(),new u));gBt(o);)r=jz(q4(o),17),t.a[r.p]||(b=r.d.i,--t.b[b.p],ZDt(t.c,b,ndt(t.f[k.p])),0==t.b[b.p]&&F7(ext(p,b)));for(g=new UU(new Op(t)),v=new Gf(e.a);v.a<v.c.c.length;){for(o=new aU(ZP(hft(k=jz(Q1(v),10)).a.Kc(),new u));gBt(o);)r=jz(q4(o),17),t.a[r.p]||++t.e[k.p];0==t.e[k.p]&&F7(ext(g,k))}for(i=n1(e,h=new Mb);0!=g.b.c.length;)for(w=jz(btt(g),10),(i.a.c.length>=_||!Ppt(w,i))&&(i=n1(e,h)),xJ(w,i),o=new aU(ZP(uft(w).a.Kc(),new u));gBt(o);)r=jz(q4(o),17),t.a[r.p]||(m=r.c.i,--t.e[m.p],0==t.e[m.p]&&F7(ext(g,m)));for(l=h.c.length-1;l>=0;--l)Gz(e.b,(u1(l,h.c.length),jz(h.c[l],29)));e.a.c=P7(Ite,zKt,1,0,5,1),zEt(n)}else zEt(n)}function QWt(t){var e,n,i,r,o,a,s,c;for(t.b=1,YWt(t),e=null,0==t.c&&94==t.a?(YWt(t),fKt(),fKt(),XOt(e=new C0(4),0,ate),a=new C0(4)):(fKt(),fKt(),a=new C0(4)),r=!0;1!=(c=t.c);){if(0==c&&93==t.a&&!r){e&&(Wqt(e,a),a=e);break}if(n=t.a,i=!1,10==c)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:cVt(a,gjt(n)),i=!0;break;case 105:case 73:case 99:case 67:cVt(a,gjt(n)),(n=-1)<0&&(i=!0);break;case 112:case 80:if(!(s=ODt(t,n)))throw $b(new ry(vKt((oM(),D7t))));cVt(a,s),i=!0;break;default:n=VNt(t)}else if(24==c&&!r){if(e&&(Wqt(e,a),a=e),Wqt(a,QWt(t)),0!=t.c||93!=t.a)throw $b(new ry(vKt((oM(),P7t))));break}if(YWt(t),!i){if(0==c){if(91==n)throw $b(new ry(vKt((oM(),L7t))));if(93==n)throw $b(new ry(vKt((oM(),O7t))));if(45==n&&!r&&93!=t.a)throw $b(new ry(vKt((oM(),N7t))))}if(0!=t.c||45!=t.a||45==n&&r)XOt(a,n,n);else{if(YWt(t),1==(c=t.c))throw $b(new ry(vKt((oM(),B7t))));if(0==c&&93==t.a)XOt(a,n,n),XOt(a,45,45);else{if(0==c&&93==t.a||24==c)throw $b(new ry(vKt((oM(),N7t))));if(o=t.a,0==c){if(91==o)throw $b(new ry(vKt((oM(),L7t))));if(93==o)throw $b(new ry(vKt((oM(),O7t))));if(45==o)throw $b(new ry(vKt((oM(),N7t))))}else 10==c&&(o=VNt(t));if(YWt(t),n>o)throw $b(new ry(vKt((oM(),j7t))));XOt(a,n,o)}}}r=!1}if(1==t.c)throw $b(new ry(vKt((oM(),B7t))));return CMt(a),VVt(a),t.b=0,YWt(t),a}function JWt(t){KMt(t.c,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#decimal"])),KMt(t.d,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#integer"])),KMt(t.e,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#boolean"])),KMt(t.f,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"EBoolean",t7t,"EBoolean:Object"])),KMt(t.i,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#byte"])),KMt(t.g,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#hexBinary"])),KMt(t.j,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"EByte",t7t,"EByte:Object"])),KMt(t.n,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"EChar",t7t,"EChar:Object"])),KMt(t.t,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#double"])),KMt(t.u,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"EDouble",t7t,"EDouble:Object"])),KMt(t.F,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#float"])),KMt(t.G,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"EFloat",t7t,"EFloat:Object"])),KMt(t.I,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#int"])),KMt(t.J,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"EInt",t7t,"EInt:Object"])),KMt(t.N,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#long"])),KMt(t.O,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"ELong",t7t,"ELong:Object"])),KMt(t.Z,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#short"])),KMt(t.$,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"EShort",t7t,"EShort:Object"])),KMt(t._,F8t,Est(Vy(Yee,1),cYt,2,6,[Z8t,"http://www.w3.org/2001/XMLSchema#string"]))}function tKt(t){var e,n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S;if(1==t.c.length)return u1(0,t.c.length),jz(t.c[0],135);if(t.c.length<=0)return new x6;for(l=new Gf(t);l.a<l.c.c.length;){for(s=jz(Q1(l),135),k=0,p=OKt,m=OKt,f=FYt,g=FYt,w=cbt(s.b,0);w.b!=w.d.c;)b=jz(h3(w),86),k+=jz(wxt(b,(TBt(),Iye)),19).a,p=i.Math.min(p,b.e.a),m=i.Math.min(m,b.e.b),f=i.Math.max(f,b.e.a+b.f.a),g=i.Math.max(g,b.e.b+b.f.b);lct(s,(TBt(),Iye),ndt(k)),lct(s,(VHt(),Qve),new PS(p,m)),lct(s,Zve,new PS(f,g))}for(AX(),bM(t,new ba),Vat(y=new x6,(u1(0,t.c.length),jz(t.c[0],94))),d=0,E=0,u=new Gf(t);u.a<u.c.c.length;)s=jz(Q1(u),135),_=UR(jM(jz(wxt(s,(VHt(),Zve)),8)),jz(wxt(s,Qve),8)),d=i.Math.max(d,_.a),E+=_.a*_.b;for(d=i.Math.max(d,i.Math.sqrt(E)*Vv(CN(wxt(y,(TBt(),vye))))),T=0,S=0,h=0,e=C=Vv(CN(wxt(y,Pye))),c=new Gf(t);c.a<c.c.c.length;)s=jz(Q1(c),135),T+(_=UR(jM(jz(wxt(s,(VHt(),Zve)),8)),jz(wxt(s,Qve),8))).a>d&&(T=0,S+=h+C,h=0),_Pt(y,s,T,S),e=i.Math.max(e,T+_.a),h=i.Math.max(h,_.b),T+=_.a+C;for(v=new Pb,n=new Pb,x=new Gf(t);x.a<x.c.c.length;)for(r=zv(_N(wxt(A=jz(Q1(x),135),(cKt(),uEe)))),a=(A.q?A.q:lne).vc().Kc();a.Ob();)cG(v,(o=jz(a.Pb(),42)).cd())?VD(jz(o.cd(),146).wg())!==VD(o.dd())&&(r&&cG(n,o.cd())?(IA(),jz(o.cd(),146).tg()):(WK(v,jz(o.cd(),146),o.dd()),lct(y,jz(o.cd(),146),o.dd()),r&&WK(n,jz(o.cd(),146),o.dd()))):(WK(v,jz(o.cd(),146),o.dd()),lct(y,jz(o.cd(),146),o.dd()));return y}function eKt(){eKt=I,NWt(),ZDt(pse=new pQ,(vGt(),fDe),dDe),ZDt(pse,CDe,dDe),ZDt(pse,gDe,dDe),ZDt(pse,vDe,dDe),ZDt(pse,kDe,dDe),ZDt(pse,bDe,dDe),ZDt(pse,vDe,fDe),ZDt(pse,dDe,cDe),ZDt(pse,fDe,cDe),ZDt(pse,CDe,cDe),ZDt(pse,gDe,cDe),ZDt(pse,wDe,cDe),ZDt(pse,vDe,cDe),ZDt(pse,kDe,cDe),ZDt(pse,bDe,cDe),ZDt(pse,hDe,cDe),ZDt(pse,dDe,yDe),ZDt(pse,fDe,yDe),ZDt(pse,cDe,yDe),ZDt(pse,CDe,yDe),ZDt(pse,gDe,yDe),ZDt(pse,wDe,yDe),ZDt(pse,vDe,yDe),ZDt(pse,hDe,yDe),ZDt(pse,_De,yDe),ZDt(pse,kDe,yDe),ZDt(pse,pDe,yDe),ZDt(pse,bDe,yDe),ZDt(pse,fDe,CDe),ZDt(pse,gDe,CDe),ZDt(pse,vDe,CDe),ZDt(pse,bDe,CDe),ZDt(pse,fDe,gDe),ZDt(pse,CDe,gDe),ZDt(pse,vDe,gDe),ZDt(pse,gDe,gDe),ZDt(pse,kDe,gDe),ZDt(pse,dDe,lDe),ZDt(pse,fDe,lDe),ZDt(pse,cDe,lDe),ZDt(pse,yDe,lDe),ZDt(pse,CDe,lDe),ZDt(pse,gDe,lDe),ZDt(pse,wDe,lDe),ZDt(pse,vDe,lDe),ZDt(pse,_De,lDe),ZDt(pse,hDe,lDe),ZDt(pse,bDe,lDe),ZDt(pse,kDe,lDe),ZDt(pse,mDe,lDe),ZDt(pse,dDe,_De),ZDt(pse,fDe,_De),ZDt(pse,cDe,_De),ZDt(pse,CDe,_De),ZDt(pse,gDe,_De),ZDt(pse,wDe,_De),ZDt(pse,vDe,_De),ZDt(pse,hDe,_De),ZDt(pse,bDe,_De),ZDt(pse,pDe,_De),ZDt(pse,mDe,_De),ZDt(pse,fDe,hDe),ZDt(pse,CDe,hDe),ZDt(pse,gDe,hDe),ZDt(pse,vDe,hDe),ZDt(pse,_De,hDe),ZDt(pse,bDe,hDe),ZDt(pse,kDe,hDe),ZDt(pse,dDe,uDe),ZDt(pse,fDe,uDe),ZDt(pse,cDe,uDe),ZDt(pse,CDe,uDe),ZDt(pse,gDe,uDe),ZDt(pse,wDe,uDe),ZDt(pse,vDe,uDe),ZDt(pse,hDe,uDe),ZDt(pse,bDe,uDe),ZDt(pse,fDe,kDe),ZDt(pse,cDe,kDe),ZDt(pse,yDe,kDe),ZDt(pse,gDe,kDe),ZDt(pse,dDe,pDe),ZDt(pse,fDe,pDe),ZDt(pse,yDe,pDe),ZDt(pse,CDe,pDe),ZDt(pse,gDe,pDe),ZDt(pse,wDe,pDe),ZDt(pse,vDe,pDe),ZDt(pse,vDe,mDe),ZDt(pse,gDe,mDe),ZDt(pse,hDe,dDe),ZDt(pse,hDe,CDe),ZDt(pse,hDe,cDe),ZDt(pse,wDe,dDe),ZDt(pse,wDe,fDe),ZDt(pse,wDe,yDe)}function nKt(t,e){switch(t.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new HX(t.b,t.a,e,t.c);case 1:return new BP(t.a,e,Igt(e.Tg(),t.c));case 43:return new PP(t.a,e,Igt(e.Tg(),t.c));case 3:return new IP(t.a,e,Igt(e.Tg(),t.c));case 45:return new MP(t.a,e,Igt(e.Tg(),t.c));case 41:return new w8(jz(Syt(t.c),26),t.a,e,Igt(e.Tg(),t.c));case 50:return new kit(jz(Syt(t.c),26),t.a,e,Igt(e.Tg(),t.c));case 5:return new eF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 47:return new nF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 7:return new tG(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 49:return new tF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 9:return new FP(t.a,e,Igt(e.Tg(),t.c));case 11:return new RP(t.a,e,Igt(e.Tg(),t.c));case 13:return new NP(t.a,e,Igt(e.Tg(),t.c));case 15:return new CV(t.a,e,Igt(e.Tg(),t.c));case 17:return new jP(t.a,e,Igt(e.Tg(),t.c));case 19:return new OP(t.a,e,Igt(e.Tg(),t.c));case 21:return new LP(t.a,e,Igt(e.Tg(),t.c));case 23:return new wV(t.a,e,Igt(e.Tg(),t.c));case 25:return new lF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 27:return new cF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 29:return new aF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 31:return new iF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 33:return new sF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 35:return new oF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 37:return new rF(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 39:return new eG(t.a,e,Igt(e.Tg(),t.c),t.d.n);case 40:return new _ot(e,Igt(e.Tg(),t.c));default:throw $b(new fv("Unknown feature style: "+t.e))}}function iKt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;switch(DAt(n,"Brandes & Koepf node placement",1),t.a=e,t.c=j$t(e),i=jz(wxt(e,(zWt(),Mme)),274),f=zv(_N(wxt(e,Pme))),t.d=i==($_t(),Kue)&&!f||i==Uue,ZHt(t,e),v=null,y=null,m=null,b=null,hit(4,IYt),p=new X6(4),jz(wxt(e,Mme),274).g){case 3:m=new VFt(e,t.c.d,(aJ(),nve),(gQ(),Qke)),p.c[p.c.length]=m;break;case 1:b=new VFt(e,t.c.d,(aJ(),ive),(gQ(),Qke)),p.c[p.c.length]=b;break;case 4:v=new VFt(e,t.c.d,(aJ(),nve),(gQ(),Jke)),p.c[p.c.length]=v;break;case 2:y=new VFt(e,t.c.d,(aJ(),ive),(gQ(),Jke)),p.c[p.c.length]=y;break;default:m=new VFt(e,t.c.d,(aJ(),nve),(gQ(),Qke)),b=new VFt(e,t.c.d,ive,Qke),v=new VFt(e,t.c.d,nve,Jke),y=new VFt(e,t.c.d,ive,Jke),p.c[p.c.length]=v,p.c[p.c.length]=y,p.c[p.c.length]=m,p.c[p.c.length]=b}for(r=new eS(e,t.c),s=new Gf(p);s.a<s.c.c.length;)EWt(r,o=jz(Q1(s),180),t.b),Wzt(o);for(d=new Zvt(e,t.c),c=new Gf(p);c.a<c.c.c.length;)zUt(d,o=jz(Q1(c),180));if(n.n)for(l=new Gf(p);l.a<l.c.c.length;)SV(n,(o=jz(Q1(l),180))+" size is "+bMt(o));if(h=null,t.d&&Szt(e,u=jGt(t,p,t.c.d),n)&&(h=u),!h)for(l=new Gf(p);l.a<l.c.c.length;)Szt(e,o=jz(Q1(l),180),n)&&(!h||bMt(h)>bMt(o))&&(h=o);for(!h&&(u1(0,p.c.length),h=jz(p.c[0],180)),g=new Gf(e.b);g.a<g.c.c.length;)for(k=new Gf(jz(Q1(g),29).a);k.a<k.c.c.length;)(w=jz(Q1(k),10)).n.b=Vv(h.p[w.p])+Vv(h.d[w.p]);for(n.n&&(SV(n,"Chosen node placement: "+h),SV(n,"Blocks: "+LIt(h)),SV(n,"Classes: "+UBt(h,n)),SV(n,"Marked edges: "+t.b)),a=new Gf(p);a.a<a.c.c.length;)(o=jz(Q1(a),180)).g=null,o.b=null,o.a=null,o.d=null,o.j=null,o.i=null,o.p=null;qrt(t.c),t.b.a.$b(),zEt(n)}function rKt(t,e,n){var i,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A;for(a=new YA,w=jz(wxt(n,(zWt(),qpe)),103),g=0,jrt(a,(!e.a&&(e.a=new tG(HIe,e,10,11)),e.a));0!=a.b;)l=jz(0==a.b?null:(xO(0!=a.b),Iet(a,a.a.a)),33),(VD(QBt(e,Bpe))!==VD((wct(),Mwe))||VD(QBt(e,Vpe))===VD((Kwt(),yue))||VD(QBt(e,Vpe))===VD((Kwt(),kue))||zv(_N(QBt(e,Ppe)))||VD(QBt(e,Epe))!==VD(($ht(),dse)))&&!zv(_N(QBt(l,Ipe)))&&Xbt(l,(lKt(),dde),ndt(g++)),!zv(_N(QBt(l,Vme)))&&(h=0!=(!l.a&&(l.a=new tG(HIe,l,10,11)),l.a).i,f=vAt(l),d=VD(QBt(l,sme))===VD((aht(),pSe)),m=null,(A=!x7(l,(cKt(),tEe))||bF(AN(QBt(l,tEe)),f1t))&&d&&(h||f)&&(lct(m=v$t(l),qpe,w),BO(m,gbe)&&Cv(new agt(Vv(CN(wxt(m,gbe)))),m),0!=jz(QBt(l,Fme),174).gc()&&(u=m,XA(new OH(null,(!l.c&&(l.c=new tG(qIe,l,9,9)),new d1(l.c,16))),new Ug(u)),wNt(l,m))),k=n,(v=jz(OW(t.a,XQ(l)),10))&&(k=v.e),p=fUt(t,l,k),m&&(p.e=m,m.e=p,jrt(a,(!l.a&&(l.a=new tG(HIe,l,10,11)),l.a))));for(g=0,n4(a,e,a.c.b,a.c);0!=a.b;){for(c=new DP((!(o=jz(0==a.b?null:(xO(0!=a.b),Iet(a,a.a.a)),33)).b&&(o.b=new tG(NIe,o,12,3)),o.b));c.e!=c.i.gc();)tFt(s=jz(vbt(c),79)),(VD(QBt(e,Bpe))!==VD((wct(),Mwe))||VD(QBt(e,Vpe))===VD((Kwt(),yue))||VD(QBt(e,Vpe))===VD((Kwt(),kue))||zv(_N(QBt(e,Ppe)))||VD(QBt(e,Epe))!==VD(($ht(),dse)))&&Xbt(s,(lKt(),dde),ndt(g++)),_=EAt(jz(Wet((!s.b&&(s.b=new cF(OIe,s,4,7)),s.b),0),82)),C=EAt(jz(Wet((!s.c&&(s.c=new cF(OIe,s,5,8)),s.c),0),82)),zv(_N(QBt(s,Vme)))||zv(_N(QBt(_,Vme)))||zv(_N(QBt(C,Vme)))||(b=o,YDt(s)&&zv(_N(QBt(_,dme)))&&zv(_N(QBt(s,fme)))||Tet(C,_)?b=_:Tet(_,C)&&(b=C),k=n,(v=jz(OW(t.a,b),10))&&(k=v.e),lct(aKt(t,s,b,k),(lKt(),Fhe),MOt(t,s,e,n)));if(d=VD(QBt(o,sme))===VD((aht(),pSe)))for(r=new DP((!o.a&&(o.a=new tG(HIe,o,10,11)),o.a));r.e!=r.i.gc();)A=!x7(i=jz(vbt(r),33),(cKt(),tEe))||bF(AN(QBt(i,tEe)),f1t),y=VD(QBt(i,sme))===VD(pSe),A&&y&&n4(a,i,a.c.b,a.c)}}function oKt(t,e,n,i,r,o){var a,s,c,l,u,h,d;switch(e){case 71:a=i.q.getFullYear()-cXt>=-1900?1:0,aI(t,n>=4?Est(Vy(Yee,1),cYt,2,6,[uXt,hXt])[a]:Est(Vy(Yee,1),cYt,2,6,["BC","AD"])[a]);break;case 121:sbt(t,n,i);break;case 77:GFt(t,n,i);break;case 107:ytt(t,0==(s=r.q.getHours())?24:s,n);break;case 83:NPt(t,n,r);break;case 69:c=i.q.getDay(),aI(t,5==n?Est(Vy(Yee,1),cYt,2,6,["S","M","T","W","T","F","S"])[c]:4==n?Est(Vy(Yee,1),cYt,2,6,[dXt,fXt,gXt,pXt,mXt,bXt,wXt])[c]:Est(Vy(Yee,1),cYt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[c]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?aI(t,Est(Vy(Yee,1),cYt,2,6,["AM","PM"])[1]):aI(t,Est(Vy(Yee,1),cYt,2,6,["AM","PM"])[0]);break;case 104:ytt(t,0==(l=r.q.getHours()%12)?12:l,n);break;case 75:ytt(t,r.q.getHours()%12,n);break;case 72:ytt(t,r.q.getHours(),n);break;case 99:u=i.q.getDay(),5==n?aI(t,Est(Vy(Yee,1),cYt,2,6,["S","M","T","W","T","F","S"])[u]):4==n?aI(t,Est(Vy(Yee,1),cYt,2,6,[dXt,fXt,gXt,pXt,mXt,bXt,wXt])[u]):3==n?aI(t,Est(Vy(Yee,1),cYt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[u]):ytt(t,u,1);break;case 76:h=i.q.getMonth(),5==n?aI(t,Est(Vy(Yee,1),cYt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[h]):4==n?aI(t,Est(Vy(Yee,1),cYt,2,6,[XYt,ZYt,QYt,JYt,tXt,eXt,nXt,iXt,rXt,oXt,aXt,sXt])[h]):3==n?aI(t,Est(Vy(Yee,1),cYt,2,6,["Jan","Feb","Mar","Apr",tXt,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[h]):ytt(t,h+1,n);break;case 81:d=i.q.getMonth()/3|0,aI(t,n<4?Est(Vy(Yee,1),cYt,2,6,["Q1","Q2","Q3","Q4"])[d]:Est(Vy(Yee,1),cYt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[d]);break;case 100:ytt(t,i.q.getDate(),n);break;case 109:ytt(t,r.q.getMinutes(),n);break;case 115:ytt(t,r.q.getSeconds(),n);break;case 122:aI(t,n<4?o.c[0]:o.c[1]);break;case 118:aI(t,o.b);break;case 90:aI(t,n<3?JSt(o):3==n?fDt(o):gDt(o.a));break;default:return!1}return!0}function aKt(t,e,n,i){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S;if(tFt(e),c=jz(Wet((!e.b&&(e.b=new cF(OIe,e,4,7)),e.b),0),82),u=jz(Wet((!e.c&&(e.c=new cF(OIe,e,5,8)),e.c),0),82),s=EAt(c),l=EAt(u),a=0==(!e.a&&(e.a=new tG(RIe,e,6,6)),e.a).i?null:jz(Wet((!e.a&&(e.a=new tG(RIe,e,6,6)),e.a),0),202),_=jz(OW(t.a,s),10),E=jz(OW(t.a,l),10),C=null,T=null,iP(c,186)&&(iP(y=jz(OW(t.a,c),299),11)?C=jz(y,11):iP(y,10)&&(_=jz(y,10),C=jz(PH(_.j,0),11))),iP(u,186)&&(iP(x=jz(OW(t.a,u),299),11)?T=jz(x,11):iP(x,10)&&(E=jz(x,10),T=jz(PH(E.j,0),11))),!_||!E)throw $b(new iy("The source or the target of edge "+e+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(Vat(p=new dZ,e),lct(p,(lKt(),fde),e),lct(p,(zWt(),mme),null),f=jz(wxt(i,Zhe),21),_==E&&f.Fc((dNt(),mhe)),C||(oit(),v=zwe,A=null,a&&mB(jz(wxt(_,tbe),98))&&(Y3(A=new PS(a.j,a.k),UQ(e)),J5(A,n),Tet(l,s)&&(v=$we,qR(A,_.n))),C=gVt(_,A,v,i)),T||(oit(),v=$we,S=null,a&&mB(jz(wxt(E,tbe),98))&&(Y3(S=new PS(a.b,a.c),UQ(e)),J5(S,n)),T=gVt(E,S,v,mK(E))),AJ(p,C),CJ(p,T),(C.e.c.length>1||C.g.c.length>1||T.e.c.length>1||T.g.c.length>1)&&f.Fc((dNt(),hhe)),d=new DP((!e.n&&(e.n=new tG(VIe,e,1,7)),e.n));d.e!=d.i.gc();)if(!zv(_N(QBt(h=jz(vbt(d),137),Vme)))&&h.a)switch(m=zut(h),Gz(p.b,m),jz(wxt(m,Ype),272).g){case 1:case 2:f.Fc((dNt(),lhe));break;case 0:f.Fc((dNt(),she)),lct(m,Ype,(Net(),HTe))}if(o=jz(wxt(i,zpe),314),b=jz(wxt(i,Rme),315),r=o==(Dit(),sue)||b==(Pwt(),pwe),a&&0!=(!a.a&&(a.a=new IP(MIe,a,5)),a.a).i&&r){for(w=VEt(a),g=new kk,k=cbt(w,0);k.b!=k.d.c;)LV(g,new dB(jz(h3(k),8)));lct(p,gde,g)}return p}function sKt(t){t.gb||(t.gb=!0,t.b=vat(t,0),Nrt(t.b,18),Rrt(t.b,19),t.a=vat(t,1),Nrt(t.a,1),Rrt(t.a,2),Rrt(t.a,3),Rrt(t.a,4),Rrt(t.a,5),t.o=vat(t,2),Nrt(t.o,8),Nrt(t.o,9),Rrt(t.o,10),Rrt(t.o,11),Rrt(t.o,12),Rrt(t.o,13),Rrt(t.o,14),Rrt(t.o,15),Rrt(t.o,16),Rrt(t.o,17),Rrt(t.o,18),Rrt(t.o,19),Rrt(t.o,20),Rrt(t.o,21),Rrt(t.o,22),Rrt(t.o,23),aet(t.o),aet(t.o),aet(t.o),aet(t.o),aet(t.o),aet(t.o),aet(t.o),aet(t.o),aet(t.o),aet(t.o),t.p=vat(t,3),Nrt(t.p,2),Nrt(t.p,3),Nrt(t.p,4),Nrt(t.p,5),Rrt(t.p,6),Rrt(t.p,7),aet(t.p),aet(t.p),t.q=vat(t,4),Nrt(t.q,8),t.v=vat(t,5),Rrt(t.v,9),aet(t.v),aet(t.v),aet(t.v),t.w=vat(t,6),Nrt(t.w,2),Nrt(t.w,3),Nrt(t.w,4),Rrt(t.w,5),t.B=vat(t,7),Rrt(t.B,1),aet(t.B),aet(t.B),aet(t.B),t.Q=vat(t,8),Rrt(t.Q,0),aet(t.Q),t.R=vat(t,9),Nrt(t.R,1),t.S=vat(t,10),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),aet(t.S),t.T=vat(t,11),Rrt(t.T,10),Rrt(t.T,11),Rrt(t.T,12),Rrt(t.T,13),Rrt(t.T,14),aet(t.T),aet(t.T),t.U=vat(t,12),Nrt(t.U,2),Nrt(t.U,3),Rrt(t.U,4),Rrt(t.U,5),Rrt(t.U,6),Rrt(t.U,7),aet(t.U),t.V=vat(t,13),Rrt(t.V,10),t.W=vat(t,14),Nrt(t.W,18),Nrt(t.W,19),Nrt(t.W,20),Rrt(t.W,21),Rrt(t.W,22),Rrt(t.W,23),t.bb=vat(t,15),Nrt(t.bb,10),Nrt(t.bb,11),Nrt(t.bb,12),Nrt(t.bb,13),Nrt(t.bb,14),Nrt(t.bb,15),Nrt(t.bb,16),Rrt(t.bb,17),aet(t.bb),aet(t.bb),t.eb=vat(t,16),Nrt(t.eb,2),Nrt(t.eb,3),Nrt(t.eb,4),Nrt(t.eb,5),Nrt(t.eb,6),Nrt(t.eb,7),Rrt(t.eb,8),Rrt(t.eb,9),t.ab=vat(t,17),Nrt(t.ab,0),Nrt(t.ab,1),t.H=vat(t,18),Rrt(t.H,0),Rrt(t.H,1),Rrt(t.H,2),Rrt(t.H,3),Rrt(t.H,4),Rrt(t.H,5),aet(t.H),t.db=vat(t,19),Rrt(t.db,2),t.c=yat(t,20),t.d=yat(t,21),t.e=yat(t,22),t.f=yat(t,23),t.i=yat(t,24),t.g=yat(t,25),t.j=yat(t,26),t.k=yat(t,27),t.n=yat(t,28),t.r=yat(t,29),t.s=yat(t,30),t.t=yat(t,31),t.u=yat(t,32),t.fb=yat(t,33),t.A=yat(t,34),t.C=yat(t,35),t.D=yat(t,36),t.F=yat(t,37),t.G=yat(t,38),t.I=yat(t,39),t.J=yat(t,40),t.L=yat(t,41),t.M=yat(t,42),t.N=yat(t,43),t.O=yat(t,44),t.P=yat(t,45),t.X=yat(t,46),t.Y=yat(t,47),t.Z=yat(t,48),t.$=yat(t,49),t._=yat(t,50),t.cb=yat(t,51),t.K=yat(t,52))}function cKt(){var t,e;cKt=I,tEe=new ob(f4t),bTe=new ob(g4t),fwt(),eEe=new II(W2t,nEe=Exe),iEe=new II(KQt,null),rEe=new ob(p4t),fCt(),lEe=yq(Zxe,Est(Vy(zTe,1),BYt,291,0,[Wxe])),cEe=new II(a3t,lEe),uEe=new II(G2t,(cL(),!1)),jht(),hEe=new II(Z2t,dEe=jTe),Aft(),mEe=new II(k2t,bEe=ZTe),vEe=new II(I5t,!1),aht(),yEe=new II(g2t,_Ee=mSe),GEe=new GB(12),UEe=new II(YQt,GEe),EEe=new II(yJt,!1),TEe=new II(w3t,!1),qEe=new II(AJt,!1),YCt(),oTe=new II(_Jt,aTe=YSe),gTe=new ob(p3t),pTe=new ob(mJt),mTe=new ob(kJt),kTe=new ob(vJt),DEe=new kk,SEe=new II(s3t,DEe),sEe=new II(u3t,!1),CEe=new II(h3t,!1),BEe=new uk,IEe=new II(m3t,BEe),HEe=new II(q2t,!1),wTe=new II(b4t,1),new II(w4t,!0),ndt(0),new II(k4t,ndt(100)),new II(v4t,!1),ndt(0),new II(y4t,ndt(4e3)),ndt(0),new II(_4t,ndt(400)),new II(C4t,!1),new II(A4t,!1),new II(x4t,!0),new II(E4t,!1),jgt(),oEe=new II(d4t,aEe=tIe),vTe=new II(M2t,10),yTe=new II(P2t,10),_Te=new II(GQt,20),CTe=new II(L2t,10),ATe=new II(wJt,2),xTe=new II(O2t,10),TTe=new II(N2t,0),STe=new II(j2t,5),DTe=new II(R2t,1),ITe=new II(F2t,1),BTe=new II(bJt,20),MTe=new II($2t,10),OTe=new II(z2t,10),ETe=new ob(V2t),LTe=new uB,PTe=new II(b3t,LTe),YEe=new ob(g3t),WEe=new II(f3t,KEe=!1),PEe=new GB(5),MEe=new II(Q2t,PEe),JBt(),e=jz(W_(VSe),9),OEe=new YF(e,jz(AR(e,e.length),9),0),LEe=new II(TJt,OEe),rbt(),ZEe=new II(e3t,QEe=jSe),tTe=new ob(n3t),eTe=new ob(i3t),nTe=new ob(r3t),JEe=new ob(o3t),t=jz(W_(YDe),9),REe=new YF(t,jz(AR(t,t.length),9),0),NEe=new II(EJt,REe),VEe=Jdt((JFt(),VDe)),zEe=new II(xJt,VEe),$Ee=new PS(0,0),jEe=new II($Jt,$Ee),FEe=new II(X2t,!1),Net(),gEe=new II(c3t,pEe=HTe),fEe=new II(CJt,!1),ndt(1),new II(S4t,null),iTe=new ob(d3t),sTe=new ob(l3t),vGt(),dTe=new II(U2t,fTe=xDe),rTe=new ob(H2t),hDt(),uTe=Jdt(nDe),lTe=new II(SJt,uTe),cTe=new II(J2t,!1),hTe=new II(t3t,!0),AEe=new II(K2t,!1),xEe=new II(Y2t,!1),wEe=new II(WQt,1),JAt(),new II(D4t,kEe=rSe),XEe=!0}function lKt(){var t,e;lKt=I,fde=new ob(DJt),Fhe=new ob("coordinateOrigin"),Cde=new ob("processors"),Rhe=new eR("compoundNode",(cL(),!1)),tde=new eR("insideConnections",!1),gde=new ob("originalBendpoints"),pde=new ob("originalDummyNodePosition"),mde=new ob("originalLabelEdge"),xde=new ob("representedLabels"),Hhe=new ob("endLabels"),qhe=new ob("endLabel.origin"),ode=new eR("labelSide",(Gvt(),CSe)),hde=new eR("maxEdgeThickness",0),Ede=new eR("reversed",!1),Ade=new ob(IJt),cde=new eR("longEdgeSource",null),lde=new eR("longEdgeTarget",null),sde=new eR("longEdgeHasLabelDummies",!1),ade=new eR("longEdgeBeforeLabelDummy",!1),Vhe=new eR("edgeConstraint",(Zst(),Due)),nde=new ob("inLayerLayoutUnit"),ede=new eR("inLayerConstraint",(H9(),xhe)),ide=new eR("inLayerSuccessorConstraint",new Mb),rde=new eR("inLayerSuccessorConstraintBetweenNonDummies",!1),yde=new ob("portDummy"),jhe=new eR("crossingHint",ndt(0)),Zhe=new eR("graphProperties",new YF(e=jz(W_(_he),9),jz(AR(e,e.length),9),0)),Khe=new eR("externalPortSide",(vGt(),xDe)),Yhe=new eR("externalPortSize",new V_),Ghe=new ob("externalPortReplacedDummies"),Whe=new ob("externalPortReplacedDummy"),Uhe=new eR("externalPortConnections",new YF(t=jz(W_(FDe),9),jz(AR(t,t.length),9),0)),_de=new eR(gQt,0),Phe=new ob("barycenterAssociates"),Nde=new ob("TopSideComments"),Lhe=new ob("BottomSideComments"),Nhe=new ob("CommentConnectionPort"),Jhe=new eR("inputCollect",!1),kde=new eR("outputCollect",!1),zhe=new eR("cyclic",!1),$he=new ob("crossHierarchyMap"),Ode=new ob("targetOffset"),new eR("splineLabelSize",new V_),Dde=new ob("spacings"),vde=new eR("partitionConstraint",!1),Ohe=new ob("breakingPoint.info"),Pde=new ob("splines.survivingEdge"),Mde=new ob("splines.route.start"),Ide=new ob("splines.edgeChain"),wde=new ob("originalPortConstraints"),Sde=new ob("selfLoopHolder"),Bde=new ob("splines.nsPortY"),dde=new ob("modelOrder"),ude=new ob("longEdgeTargetNode"),Xhe=new eR(q1t,!1),Tde=new eR(q1t,!1),Qhe=new ob("layerConstraints.hiddenNodes"),bde=new ob("layerConstraints.opposidePort"),Lde=new ob("targetNode.modelOrder")}function uKt(){uKt=I,Rtt(),Afe=new II(U1t,xfe=Aue),Vfe=new II(G1t,(cL(),!1)),H2(),Wfe=new II(W1t,Kfe=Dhe),dge=new II(K1t,!1),fge=new II(Y1t,!0),qde=new II(X1t,!1),q9(),Mge=new II(Z1t,Pge=Nwe),ndt(1),zge=new II(Q1t,ndt(7)),Vge=new II(J1t,!1),Hfe=new II(t0t,!1),Kwt(),_fe=new II(e0t,Cfe=wue),CAt(),uge=new II(n0t,hge=Jbe),Cft(),tge=new II(i0t,ege=zde),ndt(-1),Jfe=new II(r0t,ndt(-1)),ndt(-1),nge=new II(o0t,ndt(-1)),ndt(-1),ige=new II(a0t,ndt(4)),ndt(-1),oge=new II(s0t,ndt(2)),cLt(),cge=new II(c0t,lge=Twe),ndt(0),sge=new II(l0t,ndt(0)),Zfe=new II(u0t,ndt(OKt)),Dit(),vfe=new II(h0t,yfe=cue),ofe=new II(d0t,!1),gfe=new II(f0t,.1),wfe=new II(g0t,!1),ndt(-1),mfe=new II(p0t,ndt(-1)),ndt(-1),bfe=new II(m0t,ndt(-1)),ndt(0),afe=new II(b0t,ndt(40)),Rat(),hfe=new II(w0t,dfe=yhe),sfe=new II(k0t,cfe=khe),Pwt(),Ige=new II(v0t,Bge=gwe),vge=new ob(y0t),g9(),gge=new II(_0t,pge=zue),$_t(),bge=new II(C0t,wge=Kue),Cge=new II(A0t,.3),xge=new ob(x0t),dwt(),Ege=new II(E0t,Tge=uwe),zot(),Mfe=new II(T0t,Pfe=Gwe),D6(),Lfe=new II(S0t,Ofe=Zwe),Ult(),Nfe=new II(D0t,Rfe=nke),jfe=new II(I0t,.2),Ife=new II(B0t,2),Rge=new II(M0t,null),jge=new II(P0t,10),Fge=new II(L0t,10),$ge=new II(O0t,20),ndt(0),Lge=new II(N0t,ndt(0)),ndt(0),Oge=new II(R0t,ndt(0)),ndt(0),Nge=new II(F0t,ndt(0)),Ude=new II(j0t,!1),Zxt(),Kde=new II($0t,Yde=ihe),W7(),Gde=new II(z0t,Wde=rue),Ufe=new II(V0t,!1),ndt(0),qfe=new II(H0t,ndt(16)),ndt(0),Gfe=new II(q0t,ndt(5)),Bst(),upe=new II(U0t,hpe=hke),Hge=new II(G0t,10),Gge=new II(W0t,1),ait(),tpe=new II(K0t,epe=gue),Yge=new ob(Y0t),Qge=ndt(1),ndt(0),Zge=new II(X0t,Qge),got(),ppe=new II(Z0t,mpe=oke),dpe=new ob(Q0t),ape=new II(J0t,!0),rpe=new II(t2t,2),cpe=new II(e2t,!0),pEt(),Sfe=new II(n2t,Dfe=Rue),BTt(),Efe=new II(i2t,Tfe=Zle),wct(),ife=new II(r2t,rfe=Mwe),nfe=new II(o2t,!1),$ht(),Xde=new II(a2t,Zde=dse),Aut(),tfe=new II(s2t,efe=iwe),Qde=new II(c2t,0),Jde=new II(l2t,0),Xfe=vue,Yfe=sue,rge=Qbe,age=Qbe,Qfe=Ybe,aht(),pfe=pSe,kfe=cue,ffe=cue,lfe=cue,ufe=pSe,yge=bwe,_ge=gwe,mge=gwe,kge=gwe,Age=mwe,Dge=bwe,Sge=bwe,Aft(),Ffe=XTe,$fe=XTe,zfe=nke,Bfe=YTe,qge=dke,Uge=uke,Wge=dke,Kge=uke,npe=dke,ipe=uke,Xge=fue,Jge=gue,bpe=dke,wpe=uke,fpe=dke,gpe=uke,spe=uke,ope=uke,lpe=uke}function hKt(){hKt=I,nce=new QE("DIRECTION_PREPROCESSOR",0),Jse=new QE("COMMENT_PREPROCESSOR",1),ice=new QE("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),kce=new QE("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),Fce=new QE("PARTITION_PREPROCESSOR",4),Cce=new QE("LABEL_DUMMY_INSERTER",5),qce=new QE("SELF_LOOP_PREPROCESSOR",6),Sce=new QE("LAYER_CONSTRAINT_PREPROCESSOR",7),Nce=new QE("PARTITION_MIDPROCESSOR",8),gce=new QE("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Mce=new QE("NODE_PROMOTION",10),Tce=new QE("LAYER_CONSTRAINT_POSTPROCESSOR",11),Rce=new QE("PARTITION_POSTPROCESSOR",12),uce=new QE("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),Gce=new QE("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Wse=new QE("BREAKING_POINT_INSERTER",15),Bce=new QE("LONG_EDGE_SPLITTER",16),$ce=new QE("PORT_SIDE_PROCESSOR",17),vce=new QE("INVERTED_PORT_PROCESSOR",18),jce=new QE("PORT_LIST_SORTER",19),Kce=new QE("SORT_BY_INPUT_ORDER_OF_MODEL",20),Lce=new QE("NORTH_SOUTH_PORT_PREPROCESSOR",21),Kse=new QE("BREAKING_POINT_PROCESSOR",22),Oce=new QE(_1t,23),Yce=new QE(C1t,24),Vce=new QE("SELF_LOOP_PORT_RESTORER",25),Wce=new QE("SINGLE_EDGE_GRAPH_WRAPPER",26),yce=new QE("IN_LAYER_CONSTRAINT_PROCESSOR",27),sce=new QE("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),_ce=new QE("LABEL_AND_NODE_SIZE_PROCESSOR",29),wce=new QE("INNERMOST_NODE_MARGIN_CALCULATOR",30),Uce=new QE("SELF_LOOP_ROUTER",31),Zse=new QE("COMMENT_NODE_MARGIN_CALCULATOR",32),oce=new QE("END_LABEL_PREPROCESSOR",33),xce=new QE("LABEL_DUMMY_SWITCHER",34),Xse=new QE("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),Ece=new QE("LABEL_SIDE_SELECTOR",36),mce=new QE("HYPEREDGE_DUMMY_MERGER",37),hce=new QE("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Dce=new QE("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),fce=new QE("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),tce=new QE("CONSTRAINTS_POSTPROCESSOR",41),Qse=new QE("COMMENT_POSTPROCESSOR",42),bce=new QE("HYPERNODE_PROCESSOR",43),dce=new QE("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),Ice=new QE("LONG_EDGE_JOINER",45),Hce=new QE("SELF_LOOP_POSTPROCESSOR",46),Yse=new QE("BREAKING_POINT_REMOVER",47),Pce=new QE("NORTH_SOUTH_PORT_POSTPROCESSOR",48),pce=new QE("HORIZONTAL_COMPACTOR",49),Ace=new QE("LABEL_DUMMY_REMOVER",50),cce=new QE("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),ace=new QE("END_LABEL_SORTER",52),zce=new QE("REVERSED_EDGE_RESTORER",53),rce=new QE("END_LABEL_POSTPROCESSOR",54),lce=new QE("HIERARCHICAL_NODE_RESIZER",55),ece=new QE("DIRECTION_POSTPROCESSOR",56)}function dKt(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A,x,E,T,S,D,I,B,M,P,L,O,N,R,F,j,$,z,V,H,q,U,G,W,K,Y,X,Z,Q,J,tt,et,nt,it,rt,ot,at,st;for(Q=0,P=0,N=(I=e).length;P<N;++P)for(q=new Gf((S=I[P]).j);q.a<q.c.c.length;){for(G=0,c=new Gf((H=jz(Q1(q),11)).g);c.a<c.c.c.length;)s=jz(Q1(c),17),S.c!=s.d.i.c&&++G;G>0&&(t.a[H.p]=Q++)}for(it=0,L=0,R=(B=n).length;L<R;++L){for(F=0,q=new Gf((S=B[L]).j);q.a<q.c.c.length&&(H=jz(Q1(q),11)).j==(vGt(),sDe);)for(c=new Gf(H.e);c.a<c.c.c.length;)if(s=jz(Q1(c),17),S.c!=s.c.i.c){++F;break}for($=0,W=new C2(S.j,S.j.c.length);W.b>0;){for(xO(W.b>0),G=0,c=new Gf((H=jz(W.a.Xb(W.c=--W.b),11)).e);c.a<c.c.c.length;)s=jz(Q1(c),17),S.c!=s.c.i.c&&++G;G>0&&(H.j==(vGt(),sDe)?(t.a[H.p]=it,++it):(t.a[H.p]=it+F+$,++$))}it+=$}for(U=new Pb,p=new lB,M=0,O=(D=e).length;M<O;++M)for(et=new Gf((S=D[M]).j);et.a<et.c.c.length;)for(c=new Gf((tt=jz(Q1(et),11)).g);c.a<c.c.c.length;)if(ot=(s=jz(Q1(c),17)).d,S.c!=ot.i.c)if(J=jz(zD(DZ(U.f,tt)),467),rt=jz(zD(DZ(U.f,ot)),467),J||rt)if(J)if(rt)if(J==rt)Gz(J.a,s);else{for(Gz(J.a,s),V=new Gf(rt.d);V.a<V.c.c.length;)z=jz(Q1(V),11),ySt(U.f,z,J);pst(J.a,rt.a),pst(J.d,rt.d),p.a.Bc(rt)}else Gz(J.a,s),Gz(J.d,ot),ySt(U.f,ot,J);else Gz(rt.a,s),Gz(rt.d,tt),ySt(U.f,tt,rt);else g=new LR,p.a.zc(g,p),Gz(g.a,s),Gz(g.d,tt),ySt(U.f,tt,g),Gz(g.d,ot),ySt(U.f,ot,g);for(m=jz(_kt(p,P7(Fke,{3:1,4:1,5:1,1946:1},467,p.a.gc(),0,1)),1946),T=e[0].c,Z=n[0].c,d=0,f=(h=m).length;d<f;++d)for((u=h[d]).e=Q,u.f=it,q=new Gf(u.d);q.a<q.c.c.length;)H=jz(Q1(q),11),K=t.a[H.p],H.i.c==T?(K<u.e&&(u.e=K),K>u.b&&(u.b=K)):H.i.c==Z&&(K<u.f&&(u.f=K),K>u.c&&(u.c=K));for(H8(m,0,m.length,null),nt=P7(SLe,lXt,25,m.length,15,1),r=P7(SLe,lXt,25,it+1,15,1),w=0;w<m.length;w++)nt[w]=m[w].f,r[nt[w]]=1;for(a=0,k=0;k<r.length;k++)1==r[k]?r[k]=a:--a;for(Y=0,v=0;v<nt.length;v++)nt[v]+=r[nt[v]],Y=i.Math.max(Y,nt[v]+1);for(l=1;l<Y;)l*=2;for(st=2*l-1,l-=1,at=P7(SLe,lXt,25,st,15,1),o=0,x=0;x<nt.length;x++)for(++at[A=nt[x]+l];A>0;)A%2>0&&(o+=at[A+1]),++at[A=(A-1)/2|0];for(E=P7(zke,zKt,362,2*m.length,0,1),y=0;y<m.length;y++)E[2*y]=new zY(m[y],m[y].e,m[y].b,(K5(),$ke)),E[2*y+1]=new zY(m[y],m[y].b,m[y].e,jke);for(H8(E,0,E.length,null),j=0,_=0;_<E.length;_++)switch(E[_].d.g){case 0:++j;break;case 1:o+=--j}for(X=P7(zke,zKt,362,2*m.length,0,1),C=0;C<m.length;C++)X[2*C]=new zY(m[C],m[C].f,m[C].c,(K5(),$ke)),X[2*C+1]=new zY(m[C],m[C].c,m[C].f,jke);for(H8(X,0,X.length,null),j=0,b=0;b<X.length;b++)switch(X[b].d.g){case 0:++j;break;case 1:o+=--j}return o}function fKt(){fKt=I,aLe=new Db(7),sLe=new aq(8,94),new aq(8,64),cLe=new aq(8,36),gLe=new aq(8,65),pLe=new aq(8,122),mLe=new aq(8,90),kLe=new aq(8,98),dLe=new aq(8,66),bLe=new aq(8,60),vLe=new aq(8,62),oLe=new Db(11),XOt(rLe=new C0(4),48,57),XOt(wLe=new C0(4),48,57),XOt(wLe,65,90),XOt(wLe,95,95),XOt(wLe,97,122),XOt(fLe=new C0(4),9,9),XOt(fLe,10,10),XOt(fLe,12,12),XOt(fLe,13,13),XOt(fLe,32,32),lLe=B$t(rLe),hLe=B$t(wLe),uLe=B$t(fLe),tLe=new Pb,eLe=new Pb,nLe=Est(Vy(Yee,1),cYt,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),JPe=Est(Vy(Yee,1),cYt,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",pte,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),iLe=Est(Vy(SLe,1),lXt,25,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function gKt(){gKt=I,xre=new sot("OUT_T_L",0,(X8(),Yie),(V9(),ere),(Oet(),Vie),Vie,Est(Vy(Ote,1),zKt,21,0,[yq((JBt(),BSe),Est(Vy(VSe,1),BYt,93,0,[LSe,TSe]))])),Are=new sot("OUT_T_C",1,Kie,ere,Vie,Hie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[LSe,ESe])),yq(BSe,Est(Vy(VSe,1),BYt,93,0,[LSe,ESe,SSe]))])),Ere=new sot("OUT_T_R",2,Xie,ere,Vie,qie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[LSe,DSe]))])),mre=new sot("OUT_B_L",3,Yie,ire,qie,Vie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[MSe,TSe]))])),pre=new sot("OUT_B_C",4,Kie,ire,qie,Hie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[MSe,ESe])),yq(BSe,Est(Vy(VSe,1),BYt,93,0,[MSe,ESe,SSe]))])),bre=new sot("OUT_B_R",5,Xie,ire,qie,qie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[MSe,DSe]))])),vre=new sot("OUT_L_T",6,Xie,ire,Vie,Vie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[TSe,LSe,SSe]))])),kre=new sot("OUT_L_C",7,Xie,nre,Hie,Vie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[TSe,PSe])),yq(BSe,Est(Vy(VSe,1),BYt,93,0,[TSe,PSe,SSe]))])),wre=new sot("OUT_L_B",8,Xie,ere,qie,Vie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[TSe,MSe,SSe]))])),Cre=new sot("OUT_R_T",9,Yie,ire,Vie,qie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[DSe,LSe,SSe]))])),_re=new sot("OUT_R_C",10,Yie,nre,Hie,qie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[DSe,PSe])),yq(BSe,Est(Vy(VSe,1),BYt,93,0,[DSe,PSe,SSe]))])),yre=new sot("OUT_R_B",11,Yie,ere,qie,qie,Est(Vy(Ote,1),zKt,21,0,[yq(BSe,Est(Vy(VSe,1),BYt,93,0,[DSe,MSe,SSe]))])),fre=new sot("IN_T_L",12,Yie,ire,Vie,Vie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[LSe,TSe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[LSe,TSe,SSe]))])),dre=new sot("IN_T_C",13,Kie,ire,Vie,Hie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[LSe,ESe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[LSe,ESe,SSe]))])),gre=new sot("IN_T_R",14,Xie,ire,Vie,qie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[LSe,DSe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[LSe,DSe,SSe]))])),ure=new sot("IN_C_L",15,Yie,nre,Hie,Vie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[PSe,TSe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[PSe,TSe,SSe]))])),lre=new sot("IN_C_C",16,Kie,nre,Hie,Hie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[PSe,ESe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[PSe,ESe,SSe]))])),hre=new sot("IN_C_R",17,Xie,nre,Hie,qie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[PSe,DSe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[PSe,DSe,SSe]))])),sre=new sot("IN_B_L",18,Yie,ere,qie,Vie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[MSe,TSe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[MSe,TSe,SSe]))])),are=new sot("IN_B_C",19,Kie,ere,qie,Hie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[MSe,ESe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[MSe,ESe,SSe]))])),cre=new sot("IN_B_R",20,Xie,ere,qie,qie,Est(Vy(Ote,1),zKt,21,0,[yq(ISe,Est(Vy(VSe,1),BYt,93,0,[MSe,DSe])),yq(ISe,Est(Vy(VSe,1),BYt,93,0,[MSe,DSe,SSe]))])),Tre=new sot(lQt,21,null,null,null,null,Est(Vy(Ote,1),zKt,21,0,[]))}function pKt(){pKt=I,tMe=(KW(),QBe).b,jz(Wet(KX(QBe.b),0),34),jz(Wet(KX(QBe.b),1),18),JBe=QBe.a,jz(Wet(KX(QBe.a),0),34),jz(Wet(KX(QBe.a),1),18),jz(Wet(KX(QBe.a),2),18),jz(Wet(KX(QBe.a),3),18),jz(Wet(KX(QBe.a),4),18),eMe=QBe.o,jz(Wet(KX(QBe.o),0),34),jz(Wet(KX(QBe.o),1),34),iMe=jz(Wet(KX(QBe.o),2),18),jz(Wet(KX(QBe.o),3),18),jz(Wet(KX(QBe.o),4),18),jz(Wet(KX(QBe.o),5),18),jz(Wet(KX(QBe.o),6),18),jz(Wet(KX(QBe.o),7),18),jz(Wet(KX(QBe.o),8),18),jz(Wet(KX(QBe.o),9),18),jz(Wet(KX(QBe.o),10),18),jz(Wet(KX(QBe.o),11),18),jz(Wet(KX(QBe.o),12),18),jz(Wet(KX(QBe.o),13),18),jz(Wet(KX(QBe.o),14),18),jz(Wet(KX(QBe.o),15),18),jz(Wet(WX(QBe.o),0),59),jz(Wet(WX(QBe.o),1),59),jz(Wet(WX(QBe.o),2),59),jz(Wet(WX(QBe.o),3),59),jz(Wet(WX(QBe.o),4),59),jz(Wet(WX(QBe.o),5),59),jz(Wet(WX(QBe.o),6),59),jz(Wet(WX(QBe.o),7),59),jz(Wet(WX(QBe.o),8),59),jz(Wet(WX(QBe.o),9),59),nMe=QBe.p,jz(Wet(KX(QBe.p),0),34),jz(Wet(KX(QBe.p),1),34),jz(Wet(KX(QBe.p),2),34),jz(Wet(KX(QBe.p),3),34),jz(Wet(KX(QBe.p),4),18),jz(Wet(KX(QBe.p),5),18),jz(Wet(WX(QBe.p),0),59),jz(Wet(WX(QBe.p),1),59),rMe=QBe.q,jz(Wet(KX(QBe.q),0),34),oMe=QBe.v,jz(Wet(KX(QBe.v),0),18),jz(Wet(WX(QBe.v),0),59),jz(Wet(WX(QBe.v),1),59),jz(Wet(WX(QBe.v),2),59),aMe=QBe.w,jz(Wet(KX(QBe.w),0),34),jz(Wet(KX(QBe.w),1),34),jz(Wet(KX(QBe.w),2),34),jz(Wet(KX(QBe.w),3),18),sMe=QBe.B,jz(Wet(KX(QBe.B),0),18),jz(Wet(WX(QBe.B),0),59),jz(Wet(WX(QBe.B),1),59),jz(Wet(WX(QBe.B),2),59),uMe=QBe.Q,jz(Wet(KX(QBe.Q),0),18),jz(Wet(WX(QBe.Q),0),59),hMe=QBe.R,jz(Wet(KX(QBe.R),0),34),dMe=QBe.S,jz(Wet(WX(QBe.S),0),59),jz(Wet(WX(QBe.S),1),59),jz(Wet(WX(QBe.S),2),59),jz(Wet(WX(QBe.S),3),59),jz(Wet(WX(QBe.S),4),59),jz(Wet(WX(QBe.S),5),59),jz(Wet(WX(QBe.S),6),59),jz(Wet(WX(QBe.S),7),59),jz(Wet(WX(QBe.S),8),59),jz(Wet(WX(QBe.S),9),59),jz(Wet(WX(QBe.S),10),59),jz(Wet(WX(QBe.S),11),59),jz(Wet(WX(QBe.S),12),59),jz(Wet(WX(QBe.S),13),59),jz(Wet(WX(QBe.S),14),59),fMe=QBe.T,jz(Wet(KX(QBe.T),0),18),jz(Wet(KX(QBe.T),2),18),gMe=jz(Wet(KX(QBe.T),3),18),jz(Wet(KX(QBe.T),4),18),jz(Wet(WX(QBe.T),0),59),jz(Wet(WX(QBe.T),1),59),jz(Wet(KX(QBe.T),1),18),pMe=QBe.U,jz(Wet(KX(QBe.U),0),34),jz(Wet(KX(QBe.U),1),34),jz(Wet(KX(QBe.U),2),18),jz(Wet(KX(QBe.U),3),18),jz(Wet(KX(QBe.U),4),18),jz(Wet(KX(QBe.U),5),18),jz(Wet(WX(QBe.U),0),59),mMe=QBe.V,jz(Wet(KX(QBe.V),0),18),bMe=QBe.W,jz(Wet(KX(QBe.W),0),34),jz(Wet(KX(QBe.W),1),34),jz(Wet(KX(QBe.W),2),34),jz(Wet(KX(QBe.W),3),18),jz(Wet(KX(QBe.W),4),18),jz(Wet(KX(QBe.W),5),18),kMe=QBe.bb,jz(Wet(KX(QBe.bb),0),34),jz(Wet(KX(QBe.bb),1),34),jz(Wet(KX(QBe.bb),2),34),jz(Wet(KX(QBe.bb),3),34),jz(Wet(KX(QBe.bb),4),34),jz(Wet(KX(QBe.bb),5),34),jz(Wet(KX(QBe.bb),6),34),jz(Wet(KX(QBe.bb),7),18),jz(Wet(WX(QBe.bb),0),59),jz(Wet(WX(QBe.bb),1),59),vMe=QBe.eb,jz(Wet(KX(QBe.eb),0),34),jz(Wet(KX(QBe.eb),1),34),jz(Wet(KX(QBe.eb),2),34),jz(Wet(KX(QBe.eb),3),34),jz(Wet(KX(QBe.eb),4),34),jz(Wet(KX(QBe.eb),5),34),jz(Wet(KX(QBe.eb),6),18),jz(Wet(KX(QBe.eb),7),18),wMe=QBe.ab,jz(Wet(KX(QBe.ab),0),34),jz(Wet(KX(QBe.ab),1),34),cMe=QBe.H,jz(Wet(KX(QBe.H),0),18),jz(Wet(KX(QBe.H),1),18),jz(Wet(KX(QBe.H),2),18),jz(Wet(KX(QBe.H),3),18),jz(Wet(KX(QBe.H),4),18),jz(Wet(KX(QBe.H),5),18),jz(Wet(WX(QBe.H),0),59),yMe=QBe.db,jz(Wet(KX(QBe.db),0),18),lMe=QBe.M}function mKt(t){var e;t.O||(t.O=!0,Prt(t,"type"),Lrt(t,"ecore.xml.type"),Ort(t,x9t),e=jz(BMt((Gx(),VBe),x9t),1945),l8(kZ(t.fb),t.b),H0(t.b,hPe,"AnyType",!1,!1,!0),aot(jz(Wet(KX(t.b),0),34),t.wb.D,R8t,null,0,-1,hPe,!1,!1,!0,!1,!1,!1),aot(jz(Wet(KX(t.b),1),34),t.wb.D,"any",null,0,-1,hPe,!0,!0,!0,!1,!1,!0),aot(jz(Wet(KX(t.b),2),34),t.wb.D,"anyAttribute",null,0,-1,hPe,!1,!1,!0,!1,!1,!1),H0(t.bb,VPe,I9t,!1,!1,!0),aot(jz(Wet(KX(t.bb),0),34),t.gb,"data",null,0,1,VPe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.bb),1),34),t.gb,X6t,null,1,1,VPe,!1,!1,!0,!1,!0,!1),H0(t.fb,HPe,B9t,!1,!1,!0),aot(jz(Wet(KX(t.fb),0),34),e.gb,"rawValue",null,0,1,HPe,!0,!0,!0,!1,!0,!0),aot(jz(Wet(KX(t.fb),1),34),e.a,_6t,null,0,1,HPe,!0,!0,!0,!1,!0,!0),Avt(jz(Wet(KX(t.fb),2),18),t.wb.q,null,"instanceType",1,1,HPe,!1,!1,!0,!1,!1,!1,!1),H0(t.qb,qPe,M9t,!1,!1,!0),aot(jz(Wet(KX(t.qb),0),34),t.wb.D,R8t,null,0,-1,null,!1,!1,!0,!1,!1,!1),Avt(jz(Wet(KX(t.qb),1),18),t.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.qb),2),18),t.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),aot(jz(Wet(KX(t.qb),3),34),t.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),aot(jz(Wet(KX(t.qb),4),34),t.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Avt(jz(Wet(KX(t.qb),5),18),t.bb,null,rte,0,-2,null,!0,!0,!0,!0,!1,!1,!0),aot(jz(Wet(KX(t.qb),6),34),t.gb,D6t,null,0,-2,null,!0,!0,!0,!1,!1,!0),fY(t.a,Ite,"AnySimpleType",!0),fY(t.c,Yee,"AnyURI",!0),fY(t.d,Vy(BLe,1),"Base64Binary",!0),fY(t.e,DLe,"Boolean",!0),fY(t.f,vee,"BooleanObject",!0),fY(t.g,BLe,"Byte",!0),fY(t.i,Cee,"ByteObject",!0),fY(t.j,Yee,"Date",!0),fY(t.k,Yee,"DateTime",!0),fY(t.n,nne,"Decimal",!0),fY(t.o,MLe,"Double",!0),fY(t.p,Eee,"DoubleObject",!0),fY(t.q,Yee,"Duration",!0),fY(t.s,Nte,"ENTITIES",!0),fY(t.r,Nte,"ENTITIESBase",!0),fY(t.t,Yee,F9t,!0),fY(t.u,PLe,"Float",!0),fY(t.v,Tee,"FloatObject",!0),fY(t.w,Yee,"GDay",!0),fY(t.B,Yee,"GMonth",!0),fY(t.A,Yee,"GMonthDay",!0),fY(t.C,Yee,"GYear",!0),fY(t.D,Yee,"GYearMonth",!0),fY(t.F,Vy(BLe,1),"HexBinary",!0),fY(t.G,Yee,"ID",!0),fY(t.H,Yee,"IDREF",!0),fY(t.J,Nte,"IDREFS",!0),fY(t.I,Nte,"IDREFSBase",!0),fY(t.K,SLe,"Int",!0),fY(t.M,sne,"Integer",!0),fY(t.L,Iee,"IntObject",!0),fY(t.P,Yee,"Language",!0),fY(t.Q,ILe,"Long",!0),fY(t.R,Nee,"LongObject",!0),fY(t.S,Yee,"Name",!0),fY(t.T,Yee,j9t,!0),fY(t.U,sne,"NegativeInteger",!0),fY(t.V,Yee,Y9t,!0),fY(t.X,Nte,"NMTOKENS",!0),fY(t.W,Nte,"NMTOKENSBase",!0),fY(t.Y,sne,"NonNegativeInteger",!0),fY(t.Z,sne,"NonPositiveInteger",!0),fY(t.$,Yee,"NormalizedString",!0),fY(t._,Yee,"NOTATION",!0),fY(t.ab,Yee,"PositiveInteger",!0),fY(t.cb,Yee,"QName",!0),fY(t.db,LLe,"Short",!0),fY(t.eb,Fee,"ShortObject",!0),fY(t.gb,Yee,VYt,!0),fY(t.hb,Yee,"Time",!0),fY(t.ib,Yee,"Token",!0),fY(t.jb,LLe,"UnsignedByte",!0),fY(t.kb,Fee,"UnsignedByteObject",!0),fY(t.lb,ILe,"UnsignedInt",!0),fY(t.mb,Nee,"UnsignedIntObject",!0),fY(t.nb,sne,"UnsignedLong",!0),fY(t.ob,SLe,"UnsignedShort",!0),fY(t.pb,Iee,"UnsignedShortObject",!0),Mut(t,x9t),kKt(t))}function bKt(t){Mx(t,new AAt(b_(f_(m_(d_(p_(g_(new ms,f1t),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Do),f1t),yq((lBt(),tBe),Est(Vy(iBe,1),BYt,237,0,[ZIe,QIe,XIe,JIe,KIe,WIe]))))),o2(t,f1t,M2t,wbt(pbe)),o2(t,f1t,P2t,wbt(mbe)),o2(t,f1t,GQt,wbt(bbe)),o2(t,f1t,L2t,wbt(wbe)),o2(t,f1t,wJt,wbt(vbe)),o2(t,f1t,O2t,wbt(ybe)),o2(t,f1t,N2t,wbt(Abe)),o2(t,f1t,R2t,wbt(Ebe)),o2(t,f1t,F2t,wbt(Tbe)),o2(t,f1t,j2t,wbt(xbe)),o2(t,f1t,bJt,wbt(Sbe)),o2(t,f1t,$2t,wbt(Ibe)),o2(t,f1t,z2t,wbt(Mbe)),o2(t,f1t,V2t,wbt(Cbe)),o2(t,f1t,M0t,wbt(gbe)),o2(t,f1t,L0t,wbt(kbe)),o2(t,f1t,P0t,wbt(_be)),o2(t,f1t,O0t,wbt(Dbe)),o2(t,f1t,mJt,ndt(0)),o2(t,f1t,N0t,wbt(lbe)),o2(t,f1t,R0t,wbt(ube)),o2(t,f1t,F0t,wbt(hbe)),o2(t,f1t,U0t,wbt(Hbe)),o2(t,f1t,G0t,wbt(Obe)),o2(t,f1t,W0t,wbt(Nbe)),o2(t,f1t,K0t,wbt(jbe)),o2(t,f1t,Y0t,wbt(Rbe)),o2(t,f1t,X0t,wbt(Fbe)),o2(t,f1t,Z0t,wbt(Ube)),o2(t,f1t,Q0t,wbt(qbe)),o2(t,f1t,J0t,wbt(zbe)),o2(t,f1t,t2t,wbt($be)),o2(t,f1t,e2t,wbt(Vbe)),o2(t,f1t,x0t,wbt(Ome)),o2(t,f1t,E0t,wbt(Nme)),o2(t,f1t,D0t,wbt(nme)),o2(t,f1t,I0t,wbt(ime)),o2(t,f1t,YQt,qme),o2(t,f1t,k2t,Qpe),o2(t,f1t,H2t,0),o2(t,f1t,kJt,ndt(1)),o2(t,f1t,KQt,gJt),o2(t,f1t,q2t,wbt(Vme)),o2(t,f1t,_Jt,wbt(tbe)),o2(t,f1t,U2t,wbt(obe)),o2(t,f1t,G2t,wbt(Hpe)),o2(t,f1t,W2t,wbt(kpe)),o2(t,f1t,g2t,wbt(sme)),o2(t,f1t,vJt,(cL(),!0)),o2(t,f1t,K2t,wbt(dme)),o2(t,f1t,Y2t,wbt(fme)),o2(t,f1t,EJt,wbt(Fme)),o2(t,f1t,xJt,wbt(zme)),o2(t,f1t,X2t,wbt(jme)),o2(t,f1t,Z2t,Gpe),o2(t,f1t,TJt,wbt(Ime)),o2(t,f1t,Q2t,wbt(Dme)),o2(t,f1t,SJt,wbt(ibe)),o2(t,f1t,J2t,wbt(nbe)),o2(t,f1t,t3t,wbt(rbe)),o2(t,f1t,e3t,Wme),o2(t,f1t,n3t,wbt(Yme)),o2(t,f1t,i3t,wbt(Xme)),o2(t,f1t,r3t,wbt(Zme)),o2(t,f1t,o3t,wbt(Kme)),o2(t,f1t,J1t,wbt(Lbe)),o2(t,f1t,n0t,wbt(xme)),o2(t,f1t,c0t,wbt(Ame)),o2(t,f1t,Q1t,wbt(Pbe)),o2(t,f1t,i0t,wbt(kme)),o2(t,f1t,e0t,wbt(Vpe)),o2(t,f1t,h0t,wbt(zpe)),o2(t,f1t,d0t,wbt(Ppe)),o2(t,f1t,b0t,wbt(Lpe)),o2(t,f1t,w0t,wbt(Npe)),o2(t,f1t,k0t,wbt(Ope)),o2(t,f1t,g0t,wbt($pe)),o2(t,f1t,K1t,wbt(Tme)),o2(t,f1t,Y1t,wbt(Sme)),o2(t,f1t,W1t,wbt(pme)),o2(t,f1t,v0t,wbt(Rme)),o2(t,f1t,C0t,wbt(Mme)),o2(t,f1t,G1t,wbt(ome)),o2(t,f1t,A0t,wbt(Lme)),o2(t,f1t,T0t,wbt(tme)),o2(t,f1t,S0t,wbt(eme)),o2(t,f1t,a3t,wbt(Mpe)),o2(t,f1t,_0t,wbt(Bme)),o2(t,f1t,$0t,wbt(xpe)),o2(t,f1t,z0t,wbt(Ape)),o2(t,f1t,j0t,wbt(Cpe)),o2(t,f1t,V0t,wbt(lme)),o2(t,f1t,H0t,wbt(cme)),o2(t,f1t,q0t,wbt(ume)),o2(t,f1t,$Jt,wbt($me)),o2(t,f1t,s3t,wbt(mme)),o2(t,f1t,WQt,wbt(rme)),o2(t,f1t,c3t,wbt(Ype)),o2(t,f1t,CJt,wbt(Kpe)),o2(t,f1t,f0t,wbt(Rpe)),o2(t,f1t,l3t,wbt(ebe)),o2(t,f1t,u3t,wbt(_pe)),o2(t,f1t,h3t,wbt(hme)),o2(t,f1t,d3t,wbt(Qme)),o2(t,f1t,f3t,wbt(Ume)),o2(t,f1t,g3t,wbt(Gme)),o2(t,f1t,a0t,wbt(yme)),o2(t,f1t,s0t,wbt(_me)),o2(t,f1t,p3t,wbt(sbe)),o2(t,f1t,X1t,wbt(vpe)),o2(t,f1t,l0t,wbt(Cme)),o2(t,f1t,n2t,wbt(Xpe)),o2(t,f1t,i2t,wbt(Wpe)),o2(t,f1t,m3t,wbt(Eme)),o2(t,f1t,u0t,wbt(bme)),o2(t,f1t,y0t,wbt(Pme)),o2(t,f1t,b3t,wbt(Bbe)),o2(t,f1t,U1t,wbt(Upe)),o2(t,f1t,Z1t,wbt(abe)),o2(t,f1t,B0t,wbt(Jpe)),o2(t,f1t,r0t,wbt(wme)),o2(t,f1t,p0t,wbt(Fpe)),o2(t,f1t,w3t,wbt(gme)),o2(t,f1t,o0t,wbt(vme)),o2(t,f1t,m0t,wbt(jpe)),o2(t,f1t,r2t,wbt(Bpe)),o2(t,f1t,s2t,wbt(Dpe)),o2(t,f1t,c2t,wbt(Tpe)),o2(t,f1t,l2t,wbt(Spe)),o2(t,f1t,o2t,wbt(Ipe)),o2(t,f1t,a2t,wbt(Epe)),o2(t,f1t,t0t,wbt(ame))}function wKt(t,e){var n;return ZPe||(ZPe=new Pb,QPe=new Pb,fKt(),fKt(),kpt(n=new C0(4),"\t\n\r\r "),bJ(ZPe,ute,n),bJ(QPe,ute,B$t(n)),kpt(n=new C0(4),fte),bJ(ZPe,cte,n),bJ(QPe,cte,B$t(n)),kpt(n=new C0(4),fte),bJ(ZPe,cte,n),bJ(QPe,cte,B$t(n)),kpt(n=new C0(4),gte),cVt(n,jz(AQ(ZPe,cte),117)),bJ(ZPe,lte,n),bJ(QPe,lte,B$t(n)),kpt(n=new C0(4),"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँअह़्॑॔क़ॣ९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼ੴઁઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૯ଁଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൯กฮะฺเ๎๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩↀↂ々々〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),bJ(ZPe,hte,n),bJ(QPe,hte,B$t(n)),kpt(n=new C0(4),gte),XOt(n,95,95),XOt(n,58,58),bJ(ZPe,dte,n),bJ(QPe,dte,B$t(n))),jz(AQ(e?ZPe:QPe,t),136)}function kKt(t){KMt(t.a,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"anySimpleType"])),KMt(t.b,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"anyType",j8t,R8t])),KMt(jz(Wet(KX(t.b),0),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,w9t,t7t,":mixed"])),KMt(jz(Wet(KX(t.b),1),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,w9t,A9t,E9t,t7t,":1",O9t,"lax"])),KMt(jz(Wet(KX(t.b),2),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,m9t,A9t,E9t,t7t,":2",O9t,"lax"])),KMt(t.c,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"anyURI",C9t,k9t])),KMt(t.d,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"base64Binary",C9t,k9t])),KMt(t.e,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,BKt,C9t,k9t])),KMt(t.f,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"boolean:Object",Z8t,BKt])),KMt(t.g,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,x8t])),KMt(t.i,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"byte:Object",Z8t,x8t])),KMt(t.j,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"date",C9t,k9t])),KMt(t.k,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"dateTime",C9t,k9t])),KMt(t.n,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"decimal",C9t,k9t])),KMt(t.o,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,T8t,C9t,k9t])),KMt(t.p,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"double:Object",Z8t,T8t])),KMt(t.q,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"duration",C9t,k9t])),KMt(t.s,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"ENTITIES",Z8t,N9t,R9t,"1"])),KMt(t.r,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,N9t,v9t,F9t])),KMt(t.t,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,F9t,Z8t,j9t])),KMt(t.u,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,S8t,C9t,k9t])),KMt(t.v,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"float:Object",Z8t,S8t])),KMt(t.w,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"gDay",C9t,k9t])),KMt(t.B,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"gMonth",C9t,k9t])),KMt(t.A,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"gMonthDay",C9t,k9t])),KMt(t.C,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"gYear",C9t,k9t])),KMt(t.D,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"gYearMonth",C9t,k9t])),KMt(t.F,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"hexBinary",C9t,k9t])),KMt(t.G,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"ID",Z8t,j9t])),KMt(t.H,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"IDREF",Z8t,j9t])),KMt(t.J,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"IDREFS",Z8t,$9t,R9t,"1"])),KMt(t.I,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,$9t,v9t,"IDREF"])),KMt(t.K,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,D8t])),KMt(t.M,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,z9t])),KMt(t.L,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"int:Object",Z8t,D8t])),KMt(t.P,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"language",Z8t,V9t,H9t,q9t])),KMt(t.Q,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,I8t])),KMt(t.R,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"long:Object",Z8t,I8t])),KMt(t.S,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"Name",Z8t,V9t,H9t,U9t])),KMt(t.T,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,j9t,Z8t,"Name",H9t,G9t])),KMt(t.U,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"negativeInteger",Z8t,W9t,K9t,"-1"])),KMt(t.V,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,Y9t,Z8t,V9t,H9t,"\\c+"])),KMt(t.X,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"NMTOKENS",Z8t,X9t,R9t,"1"])),KMt(t.W,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,X9t,v9t,Y9t])),KMt(t.Y,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,Z9t,Z8t,z9t,Q9t,"0"])),KMt(t.Z,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,W9t,Z8t,z9t,K9t,"0"])),KMt(t.$,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,J9t,Z8t,PKt,C9t,"replace"])),KMt(t._,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"NOTATION",C9t,k9t])),KMt(t.ab,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"positiveInteger",Z8t,Z9t,Q9t,"1"])),KMt(t.bb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"processingInstruction_._type",j8t,"empty"])),KMt(jz(Wet(KX(t.bb),0),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,p9t,t7t,"data"])),KMt(jz(Wet(KX(t.bb),1),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,p9t,t7t,X6t])),KMt(t.cb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"QName",C9t,k9t])),KMt(t.db,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,B8t])),KMt(t.eb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"short:Object",Z8t,B8t])),KMt(t.fb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"simpleAnyType",j8t,g9t])),KMt(jz(Wet(KX(t.fb),0),34),F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,":3",j8t,g9t])),KMt(jz(Wet(KX(t.fb),1),34),F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,":4",j8t,g9t])),KMt(jz(Wet(KX(t.fb),2),18),F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,":5",j8t,g9t])),KMt(t.gb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,PKt,C9t,"preserve"])),KMt(t.hb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"time",C9t,k9t])),KMt(t.ib,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,V9t,Z8t,J9t,C9t,k9t])),KMt(t.jb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,tte,K9t,"255",Q9t,"0"])),KMt(t.kb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"unsignedByte:Object",Z8t,tte])),KMt(t.lb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,ete,K9t,"4294967295",Q9t,"0"])),KMt(t.mb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"unsignedInt:Object",Z8t,ete])),KMt(t.nb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"unsignedLong",Z8t,Z9t,K9t,nte,Q9t,"0"])),KMt(t.ob,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,ite,K9t,"65535",Q9t,"0"])),KMt(t.pb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"unsignedShort:Object",Z8t,ite])),KMt(t.qb,F8t,Est(Vy(Yee,1),cYt,2,6,[t7t,"",j8t,R8t])),KMt(jz(Wet(KX(t.qb),0),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,w9t,t7t,":mixed"])),KMt(jz(Wet(KX(t.qb),1),18),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,p9t,t7t,"xmlns:prefix"])),KMt(jz(Wet(KX(t.qb),2),18),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,p9t,t7t,"xsi:schemaLocation"])),KMt(jz(Wet(KX(t.qb),3),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,b9t,t7t,"cDATA",y9t,_9t])),KMt(jz(Wet(KX(t.qb),4),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,b9t,t7t,"comment",y9t,_9t])),KMt(jz(Wet(KX(t.qb),5),18),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,b9t,t7t,rte,y9t,_9t])),KMt(jz(Wet(KX(t.qb),6),34),F8t,Est(Vy(Yee,1),cYt,2,6,[j8t,b9t,t7t,D6t,y9t,_9t]))}function vKt(t){return bF("_UI_EMFDiagnostic_marker",t)?"EMF Problem":bF("_UI_CircularContainment_diagnostic",t)?"An object may not circularly contain itself":bF(f7t,t)?"Wrong character.":bF(g7t,t)?"Invalid reference number.":bF(p7t,t)?"A character is required after \\.":bF(m7t,t)?"'?' is not expected. '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":bF(b7t,t)?"'(?<' or '(?<!' is expected.":bF(w7t,t)?"A comment is not terminated.":bF(k7t,t)?"')' is expected.":bF(v7t,t)?"Unexpected end of the pattern in a modifier group.":bF(y7t,t)?"':' is expected.":bF(_7t,t)?"Unexpected end of the pattern in a conditional group.":bF(C7t,t)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":bF(A7t,t)?"There are more than three choices in a conditional group.":bF(x7t,t)?"A character in U+0040-U+005f must follow \\c.":bF(E7t,t)?"A '{' is required before a character category.":bF(T7t,t)?"A property name is not closed by '}'.":bF(S7t,t)?"Unexpected meta character.":bF(D7t,t)?"Unknown property.":bF(I7t,t)?"A POSIX character class must be closed by ':]'.":bF(B7t,t)?"Unexpected end of the pattern in a character class.":bF(M7t,t)?"Unknown name for a POSIX character class.":bF("parser.cc.4",t)?"'-' is invalid here.":bF(P7t,t)?"']' is expected.":bF(L7t,t)?"'[' is invalid in a character class. Write '\\['.":bF(O7t,t)?"']' is invalid in a character class. Write '\\]'.":bF(N7t,t)?"'-' is an invalid character range. Write '\\-'.":bF(R7t,t)?"'[' is expected.":bF(F7t,t)?"')' or '-[' or '+[' or '&[' is expected.":bF(j7t,t)?"The range end code point is less than the start code point.":bF($7t,t)?"Invalid Unicode hex notation.":bF(z7t,t)?"Overflow in a hex notation.":bF(V7t,t)?"'\\x{' must be closed by '}'.":bF(H7t,t)?"Invalid Unicode code point.":bF(q7t,t)?"An anchor must not be here.":bF(U7t,t)?"This expression is not supported in the current option setting.":bF(G7t,t)?"Invalid quantifier. A digit is expected.":bF(W7t,t)?"Invalid quantifier. Invalid quantity or a '}' is missing.":bF(K7t,t)?"Invalid quantifier. A digit or '}' is expected.":bF(Y7t,t)?"Invalid quantifier. A min quantity must be <= a max quantity.":bF(X7t,t)?"Invalid quantifier. A quantity value overflow.":bF("_UI_PackageRegistry_extensionpoint",t)?"Ecore Package Registry for Generated Packages":bF("_UI_DynamicPackageRegistry_extensionpoint",t)?"Ecore Package Registry for Dynamic Packages":bF("_UI_FactoryRegistry_extensionpoint",t)?"Ecore Factory Override Registry":bF("_UI_URIExtensionParserRegistry_extensionpoint",t)?"URI Extension Parser Registry":bF("_UI_URIProtocolParserRegistry_extensionpoint",t)?"URI Protocol Parser Registry":bF("_UI_URIContentParserRegistry_extensionpoint",t)?"URI Content Parser Registry":bF("_UI_ContentHandlerRegistry_extensionpoint",t)?"Content Handler Registry":bF("_UI_URIMappingRegistry_extensionpoint",t)?"URI Converter Mapping Registry":bF("_UI_PackageRegistryImplementation_extensionpoint",t)?"Ecore Package Registry Implementation":bF("_UI_ValidationDelegateRegistry_extensionpoint",t)?"Validation Delegate Registry":bF("_UI_SettingDelegateRegistry_extensionpoint",t)?"Feature Setting Delegate Factory Registry":bF("_UI_InvocationDelegateRegistry_extensionpoint",t)?"Operation Invocation Delegate Factory Registry":bF("_UI_EClassInterfaceNotAbstract_diagnostic",t)?"A class that is an interface must also be abstract":bF("_UI_EClassNoCircularSuperTypes_diagnostic",t)?"A class may not be a super type of itself":bF("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",t)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":bF("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",t)?"The opposite of the opposite may not be a reference different from this one":bF("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",t)?"The opposite must be a feature of the reference's type":bF("_UI_EReferenceTransientOppositeNotTransient_diagnostic",t)?"The opposite of a transient reference must be transient if it is proxy resolving":bF("_UI_EReferenceOppositeBothContainment_diagnostic",t)?"The opposite of a containment reference must not be a containment reference":bF("_UI_EReferenceConsistentUnique_diagnostic",t)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":bF("_UI_ETypedElementNoType_diagnostic",t)?"The typed element must have a type":bF("_UI_EAttributeNoDataType_diagnostic",t)?"The generic attribute type must not refer to a class":bF("_UI_EReferenceNoClass_diagnostic",t)?"The generic reference type must not refer to a data type":bF("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",t)?"A generic type can't refer to both a type parameter and a classifier":bF("_UI_EGenericTypeNoClass_diagnostic",t)?"A generic super type must refer to a class":bF("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",t)?"A generic type in this context must refer to a classifier or a type parameter":bF("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",t)?"A generic type may have bounds only when used as a type argument":bF("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",t)?"A generic type must not have both a lower and an upper bound":bF("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",t)?"A generic type with bounds must not also refer to a type parameter or classifier":bF("_UI_EGenericTypeNoArguments_diagnostic",t)?"A generic type may have arguments only if it refers to a classifier":bF("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",t)?"A generic type may only refer to a type parameter that is in scope":t}function yKt(t){var e,n,i,r,o,a,s;t.r||(t.r=!0,Prt(t,"graph"),Lrt(t,"graph"),Ort(t,k6t),rst(t.o,"T"),l8(kZ(t.a),t.p),l8(kZ(t.f),t.a),l8(kZ(t.n),t.f),l8(kZ(t.g),t.n),l8(kZ(t.c),t.n),l8(kZ(t.i),t.c),l8(kZ(t.j),t.c),l8(kZ(t.d),t.f),l8(kZ(t.e),t.a),H0(t.p,Ure,DQt,!0,!0,!1),s=Cst(a=wlt(t.p,t.p,"setProperty")),e=ZY(t.o),n=new Nb,l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),vCt(n,i=QY(s)),U_t(a,e,y6t),U_t(a,e=QY(s),_6t),s=Cst(a=wlt(t.p,null,"getProperty")),e=ZY(t.o),n=QY(s),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),U_t(a,e,y6t),(o=zAt(a,e=QY(s),null))&&o.Fi(),a=wlt(t.p,t.wb.e,"hasProperty"),e=ZY(t.o),n=new Nb,l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),U_t(a,e,y6t),Bvt(a=wlt(t.p,t.p,"copyProperties"),t.p,C6t),a=wlt(t.p,null,"getAllProperties"),e=ZY(t.wb.P),n=ZY(t.o),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),i=new Nb,l8((!n.d&&(n.d=new IP(GBe,n,1)),n.d),i),n=ZY(t.wb.M),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),(r=zAt(a,e,null))&&r.Fi(),H0(t.a,BIe,q4t,!0,!1,!0),Avt(jz(Wet(KX(t.a),0),18),t.k,null,A6t,0,-1,BIe,!1,!1,!0,!0,!1,!1,!1),H0(t.f,PIe,G4t,!0,!1,!0),Avt(jz(Wet(KX(t.f),0),18),t.g,jz(Wet(KX(t.g),0),18),"labels",0,-1,PIe,!1,!1,!0,!0,!1,!1,!1),aot(jz(Wet(KX(t.f),1),34),t.wb._,x6t,null,0,1,PIe,!1,!1,!0,!1,!0,!1),H0(t.n,LIe,"ElkShape",!0,!1,!0),aot(jz(Wet(KX(t.n),0),34),t.wb.t,E6t,WXt,1,1,LIe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.n),1),34),t.wb.t,T6t,WXt,1,1,LIe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.n),2),34),t.wb.t,"x",WXt,1,1,LIe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.n),3),34),t.wb.t,"y",WXt,1,1,LIe,!1,!1,!0,!1,!0,!1),Bvt(a=wlt(t.n,null,"setDimensions"),t.wb.t,T6t),Bvt(a,t.wb.t,E6t),Bvt(a=wlt(t.n,null,"setLocation"),t.wb.t,"x"),Bvt(a,t.wb.t,"y"),H0(t.g,VIe,Q4t,!1,!1,!0),Avt(jz(Wet(KX(t.g),0),18),t.f,jz(Wet(KX(t.f),0),18),S6t,0,1,VIe,!1,!1,!0,!1,!1,!1,!1),aot(jz(Wet(KX(t.g),1),34),t.wb._,D6t,"",0,1,VIe,!1,!1,!0,!1,!0,!1),H0(t.c,OIe,W4t,!0,!1,!0),Avt(jz(Wet(KX(t.c),0),18),t.d,jz(Wet(KX(t.d),1),18),"outgoingEdges",0,-1,OIe,!1,!1,!0,!1,!0,!1,!1),Avt(jz(Wet(KX(t.c),1),18),t.d,jz(Wet(KX(t.d),2),18),"incomingEdges",0,-1,OIe,!1,!1,!0,!1,!0,!1,!1),H0(t.i,HIe,J4t,!1,!1,!0),Avt(jz(Wet(KX(t.i),0),18),t.j,jz(Wet(KX(t.j),0),18),"ports",0,-1,HIe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.i),1),18),t.i,jz(Wet(KX(t.i),2),18),I6t,0,-1,HIe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.i),2),18),t.i,jz(Wet(KX(t.i),1),18),S6t,0,1,HIe,!1,!1,!0,!1,!1,!1,!1),Avt(jz(Wet(KX(t.i),3),18),t.d,jz(Wet(KX(t.d),0),18),"containedEdges",0,-1,HIe,!1,!1,!0,!0,!1,!1,!1),aot(jz(Wet(KX(t.i),4),34),t.wb.e,B6t,null,0,1,HIe,!0,!0,!1,!1,!0,!0),H0(t.j,qIe,t6t,!1,!1,!0),Avt(jz(Wet(KX(t.j),0),18),t.i,jz(Wet(KX(t.i),0),18),S6t,0,1,qIe,!1,!1,!0,!1,!1,!1,!1),H0(t.d,NIe,K4t,!1,!1,!0),Avt(jz(Wet(KX(t.d),0),18),t.i,jz(Wet(KX(t.i),3),18),"containingNode",0,1,NIe,!1,!1,!0,!1,!1,!1,!1),Avt(jz(Wet(KX(t.d),1),18),t.c,jz(Wet(KX(t.c),0),18),M6t,0,-1,NIe,!1,!1,!0,!1,!0,!1,!1),Avt(jz(Wet(KX(t.d),2),18),t.c,jz(Wet(KX(t.c),1),18),P6t,0,-1,NIe,!1,!1,!0,!1,!0,!1,!1),Avt(jz(Wet(KX(t.d),3),18),t.e,jz(Wet(KX(t.e),5),18),L6t,0,-1,NIe,!1,!1,!0,!0,!1,!1,!1),aot(jz(Wet(KX(t.d),4),34),t.wb.e,"hyperedge",null,0,1,NIe,!0,!0,!1,!1,!0,!0),aot(jz(Wet(KX(t.d),5),34),t.wb.e,B6t,null,0,1,NIe,!0,!0,!1,!1,!0,!0),aot(jz(Wet(KX(t.d),6),34),t.wb.e,"selfloop",null,0,1,NIe,!0,!0,!1,!1,!0,!0),aot(jz(Wet(KX(t.d),7),34),t.wb.e,"connected",null,0,1,NIe,!0,!0,!1,!1,!0,!0),H0(t.b,MIe,U4t,!1,!1,!0),aot(jz(Wet(KX(t.b),0),34),t.wb.t,"x",WXt,1,1,MIe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.b),1),34),t.wb.t,"y",WXt,1,1,MIe,!1,!1,!0,!1,!0,!1),Bvt(a=wlt(t.b,null,"set"),t.wb.t,"x"),Bvt(a,t.wb.t,"y"),H0(t.e,RIe,Y4t,!1,!1,!0),aot(jz(Wet(KX(t.e),0),34),t.wb.t,"startX",null,0,1,RIe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.e),1),34),t.wb.t,"startY",null,0,1,RIe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.e),2),34),t.wb.t,"endX",null,0,1,RIe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.e),3),34),t.wb.t,"endY",null,0,1,RIe,!1,!1,!0,!1,!0,!1),Avt(jz(Wet(KX(t.e),4),18),t.b,null,O6t,0,-1,RIe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.e),5),18),t.d,jz(Wet(KX(t.d),3),18),S6t,0,1,RIe,!1,!1,!0,!1,!1,!1,!1),Avt(jz(Wet(KX(t.e),6),18),t.c,null,N6t,0,1,RIe,!1,!1,!0,!1,!0,!1,!1),Avt(jz(Wet(KX(t.e),7),18),t.c,null,R6t,0,1,RIe,!1,!1,!0,!1,!0,!1,!1),Avt(jz(Wet(KX(t.e),8),18),t.e,jz(Wet(KX(t.e),9),18),F6t,0,-1,RIe,!1,!1,!0,!1,!0,!1,!1),Avt(jz(Wet(KX(t.e),9),18),t.e,jz(Wet(KX(t.e),8),18),j6t,0,-1,RIe,!1,!1,!0,!1,!0,!1,!1),aot(jz(Wet(KX(t.e),10),34),t.wb._,x6t,null,0,1,RIe,!1,!1,!0,!1,!0,!1),Bvt(a=wlt(t.e,null,"setStartLocation"),t.wb.t,"x"),Bvt(a,t.wb.t,"y"),Bvt(a=wlt(t.e,null,"setEndLocation"),t.wb.t,"x"),Bvt(a,t.wb.t,"y"),H0(t.k,zte,"ElkPropertyToValueMapEntry",!1,!1,!1),e=ZY(t.o),n=new Nb,l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),FIt(jz(Wet(KX(t.k),0),34),e,"key",zte,!1,!1,!0,!1),aot(jz(Wet(KX(t.k),1),34),t.s,_6t,null,0,1,zte,!1,!1,!0,!1,!0,!1),fY(t.o,uxe,"IProperty",!0),fY(t.s,Ite,"PropertyValue",!0),Mut(t,k6t))}function _Kt(){_Kt=I,(YPe=P7(BLe,b6t,25,$Xt,15,1))[9]=35,YPe[10]=19,YPe[13]=19,YPe[32]=51,YPe[33]=49,YPe[34]=33,wG(YPe,35,38,49),YPe[38]=1,wG(YPe,39,45,49),wG(YPe,45,47,-71),YPe[47]=49,wG(YPe,48,58,-71),YPe[58]=61,YPe[59]=49,YPe[60]=1,YPe[61]=49,YPe[62]=33,wG(YPe,63,65,49),wG(YPe,65,91,-3),wG(YPe,91,93,33),YPe[93]=1,YPe[94]=33,YPe[95]=-3,YPe[96]=33,wG(YPe,97,123,-3),wG(YPe,123,183,33),YPe[183]=-87,wG(YPe,184,192,33),wG(YPe,192,215,-19),YPe[215]=33,wG(YPe,216,247,-19),YPe[247]=33,wG(YPe,248,306,-19),wG(YPe,306,308,33),wG(YPe,308,319,-19),wG(YPe,319,321,33),wG(YPe,321,329,-19),YPe[329]=33,wG(YPe,330,383,-19),YPe[383]=33,wG(YPe,384,452,-19),wG(YPe,452,461,33),wG(YPe,461,497,-19),wG(YPe,497,500,33),wG(YPe,500,502,-19),wG(YPe,502,506,33),wG(YPe,506,536,-19),wG(YPe,536,592,33),wG(YPe,592,681,-19),wG(YPe,681,699,33),wG(YPe,699,706,-19),wG(YPe,706,720,33),wG(YPe,720,722,-87),wG(YPe,722,768,33),wG(YPe,768,838,-87),wG(YPe,838,864,33),wG(YPe,864,866,-87),wG(YPe,866,902,33),YPe[902]=-19,YPe[903]=-87,wG(YPe,904,907,-19),YPe[907]=33,YPe[908]=-19,YPe[909]=33,wG(YPe,910,930,-19),YPe[930]=33,wG(YPe,931,975,-19),YPe[975]=33,wG(YPe,976,983,-19),wG(YPe,983,986,33),YPe[986]=-19,YPe[987]=33,YPe[988]=-19,YPe[989]=33,YPe[990]=-19,YPe[991]=33,YPe[992]=-19,YPe[993]=33,wG(YPe,994,1012,-19),wG(YPe,1012,1025,33),wG(YPe,1025,1037,-19),YPe[1037]=33,wG(YPe,1038,1104,-19),YPe[1104]=33,wG(YPe,1105,1117,-19),YPe[1117]=33,wG(YPe,1118,1154,-19),YPe[1154]=33,wG(YPe,1155,1159,-87),wG(YPe,1159,1168,33),wG(YPe,1168,1221,-19),wG(YPe,1221,1223,33),wG(YPe,1223,1225,-19),wG(YPe,1225,1227,33),wG(YPe,1227,1229,-19),wG(YPe,1229,1232,33),wG(YPe,1232,1260,-19),wG(YPe,1260,1262,33),wG(YPe,1262,1270,-19),wG(YPe,1270,1272,33),wG(YPe,1272,1274,-19),wG(YPe,1274,1329,33),wG(YPe,1329,1367,-19),wG(YPe,1367,1369,33),YPe[1369]=-19,wG(YPe,1370,1377,33),wG(YPe,1377,1415,-19),wG(YPe,1415,1425,33),wG(YPe,1425,1442,-87),YPe[1442]=33,wG(YPe,1443,1466,-87),YPe[1466]=33,wG(YPe,1467,1470,-87),YPe[1470]=33,YPe[1471]=-87,YPe[1472]=33,wG(YPe,1473,1475,-87),YPe[1475]=33,YPe[1476]=-87,wG(YPe,1477,1488,33),wG(YPe,1488,1515,-19),wG(YPe,1515,1520,33),wG(YPe,1520,1523,-19),wG(YPe,1523,1569,33),wG(YPe,1569,1595,-19),wG(YPe,1595,1600,33),YPe[1600]=-87,wG(YPe,1601,1611,-19),wG(YPe,1611,1619,-87),wG(YPe,1619,1632,33),wG(YPe,1632,1642,-87),wG(YPe,1642,1648,33),YPe[1648]=-87,wG(YPe,1649,1720,-19),wG(YPe,1720,1722,33),wG(YPe,1722,1727,-19),YPe[1727]=33,wG(YPe,1728,1743,-19),YPe[1743]=33,wG(YPe,1744,1748,-19),YPe[1748]=33,YPe[1749]=-19,wG(YPe,1750,1765,-87),wG(YPe,1765,1767,-19),wG(YPe,1767,1769,-87),YPe[1769]=33,wG(YPe,1770,1774,-87),wG(YPe,1774,1776,33),wG(YPe,1776,1786,-87),wG(YPe,1786,2305,33),wG(YPe,2305,2308,-87),YPe[2308]=33,wG(YPe,2309,2362,-19),wG(YPe,2362,2364,33),YPe[2364]=-87,YPe[2365]=-19,wG(YPe,2366,2382,-87),wG(YPe,2382,2385,33),wG(YPe,2385,2389,-87),wG(YPe,2389,2392,33),wG(YPe,2392,2402,-19),wG(YPe,2402,2404,-87),wG(YPe,2404,2406,33),wG(YPe,2406,2416,-87),wG(YPe,2416,2433,33),wG(YPe,2433,2436,-87),YPe[2436]=33,wG(YPe,2437,2445,-19),wG(YPe,2445,2447,33),wG(YPe,2447,2449,-19),wG(YPe,2449,2451,33),wG(YPe,2451,2473,-19),YPe[2473]=33,wG(YPe,2474,2481,-19),YPe[2481]=33,YPe[2482]=-19,wG(YPe,2483,2486,33),wG(YPe,2486,2490,-19),wG(YPe,2490,2492,33),YPe[2492]=-87,YPe[2493]=33,wG(YPe,2494,2501,-87),wG(YPe,2501,2503,33),wG(YPe,2503,2505,-87),wG(YPe,2505,2507,33),wG(YPe,2507,2510,-87),wG(YPe,2510,2519,33),YPe[2519]=-87,wG(YPe,2520,2524,33),wG(YPe,2524,2526,-19),YPe[2526]=33,wG(YPe,2527,2530,-19),wG(YPe,2530,2532,-87),wG(YPe,2532,2534,33),wG(YPe,2534,2544,-87),wG(YPe,2544,2546,-19),wG(YPe,2546,2562,33),YPe[2562]=-87,wG(YPe,2563,2565,33),wG(YPe,2565,2571,-19),wG(YPe,2571,2575,33),wG(YPe,2575,2577,-19),wG(YPe,2577,2579,33),wG(YPe,2579,2601,-19),YPe[2601]=33,wG(YPe,2602,2609,-19),YPe[2609]=33,wG(YPe,2610,2612,-19),YPe[2612]=33,wG(YPe,2613,2615,-19),YPe[2615]=33,wG(YPe,2616,2618,-19),wG(YPe,2618,2620,33),YPe[2620]=-87,YPe[2621]=33,wG(YPe,2622,2627,-87),wG(YPe,2627,2631,33),wG(YPe,2631,2633,-87),wG(YPe,2633,2635,33),wG(YPe,2635,2638,-87),wG(YPe,2638,2649,33),wG(YPe,2649,2653,-19),YPe[2653]=33,YPe[2654]=-19,wG(YPe,2655,2662,33),wG(YPe,2662,2674,-87),wG(YPe,2674,2677,-19),wG(YPe,2677,2689,33),wG(YPe,2689,2692,-87),YPe[2692]=33,wG(YPe,2693,2700,-19),YPe[2700]=33,YPe[2701]=-19,YPe[2702]=33,wG(YPe,2703,2706,-19),YPe[2706]=33,wG(YPe,2707,2729,-19),YPe[2729]=33,wG(YPe,2730,2737,-19),YPe[2737]=33,wG(YPe,2738,2740,-19),YPe[2740]=33,wG(YPe,2741,2746,-19),wG(YPe,2746,2748,33),YPe[2748]=-87,YPe[2749]=-19,wG(YPe,2750,2758,-87),YPe[2758]=33,wG(YPe,2759,2762,-87),YPe[2762]=33,wG(YPe,2763,2766,-87),wG(YPe,2766,2784,33),YPe[2784]=-19,wG(YPe,2785,2790,33),wG(YPe,2790,2800,-87),wG(YPe,2800,2817,33),wG(YPe,2817,2820,-87),YPe[2820]=33,wG(YPe,2821,2829,-19),wG(YPe,2829,2831,33),wG(YPe,2831,2833,-19),wG(YPe,2833,2835,33),wG(YPe,2835,2857,-19),YPe[2857]=33,wG(YPe,2858,2865,-19),YPe[2865]=33,wG(YPe,2866,2868,-19),wG(YPe,2868,2870,33),wG(YPe,2870,2874,-19),wG(YPe,2874,2876,33),YPe[2876]=-87,YPe[2877]=-19,wG(YPe,2878,2884,-87),wG(YPe,2884,2887,33),wG(YPe,2887,2889,-87),wG(YPe,2889,2891,33),wG(YPe,2891,2894,-87),wG(YPe,2894,2902,33),wG(YPe,2902,2904,-87),wG(YPe,2904,2908,33),wG(YPe,2908,2910,-19),YPe[2910]=33,wG(YPe,2911,2914,-19),wG(YPe,2914,2918,33),wG(YPe,2918,2928,-87),wG(YPe,2928,2946,33),wG(YPe,2946,2948,-87),YPe[2948]=33,wG(YPe,2949,2955,-19),wG(YPe,2955,2958,33),wG(YPe,2958,2961,-19),YPe[2961]=33,wG(YPe,2962,2966,-19),wG(YPe,2966,2969,33),wG(YPe,2969,2971,-19),YPe[2971]=33,YPe[2972]=-19,YPe[2973]=33,wG(YPe,2974,2976,-19),wG(YPe,2976,2979,33),wG(YPe,2979,2981,-19),wG(YPe,2981,2984,33),wG(YPe,2984,2987,-19),wG(YPe,2987,2990,33),wG(YPe,2990,2998,-19),YPe[2998]=33,wG(YPe,2999,3002,-19),wG(YPe,3002,3006,33),wG(YPe,3006,3011,-87),wG(YPe,3011,3014,33),wG(YPe,3014,3017,-87),YPe[3017]=33,wG(YPe,3018,3022,-87),wG(YPe,3022,3031,33),YPe[3031]=-87,wG(YPe,3032,3047,33),wG(YPe,3047,3056,-87),wG(YPe,3056,3073,33),wG(YPe,3073,3076,-87),YPe[3076]=33,wG(YPe,3077,3085,-19),YPe[3085]=33,wG(YPe,3086,3089,-19),YPe[3089]=33,wG(YPe,3090,3113,-19),YPe[3113]=33,wG(YPe,3114,3124,-19),YPe[3124]=33,wG(YPe,3125,3130,-19),wG(YPe,3130,3134,33),wG(YPe,3134,3141,-87),YPe[3141]=33,wG(YPe,3142,3145,-87),YPe[3145]=33,wG(YPe,3146,3150,-87),wG(YPe,3150,3157,33),wG(YPe,3157,3159,-87),wG(YPe,3159,3168,33),wG(YPe,3168,3170,-19),wG(YPe,3170,3174,33),wG(YPe,3174,3184,-87),wG(YPe,3184,3202,33),wG(YPe,3202,3204,-87),YPe[3204]=33,wG(YPe,3205,3213,-19),YPe[3213]=33,wG(YPe,3214,3217,-19),YPe[3217]=33,wG(YPe,3218,3241,-19),YPe[3241]=33,wG(YPe,3242,3252,-19),YPe[3252]=33,wG(YPe,3253,3258,-19),wG(YPe,3258,3262,33),wG(YPe,3262,3269,-87),YPe[3269]=33,wG(YPe,3270,3273,-87),YPe[3273]=33,wG(YPe,3274,3278,-87),wG(YPe,3278,3285,33),wG(YPe,3285,3287,-87),wG(YPe,3287,3294,33),YPe[3294]=-19,YPe[3295]=33,wG(YPe,3296,3298,-19),wG(YPe,3298,3302,33),wG(YPe,3302,3312,-87),wG(YPe,3312,3330,33),wG(YPe,3330,3332,-87),YPe[3332]=33,wG(YPe,3333,3341,-19),YPe[3341]=33,wG(YPe,3342,3345,-19),YPe[3345]=33,wG(YPe,3346,3369,-19),YPe[3369]=33,wG(YPe,3370,3386,-19),wG(YPe,3386,3390,33),wG(YPe,3390,3396,-87),wG(YPe,3396,3398,33),wG(YPe,3398,3401,-87),YPe[3401]=33,wG(YPe,3402,3406,-87),wG(YPe,3406,3415,33),YPe[3415]=-87,wG(YPe,3416,3424,33),wG(YPe,3424,3426,-19),wG(YPe,3426,3430,33),wG(YPe,3430,3440,-87),wG(YPe,3440,3585,33),wG(YPe,3585,3631,-19),YPe[3631]=33,YPe[3632]=-19,YPe[3633]=-87,wG(YPe,3634,3636,-19),wG(YPe,3636,3643,-87),wG(YPe,3643,3648,33),wG(YPe,3648,3654,-19),wG(YPe,3654,3663,-87),YPe[3663]=33,wG(YPe,3664,3674,-87),wG(YPe,3674,3713,33),wG(YPe,3713,3715,-19),YPe[3715]=33,YPe[3716]=-19,wG(YPe,3717,3719,33),wG(YPe,3719,3721,-19),YPe[3721]=33,YPe[3722]=-19,wG(YPe,3723,3725,33),YPe[3725]=-19,wG(YPe,3726,3732,33),wG(YPe,3732,3736,-19),YPe[3736]=33,wG(YPe,3737,3744,-19),YPe[3744]=33,wG(YPe,3745,3748,-19),YPe[3748]=33,YPe[3749]=-19,YPe[3750]=33,YPe[3751]=-19,wG(YPe,3752,3754,33),wG(YPe,3754,3756,-19),YPe[3756]=33,wG(YPe,3757,3759,-19),YPe[3759]=33,YPe[3760]=-19,YPe[3761]=-87,wG(YPe,3762,3764,-19),wG(YPe,3764,3770,-87),YPe[3770]=33,wG(YPe,3771,3773,-87),YPe[3773]=-19,wG(YPe,3774,3776,33),wG(YPe,3776,3781,-19),YPe[3781]=33,YPe[3782]=-87,YPe[3783]=33,wG(YPe,3784,3790,-87),wG(YPe,3790,3792,33),wG(YPe,3792,3802,-87),wG(YPe,3802,3864,33),wG(YPe,3864,3866,-87),wG(YPe,3866,3872,33),wG(YPe,3872,3882,-87),wG(YPe,3882,3893,33),YPe[3893]=-87,YPe[3894]=33,YPe[3895]=-87,YPe[3896]=33,YPe[3897]=-87,wG(YPe,3898,3902,33),wG(YPe,3902,3904,-87),wG(YPe,3904,3912,-19),YPe[3912]=33,wG(YPe,3913,3946,-19),wG(YPe,3946,3953,33),wG(YPe,3953,3973,-87),YPe[3973]=33,wG(YPe,3974,3980,-87),wG(YPe,3980,3984,33),wG(YPe,3984,3990,-87),YPe[3990]=33,YPe[3991]=-87,YPe[3992]=33,wG(YPe,3993,4014,-87),wG(YPe,4014,4017,33),wG(YPe,4017,4024,-87),YPe[4024]=33,YPe[4025]=-87,wG(YPe,4026,4256,33),wG(YPe,4256,4294,-19),wG(YPe,4294,4304,33),wG(YPe,4304,4343,-19),wG(YPe,4343,4352,33),YPe[4352]=-19,YPe[4353]=33,wG(YPe,4354,4356,-19),YPe[4356]=33,wG(YPe,4357,4360,-19),YPe[4360]=33,YPe[4361]=-19,YPe[4362]=33,wG(YPe,4363,4365,-19),YPe[4365]=33,wG(YPe,4366,4371,-19),wG(YPe,4371,4412,33),YPe[4412]=-19,YPe[4413]=33,YPe[4414]=-19,YPe[4415]=33,YPe[4416]=-19,wG(YPe,4417,4428,33),YPe[4428]=-19,YPe[4429]=33,YPe[4430]=-19,YPe[4431]=33,YPe[4432]=-19,wG(YPe,4433,4436,33),wG(YPe,4436,4438,-19),wG(YPe,4438,4441,33),YPe[4441]=-19,wG(YPe,4442,4447,33),wG(YPe,4447,4450,-19),YPe[4450]=33,YPe[4451]=-19,YPe[4452]=33,YPe[4453]=-19,YPe[4454]=33,YPe[4455]=-19,YPe[4456]=33,YPe[4457]=-19,wG(YPe,4458,4461,33),wG(YPe,4461,4463,-19),wG(YPe,4463,4466,33),wG(YPe,4466,4468,-19),YPe[4468]=33,YPe[4469]=-19,wG(YPe,4470,4510,33),YPe[4510]=-19,wG(YPe,4511,4520,33),YPe[4520]=-19,wG(YPe,4521,4523,33),YPe[4523]=-19,wG(YPe,4524,4526,33),wG(YPe,4526,4528,-19),wG(YPe,4528,4535,33),wG(YPe,4535,4537,-19),YPe[4537]=33,YPe[4538]=-19,YPe[4539]=33,wG(YPe,4540,4547,-19),wG(YPe,4547,4587,33),YPe[4587]=-19,wG(YPe,4588,4592,33),YPe[4592]=-19,wG(YPe,4593,4601,33),YPe[4601]=-19,wG(YPe,4602,7680,33),wG(YPe,7680,7836,-19),wG(YPe,7836,7840,33),wG(YPe,7840,7930,-19),wG(YPe,7930,7936,33),wG(YPe,7936,7958,-19),wG(YPe,7958,7960,33),wG(YPe,7960,7966,-19),wG(YPe,7966,7968,33),wG(YPe,7968,8006,-19),wG(YPe,8006,8008,33),wG(YPe,8008,8014,-19),wG(YPe,8014,8016,33),wG(YPe,8016,8024,-19),YPe[8024]=33,YPe[8025]=-19,YPe[8026]=33,YPe[8027]=-19,YPe[8028]=33,YPe[8029]=-19,YPe[8030]=33,wG(YPe,8031,8062,-19),wG(YPe,8062,8064,33),wG(YPe,8064,8117,-19),YPe[8117]=33,wG(YPe,8118,8125,-19),YPe[8125]=33,YPe[8126]=-19,wG(YPe,8127,8130,33),wG(YPe,8130,8133,-19),YPe[8133]=33,wG(YPe,8134,8141,-19),wG(YPe,8141,8144,33),wG(YPe,8144,8148,-19),wG(YPe,8148,8150,33),wG(YPe,8150,8156,-19),wG(YPe,8156,8160,33),wG(YPe,8160,8173,-19),wG(YPe,8173,8178,33),wG(YPe,8178,8181,-19),YPe[8181]=33,wG(YPe,8182,8189,-19),wG(YPe,8189,8400,33),wG(YPe,8400,8413,-87),wG(YPe,8413,8417,33),YPe[8417]=-87,wG(YPe,8418,8486,33),YPe[8486]=-19,wG(YPe,8487,8490,33),wG(YPe,8490,8492,-19),wG(YPe,8492,8494,33),YPe[8494]=-19,wG(YPe,8495,8576,33),wG(YPe,8576,8579,-19),wG(YPe,8579,12293,33),YPe[12293]=-87,YPe[12294]=33,YPe[12295]=-19,wG(YPe,12296,12321,33),wG(YPe,12321,12330,-19),wG(YPe,12330,12336,-87),YPe[12336]=33,wG(YPe,12337,12342,-87),wG(YPe,12342,12353,33),wG(YPe,12353,12437,-19),wG(YPe,12437,12441,33),wG(YPe,12441,12443,-87),wG(YPe,12443,12445,33),wG(YPe,12445,12447,-87),wG(YPe,12447,12449,33),wG(YPe,12449,12539,-19),YPe[12539]=33,wG(YPe,12540,12543,-87),wG(YPe,12543,12549,33),wG(YPe,12549,12589,-19),wG(YPe,12589,19968,33),wG(YPe,19968,40870,-19),wG(YPe,40870,44032,33),wG(YPe,44032,55204,-19),wG(YPe,55204,zXt,33),wG(YPe,57344,65534,33)}function CKt(t){var e,n,i,r,o,a,s;t.hb||(t.hb=!0,Prt(t,"ecore"),Lrt(t,"ecore"),Ort(t,K8t),rst(t.fb,"E"),rst(t.L,"T"),rst(t.P,"K"),rst(t.P,"V"),rst(t.cb,"E"),l8(kZ(t.b),t.bb),l8(kZ(t.a),t.Q),l8(kZ(t.o),t.p),l8(kZ(t.p),t.R),l8(kZ(t.q),t.p),l8(kZ(t.v),t.q),l8(kZ(t.w),t.R),l8(kZ(t.B),t.Q),l8(kZ(t.R),t.Q),l8(kZ(t.T),t.eb),l8(kZ(t.U),t.R),l8(kZ(t.V),t.eb),l8(kZ(t.W),t.bb),l8(kZ(t.bb),t.eb),l8(kZ(t.eb),t.R),l8(kZ(t.db),t.R),H0(t.b,FBe,h8t,!1,!1,!0),aot(jz(Wet(KX(t.b),0),34),t.e,"iD",null,0,1,FBe,!1,!1,!0,!1,!0,!1),Avt(jz(Wet(KX(t.b),1),18),t.q,null,"eAttributeType",1,1,FBe,!0,!0,!1,!1,!0,!1,!0),H0(t.a,OBe,c8t,!1,!1,!0),aot(jz(Wet(KX(t.a),0),34),t._,C6t,null,0,1,OBe,!1,!1,!0,!1,!0,!1),Avt(jz(Wet(KX(t.a),1),18),t.ab,null,"details",0,-1,OBe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.a),2),18),t.Q,jz(Wet(KX(t.Q),0),18),"eModelElement",0,1,OBe,!0,!1,!0,!1,!1,!1,!1),Avt(jz(Wet(KX(t.a),3),18),t.S,null,"contents",0,-1,OBe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.a),4),18),t.S,null,"references",0,-1,OBe,!1,!1,!0,!1,!0,!1,!1),H0(t.o,$Be,"EClass",!1,!1,!0),aot(jz(Wet(KX(t.o),0),34),t.e,"abstract",null,0,1,$Be,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.o),1),34),t.e,"interface",null,0,1,$Be,!1,!1,!0,!1,!0,!1),Avt(jz(Wet(KX(t.o),2),18),t.o,null,"eSuperTypes",0,-1,$Be,!1,!1,!0,!1,!0,!0,!1),Avt(jz(Wet(KX(t.o),3),18),t.T,jz(Wet(KX(t.T),0),18),"eOperations",0,-1,$Be,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.o),4),18),t.b,null,"eAllAttributes",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.o),5),18),t.W,null,"eAllReferences",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.o),6),18),t.W,null,"eReferences",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.o),7),18),t.b,null,"eAttributes",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.o),8),18),t.W,null,"eAllContainments",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.o),9),18),t.T,null,"eAllOperations",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.o),10),18),t.bb,null,"eAllStructuralFeatures",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.o),11),18),t.o,null,"eAllSuperTypes",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.o),12),18),t.b,null,"eIDAttribute",0,1,$Be,!0,!0,!1,!1,!1,!1,!0),Avt(jz(Wet(KX(t.o),13),18),t.bb,jz(Wet(KX(t.bb),7),18),"eStructuralFeatures",0,-1,$Be,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.o),14),18),t.H,null,"eGenericSuperTypes",0,-1,$Be,!1,!1,!0,!0,!1,!0,!1),Avt(jz(Wet(KX(t.o),15),18),t.H,null,"eAllGenericSuperTypes",0,-1,$Be,!0,!0,!1,!1,!0,!1,!0),Bvt(s=uit(jz(Wet(WX(t.o),0),59),t.e,"isSuperTypeOf"),t.o,"someClass"),uit(jz(Wet(WX(t.o),1),59),t.I,"getFeatureCount"),Bvt(s=uit(jz(Wet(WX(t.o),2),59),t.bb,Q8t),t.I,"featureID"),Bvt(s=uit(jz(Wet(WX(t.o),3),59),t.I,J8t),t.bb,t9t),Bvt(s=uit(jz(Wet(WX(t.o),4),59),t.bb,Q8t),t._,"featureName"),uit(jz(Wet(WX(t.o),5),59),t.I,"getOperationCount"),Bvt(s=uit(jz(Wet(WX(t.o),6),59),t.T,"getEOperation"),t.I,"operationID"),Bvt(s=uit(jz(Wet(WX(t.o),7),59),t.I,e9t),t.T,n9t),Bvt(s=uit(jz(Wet(WX(t.o),8),59),t.T,"getOverride"),t.T,n9t),Bvt(s=uit(jz(Wet(WX(t.o),9),59),t.H,"getFeatureType"),t.bb,t9t),H0(t.p,jBe,d8t,!0,!1,!0),aot(jz(Wet(KX(t.p),0),34),t._,"instanceClassName",null,0,1,jBe,!1,!0,!0,!0,!0,!1),e=ZY(t.L),n=s2(),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),FIt(jz(Wet(KX(t.p),1),34),e,"instanceClass",jBe,!0,!0,!1,!0),aot(jz(Wet(KX(t.p),2),34),t.M,i9t,null,0,1,jBe,!0,!0,!1,!1,!0,!0),aot(jz(Wet(KX(t.p),3),34),t._,"instanceTypeName",null,0,1,jBe,!1,!0,!0,!0,!0,!1),Avt(jz(Wet(KX(t.p),4),18),t.U,jz(Wet(KX(t.U),3),18),"ePackage",0,1,jBe,!0,!1,!1,!1,!0,!1,!1),Avt(jz(Wet(KX(t.p),5),18),t.db,null,r9t,0,-1,jBe,!1,!1,!0,!0,!0,!1,!1),Bvt(s=uit(jz(Wet(WX(t.p),0),59),t.e,o9t),t.M,IKt),uit(jz(Wet(WX(t.p),1),59),t.I,"getClassifierID"),H0(t.q,zBe,"EDataType",!1,!1,!0),aot(jz(Wet(KX(t.q),0),34),t.e,"serializable",o4t,0,1,zBe,!1,!1,!0,!1,!0,!1),H0(t.v,qBe,"EEnum",!1,!1,!0),Avt(jz(Wet(KX(t.v),0),18),t.w,jz(Wet(KX(t.w),3),18),"eLiterals",0,-1,qBe,!1,!1,!0,!0,!1,!1,!1),Bvt(s=uit(jz(Wet(WX(t.v),0),59),t.w,a9t),t._,t7t),Bvt(s=uit(jz(Wet(WX(t.v),1),59),t.w,a9t),t.I,_6t),Bvt(s=uit(jz(Wet(WX(t.v),2),59),t.w,"getEEnumLiteralByLiteral"),t._,"literal"),H0(t.w,UBe,f8t,!1,!1,!0),aot(jz(Wet(KX(t.w),0),34),t.I,_6t,null,0,1,UBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.w),1),34),t.A,"instance",null,0,1,UBe,!0,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.w),2),34),t._,"literal",null,0,1,UBe,!1,!1,!0,!1,!0,!1),Avt(jz(Wet(KX(t.w),3),18),t.v,jz(Wet(KX(t.v),0),18),"eEnum",0,1,UBe,!0,!1,!1,!1,!1,!1,!1),H0(t.B,jIe,"EFactory",!1,!1,!0),Avt(jz(Wet(KX(t.B),0),18),t.U,jz(Wet(KX(t.U),2),18),"ePackage",1,1,jIe,!0,!1,!0,!1,!1,!1,!1),Bvt(s=uit(jz(Wet(WX(t.B),0),59),t.S,"create"),t.o,"eClass"),Bvt(s=uit(jz(Wet(WX(t.B),1),59),t.M,"createFromString"),t.q,"eDataType"),Bvt(s,t._,"literalValue"),Bvt(s=uit(jz(Wet(WX(t.B),2),59),t._,"convertToString"),t.q,"eDataType"),Bvt(s,t.M,"instanceValue"),H0(t.Q,FIe,X4t,!0,!1,!0),Avt(jz(Wet(KX(t.Q),0),18),t.a,jz(Wet(KX(t.a),2),18),"eAnnotations",0,-1,FIe,!1,!1,!0,!0,!1,!1,!1),Bvt(s=uit(jz(Wet(WX(t.Q),0),59),t.a,"getEAnnotation"),t._,C6t),H0(t.R,$Ie,Z4t,!0,!1,!0),aot(jz(Wet(KX(t.R),0),34),t._,t7t,null,0,1,$Ie,!1,!1,!0,!1,!0,!1),H0(t.S,IIe,"EObject",!1,!1,!0),uit(jz(Wet(WX(t.S),0),59),t.o,"eClass"),uit(jz(Wet(WX(t.S),1),59),t.e,"eIsProxy"),uit(jz(Wet(WX(t.S),2),59),t.X,"eResource"),uit(jz(Wet(WX(t.S),3),59),t.S,"eContainer"),uit(jz(Wet(WX(t.S),4),59),t.bb,"eContainingFeature"),uit(jz(Wet(WX(t.S),5),59),t.W,"eContainmentFeature"),s=uit(jz(Wet(WX(t.S),6),59),null,"eContents"),e=ZY(t.fb),n=ZY(t.S),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),(r=zAt(s,e,null))&&r.Fi(),s=uit(jz(Wet(WX(t.S),7),59),null,"eAllContents"),e=ZY(t.cb),n=ZY(t.S),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),(o=zAt(s,e,null))&&o.Fi(),s=uit(jz(Wet(WX(t.S),8),59),null,"eCrossReferences"),e=ZY(t.fb),n=ZY(t.S),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),(a=zAt(s,e,null))&&a.Fi(),Bvt(s=uit(jz(Wet(WX(t.S),9),59),t.M,"eGet"),t.bb,t9t),Bvt(s=uit(jz(Wet(WX(t.S),10),59),t.M,"eGet"),t.bb,t9t),Bvt(s,t.e,"resolve"),Bvt(s=uit(jz(Wet(WX(t.S),11),59),null,"eSet"),t.bb,t9t),Bvt(s,t.M,"newValue"),Bvt(s=uit(jz(Wet(WX(t.S),12),59),t.e,"eIsSet"),t.bb,t9t),Bvt(s=uit(jz(Wet(WX(t.S),13),59),null,"eUnset"),t.bb,t9t),Bvt(s=uit(jz(Wet(WX(t.S),14),59),t.M,"eInvoke"),t.T,n9t),e=ZY(t.fb),n=s2(),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),U_t(s,e,"arguments"),RK(s,t.K),H0(t.T,WBe,p8t,!1,!1,!0),Avt(jz(Wet(KX(t.T),0),18),t.o,jz(Wet(KX(t.o),3),18),s9t,0,1,WBe,!0,!1,!1,!1,!1,!1,!1),Avt(jz(Wet(KX(t.T),1),18),t.db,null,r9t,0,-1,WBe,!1,!1,!0,!0,!0,!1,!1),Avt(jz(Wet(KX(t.T),2),18),t.V,jz(Wet(KX(t.V),0),18),"eParameters",0,-1,WBe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.T),3),18),t.p,null,"eExceptions",0,-1,WBe,!1,!1,!0,!1,!0,!0,!1),Avt(jz(Wet(KX(t.T),4),18),t.H,null,"eGenericExceptions",0,-1,WBe,!1,!1,!0,!0,!1,!0,!1),uit(jz(Wet(WX(t.T),0),59),t.I,e9t),Bvt(s=uit(jz(Wet(WX(t.T),1),59),t.e,"isOverrideOf"),t.T,"someOperation"),H0(t.U,zIe,"EPackage",!1,!1,!0),aot(jz(Wet(KX(t.U),0),34),t._,"nsURI",null,0,1,zIe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.U),1),34),t._,"nsPrefix",null,0,1,zIe,!1,!1,!0,!1,!0,!1),Avt(jz(Wet(KX(t.U),2),18),t.B,jz(Wet(KX(t.B),0),18),"eFactoryInstance",1,1,zIe,!0,!1,!0,!1,!1,!1,!1),Avt(jz(Wet(KX(t.U),3),18),t.p,jz(Wet(KX(t.p),4),18),"eClassifiers",0,-1,zIe,!1,!1,!0,!0,!0,!1,!1),Avt(jz(Wet(KX(t.U),4),18),t.U,jz(Wet(KX(t.U),5),18),"eSubpackages",0,-1,zIe,!1,!1,!0,!0,!0,!1,!1),Avt(jz(Wet(KX(t.U),5),18),t.U,jz(Wet(KX(t.U),4),18),"eSuperPackage",0,1,zIe,!0,!1,!1,!1,!0,!1,!1),Bvt(s=uit(jz(Wet(WX(t.U),0),59),t.p,"getEClassifier"),t._,t7t),H0(t.V,KBe,m8t,!1,!1,!0),Avt(jz(Wet(KX(t.V),0),18),t.T,jz(Wet(KX(t.T),2),18),"eOperation",0,1,KBe,!0,!1,!1,!1,!1,!1,!1),H0(t.W,YBe,b8t,!1,!1,!0),aot(jz(Wet(KX(t.W),0),34),t.e,"containment",null,0,1,YBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.W),1),34),t.e,"container",null,0,1,YBe,!0,!0,!1,!1,!0,!0),aot(jz(Wet(KX(t.W),2),34),t.e,"resolveProxies",o4t,0,1,YBe,!1,!1,!0,!1,!0,!1),Avt(jz(Wet(KX(t.W),3),18),t.W,null,"eOpposite",0,1,YBe,!1,!1,!0,!1,!0,!1,!1),Avt(jz(Wet(KX(t.W),4),18),t.o,null,"eReferenceType",1,1,YBe,!0,!0,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.W),5),18),t.b,null,"eKeys",0,-1,YBe,!1,!1,!0,!1,!0,!1,!1),H0(t.bb,RBe,u8t,!0,!1,!0),aot(jz(Wet(KX(t.bb),0),34),t.e,"changeable",o4t,0,1,RBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.bb),1),34),t.e,"volatile",null,0,1,RBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.bb),2),34),t.e,"transient",null,0,1,RBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.bb),3),34),t._,"defaultValueLiteral",null,0,1,RBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.bb),4),34),t.M,i9t,null,0,1,RBe,!0,!0,!1,!1,!0,!0),aot(jz(Wet(KX(t.bb),5),34),t.e,"unsettable",null,0,1,RBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.bb),6),34),t.e,"derived",null,0,1,RBe,!1,!1,!0,!1,!0,!1),Avt(jz(Wet(KX(t.bb),7),18),t.o,jz(Wet(KX(t.o),13),18),s9t,0,1,RBe,!0,!1,!1,!1,!1,!1,!1),uit(jz(Wet(WX(t.bb),0),59),t.I,J8t),s=uit(jz(Wet(WX(t.bb),1),59),null,"getContainerClass"),e=ZY(t.L),n=s2(),l8((!e.d&&(e.d=new IP(GBe,e,1)),e.d),n),(i=zAt(s,e,null))&&i.Fi(),H0(t.eb,NBe,l8t,!0,!1,!0),aot(jz(Wet(KX(t.eb),0),34),t.e,"ordered",o4t,0,1,NBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.eb),1),34),t.e,"unique",o4t,0,1,NBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.eb),2),34),t.I,"lowerBound",null,0,1,NBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.eb),3),34),t.I,"upperBound","1",0,1,NBe,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.eb),4),34),t.e,"many",null,0,1,NBe,!0,!0,!1,!1,!0,!0),aot(jz(Wet(KX(t.eb),5),34),t.e,"required",null,0,1,NBe,!0,!0,!1,!1,!0,!0),Avt(jz(Wet(KX(t.eb),6),18),t.p,null,"eType",0,1,NBe,!1,!0,!0,!1,!0,!0,!1),Avt(jz(Wet(KX(t.eb),7),18),t.H,null,"eGenericType",0,1,NBe,!1,!0,!0,!0,!1,!0,!1),H0(t.ab,zte,"EStringToStringMapEntry",!1,!1,!1),aot(jz(Wet(KX(t.ab),0),34),t._,"key",null,0,1,zte,!1,!1,!0,!1,!0,!1),aot(jz(Wet(KX(t.ab),1),34),t._,_6t,null,0,1,zte,!1,!1,!0,!1,!0,!1),H0(t.H,GBe,g8t,!1,!1,!0),Avt(jz(Wet(KX(t.H),0),18),t.H,null,"eUpperBound",0,1,GBe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.H),1),18),t.H,null,"eTypeArguments",0,-1,GBe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.H),2),18),t.p,null,"eRawType",1,1,GBe,!0,!1,!1,!1,!0,!1,!0),Avt(jz(Wet(KX(t.H),3),18),t.H,null,"eLowerBound",0,1,GBe,!1,!1,!0,!0,!1,!1,!1),Avt(jz(Wet(KX(t.H),4),18),t.db,null,"eTypeParameter",0,1,GBe,!1,!1,!0,!1,!1,!1,!1),Avt(jz(Wet(KX(t.H),5),18),t.p,null,"eClassifier",0,1,GBe,!1,!1,!0,!1,!0,!1,!1),Bvt(s=uit(jz(Wet(WX(t.H),0),59),t.e,o9t),t.M,IKt),H0(t.db,TMe,w8t,!1,!1,!0),Avt(jz(Wet(KX(t.db),0),18),t.H,null,"eBounds",0,-1,TMe,!1,!1,!0,!0,!1,!1,!1),fY(t.c,nne,"EBigDecimal",!0),fY(t.d,sne,"EBigInteger",!0),fY(t.e,DLe,"EBoolean",!0),fY(t.f,vee,"EBooleanObject",!0),fY(t.i,BLe,"EByte",!0),fY(t.g,Vy(BLe,1),"EByteArray",!0),fY(t.j,Cee,"EByteObject",!0),fY(t.k,TLe,"EChar",!0),fY(t.n,xee,"ECharacterObject",!0),fY(t.r,wee,"EDate",!0),fY(t.s,NLe,"EDiagnosticChain",!1),fY(t.t,MLe,"EDouble",!0),fY(t.u,Eee,"EDoubleObject",!0),fY(t.fb,rBe,"EEList",!1),fY(t.A,bBe,"EEnumerator",!1),fY(t.C,uPe,"EFeatureMap",!1),fY(t.D,DMe,"EFeatureMapEntry",!1),fY(t.F,PLe,"EFloat",!0),fY(t.G,Tee,"EFloatObject",!0),fY(t.I,SLe,"EInt",!0),fY(t.J,Iee,"EIntegerObject",!0),fY(t.L,Bte,"EJavaClass",!0),fY(t.M,Ite,"EJavaObject",!0),fY(t.N,ILe,"ELong",!0),fY(t.O,Nee,"ELongObject",!0),fY(t.P,Pte,"EMap",!1),fY(t.X,tPe,"EResource",!1),fY(t.Y,RLe,"EResourceSet",!1),fY(t.Z,LLe,"EShort",!0),fY(t.$,Fee,"EShortObject",!0),fY(t._,Yee,"EString",!0),fY(t.cb,cBe,"ETreeIterator",!1),fY(t.K,FLe,"EInvocationTargetException",!1),Mut(t,K8t))}"undefined"!=typeof window?i=window:void 0!==t?i=t:"undefined"!=typeof self&&(i=self);var AKt,xKt,EKt,TKt,SKt,DKt,IKt="object",BKt="boolean",MKt="number",PKt="string",LKt="function",OKt=2147483647,NKt="java.lang",RKt={3:1},FKt="com.google.common.base",jKt=", ",$Kt="%s (%s) must not be negative",zKt={3:1,4:1,5:1},VKt="negative size: ",HKt="Optional.of(",qKt="null",UKt={198:1,47:1},GKt="com.google.common.collect",WKt={198:1,47:1,125:1},KKt={224:1,3:1},YKt={47:1},XKt="java.util",ZKt={83:1},QKt={20:1,28:1,14:1},JKt=1965,tYt={20:1,28:1,14:1,21:1},eYt={83:1,171:1,161:1},nYt={20:1,28:1,14:1,21:1,84:1},iYt={20:1,28:1,14:1,271:1,21:1,84:1},rYt={47:1,125:1},oYt={345:1,42:1},aYt="AbstractMapEntry",sYt="expectedValuesPerKey",cYt={3:1,6:1,4:1,5:1},lYt=16384,uYt={164:1},hYt={38:1},dYt={l:4194303,m:4194303,h:524287},fYt={196:1},gYt={245:1,3:1,35:1},pYt="range unbounded on this side",mYt={20:1},bYt={20:1,14:1},wYt={3:1,20:1,28:1,14:1},kYt={152:1,3:1,20:1,28:1,14:1,15:1,54:1},vYt={3:1,4:1,5:1,165:1},yYt={3:1,83:1},_Yt={20:1,14:1,21:1},CYt={3:1,20:1,28:1,14:1,21:1},AYt={20:1,14:1,21:1,84:1},xYt=461845907,EYt=-862048943,TYt={3:1,6:1,4:1,5:1,165:1},SYt="expectedSize",DYt=1073741824,IYt="initialArraySize",BYt={3:1,6:1,4:1,9:1,5:1},MYt={20:1,28:1,52:1,14:1,15:1},PYt="arraySize",LYt={20:1,28:1,52:1,14:1,15:1,54:1},OYt={45:1},NYt={365:1},RYt=1e-4,FYt=-2147483648,jYt="__noinit__",$Yt={3:1,102:1,60:1,78:1},zYt="com.google.gwt.core.client.impl",VYt="String",HYt="com.google.gwt.core.client",qYt="anonymous",UYt="fnStack",GYt="Unknown",WYt={195:1,3:1,4:1},KYt=1e3,YYt=65535,XYt="January",ZYt="February",QYt="March",JYt="April",tXt="May",eXt="June",nXt="July",iXt="August",rXt="September",oXt="October",aXt="November",sXt="December",cXt=1900,lXt={48:1,3:1,4:1},uXt="Before Christ",hXt="Anno Domini",dXt="Sunday",fXt="Monday",gXt="Tuesday",pXt="Wednesday",mXt="Thursday",bXt="Friday",wXt="Saturday",kXt="com.google.gwt.i18n.shared",vXt="DateTimeFormat",yXt="com.google.gwt.i18n.client",_Xt="DefaultDateTimeFormatInfo",CXt={3:1,4:1,35:1,199:1},AXt="com.google.gwt.json.client",xXt=4194303,EXt=1048575,TXt=524288,SXt=4194304,DXt=17592186044416,IXt=1e9,BXt=-17592186044416,MXt="java.io",PXt={3:1,102:1,73:1,60:1,78:1},LXt={3:1,289:1,78:1},OXt='For input string: "',NXt=1/0,RXt=-1/0,FXt=4096,jXt={3:1,4:1,364:1},$Xt=65536,zXt=55296,VXt={104:1,3:1,4:1},HXt=1e5,qXt=.3010299956639812,UXt=4294967295,GXt=4294967296,WXt="0.0",KXt={42:1},YXt={3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1},XXt={3:1,20:1,28:1,52:1,14:1,15:1,54:1},ZXt={20:1,14:1,15:1},QXt={3:1,62:1},JXt={182:1},tZt={3:1,4:1,83:1},eZt={3:1,4:1,20:1,28:1,14:1,53:1,21:1},nZt="delete",iZt=1.4901161193847656e-8,rZt=11102230246251565e-32,oZt=15525485,aZt=5.960464477539063e-8,sZt=16777216,cZt=16777215,lZt=", length: ",uZt={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1},hZt={3:1,35:1,22:1,297:1},dZt="java.util.function",fZt="java.util.logging",gZt={3:1,4:1,5:1,842:1},pZt="undefined",mZt="java.util.stream",bZt={525:1,670:1},wZt="fromIndex: ",kZt=" > toIndex: ",vZt=", toIndex: ",yZt="Index: ",_Zt=", Size: ",CZt="org.eclipse.elk.alg.common",AZt={62:1},xZt="org.eclipse.elk.alg.common.compaction",EZt="Scanline/EventHandler",TZt="org.eclipse.elk.alg.common.compaction.oned",SZt="CNode belongs to another CGroup.",DZt="ISpacingsHandler/1",IZt="The ",BZt=" instance has been finished already.",MZt="The direction ",PZt=" is not supported by the CGraph instance.",LZt="OneDimensionalCompactor",OZt="OneDimensionalCompactor/lambda$0$Type",NZt="Quadruplet",RZt="ScanlineConstraintCalculator",FZt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",jZt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",$Zt="ScanlineConstraintCalculator/Timestamp",zZt="ScanlineConstraintCalculator/lambda$0$Type",VZt={169:1,45:1},HZt="org.eclipse.elk.alg.common.compaction.options",qZt="org.eclipse.elk.core.data",UZt="org.eclipse.elk.polyomino.traversalStrategy",GZt="org.eclipse.elk.polyomino.lowLevelSort",WZt="org.eclipse.elk.polyomino.highLevelSort",KZt="org.eclipse.elk.polyomino.fill",YZt={130:1},XZt="polyomino",ZZt="org.eclipse.elk.alg.common.networksimplex",QZt={177:1,3:1,4:1},JZt="org.eclipse.elk.alg.common.nodespacing",tQt="org.eclipse.elk.alg.common.nodespacing.cellsystem",eQt="CENTER",nQt={212:1,326:1},iQt={3:1,4:1,5:1,595:1},rQt="LEFT",oQt="RIGHT",aQt="Vertical alignment cannot be null",sQt="BOTTOM",cQt="org.eclipse.elk.alg.common.nodespacing.internal",lQt="UNDEFINED",uQt=.01,hQt="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",dQt="LabelPlacer/lambda$0$Type",fQt="LabelPlacer/lambda$1$Type",gQt="portRatioOrPosition",pQt="org.eclipse.elk.alg.common.overlaps",mQt="DOWN",bQt="org.eclipse.elk.alg.common.polyomino",wQt="NORTH",kQt="EAST",vQt="SOUTH",yQt="WEST",_Qt="org.eclipse.elk.alg.common.polyomino.structures",CQt="Direction",AQt="Grid is only of size ",xQt=". Requested point (",EQt=") is out of bounds.",TQt=" Given center based coordinates were (",SQt="org.eclipse.elk.graph.properties",DQt="IPropertyHolder",IQt={3:1,94:1,134:1},BQt="org.eclipse.elk.alg.common.spore",MQt="org.eclipse.elk.alg.common.utils",PQt={209:1},LQt="org.eclipse.elk.core",OQt="Connected Components Compaction",NQt="org.eclipse.elk.alg.disco",RQt="org.eclipse.elk.alg.disco.graph",FQt="org.eclipse.elk.alg.disco.options",jQt="CompactionStrategy",$Qt="org.eclipse.elk.disco.componentCompaction.strategy",zQt="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",VQt="org.eclipse.elk.disco.debug.discoGraph",HQt="org.eclipse.elk.disco.debug.discoPolys",qQt="componentCompaction",UQt="org.eclipse.elk.disco",GQt="org.eclipse.elk.spacing.componentComponent",WQt="org.eclipse.elk.edge.thickness",KQt="org.eclipse.elk.aspectRatio",YQt="org.eclipse.elk.padding",XQt="org.eclipse.elk.alg.disco.transform",ZQt=1.5707963267948966,QQt=17976931348623157e292,JQt={3:1,4:1,5:1,192:1},tJt={3:1,6:1,4:1,5:1,106:1,120:1},eJt="org.eclipse.elk.alg.force",nJt="ComponentsProcessor",iJt="ComponentsProcessor/1",rJt="org.eclipse.elk.alg.force.graph",oJt="Component Layout",aJt="org.eclipse.elk.alg.force.model",sJt="org.eclipse.elk.force.model",cJt="org.eclipse.elk.force.iterations",lJt="org.eclipse.elk.force.repulsivePower",uJt="org.eclipse.elk.force.temperature",hJt=.001,dJt="org.eclipse.elk.force.repulsion",fJt="org.eclipse.elk.alg.force.options",gJt=1.600000023841858,pJt="org.eclipse.elk.force",mJt="org.eclipse.elk.priority",bJt="org.eclipse.elk.spacing.nodeNode",wJt="org.eclipse.elk.spacing.edgeLabel",kJt="org.eclipse.elk.randomSeed",vJt="org.eclipse.elk.separateConnectedComponents",yJt="org.eclipse.elk.interactive",_Jt="org.eclipse.elk.portConstraints",CJt="org.eclipse.elk.edgeLabels.inline",AJt="org.eclipse.elk.omitNodeMicroLayout",xJt="org.eclipse.elk.nodeSize.options",EJt="org.eclipse.elk.nodeSize.constraints",TJt="org.eclipse.elk.nodeLabels.placement",SJt="org.eclipse.elk.portLabels.placement",DJt="origin",IJt="random",BJt="boundingBox.upLeft",MJt="boundingBox.lowRight",PJt="org.eclipse.elk.stress.fixed",LJt="org.eclipse.elk.stress.desiredEdgeLength",OJt="org.eclipse.elk.stress.dimension",NJt="org.eclipse.elk.stress.epsilon",RJt="org.eclipse.elk.stress.iterationLimit",FJt="org.eclipse.elk.stress",jJt="ELK Stress",$Jt="org.eclipse.elk.nodeSize.minimum",zJt="org.eclipse.elk.alg.force.stress",VJt="Layered layout",HJt="org.eclipse.elk.alg.layered",qJt="org.eclipse.elk.alg.layered.compaction.components",UJt="org.eclipse.elk.alg.layered.compaction.oned",GJt="org.eclipse.elk.alg.layered.compaction.oned.algs",WJt="org.eclipse.elk.alg.layered.compaction.recthull",KJt="org.eclipse.elk.alg.layered.components",YJt="NONE",XJt={3:1,6:1,4:1,9:1,5:1,122:1},ZJt={3:1,6:1,4:1,5:1,141:1,106:1,120:1},QJt="org.eclipse.elk.alg.layered.compound",JJt={51:1},t1t="org.eclipse.elk.alg.layered.graph",e1t=" -> ",n1t="Not supported by LGraph",i1t="Port side is undefined",r1t={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},o1t={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},a1t={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},s1t="([{\"' \t\r\n",c1t=")]}\"' \t\r\n",l1t="The given string contains parts that cannot be parsed as numbers.",u1t="org.eclipse.elk.core.math",h1t={3:1,4:1,142:1,207:1,414:1},d1t={3:1,4:1,116:1,207:1,414:1},f1t="org.eclipse.elk.layered",g1t="org.eclipse.elk.alg.layered.graph.transform",p1t="ElkGraphImporter",m1t="ElkGraphImporter/lambda$0$Type",b1t="ElkGraphImporter/lambda$1$Type",w1t="ElkGraphImporter/lambda$2$Type",k1t="ElkGraphImporter/lambda$4$Type",v1t="Node margin calculation",y1t="org.eclipse.elk.alg.layered.intermediate",_1t="ONE_SIDED_GREEDY_SWITCH",C1t="TWO_SIDED_GREEDY_SWITCH",A1t="No implementation is available for the layout processor ",x1t="IntermediateProcessorStrategy",E1t="Node '",T1t="FIRST_SEPARATE",S1t="LAST_SEPARATE",D1t="Odd port side processing",I1t="org.eclipse.elk.alg.layered.intermediate.compaction",B1t="org.eclipse.elk.alg.layered.intermediate.greedyswitch",M1t="org.eclipse.elk.alg.layered.p3order.counting",P1t={225:1},L1t="org.eclipse.elk.alg.layered.intermediate.loops",O1t="org.eclipse.elk.alg.layered.intermediate.loops.ordering",N1t="org.eclipse.elk.alg.layered.intermediate.loops.routing",R1t="org.eclipse.elk.alg.layered.intermediate.preserveorder",F1t="org.eclipse.elk.alg.layered.intermediate.wrapping",j1t="org.eclipse.elk.alg.layered.options",$1t="INTERACTIVE",z1t="DEPTH_FIRST",V1t="EDGE_LENGTH",H1t="SELF_LOOPS",q1t="firstTryWithInitialOrder",U1t="org.eclipse.elk.layered.directionCongruency",G1t="org.eclipse.elk.layered.feedbackEdges",W1t="org.eclipse.elk.layered.interactiveReferencePoint",K1t="org.eclipse.elk.layered.mergeEdges",Y1t="org.eclipse.elk.layered.mergeHierarchyEdges",X1t="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Z1t="org.eclipse.elk.layered.portSortingStrategy",Q1t="org.eclipse.elk.layered.thoroughness",J1t="org.eclipse.elk.layered.unnecessaryBendpoints",t0t="org.eclipse.elk.layered.generatePositionAndLayerIds",e0t="org.eclipse.elk.layered.cycleBreaking.strategy",n0t="org.eclipse.elk.layered.layering.strategy",i0t="org.eclipse.elk.layered.layering.layerConstraint",r0t="org.eclipse.elk.layered.layering.layerChoiceConstraint",o0t="org.eclipse.elk.layered.layering.layerId",a0t="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",s0t="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",c0t="org.eclipse.elk.layered.layering.nodePromotion.strategy",l0t="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",u0t="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",h0t="org.eclipse.elk.layered.crossingMinimization.strategy",d0t="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",f0t="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",g0t="org.eclipse.elk.layered.crossingMinimization.semiInteractive",p0t="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",m0t="org.eclipse.elk.layered.crossingMinimization.positionId",b0t="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",w0t="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",k0t="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",v0t="org.eclipse.elk.layered.nodePlacement.strategy",y0t="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",_0t="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",C0t="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",A0t="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",x0t="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",E0t="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",T0t="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",S0t="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",D0t="org.eclipse.elk.layered.edgeRouting.splines.mode",I0t="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",B0t="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",M0t="org.eclipse.elk.layered.spacing.baseValue",P0t="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",L0t="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",O0t="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",N0t="org.eclipse.elk.layered.priority.direction",R0t="org.eclipse.elk.layered.priority.shortness",F0t="org.eclipse.elk.layered.priority.straightness",j0t="org.eclipse.elk.layered.compaction.connectedComponents",$0t="org.eclipse.elk.layered.compaction.postCompaction.strategy",z0t="org.eclipse.elk.layered.compaction.postCompaction.constraints",V0t="org.eclipse.elk.layered.highDegreeNodes.treatment",H0t="org.eclipse.elk.layered.highDegreeNodes.threshold",q0t="org.eclipse.elk.layered.highDegreeNodes.treeHeight",U0t="org.eclipse.elk.layered.wrapping.strategy",G0t="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",W0t="org.eclipse.elk.layered.wrapping.correctionFactor",K0t="org.eclipse.elk.layered.wrapping.cutting.strategy",Y0t="org.eclipse.elk.layered.wrapping.cutting.cuts",X0t="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",Z0t="org.eclipse.elk.layered.wrapping.validify.strategy",Q0t="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",J0t="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",t2t="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",e2t="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",n2t="org.eclipse.elk.layered.edgeLabels.sideSelection",i2t="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",r2t="org.eclipse.elk.layered.considerModelOrder.strategy",o2t="org.eclipse.elk.layered.considerModelOrder.noModelOrder",a2t="org.eclipse.elk.layered.considerModelOrder.components",s2t="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",c2t="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",l2t="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",u2t="layering",h2t="layering.minWidth",d2t="layering.nodePromotion",f2t="crossingMinimization",g2t="org.eclipse.elk.hierarchyHandling",p2t="crossingMinimization.greedySwitch",m2t="nodePlacement",b2t="nodePlacement.bk",w2t="edgeRouting",k2t="org.eclipse.elk.edgeRouting",v2t="spacing",y2t="priority",_2t="compaction",C2t="compaction.postCompaction",A2t="Specifies whether and how post-process compaction is applied.",x2t="highDegreeNodes",E2t="wrapping",T2t="wrapping.cutting",S2t="wrapping.validify",D2t="wrapping.multiEdge",I2t="edgeLabels",B2t="considerModelOrder",M2t="org.eclipse.elk.spacing.commentComment",P2t="org.eclipse.elk.spacing.commentNode",L2t="org.eclipse.elk.spacing.edgeEdge",O2t="org.eclipse.elk.spacing.edgeNode",N2t="org.eclipse.elk.spacing.labelLabel",R2t="org.eclipse.elk.spacing.labelPortHorizontal",F2t="org.eclipse.elk.spacing.labelPortVertical",j2t="org.eclipse.elk.spacing.labelNode",$2t="org.eclipse.elk.spacing.nodeSelfLoop",z2t="org.eclipse.elk.spacing.portPort",V2t="org.eclipse.elk.spacing.individual",H2t="org.eclipse.elk.port.borderOffset",q2t="org.eclipse.elk.noLayout",U2t="org.eclipse.elk.port.side",G2t="org.eclipse.elk.debugMode",W2t="org.eclipse.elk.alignment",K2t="org.eclipse.elk.insideSelfLoops.activate",Y2t="org.eclipse.elk.insideSelfLoops.yo",X2t="org.eclipse.elk.nodeSize.fixedGraphSize",Z2t="org.eclipse.elk.direction",Q2t="org.eclipse.elk.nodeLabels.padding",J2t="org.eclipse.elk.portLabels.nextToPortIfPossible",t3t="org.eclipse.elk.portLabels.treatAsGroup",e3t="org.eclipse.elk.portAlignment.default",n3t="org.eclipse.elk.portAlignment.north",i3t="org.eclipse.elk.portAlignment.south",r3t="org.eclipse.elk.portAlignment.west",o3t="org.eclipse.elk.portAlignment.east",a3t="org.eclipse.elk.contentAlignment",s3t="org.eclipse.elk.junctionPoints",c3t="org.eclipse.elk.edgeLabels.placement",l3t="org.eclipse.elk.port.index",u3t="org.eclipse.elk.commentBox",h3t="org.eclipse.elk.hypernode",d3t="org.eclipse.elk.port.anchor",f3t="org.eclipse.elk.partitioning.activate",g3t="org.eclipse.elk.partitioning.partition",p3t="org.eclipse.elk.position",m3t="org.eclipse.elk.margins",b3t="org.eclipse.elk.spacing.portsSurrounding",w3t="org.eclipse.elk.interactiveLayout",k3t="org.eclipse.elk.core.util",v3t={3:1,4:1,5:1,593:1},y3t="NETWORK_SIMPLEX",_3t={123:1,51:1},C3t="org.eclipse.elk.alg.layered.p1cycles",A3t="org.eclipse.elk.alg.layered.p2layers",x3t={402:1,225:1},E3t={832:1,3:1,4:1},T3t="org.eclipse.elk.alg.layered.p3order",S3t="org.eclipse.elk.alg.layered.p4nodes",D3t={3:1,4:1,5:1,840:1},I3t=1e-5,B3t="org.eclipse.elk.alg.layered.p4nodes.bk",M3t="org.eclipse.elk.alg.layered.p5edges",P3t="org.eclipse.elk.alg.layered.p5edges.orthogonal",L3t="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",O3t=1e-6,N3t="org.eclipse.elk.alg.layered.p5edges.splines",R3t=.09999999999999998,F3t=1e-8,j3t=4.71238898038469,$3t=3.141592653589793,z3t="org.eclipse.elk.alg.mrtree",V3t="org.eclipse.elk.alg.mrtree.graph",H3t="org.eclipse.elk.alg.mrtree.intermediate",q3t="Set neighbors in level",U3t="DESCENDANTS",G3t="org.eclipse.elk.mrtree.weighting",W3t="org.eclipse.elk.mrtree.searchOrder",K3t="org.eclipse.elk.alg.mrtree.options",Y3t="org.eclipse.elk.mrtree",X3t="org.eclipse.elk.tree",Z3t="org.eclipse.elk.alg.radial",Q3t=6.283185307179586,J3t=5e-324,t5t="org.eclipse.elk.alg.radial.intermediate",e5t="org.eclipse.elk.alg.radial.intermediate.compaction",n5t={3:1,4:1,5:1,106:1},i5t="org.eclipse.elk.alg.radial.intermediate.optimization",r5t="No implementation is available for the layout option ",o5t="org.eclipse.elk.alg.radial.options",a5t="org.eclipse.elk.radial.orderId",s5t="org.eclipse.elk.radial.radius",c5t="org.eclipse.elk.radial.compactor",l5t="org.eclipse.elk.radial.compactionStepSize",u5t="org.eclipse.elk.radial.sorter",h5t="org.eclipse.elk.radial.wedgeCriteria",d5t="org.eclipse.elk.radial.optimizationCriteria",f5t="org.eclipse.elk.radial",g5t="org.eclipse.elk.alg.radial.p1position.wedge",p5t="org.eclipse.elk.alg.radial.sorting",m5t=5.497787143782138,b5t=3.9269908169872414,w5t=2.356194490192345,k5t="org.eclipse.elk.alg.rectpacking",v5t="org.eclipse.elk.alg.rectpacking.firstiteration",y5t="org.eclipse.elk.alg.rectpacking.options",_5t="org.eclipse.elk.rectpacking.optimizationGoal",C5t="org.eclipse.elk.rectpacking.lastPlaceShift",A5t="org.eclipse.elk.rectpacking.currentPosition",x5t="org.eclipse.elk.rectpacking.desiredPosition",E5t="org.eclipse.elk.rectpacking.onlyFirstIteration",T5t="org.eclipse.elk.rectpacking.rowCompaction",S5t="org.eclipse.elk.rectpacking.expandToAspectRatio",D5t="org.eclipse.elk.rectpacking.targetWidth",I5t="org.eclipse.elk.expandNodes",B5t="org.eclipse.elk.rectpacking",M5t="org.eclipse.elk.alg.rectpacking.util",P5t="No implementation available for ",L5t="org.eclipse.elk.alg.spore",O5t="org.eclipse.elk.alg.spore.options",N5t="org.eclipse.elk.sporeCompaction",R5t="org.eclipse.elk.underlyingLayoutAlgorithm",F5t="org.eclipse.elk.processingOrder.treeConstruction",j5t="org.eclipse.elk.processingOrder.spanningTreeCostFunction",$5t="org.eclipse.elk.processingOrder.preferredRoot",z5t="org.eclipse.elk.processingOrder.rootSelection",V5t="org.eclipse.elk.structure.structureExtractionStrategy",H5t="org.eclipse.elk.compaction.compactionStrategy",q5t="org.eclipse.elk.compaction.orthogonal",U5t="org.eclipse.elk.overlapRemoval.maxIterations",G5t="org.eclipse.elk.overlapRemoval.runScanline",W5t="processingOrder",K5t="overlapRemoval",Y5t="org.eclipse.elk.sporeOverlap",X5t="org.eclipse.elk.alg.spore.p1structure",Z5t="org.eclipse.elk.alg.spore.p2processingorder",Q5t="org.eclipse.elk.alg.spore.p3execution",J5t="Invalid index: ",t4t="org.eclipse.elk.core.alg",e4t={331:1},n4t={288:1},i4t="Make sure its type is registered with the ",r4t=" utility class.",o4t="true",a4t="false",s4t="Couldn't clone property '",c4t=.05,l4t="org.eclipse.elk.core.options",u4t=1.2999999523162842,h4t="org.eclipse.elk.box",d4t="org.eclipse.elk.box.packingMode",f4t="org.eclipse.elk.algorithm",g4t="org.eclipse.elk.resolvedAlgorithm",p4t="org.eclipse.elk.bendPoints",m4t="org.eclipse.elk.labelManager",b4t="org.eclipse.elk.scaleFactor",w4t="org.eclipse.elk.animate",k4t="org.eclipse.elk.animTimeFactor",v4t="org.eclipse.elk.layoutAncestors",y4t="org.eclipse.elk.maxAnimTime",_4t="org.eclipse.elk.minAnimTime",C4t="org.eclipse.elk.progressBar",A4t="org.eclipse.elk.validateGraph",x4t="org.eclipse.elk.validateOptions",E4t="org.eclipse.elk.zoomToFit",T4t="org.eclipse.elk.font.name",S4t="org.eclipse.elk.font.size",D4t="org.eclipse.elk.edge.type",I4t="partitioning",B4t="nodeLabels",M4t="portAlignment",P4t="nodeSize",L4t="port",O4t="portLabels",N4t="insideSelfLoops",R4t="org.eclipse.elk.fixed",F4t="org.eclipse.elk.random",j4t="port must have a parent node to calculate the port side",$4t="The edge needs to have exactly one edge section. Found: ",z4t="org.eclipse.elk.core.util.adapters",V4t="org.eclipse.emf.ecore",H4t="org.eclipse.elk.graph",q4t="EMapPropertyHolder",U4t="ElkBendPoint",G4t="ElkGraphElement",W4t="ElkConnectableShape",K4t="ElkEdge",Y4t="ElkEdgeSection",X4t="EModelElement",Z4t="ENamedElement",Q4t="ElkLabel",J4t="ElkNode",t6t="ElkPort",e6t={92:1,90:1},n6t="org.eclipse.emf.common.notify.impl",i6t="The feature '",r6t="' is not a valid changeable feature",o6t="Expecting null",a6t="' is not a valid feature",s6t="The feature ID",c6t=" is not a valid feature ID",l6t=32768,u6t={105:1,92:1,90:1,56:1,49:1,97:1},h6t="org.eclipse.emf.ecore.impl",d6t="org.eclipse.elk.graph.impl",f6t="Recursive containment not allowed for ",g6t="The datatype '",p6t="' is not a valid classifier",m6t="The value '",b6t={190:1,3:1,4:1},w6t="The class '",k6t="http://www.eclipse.org/elk/ElkGraph",v6t=1024,y6t="property",_6t="value",C6t="source",A6t="properties",x6t="identifier",E6t="height",T6t="width",S6t="parent",D6t="text",I6t="children",B6t="hierarchical",M6t="sources",P6t="targets",L6t="sections",O6t="bendPoints",N6t="outgoingShape",R6t="incomingShape",F6t="outgoingSections",j6t="incomingSections",$6t="org.eclipse.emf.common.util",z6t="Severe implementation error in the Json to ElkGraph importer.",V6t="id",H6t="org.eclipse.elk.graph.json",q6t="Unhandled parameter types: ",U6t="startPoint",G6t="An edge must have at least one source and one target (edge id: '",W6t="').",K6t="Referenced edge section does not exist: ",Y6t=" (edge id: '",X6t="target",Z6t="sourcePoint",Q6t="targetPoint",J6t="group",t7t="name",e7t="connectableShape cannot be null",n7t="edge cannot be null",i7t="Passed edge is not 'simple'.",r7t="org.eclipse.elk.graph.util",o7t="The 'no duplicates' constraint is violated",a7t="targetIndex=",s7t=", size=",c7t="sourceIndex=",l7t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},u7t={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},h7t="logging",d7t="measureExecutionTime",f7t="parser.parse.1",g7t="parser.parse.2",p7t="parser.next.1",m7t="parser.next.2",b7t="parser.next.3",w7t="parser.next.4",k7t="parser.factor.1",v7t="parser.factor.2",y7t="parser.factor.3",_7t="parser.factor.4",C7t="parser.factor.5",A7t="parser.factor.6",x7t="parser.atom.1",E7t="parser.atom.2",T7t="parser.atom.3",S7t="parser.atom.4",D7t="parser.atom.5",I7t="parser.cc.1",B7t="parser.cc.2",M7t="parser.cc.3",P7t="parser.cc.5",L7t="parser.cc.6",O7t="parser.cc.7",N7t="parser.cc.8",R7t="parser.ope.1",F7t="parser.ope.2",j7t="parser.ope.3",$7t="parser.descape.1",z7t="parser.descape.2",V7t="parser.descape.3",H7t="parser.descape.4",q7t="parser.descape.5",U7t="parser.process.1",G7t="parser.quantifier.1",W7t="parser.quantifier.2",K7t="parser.quantifier.3",Y7t="parser.quantifier.4",X7t="parser.quantifier.5",Z7t="org.eclipse.emf.common.notify",Q7t={415:1,672:1},J7t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},t8t={366:1,143:1},e8t="index=",n8t={3:1,4:1,5:1,126:1},i8t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},r8t={3:1,6:1,4:1,5:1,192:1},o8t={3:1,4:1,5:1,165:1,367:1},a8t=";/?:@&=+$,",s8t="invalid authority: ",c8t="EAnnotation",l8t="ETypedElement",u8t="EStructuralFeature",h8t="EAttribute",d8t="EClassifier",f8t="EEnumLiteral",g8t="EGenericType",p8t="EOperation",m8t="EParameter",b8t="EReference",w8t="ETypeParameter",k8t="org.eclipse.emf.ecore.util",v8t={76:1},y8t={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},_8t="org.eclipse.emf.ecore.util.FeatureMap$Entry",C8t=8192,A8t=2048,x8t="byte",E8t="char",T8t="double",S8t="float",D8t="int",I8t="long",B8t="short",M8t="java.lang.Object",P8t={3:1,4:1,5:1,247:1},L8t={3:1,4:1,5:1,673:1},O8t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},N8t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},R8t="mixed",F8t="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",j8t="kind",$8t={3:1,4:1,5:1,674:1},z8t={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},V8t={20:1,28:1,52:1,14:1,15:1,58:1,69:1},H8t={47:1,125:1,279:1},q8t={72:1,332:1},U8t="The value of type '",G8t="' must be of type '",W8t=1316,K8t="http://www.eclipse.org/emf/2002/Ecore",Y8t=-32768,X8t="constraints",Z8t="baseType",Q8t="getEStructuralFeature",J8t="getFeatureID",t9t="feature",e9t="getOperationID",n9t="operation",i9t="defaultValue",r9t="eTypeParameters",o9t="isInstance",a9t="getEEnumLiteral",s9t="eContainingClass",c9t={55:1},l9t={3:1,4:1,5:1,119:1},u9t="org.eclipse.emf.ecore.resource",h9t={92:1,90:1,591:1,1935:1},d9t="org.eclipse.emf.ecore.resource.impl",f9t="unspecified",g9t="simple",p9t="attribute",m9t="attributeWildcard",b9t="element",w9t="elementWildcard",k9t="collapse",v9t="itemType",y9t="namespace",_9t="##targetNamespace",C9t="whiteSpace",A9t="wildcards",x9t="http://www.eclipse.org/emf/2003/XMLType",E9t="##any",T9t="uninitialized",S9t="The multiplicity constraint is violated",D9t="org.eclipse.emf.ecore.xml.type",I9t="ProcessingInstruction",B9t="SimpleAnyType",M9t="XMLTypeDocumentRoot",P9t="org.eclipse.emf.ecore.xml.type.impl",L9t="INF",O9t="processing",N9t="ENTITIES_._base",R9t="minLength",F9t="ENTITY",j9t="NCName",$9t="IDREFS_._base",z9t="integer",V9t="token",H9t="pattern",q9t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",U9t="\\i\\c*",G9t="[\\i-[:]][\\c-[:]]*",W9t="nonPositiveInteger",K9t="maxInclusive",Y9t="NMTOKEN",X9t="NMTOKENS_._base",Z9t="nonNegativeInteger",Q9t="minInclusive",J9t="normalizedString",tte="unsignedByte",ete="unsignedInt",nte="18446744073709551615",ite="unsignedShort",rte="processingInstruction",ote="org.eclipse.emf.ecore.xml.type.internal",ate=1114111,ste="Internal Error: shorthands: \\u",cte="xml:isDigit",lte="xml:isWord",ute="xml:isSpace",hte="xml:isNameChar",dte="xml:isInitialNameChar",fte="09٠٩۰۹୯௧௯໙༠༩",gte="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩↀↂ〡〩ぁゔァヺㄅㄬ一龥가힣",pte="Private Use",mte="ASSIGNED",bte="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀᄀᇿ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯﹐﹯ﹰ﻾\ufeff\ufeff＀￯",wte="UNASSIGNED",kte={3:1,117:1},vte="org.eclipse.emf.ecore.xml.type.util",yte={3:1,4:1,5:1,368:1},_te="org.eclipse.xtext.xbase.lib",Cte="Cannot add elements to a Range",Ate="Cannot set elements in a Range",xte="Cannot remove elements from a Range",Ete="locale",Tte="default",Ste="user.agent";i.goog=i.goog||{},i.goog.global=i.goog.global||i,Wxt(),fBt(1,null,{},r),AKt.Fb=function(t){return FI(this,t)},AKt.Gb=function(){return this.gm},AKt.Hb=function(){return xL(this)},AKt.Ib=function(){return Q_(tlt(this))+"@"+(Jct(this)>>>0).toString(16)},AKt.equals=function(t){return this.Fb(t)},AKt.hashCode=function(){return this.Hb()},AKt.toString=function(){return this.Ib()},fBt(290,1,{290:1,2026:1},mct),AKt.le=function(t){var e;return(e=new mct).i=4,e.c=t>1?gJ(this,t-1):this,e},AKt.me=function(){return yN(this),this.b},AKt.ne=function(){return Q_(this)},AKt.oe=function(){return yN(this),this.k},AKt.pe=function(){return!!(4&this.i)},AKt.qe=function(){return!!(1&this.i)},AKt.Ib=function(){return oet(this)},AKt.i=0;var Dte,Ite=mW(NKt,"Object",1),Bte=mW(NKt,"Class",290);fBt(1998,1,RKt),mW(FKt,"Optional",1998),fBt(1170,1998,RKt,o),AKt.Fb=function(t){return t===this},AKt.Hb=function(){return 2040732332},AKt.Ib=function(){return"Optional.absent()"},AKt.Jb=function(t){return wW(t),ev(),Dte},mW(FKt,"Absent",1170),fBt(628,1,{},by),mW(FKt,"Joiner",628);var Mte=hH(FKt,"Predicate");fBt(582,1,{169:1,582:1,3:1,45:1},jh),AKt.Mb=function(t){return Rct(this,t)},AKt.Lb=function(t){return Rct(this,t)},AKt.Fb=function(t){var e;return!!iP(t,582)&&(e=jz(t,582),PBt(this.a,e.a))},AKt.Hb=function(){return jct(this.a)+306654252},AKt.Ib=function(){return fTt(this.a)},mW(FKt,"Predicates/AndPredicate",582),fBt(408,1998,{408:1,3:1},$h),AKt.Fb=function(t){var e;return!!iP(t,408)&&(e=jz(t,408),Pht(this.a,e.a))},AKt.Hb=function(){return 1502476572+Jct(this.a)},AKt.Ib=function(){return HKt+this.a+")"},AKt.Jb=function(t){return new $h(GX(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},mW(FKt,"Present",408),fBt(198,1,UKt),AKt.Nb=function(t){lG(this,t)},AKt.Qb=function(){hy()},mW(GKt,"UnmodifiableIterator",198),fBt(1978,198,WKt),AKt.Qb=function(){hy()},AKt.Rb=function(t){throw $b(new pw)},AKt.Wb=function(t){throw $b(new pw)},mW(GKt,"UnmodifiableListIterator",1978),fBt(386,1978,WKt),AKt.Ob=function(){return this.c<this.d},AKt.Sb=function(){return this.c>0},AKt.Pb=function(){if(this.c>=this.d)throw $b(new ww);return this.Xb(this.c++)},AKt.Tb=function(){return this.c},AKt.Ub=function(){if(this.c<=0)throw $b(new ww);return this.Xb(--this.c)},AKt.Vb=function(){return this.c-1},AKt.c=0,AKt.d=0,mW(GKt,"AbstractIndexedListIterator",386),fBt(699,198,UKt),AKt.Ob=function(){return Qit(this)},AKt.Pb=function(){return x9(this)},AKt.e=1,mW(GKt,"AbstractIterator",699),fBt(1986,1,{224:1}),AKt.Zb=function(){return this.f||(this.f=this.ac())},AKt.Fb=function(t){return ylt(this,t)},AKt.Hb=function(){return Jct(this.Zb())},AKt.dc=function(){return 0==this.gc()},AKt.ec=function(){return gU(this)},AKt.Ib=function(){return $ft(this.Zb())},mW(GKt,"AbstractMultimap",1986),fBt(726,1986,KKt),AKt.$b=function(){fit(this)},AKt._b=function(t){return G_(this,t)},AKt.ac=function(){return new pA(this,this.c)},AKt.ic=function(t){return this.hc()},AKt.bc=function(){return new $P(this,this.c)},AKt.jc=function(){return this.mc(this.hc())},AKt.kc=function(){return new $k(this)},AKt.lc=function(){return VAt(this.c.vc().Nc(),new s,64,this.d)},AKt.cc=function(t){return c6(this,t)},AKt.fc=function(t){return Put(this,t)},AKt.gc=function(){return this.d},AKt.mc=function(t){return AX(),new $f(t)},AKt.nc=function(){return new jk(this)},AKt.oc=function(){return VAt(this.c.Cc().Nc(),new a,64,this.d)},AKt.pc=function(t,e){return new G6(this,t,e,null)},AKt.d=0,mW(GKt,"AbstractMapBasedMultimap",726),fBt(1631,726,KKt),AKt.hc=function(){return new X6(this.a)},AKt.jc=function(){return AX(),AX(),cne},AKt.cc=function(t){return jz(c6(this,t),15)},AKt.fc=function(t){return jz(Put(this,t),15)},AKt.Zb=function(){return SX(this)},AKt.Fb=function(t){return ylt(this,t)},AKt.qc=function(t){return jz(c6(this,t),15)},AKt.rc=function(t){return jz(Put(this,t),15)},AKt.mc=function(t){return nZ(jz(t,15))},AKt.pc=function(t,e){return e3(this,t,jz(e,15),null)},mW(GKt,"AbstractListMultimap",1631),fBt(732,1,YKt),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return this.c.Ob()||this.e.Ob()},AKt.Pb=function(){var t;return this.e.Ob()||(t=jz(this.c.Pb(),42),this.b=t.cd(),this.a=jz(t.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},AKt.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},mW(GKt,"AbstractMapBasedMultimap/Itr",732),fBt(1099,732,YKt,jk),AKt.sc=function(t,e){return e},mW(GKt,"AbstractMapBasedMultimap/1",1099),fBt(1100,1,{},a),AKt.Kb=function(t){return jz(t,14).Nc()},mW(GKt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),fBt(1101,732,YKt,$k),AKt.sc=function(t,e){return new mA(t,e)},mW(GKt,"AbstractMapBasedMultimap/2",1101);var Pte=hH(XKt,"Map");fBt(1967,1,ZKt),AKt.wc=function(t){Jot(this,t)},AKt.yc=function(t,e,n){return Qdt(this,t,e,n)},AKt.$b=function(){this.vc().$b()},AKt.tc=function(t){return Akt(this,t)},AKt._b=function(t){return!!jCt(this,t,!1)},AKt.uc=function(t){var e,n;for(e=this.vc().Kc();e.Ob();)if(n=jz(e.Pb(),42).dd(),VD(t)===VD(n)||null!=t&&Pht(t,n))return!0;return!1},AKt.Fb=function(t){var e,n,i;if(t===this)return!0;if(!iP(t,83))return!1;if(i=jz(t,83),this.gc()!=i.gc())return!1;for(n=i.vc().Kc();n.Ob();)if(e=jz(n.Pb(),42),!this.tc(e))return!1;return!0},AKt.xc=function(t){return zD(jCt(this,t,!1))},AKt.Hb=function(){return zst(this.vc())},AKt.dc=function(){return 0==this.gc()},AKt.ec=function(){return new Ef(this)},AKt.zc=function(t,e){throw $b(new Jv("Put not supported on this map"))},AKt.Ac=function(t){Cot(this,t)},AKt.Bc=function(t){return zD(jCt(this,t,!0))},AKt.gc=function(){return this.vc().gc()},AKt.Ib=function(){return JCt(this)},AKt.Cc=function(){return new Sf(this)},mW(XKt,"AbstractMap",1967),fBt(1987,1967,ZKt),AKt.bc=function(){return new AA(this)},AKt.vc=function(){return fU(this)},AKt.ec=function(){return this.g||(this.g=this.bc())},AKt.Cc=function(){return this.i||(this.i=new xA(this))},mW(GKt,"Maps/ViewCachingAbstractMap",1987),fBt(389,1987,ZKt,pA),AKt.xc=function(t){return vet(this,t)},AKt.Bc=function(t){return Qlt(this,t)},AKt.$b=function(){this.d==this.e.c?this.e.$b():EH(new SH(this))},AKt._b=function(t){return pht(this.d,t)},AKt.Ec=function(){return new qh(this)},AKt.Dc=function(){return this.Ec()},AKt.Fb=function(t){return this===t||Pht(this.d,t)},AKt.Hb=function(){return Jct(this.d)},AKt.ec=function(){return this.e.ec()},AKt.gc=function(){return this.d.gc()},AKt.Ib=function(){return $ft(this.d)},mW(GKt,"AbstractMapBasedMultimap/AsMap",389);var Lte=hH(NKt,"Iterable");fBt(28,1,QKt),AKt.Jc=function(t){t4(this,t)},AKt.Lc=function(){return this.Oc()},AKt.Nc=function(){return new d1(this,0)},AKt.Oc=function(){return new OH(null,this.Nc())},AKt.Fc=function(t){throw $b(new Jv("Add not supported on this collection"))},AKt.Gc=function(t){return jrt(this,t)},AKt.$b=function(){_Y(this)},AKt.Hc=function(t){return kgt(this,t,!1)},AKt.Ic=function(t){return sst(this,t)},AKt.dc=function(){return 0==this.gc()},AKt.Mc=function(t){return kgt(this,t,!0)},AKt.Pc=function(){return iU(this)},AKt.Qc=function(t){return _kt(this,t)},AKt.Ib=function(){return Mxt(this)},mW(XKt,"AbstractCollection",28);var Ote=hH(XKt,"Set");fBt(JKt,28,tYt),AKt.Nc=function(){return new d1(this,1)},AKt.Fb=function(t){return nmt(this,t)},AKt.Hb=function(){return zst(this)},mW(XKt,"AbstractSet",JKt),fBt(1970,JKt,tYt),mW(GKt,"Sets/ImprovedAbstractSet",1970),fBt(1971,1970,tYt),AKt.$b=function(){this.Rc().$b()},AKt.Hc=function(t){return npt(this,t)},AKt.dc=function(){return this.Rc().dc()},AKt.Mc=function(t){var e;return!!this.Hc(t)&&(e=jz(t,42),this.Rc().ec().Mc(e.cd()))},AKt.gc=function(){return this.Rc().gc()},mW(GKt,"Maps/EntrySet",1971),fBt(1097,1971,tYt,qh),AKt.Hc=function(t){return fht(this.a.d.vc(),t)},AKt.Kc=function(){return new SH(this.a)},AKt.Rc=function(){return this.a},AKt.Mc=function(t){var e;return!!fht(this.a.d.vc(),t)&&(e=jz(t,42),$4(this.a.e,e.cd()),!0)},AKt.Nc=function(){return Oz(this.a.d.vc().Nc(),new Uh(this.a))},mW(GKt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),fBt(1098,1,{},Uh),AKt.Kb=function(t){return e4(this.a,jz(t,42))},mW(GKt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),fBt(730,1,YKt,SH),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){var t;return t=jz(this.b.Pb(),42),this.a=jz(t.dd(),14),e4(this.c,t)},AKt.Ob=function(){return this.b.Ob()},AKt.Qb=function(){lat(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},mW(GKt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),fBt(532,1970,tYt,AA),AKt.$b=function(){this.b.$b()},AKt.Hc=function(t){return this.b._b(t)},AKt.Jc=function(t){wW(t),this.b.wc(new pd(t))},AKt.dc=function(){return this.b.dc()},AKt.Kc=function(){return new uv(this.b.vc().Kc())},AKt.Mc=function(t){return!!this.b._b(t)&&(this.b.Bc(t),!0)},AKt.gc=function(){return this.b.gc()},mW(GKt,"Maps/KeySet",532),fBt(318,532,tYt,$P),AKt.$b=function(){EH(new tA(this,this.b.vc().Kc()))},AKt.Ic=function(t){return this.b.ec().Ic(t)},AKt.Fb=function(t){return this===t||Pht(this.b.ec(),t)},AKt.Hb=function(){return Jct(this.b.ec())},AKt.Kc=function(){return new tA(this,this.b.vc().Kc())},AKt.Mc=function(t){var e,n;return n=0,(e=jz(this.b.Bc(t),14))&&(n=e.gc(),e.$b(),this.a.d-=n),n>0},AKt.Nc=function(){return this.b.ec().Nc()},mW(GKt,"AbstractMapBasedMultimap/KeySet",318),fBt(731,1,YKt,tA),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return this.c.Ob()},AKt.Pb=function(){return this.a=jz(this.c.Pb(),42),this.a.cd()},AKt.Qb=function(){var t;lat(!!this.a),t=jz(this.a.dd(),14),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},mW(GKt,"AbstractMapBasedMultimap/KeySet/1",731),fBt(491,389,{83:1,161:1},EN),AKt.bc=function(){return this.Sc()},AKt.ec=function(){return this.Tc()},AKt.Sc=function(){return new QC(this.c,this.Uc())},AKt.Tc=function(){return this.b||(this.b=this.Sc())},AKt.Uc=function(){return jz(this.d,161)},mW(GKt,"AbstractMapBasedMultimap/SortedAsMap",491),fBt(542,491,eYt,TN),AKt.bc=function(){return new JC(this.a,jz(jz(this.d,161),171))},AKt.Sc=function(){return new JC(this.a,jz(jz(this.d,161),171))},AKt.ec=function(){return jz(this.b||(this.b=new JC(this.a,jz(jz(this.d,161),171))),271)},AKt.Tc=function(){return jz(this.b||(this.b=new JC(this.a,jz(jz(this.d,161),171))),271)},AKt.Uc=function(){return jz(jz(this.d,161),171)},mW(GKt,"AbstractMapBasedMultimap/NavigableAsMap",542),fBt(490,318,nYt,QC),AKt.Nc=function(){return this.b.ec().Nc()},mW(GKt,"AbstractMapBasedMultimap/SortedKeySet",490),fBt(388,490,iYt,JC),mW(GKt,"AbstractMapBasedMultimap/NavigableKeySet",388),fBt(541,28,QKt,G6),AKt.Fc=function(t){var e,n;return qft(this),n=this.d.dc(),(e=this.d.Fc(t))&&(++this.f.d,n&&vR(this)),e},AKt.Gc=function(t){var e,n,i;return!t.dc()&&(qft(this),i=this.d.gc(),(e=this.d.Gc(t))&&(n=this.d.gc(),this.f.d+=n-i,0==i&&vR(this)),e)},AKt.$b=function(){var t;qft(this),0!=(t=this.d.gc())&&(this.d.$b(),this.f.d-=t,Iq(this))},AKt.Hc=function(t){return qft(this),this.d.Hc(t)},AKt.Ic=function(t){return qft(this),this.d.Ic(t)},AKt.Fb=function(t){return t===this||(qft(this),Pht(this.d,t))},AKt.Hb=function(){return qft(this),Jct(this.d)},AKt.Kc=function(){return qft(this),new Kz(this)},AKt.Mc=function(t){var e;return qft(this),(e=this.d.Mc(t))&&(--this.f.d,Iq(this)),e},AKt.gc=function(){return JD(this)},AKt.Nc=function(){return qft(this),this.d.Nc()},AKt.Ib=function(){return qft(this),$ft(this.d)},mW(GKt,"AbstractMapBasedMultimap/WrappedCollection",541);var Nte=hH(XKt,"List");fBt(728,541,{20:1,28:1,14:1,15:1},sU),AKt.ad=function(t){Frt(this,t)},AKt.Nc=function(){return qft(this),this.d.Nc()},AKt.Vc=function(t,e){var n;qft(this),n=this.d.dc(),jz(this.d,15).Vc(t,e),++this.a.d,n&&vR(this)},AKt.Wc=function(t,e){var n,i,r;return!e.dc()&&(qft(this),r=this.d.gc(),(n=jz(this.d,15).Wc(t,e))&&(i=this.d.gc(),this.a.d+=i-r,0==r&&vR(this)),n)},AKt.Xb=function(t){return qft(this),jz(this.d,15).Xb(t)},AKt.Xc=function(t){return qft(this),jz(this.d,15).Xc(t)},AKt.Yc=function(){return qft(this),new gM(this)},AKt.Zc=function(t){return qft(this),new gX(this,t)},AKt.$c=function(t){var e;return qft(this),e=jz(this.d,15).$c(t),--this.a.d,Iq(this),e},AKt._c=function(t,e){return qft(this),jz(this.d,15)._c(t,e)},AKt.bd=function(t,e){return qft(this),e3(this.a,this.e,jz(this.d,15).bd(t,e),this.b?this.b:this)},mW(GKt,"AbstractMapBasedMultimap/WrappedList",728),fBt(1096,728,{20:1,28:1,14:1,15:1,54:1},SO),mW(GKt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),fBt(620,1,YKt,Kz),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return CY(this),this.b.Ob()},AKt.Pb=function(){return CY(this),this.b.Pb()},AKt.Qb=function(){tL(this)},mW(GKt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),fBt(729,620,rYt,gM,gX),AKt.Qb=function(){tL(this)},AKt.Rb=function(t){var e;e=0==JD(this.a),(CY(this),jz(this.b,125)).Rb(t),++this.a.a.d,e&&vR(this.a)},AKt.Sb=function(){return(CY(this),jz(this.b,125)).Sb()},AKt.Tb=function(){return(CY(this),jz(this.b,125)).Tb()},AKt.Ub=function(){return(CY(this),jz(this.b,125)).Ub()},AKt.Vb=function(){return(CY(this),jz(this.b,125)).Vb()},AKt.Wb=function(t){(CY(this),jz(this.b,125)).Wb(t)},mW(GKt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),fBt(727,541,nYt,MN),AKt.Nc=function(){return qft(this),this.d.Nc()},mW(GKt,"AbstractMapBasedMultimap/WrappedSortedSet",727),fBt(1095,727,iYt,DB),mW(GKt,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),fBt(1094,541,tYt,PN),AKt.Nc=function(){return qft(this),this.d.Nc()},mW(GKt,"AbstractMapBasedMultimap/WrappedSet",1094),fBt(1103,1,{},s),AKt.Kb=function(t){return F6(jz(t,42))},mW(GKt,"AbstractMapBasedMultimap/lambda$1$Type",1103),fBt(1102,1,{},Gh),AKt.Kb=function(t){return new mA(this.a,t)},mW(GKt,"AbstractMapBasedMultimap/lambda$2$Type",1102);var Rte,Fte,jte,$te,zte=hH(XKt,"Map/Entry");fBt(345,1,oYt),AKt.Fb=function(t){var e;return!!iP(t,42)&&(e=jz(t,42),dK(this.cd(),e.cd())&&dK(this.dd(),e.dd()))},AKt.Hb=function(){var t,e;return t=this.cd(),e=this.dd(),(null==t?0:Jct(t))^(null==e?0:Jct(e))},AKt.ed=function(t){throw $b(new pw)},AKt.Ib=function(){return this.cd()+"="+this.dd()},mW(GKt,aYt,345),fBt(1988,28,QKt),AKt.$b=function(){this.fd().$b()},AKt.Hc=function(t){var e;return!!iP(t,42)&&(e=jz(t,42),$0(this.fd(),e.cd(),e.dd()))},AKt.Mc=function(t){var e;return!!iP(t,42)&&(e=jz(t,42),z0(this.fd(),e.cd(),e.dd()))},AKt.gc=function(){return this.fd().d},mW(GKt,"Multimaps/Entries",1988),fBt(733,1988,QKt,Wh),AKt.Kc=function(){return this.a.kc()},AKt.fd=function(){return this.a},AKt.Nc=function(){return this.a.lc()},mW(GKt,"AbstractMultimap/Entries",733),fBt(734,733,tYt,zk),AKt.Nc=function(){return this.a.lc()},AKt.Fb=function(t){return qEt(this,t)},AKt.Hb=function(){return $rt(this)},mW(GKt,"AbstractMultimap/EntrySet",734),fBt(735,28,QKt,Kh),AKt.$b=function(){this.a.$b()},AKt.Hc=function(t){return Slt(this.a,t)},AKt.Kc=function(){return this.a.nc()},AKt.gc=function(){return this.a.d},AKt.Nc=function(){return this.a.oc()},mW(GKt,"AbstractMultimap/Values",735),fBt(1989,28,{835:1,20:1,28:1,14:1}),AKt.Jc=function(t){wW(t),yY(this).Jc(new gd(t))},AKt.Nc=function(){var t;return VAt(t=yY(this).Nc(),new v,64|1296&t.qd(),this.a.d)},AKt.Fc=function(t){return dy(),!0},AKt.Gc=function(t){return wW(this),wW(t),iP(t,543)?u2(jz(t,835)):!t.dc()&&ltt(this,t.Kc())},AKt.Hc=function(t){var e;return((e=jz(hht(SX(this.a),t),14))?e.gc():0)>0},AKt.Fb=function(t){return lMt(this,t)},AKt.Hb=function(){return Jct(yY(this))},AKt.dc=function(){return yY(this).dc()},AKt.Mc=function(t){return _Dt(this,t,1)>0},AKt.Ib=function(){return $ft(yY(this))},mW(GKt,"AbstractMultiset",1989),fBt(1991,1970,tYt),AKt.$b=function(){fit(this.a.a)},AKt.Hc=function(t){var e;return!(!iP(t,492)||(e=jz(t,416),jz(e.a.dd(),14).gc()<=0||i1(this.a,e.a.cd())!=jz(e.a.dd(),14).gc()))},AKt.Mc=function(t){var e,n,i;return!(!iP(t,492)||(e=(n=jz(t,416)).a.cd(),0==(i=jz(n.a.dd(),14).gc())))&&CDt(this.a,e,i)},mW(GKt,"Multisets/EntrySet",1991),fBt(1109,1991,tYt,Yh),AKt.Kc=function(){return new dv(fU(SX(this.a.a)).Kc())},AKt.gc=function(){return SX(this.a.a).gc()},mW(GKt,"AbstractMultiset/EntrySet",1109),fBt(619,726,KKt),AKt.hc=function(){return this.gd()},AKt.jc=function(){return this.hd()},AKt.cc=function(t){return this.jd(t)},AKt.fc=function(t){return this.kd(t)},AKt.Zb=function(){return this.f||(this.f=this.ac())},AKt.hd=function(){return AX(),AX(),une},AKt.Fb=function(t){return ylt(this,t)},AKt.jd=function(t){return jz(c6(this,t),21)},AKt.kd=function(t){return jz(Put(this,t),21)},AKt.mc=function(t){return AX(),new Dy(jz(t,21))},AKt.pc=function(t,e){return new PN(this,t,jz(e,21))},mW(GKt,"AbstractSetMultimap",619),fBt(1657,619,KKt),AKt.hc=function(){return new fC(this.b)},AKt.gd=function(){return new fC(this.b)},AKt.jc=function(){return TW(new fC(this.b))},AKt.hd=function(){return TW(new fC(this.b))},AKt.cc=function(t){return jz(jz(c6(this,t),21),84)},AKt.jd=function(t){return jz(jz(c6(this,t),21),84)},AKt.fc=function(t){return jz(jz(Put(this,t),21),84)},AKt.kd=function(t){return jz(jz(Put(this,t),21),84)},AKt.mc=function(t){return iP(t,271)?TW(jz(t,271)):(AX(),new fL(jz(t,84)))},AKt.Zb=function(){return this.f||(this.f=iP(this.c,171)?new TN(this,jz(this.c,171)):iP(this.c,161)?new EN(this,jz(this.c,161)):new pA(this,this.c))},AKt.pc=function(t,e){return iP(e,271)?new DB(this,t,jz(e,271)):new MN(this,t,jz(e,84))},mW(GKt,"AbstractSortedSetMultimap",1657),fBt(1658,1657,KKt),AKt.Zb=function(){return jz(jz(this.f||(this.f=iP(this.c,171)?new TN(this,jz(this.c,171)):iP(this.c,161)?new EN(this,jz(this.c,161)):new pA(this,this.c)),161),171)},AKt.ec=function(){return jz(jz(this.i||(this.i=iP(this.c,171)?new JC(this,jz(this.c,171)):iP(this.c,161)?new QC(this,jz(this.c,161)):new $P(this,this.c)),84),271)},AKt.bc=function(){return iP(this.c,171)?new JC(this,jz(this.c,171)):iP(this.c,161)?new QC(this,jz(this.c,161)):new $P(this,this.c)},mW(GKt,"AbstractSortedKeySortedSetMultimap",1658),fBt(2010,1,{1947:1}),AKt.Fb=function(t){return T_t(this,t)},AKt.Hb=function(){return zst(this.g||(this.g=new Xh(this)))},AKt.Ib=function(){return JCt(this.f||(this.f=new qP(this)))},mW(GKt,"AbstractTable",2010),fBt(665,JKt,tYt,Xh),AKt.$b=function(){fy()},AKt.Hc=function(t){var e,n;return!!iP(t,468)&&(e=jz(t,682),!!(n=jz(hht(vW(this.a),GD(e.c.e,e.b)),83))&&fht(n.vc(),new mA(GD(e.c.c,e.a),q6(e.c,e.b,e.a))))},AKt.Kc=function(){return ZX(this.a)},AKt.Mc=function(t){var e,n;return!!iP(t,468)&&(e=jz(t,682),!!(n=jz(hht(vW(this.a),GD(e.c.e,e.b)),83))&&ght(n.vc(),new mA(GD(e.c.c,e.a),q6(e.c,e.b,e.a))))},AKt.gc=function(){return HH(this.a)},AKt.Nc=function(){return x2(this.a)},mW(GKt,"AbstractTable/CellSet",665),fBt(1928,28,QKt,Zh),AKt.$b=function(){fy()},AKt.Hc=function(t){return lAt(this.a,t)},AKt.Kc=function(){return QX(this.a)},AKt.gc=function(){return HH(this.a)},AKt.Nc=function(){return Y0(this.a)},mW(GKt,"AbstractTable/Values",1928),fBt(1632,1631,KKt),mW(GKt,"ArrayListMultimapGwtSerializationDependencies",1632),fBt(513,1632,KKt,ay,a1),AKt.hc=function(){return new X6(this.a)},AKt.a=0,mW(GKt,"ArrayListMultimap",513),fBt(664,2010,{664:1,1947:1,3:1},bIt),mW(GKt,"ArrayTable",664),fBt(1924,386,WKt,zP),AKt.Xb=function(t){return new pct(this.a,t)},mW(GKt,"ArrayTable/1",1924),fBt(1925,1,{},zh),AKt.ld=function(t){return new pct(this.a,t)},mW(GKt,"ArrayTable/1methodref$getCell$Type",1925),fBt(2011,1,{682:1}),AKt.Fb=function(t){var e;return t===this||!!iP(t,468)&&(e=jz(t,682),dK(GD(this.c.e,this.b),GD(e.c.e,e.b))&&dK(GD(this.c.c,this.a),GD(e.c.c,e.a))&&dK(q6(this.c,this.b,this.a),q6(e.c,e.b,e.a)))},AKt.Hb=function(){return uut(Est(Vy(Ite,1),zKt,1,5,[GD(this.c.e,this.b),GD(this.c.c,this.a),q6(this.c,this.b,this.a)]))},AKt.Ib=function(){return"("+GD(this.c.e,this.b)+","+GD(this.c.c,this.a)+")="+q6(this.c,this.b,this.a)},mW(GKt,"Tables/AbstractCell",2011),fBt(468,2011,{468:1,682:1},pct),AKt.a=0,AKt.b=0,AKt.d=0,mW(GKt,"ArrayTable/2",468),fBt(1927,1,{},Vh),AKt.ld=function(t){return Y8(this.a,t)},mW(GKt,"ArrayTable/2methodref$getValue$Type",1927),fBt(1926,386,WKt,VP),AKt.Xb=function(t){return Y8(this.a,t)},mW(GKt,"ArrayTable/3",1926),fBt(1979,1967,ZKt),AKt.$b=function(){EH(this.kc())},AKt.vc=function(){return new md(this)},AKt.lc=function(){return new EY(this.kc(),this.gc())},mW(GKt,"Maps/IteratorBasedAbstractMap",1979),fBt(828,1979,ZKt),AKt.$b=function(){throw $b(new pw)},AKt._b=function(t){return Y_(this.c,t)},AKt.kc=function(){return new HP(this,this.c.b.c.gc())},AKt.lc=function(){return wH(this.c.b.c.gc(),16,new Hh(this))},AKt.xc=function(t){var e;return(e=jz(qF(this.c,t),19))?this.nd(e.a):null},AKt.dc=function(){return this.c.b.c.dc()},AKt.ec=function(){return hU(this.c)},AKt.zc=function(t,e){var n;if(!(n=jz(qF(this.c,t),19)))throw $b(new Rv(this.md()+" "+t+" not in "+hU(this.c)));return this.od(n.a,e)},AKt.Bc=function(t){throw $b(new pw)},AKt.gc=function(){return this.c.b.c.gc()},mW(GKt,"ArrayTable/ArrayMap",828),fBt(1923,1,{},Hh),AKt.ld=function(t){return SW(this.a,t)},mW(GKt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1923),fBt(1921,345,oYt,sA),AKt.cd=function(){return YP(this.a,this.b)},AKt.dd=function(){return this.a.nd(this.b)},AKt.ed=function(t){return this.a.od(this.b,t)},AKt.b=0,mW(GKt,"ArrayTable/ArrayMap/1",1921),fBt(1922,386,WKt,HP),AKt.Xb=function(t){return SW(this.a,t)},mW(GKt,"ArrayTable/ArrayMap/2",1922),fBt(1920,828,ZKt,iG),AKt.md=function(){return"Column"},AKt.nd=function(t){return q6(this.b,this.a,t)},AKt.od=function(t,e){return xst(this.b,this.a,t,e)},AKt.a=0,mW(GKt,"ArrayTable/Row",1920),fBt(829,828,ZKt,qP),AKt.nd=function(t){return new iG(this.a,t)},AKt.zc=function(t,e){return jz(e,83),gy()},AKt.od=function(t,e){return jz(e,83),py()},AKt.md=function(){return"Row"},mW(GKt,"ArrayTable/RowMap",829),fBt(1120,1,uYt,cA),AKt.qd=function(){return-262&this.a.qd()},AKt.rd=function(){return this.a.rd()},AKt.Nb=function(t){this.a.Nb(new iA(t,this.b))},AKt.sd=function(t){return this.a.sd(new nA(t,this.b))},mW(GKt,"CollectSpliterators/1",1120),fBt(1121,1,hYt,nA),AKt.td=function(t){this.a.td(this.b.Kb(t))},mW(GKt,"CollectSpliterators/1/lambda$0$Type",1121),fBt(1122,1,hYt,iA),AKt.td=function(t){this.a.td(this.b.Kb(t))},mW(GKt,"CollectSpliterators/1/lambda$1$Type",1122),fBt(1123,1,uYt,z2),AKt.qd=function(){return this.a},AKt.rd=function(){return this.d&&(this.b=_M(this.b,this.d.rd())),_M(this.b,0)},AKt.Nb=function(t){this.d&&(this.d.Nb(t),this.d=null),this.c.Nb(new eA(this.e,t)),this.b=0},AKt.sd=function(t){for(;;){if(this.d&&this.d.sd(t))return XD(this.b,dYt)&&(this.b=nft(this.b,1)),!0;if(this.d=null,!this.c.sd(new rA(this,this.e)))return!1}},AKt.a=0,AKt.b=0,mW(GKt,"CollectSpliterators/1FlatMapSpliterator",1123),fBt(1124,1,hYt,rA),AKt.td=function(t){fF(this.a,this.b,t)},mW(GKt,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1124),fBt(1125,1,hYt,eA),AKt.td=function(t){aP(this.b,this.a,t)},mW(GKt,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1125),fBt(1117,1,uYt,dF),AKt.qd=function(){return 16464|this.b},AKt.rd=function(){return this.a.rd()},AKt.Nb=function(t){this.a.xe(new aA(t,this.c))},AKt.sd=function(t){return this.a.ye(new oA(t,this.c))},AKt.b=0,mW(GKt,"CollectSpliterators/1WithCharacteristics",1117),fBt(1118,1,fYt,oA),AKt.ud=function(t){this.a.td(this.b.ld(t))},mW(GKt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1118),fBt(1119,1,fYt,aA),AKt.ud=function(t){this.a.td(this.b.ld(t))},mW(GKt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1119),fBt(245,1,gYt),AKt.wd=function(t){return this.vd(jz(t,245))},AKt.vd=function(t){var e;return t==(Jk(),Fte)?1:t==(tv(),Rte)?-1:(QV(),0!=(e=Pot(this.a,t.a))?e:iP(this,519)==iP(t,519)?0:iP(this,519)?1:-1)},AKt.zd=function(){return this.a},AKt.Fb=function(t){return Lpt(this,t)},mW(GKt,"Cut",245),fBt(1761,245,gYt,My),AKt.vd=function(t){return t==this?0:1},AKt.xd=function(t){throw $b(new cw)},AKt.yd=function(t){t.a+="+∞)"},AKt.zd=function(){throw $b(new Fv(pYt))},AKt.Hb=function(){return IA(),ewt(this)},AKt.Ad=function(t){return!1},AKt.Ib=function(){return"+∞"},mW(GKt,"Cut/AboveAll",1761),fBt(519,245,{245:1,519:1,3:1,35:1},eL),AKt.xd=function(t){oI((t.a+="(",t),this.a)},AKt.yd=function(t){PW(oI(t,this.a),93)},AKt.Hb=function(){return~Jct(this.a)},AKt.Ad=function(t){return QV(),Pot(this.a,t)<0},AKt.Ib=function(){return"/"+this.a+"\\"},mW(GKt,"Cut/AboveValue",519),fBt(1760,245,gYt,Py),AKt.vd=function(t){return t==this?0:-1},AKt.xd=function(t){t.a+="(-∞"},AKt.yd=function(t){throw $b(new cw)},AKt.zd=function(){throw $b(new Fv(pYt))},AKt.Hb=function(){return IA(),ewt(this)},AKt.Ad=function(t){return!0},AKt.Ib=function(){return"-∞"},mW(GKt,"Cut/BelowAll",1760),fBt(1762,245,gYt,nL),AKt.xd=function(t){oI((t.a+="[",t),this.a)},AKt.yd=function(t){PW(oI(t,this.a),41)},AKt.Hb=function(){return Jct(this.a)},AKt.Ad=function(t){return QV(),Pot(this.a,t)<=0},AKt.Ib=function(){return"\\"+this.a+"/"},mW(GKt,"Cut/BelowValue",1762),fBt(537,1,mYt),AKt.Jc=function(t){t4(this,t)},AKt.Ib=function(){return zdt(jz(GX(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},mW(GKt,"FluentIterable",537),fBt(433,537,mYt,SI),AKt.Kc=function(){return new aU(ZP(this.a.Kc(),new u))},mW(GKt,"FluentIterable/2",433),fBt(1046,537,mYt,DI),AKt.Kc=function(){return MG(this)},mW(GKt,"FluentIterable/3",1046),fBt(708,386,WKt,GP),AKt.Xb=function(t){return this.a[t].Kc()},mW(GKt,"FluentIterable/3/1",708),fBt(1972,1,{}),AKt.Ib=function(){return $ft(this.Bd().b)},mW(GKt,"ForwardingObject",1972),fBt(1973,1972,bYt),AKt.Bd=function(){return this.Cd()},AKt.Jc=function(t){t4(this,t)},AKt.Lc=function(){return this.Oc()},AKt.Nc=function(){return new d1(this,0)},AKt.Oc=function(){return new OH(null,this.Nc())},AKt.Fc=function(t){return this.Cd(),aC()},AKt.Gc=function(t){return this.Cd(),sC()},AKt.$b=function(){this.Cd(),cC()},AKt.Hc=function(t){return this.Cd().Hc(t)},AKt.Ic=function(t){return this.Cd().Ic(t)},AKt.dc=function(){return this.Cd().b.dc()},AKt.Kc=function(){return this.Cd().Kc()},AKt.Mc=function(t){return this.Cd(),lC()},AKt.gc=function(){return this.Cd().b.gc()},AKt.Pc=function(){return this.Cd().Pc()},AKt.Qc=function(t){return this.Cd().Qc(t)},mW(GKt,"ForwardingCollection",1973),fBt(1980,28,wYt),AKt.Kc=function(){return this.Ed()},AKt.Fc=function(t){throw $b(new pw)},AKt.Gc=function(t){throw $b(new pw)},AKt.$b=function(){throw $b(new pw)},AKt.Hc=function(t){return null!=t&&kgt(this,t,!1)},AKt.Dd=function(){switch(this.gc()){case 0:return GW(),GW(),jte;case 1:return GW(),new xH(wW(this.Ed().Pb()));default:return new rG(this,this.Pc())}},AKt.Mc=function(t){throw $b(new pw)},mW(GKt,"ImmutableCollection",1980),fBt(712,1980,wYt,nw),AKt.Kc=function(){return B8(this.a.Kc())},AKt.Hc=function(t){return null!=t&&this.a.Hc(t)},AKt.Ic=function(t){return this.a.Ic(t)},AKt.dc=function(){return this.a.dc()},AKt.Ed=function(){return B8(this.a.Kc())},AKt.gc=function(){return this.a.gc()},AKt.Pc=function(){return this.a.Pc()},AKt.Qc=function(t){return this.a.Qc(t)},AKt.Ib=function(){return $ft(this.a)},mW(GKt,"ForwardingImmutableCollection",712),fBt(152,1980,kYt),AKt.Kc=function(){return this.Ed()},AKt.Yc=function(){return this.Fd(0)},AKt.Zc=function(t){return this.Fd(t)},AKt.ad=function(t){Frt(this,t)},AKt.Nc=function(){return new d1(this,16)},AKt.bd=function(t,e){return this.Gd(t,e)},AKt.Vc=function(t,e){throw $b(new pw)},AKt.Wc=function(t,e){throw $b(new pw)},AKt.Fb=function(t){return VBt(this,t)},AKt.Hb=function(){return Sat(this)},AKt.Xc=function(t){return null==t?-1:Ckt(this,t)},AKt.Ed=function(){return this.Fd(0)},AKt.Fd=function(t){return eO(this,t)},AKt.$c=function(t){throw $b(new pw)},AKt._c=function(t,e){throw $b(new pw)},AKt.Gd=function(t,e){return cht(new s1(new TA(this),t,e))},mW(GKt,"ImmutableList",152),fBt(2006,152,kYt),AKt.Kc=function(){return B8(this.Hd().Kc())},AKt.bd=function(t,e){return cht(this.Hd().bd(t,e))},AKt.Hc=function(t){return null!=t&&this.Hd().Hc(t)},AKt.Ic=function(t){return this.Hd().Ic(t)},AKt.Fb=function(t){return Pht(this.Hd(),t)},AKt.Xb=function(t){return GD(this,t)},AKt.Hb=function(){return Jct(this.Hd())},AKt.Xc=function(t){return this.Hd().Xc(t)},AKt.dc=function(){return this.Hd().dc()},AKt.Ed=function(){return B8(this.Hd().Kc())},AKt.gc=function(){return this.Hd().gc()},AKt.Gd=function(t,e){return cht(this.Hd().bd(t,e))},AKt.Pc=function(){return this.Hd().Qc(P7(Ite,zKt,1,this.Hd().gc(),5,1))},AKt.Qc=function(t){return this.Hd().Qc(t)},AKt.Ib=function(){return $ft(this.Hd())},mW(GKt,"ForwardingImmutableList",2006),fBt(714,1,yYt),AKt.vc=function(){return uU(this)},AKt.wc=function(t){Jot(this,t)},AKt.ec=function(){return hU(this)},AKt.yc=function(t,e,n){return Qdt(this,t,e,n)},AKt.Cc=function(){return this.Ld()},AKt.$b=function(){throw $b(new pw)},AKt._b=function(t){return null!=this.xc(t)},AKt.uc=function(t){return this.Ld().Hc(t)},AKt.Jd=function(){return new iw(this)},AKt.Kd=function(){return new rw(this)},AKt.Fb=function(t){return Blt(this,t)},AKt.Hb=function(){return uU(this).Hb()},AKt.dc=function(){return 0==this.gc()},AKt.zc=function(t,e){return my()},AKt.Bc=function(t){throw $b(new pw)},AKt.Ib=function(){return uEt(this)},AKt.Ld=function(){return this.e?this.e:this.e=this.Kd()},AKt.c=null,AKt.d=null,AKt.e=null,mW(GKt,"ImmutableMap",714),fBt(715,714,yYt),AKt._b=function(t){return Y_(this,t)},AKt.uc=function(t){return RA(this.b,t)},AKt.Id=function(){return lht(new Jh(this))},AKt.Jd=function(){return lht(eY(this.b))},AKt.Kd=function(){return sj(),new nw(JK(this.b))},AKt.Fb=function(t){return jA(this.b,t)},AKt.xc=function(t){return qF(this,t)},AKt.Hb=function(){return Jct(this.b.c)},AKt.dc=function(){return this.b.c.dc()},AKt.gc=function(){return this.b.c.gc()},AKt.Ib=function(){return $ft(this.b.c)},mW(GKt,"ForwardingImmutableMap",715),fBt(1974,1973,_Yt),AKt.Bd=function(){return this.Md()},AKt.Cd=function(){return this.Md()},AKt.Nc=function(){return new d1(this,1)},AKt.Fb=function(t){return t===this||this.Md().Fb(t)},AKt.Hb=function(){return this.Md().Hb()},mW(GKt,"ForwardingSet",1974),fBt(1069,1974,_Yt,Jh),AKt.Bd=function(){return tY(this.a.b)},AKt.Cd=function(){return tY(this.a.b)},AKt.Hc=function(t){if(iP(t,42)&&null==jz(t,42).cd())return!1;try{return NA(tY(this.a.b),t)}catch(t){if(iP(t=hst(t),205))return!1;throw $b(t)}},AKt.Md=function(){return tY(this.a.b)},AKt.Qc=function(t){var e;return e=TZ(tY(this.a.b),t),tY(this.a.b).b.gc()<e.length&&IW(e,tY(this.a.b).b.gc(),null),e},mW(GKt,"ForwardingImmutableMap/1",1069),fBt(1981,1980,CYt),AKt.Kc=function(){return this.Ed()},AKt.Nc=function(){return new d1(this,1)},AKt.Fb=function(t){return qEt(this,t)},AKt.Hb=function(){return $rt(this)},mW(GKt,"ImmutableSet",1981),fBt(703,1981,CYt),AKt.Kc=function(){return B8(new zf(this.a.b.Kc()))},AKt.Hc=function(t){return null!=t&&PA(this.a,t)},AKt.Ic=function(t){return LA(this.a,t)},AKt.Hb=function(){return Jct(this.a.b)},AKt.dc=function(){return this.a.b.dc()},AKt.Ed=function(){return B8(new zf(this.a.b.Kc()))},AKt.gc=function(){return this.a.b.gc()},AKt.Pc=function(){return this.a.b.Pc()},AKt.Qc=function(t){return OA(this.a,t)},AKt.Ib=function(){return $ft(this.a.b)},mW(GKt,"ForwardingImmutableSet",703),fBt(1975,1974,AYt),AKt.Bd=function(){return this.b},AKt.Cd=function(){return this.b},AKt.Md=function(){return this.b},AKt.Nc=function(){return new dE(this)},mW(GKt,"ForwardingSortedSet",1975),fBt(533,1979,yYt,Iwt),AKt.Ac=function(t){Cot(this,t)},AKt.Cc=function(){return new pM(this.d||(this.d=new td(this)))},AKt.$b=function(){f4(this)},AKt._b=function(t){return!!Zrt(this,t,fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15))))},AKt.uc=function(t){return Met(this,t)},AKt.kc=function(){return new WP(this,this)},AKt.wc=function(t){jQ(this,t)},AKt.xc=function(t){return cnt(this,t)},AKt.ec=function(){return new mM(this)},AKt.zc=function(t,e){return fFt(this,t,e)},AKt.Bc=function(t){var e;return(e=Zrt(this,t,fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15)))))?(MPt(this,e),e.e=null,e.c=null,e.i):null},AKt.gc=function(){return this.i},AKt.pd=function(){return new pM(this.d||(this.d=new td(this)))},AKt.f=0,AKt.g=0,AKt.i=0,mW(GKt,"HashBiMap",533),fBt(534,1,YKt),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return u3(this)},AKt.Pb=function(){var t;if(!u3(this))throw $b(new ww);return t=this.c,this.c=t.c,this.f=t,--this.d,this.Nd(t)},AKt.Qb=function(){if(this.e.g!=this.b)throw $b(new mw);lat(!!this.f),MPt(this.e,this.f),this.b=this.e.g,this.f=null},AKt.b=0,AKt.d=0,AKt.f=null,mW(GKt,"HashBiMap/Itr",534),fBt(1011,534,YKt,WP),AKt.Nd=function(t){return new hA(this,t)},mW(GKt,"HashBiMap/1",1011),fBt(1012,345,oYt,hA),AKt.cd=function(){return this.a.g},AKt.dd=function(){return this.a.i},AKt.ed=function(t){var e,n,i;return n=this.a.i,(i=fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15))))==this.a.f&&(VD(t)===VD(n)||null!=t&&Pht(t,n))?t:(kst(!Qrt(this.b.a,t,i),t),MPt(this.b.a,this.a),e=new zK(this.a.g,this.a.a,t,i),XSt(this.b.a,e,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=e),this.a=e,n)},mW(GKt,"HashBiMap/1/MapEntry",1012),fBt(238,345,{345:1,238:1,3:1,42:1},mA),AKt.cd=function(){return this.g},AKt.dd=function(){return this.i},AKt.ed=function(t){throw $b(new pw)},mW(GKt,"ImmutableEntry",238),fBt(317,238,{345:1,317:1,238:1,3:1,42:1},zK),AKt.a=0,AKt.f=0;var Vte,Hte=mW(GKt,"HashBiMap/BiEntry",317);fBt(610,1979,yYt,td),AKt.Ac=function(t){Cot(this,t)},AKt.Cc=function(){return new mM(this.a)},AKt.$b=function(){f4(this.a)},AKt._b=function(t){return Met(this.a,t)},AKt.kc=function(){return new KP(this,this.a)},AKt.wc=function(t){wW(t),jQ(this.a,new ed(t))},AKt.xc=function(t){return Uit(this,t)},AKt.ec=function(){return new pM(this)},AKt.zc=function(t,e){return Tjt(this.a,t,e,!1)},AKt.Bc=function(t){var e;return(e=Qrt(this.a,t,fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15)))))?(MPt(this.a,e),e.e=null,e.c=null,e.g):null},AKt.gc=function(){return this.a.i},AKt.pd=function(){return new mM(this.a)},mW(GKt,"HashBiMap/Inverse",610),fBt(1008,534,YKt,KP),AKt.Nd=function(t){return new dA(this,t)},mW(GKt,"HashBiMap/Inverse/1",1008),fBt(1009,345,oYt,dA),AKt.cd=function(){return this.a.i},AKt.dd=function(){return this.a.g},AKt.ed=function(t){var e,n,i;return i=this.a.g,(e=fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15))))==this.a.a&&(VD(t)===VD(i)||null!=t&&Pht(t,i))?t:(kst(!Zrt(this.b.a.a,t,e),t),MPt(this.b.a.a,this.a),n=new zK(t,e,this.a.i,this.a.f),this.a=n,XSt(this.b.a.a,n,null),this.b.b=this.b.a.a.g,i)},mW(GKt,"HashBiMap/Inverse/1/InverseEntry",1009),fBt(611,532,tYt,pM),AKt.Kc=function(){return new ov(this.a.a)},AKt.Mc=function(t){var e;return!!(e=Qrt(this.a.a,t,fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15)))))&&(MPt(this.a.a,e),!0)},mW(GKt,"HashBiMap/Inverse/InverseKeySet",611),fBt(1007,534,YKt,ov),AKt.Nd=function(t){return t.i},mW(GKt,"HashBiMap/Inverse/InverseKeySet/1",1007),fBt(1010,1,{},ed),AKt.Od=function(t,e){tw(this.a,t,e)},mW(GKt,"HashBiMap/Inverse/lambda$0$Type",1010),fBt(609,532,tYt,mM),AKt.Kc=function(){return new av(this.a)},AKt.Mc=function(t){var e;return!!(e=Zrt(this.a,t,fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15)))))&&(MPt(this.a,e),e.e=null,e.c=null,!0)},mW(GKt,"HashBiMap/KeySet",609),fBt(1006,534,YKt,av),AKt.Nd=function(t){return t.g},mW(GKt,"HashBiMap/KeySet/1",1006),fBt(1093,619,KKt),mW(GKt,"HashMultimapGwtSerializationDependencies",1093),fBt(265,1093,KKt,pQ),AKt.hc=function(){return new hC(tet(this.a))},AKt.gd=function(){return new hC(tet(this.a))},AKt.a=2,mW(GKt,"HashMultimap",265),fBt(1999,152,kYt),AKt.Hc=function(t){return this.Pd().Hc(t)},AKt.dc=function(){return this.Pd().dc()},AKt.gc=function(){return this.Pd().gc()},mW(GKt,"ImmutableAsList",1999),fBt(1931,715,yYt),AKt.Ld=function(){return sj(),new wy(this.a)},AKt.Cc=function(){return sj(),new wy(this.a)},AKt.pd=function(){return sj(),new wy(this.a)},mW(GKt,"ImmutableBiMap",1931),fBt(1977,1,{}),mW(GKt,"ImmutableCollection/Builder",1977),fBt(1022,703,CYt,sv),mW(GKt,"ImmutableEnumSet",1022),fBt(969,386,WKt,hF),AKt.Xb=function(t){return this.a.Xb(t)},mW(GKt,"ImmutableList/1",969),fBt(968,1977,{},sR),mW(GKt,"ImmutableList/Builder",968),fBt(614,198,UKt,nd),AKt.Ob=function(){return this.a.Ob()},AKt.Pb=function(){return jz(this.a.Pb(),42).cd()},mW(GKt,"ImmutableMap/1",614),fBt(1041,1,{},c),AKt.Kb=function(t){return jz(t,42).cd()},mW(GKt,"ImmutableMap/2methodref$getKey$Type",1041),fBt(1040,1,{},cR),mW(GKt,"ImmutableMap/Builder",1040),fBt(2e3,1981,CYt),AKt.Kc=function(){return new nd(uU(this.a).Ed())},AKt.Dd=function(){return new ow(this)},AKt.Jc=function(t){var e,n;for(wW(t),n=this.gc(),e=0;e<n;e++)t.td(jz(dU(uU(this.a)).Xb(e),42).cd())},AKt.Ed=function(){var t;return(t=this.c,t||(this.c=new ow(this))).Ed()},AKt.Nc=function(){return wH(this.gc(),1296,new rd(this))},mW(GKt,"IndexedImmutableSet",2e3),fBt(1180,2e3,CYt,iw),AKt.Kc=function(){return new nd(uU(this.a).Ed())},AKt.Hc=function(t){return this.a._b(t)},AKt.Jc=function(t){wW(t),Jot(this.a,new id(t))},AKt.Ed=function(){return new nd(uU(this.a).Ed())},AKt.gc=function(){return this.a.gc()},AKt.Nc=function(){return Oz(uU(this.a).Nc(),new c)},mW(GKt,"ImmutableMapKeySet",1180),fBt(1181,1,{},id),AKt.Od=function(t,e){sj(),this.a.td(t)},mW(GKt,"ImmutableMapKeySet/lambda$0$Type",1181),fBt(1178,1980,wYt,rw),AKt.Kc=function(){return new NV(this)},AKt.Hc=function(t){return null!=t&&E_t(new NV(this),t)},AKt.Ed=function(){return new NV(this)},AKt.gc=function(){return this.a.gc()},AKt.Nc=function(){return Oz(uU(this.a).Nc(),new l)},mW(GKt,"ImmutableMapValues",1178),fBt(1179,1,{},l),AKt.Kb=function(t){return jz(t,42).dd()},mW(GKt,"ImmutableMapValues/0methodref$getValue$Type",1179),fBt(626,198,UKt,NV),AKt.Ob=function(){return this.a.Ob()},AKt.Pb=function(){return jz(this.a.Pb(),42).dd()},mW(GKt,"ImmutableMapValues/1",626),fBt(1182,1,{},rd),AKt.ld=function(t){return $G(this.a,t)},mW(GKt,"IndexedImmutableSet/0methodref$get$Type",1182),fBt(752,1999,kYt,ow),AKt.Pd=function(){return this.a},AKt.Xb=function(t){return $G(this.a,t)},AKt.gc=function(){return this.a.a.gc()},mW(GKt,"IndexedImmutableSet/1",752),fBt(44,1,{},u),AKt.Kb=function(t){return jz(t,20).Kc()},AKt.Fb=function(t){return this===t},mW(GKt,"Iterables/10",44),fBt(1042,537,mYt,RV),AKt.Jc=function(t){wW(t),this.b.Jc(new fA(this.a,t))},AKt.Kc=function(){return zB(this)},mW(GKt,"Iterables/4",1042),fBt(1043,1,hYt,fA),AKt.td=function(t){_E(this.b,this.a,t)},mW(GKt,"Iterables/4/lambda$0$Type",1043),fBt(1044,537,mYt,FV),AKt.Jc=function(t){wW(t),t4(this.a,new lA(t,this.b))},AKt.Kc=function(){return ZP(new DP(this.a),this.b)},mW(GKt,"Iterables/5",1044),fBt(1045,1,hYt,lA),AKt.td=function(t){this.a.td(wB(t))},mW(GKt,"Iterables/5/lambda$0$Type",1045),fBt(1071,198,UKt,od),AKt.Ob=function(){return this.a.Ob()},AKt.Pb=function(){return this.a.Pb()},mW(GKt,"Iterators/1",1071),fBt(1072,699,UKt,uA),AKt.Yb=function(){for(var t;this.b.Ob();)if(t=this.b.Pb(),this.a.Lb(t))return t;return this.e=2,null},mW(GKt,"Iterators/5",1072),fBt(487,1,YKt),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return this.b.Ob()},AKt.Pb=function(){return this.Qd(this.b.Pb())},AKt.Qb=function(){this.b.Qb()},mW(GKt,"TransformedIterator",487),fBt(1073,487,YKt,QP),AKt.Qd=function(t){return this.a.Kb(t)},mW(GKt,"Iterators/6",1073),fBt(717,198,UKt,ad),AKt.Ob=function(){return!this.a},AKt.Pb=function(){if(this.a)throw $b(new ww);return this.a=!0,this.b},AKt.a=!1,mW(GKt,"Iterators/9",717),fBt(1070,386,WKt,lq),AKt.Xb=function(t){return this.a[this.b+t]},AKt.b=0,mW(GKt,"Iterators/ArrayItr",1070),fBt(39,1,{39:1,47:1},aU),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return gBt(this)},AKt.Pb=function(){return q4(this)},AKt.Qb=function(){lat(!!this.c),this.c.Qb(),this.c=null},mW(GKt,"Iterators/ConcatenatedIterator",39),fBt(22,1,{3:1,35:1,22:1}),AKt.wd=function(t){return xv(this,jz(t,22))},AKt.Fb=function(t){return this===t},AKt.Hb=function(){return xL(this)},AKt.Ib=function(){return fO(this)},AKt.g=0;var qte,Ute=mW(NKt,"Enum",22);fBt(538,22,{538:1,3:1,35:1,22:1,47:1},iL),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return!1},AKt.Pb=function(){throw $b(new ww)},AKt.Qb=function(){lat(!1)};var Gte,Wte=$nt(GKt,"Iterators/EmptyModifiableIterator",538,Ute,aW,nO);fBt(1834,619,KKt),mW(GKt,"LinkedHashMultimapGwtSerializationDependencies",1834),fBt(1835,1834,KKt,Cut),AKt.hc=function(){return new BL(tet(this.b))},AKt.$b=function(){fit(this),ew(this.a,this.a)},AKt.gd=function(){return new BL(tet(this.b))},AKt.ic=function(t){return new Clt(this,t,this.b)},AKt.kc=function(){return new JP(this)},AKt.lc=function(){return new d1(jz(this.g||(this.g=new zk(this)),21),17)},AKt.ec=function(){return this.i||(this.i=new $P(this,this.c))},AKt.nc=function(){return new hv(new JP(this))},AKt.oc=function(){return Oz(new d1(jz(this.g||(this.g=new zk(this)),21),17),new h)},AKt.b=2,mW(GKt,"LinkedHashMultimap",1835),fBt(1838,1,{},h),AKt.Kb=function(t){return jz(t,42).dd()},mW(GKt,"LinkedHashMultimap/0methodref$getValue$Type",1838),fBt(824,1,YKt,JP),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return bet(this)},AKt.Ob=function(){return this.a!=this.b.a},AKt.Qb=function(){lat(!!this.c),z0(this.b,this.c.g,this.c.i),this.c=null},mW(GKt,"LinkedHashMultimap/1",824),fBt(330,238,{345:1,238:1,330:1,2020:1,3:1,42:1},$K),AKt.Rd=function(){return this.f},AKt.Sd=function(t){this.c=t},AKt.Td=function(t){this.f=t},AKt.d=0;var Kte,Yte=mW(GKt,"LinkedHashMultimap/ValueEntry",330);fBt(1836,1970,{2020:1,20:1,28:1,14:1,21:1},Clt),AKt.Fc=function(t){var e,n,i,r,o;for(e=(o=fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15))))&this.b.length-1,n=r=this.b[e];n;n=n.a)if(n.d==o&&dK(n.i,t))return!1;return i=new $K(this.c,t,o,r),ky(this.d,i),i.f=this,this.d=i,ew(this.g.a.b,i),ew(i,this.g.a),this.b[e]=i,++this.f,++this.e,k_t(this),!0},AKt.$b=function(){var t,e;for(wE(this.b,null),this.f=0,t=this.a;t!=this;t=t.Rd())ew((e=jz(t,330)).b,e.e);this.a=this,this.d=this,++this.e},AKt.Hc=function(t){var e,n;for(n=fq(rft(xYt,nY(fq(rft(null==t?0:Jct(t),EYt)),15))),e=this.b[n&this.b.length-1];e;e=e.a)if(e.d==n&&dK(e.i,t))return!0;return!1},AKt.Jc=function(t){var e;for(wW(t),e=this.a;e!=this;e=e.Rd())t.td(jz(e,330).i)},AKt.Rd=function(){return this.a},AKt.Kc=function(){return new sK(this)},AKt.Mc=function(t){return vBt(this,t)},AKt.Sd=function(t){this.d=t},AKt.Td=function(t){this.a=t},AKt.gc=function(){return this.f},AKt.e=0,AKt.f=0,mW(GKt,"LinkedHashMultimap/ValueSet",1836),fBt(1837,1,YKt,sK),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return dq(this),this.b!=this.c},AKt.Pb=function(){var t,e;if(dq(this),this.b==this.c)throw $b(new ww);return e=(t=jz(this.b,330)).i,this.d=t,this.b=t.f,e},AKt.Qb=function(){dq(this),lat(!!this.d),vBt(this.c,this.d.i),this.a=this.c.e,this.d=null},AKt.a=0,mW(GKt,"LinkedHashMultimap/ValueSet/1",1837),fBt(766,1986,KKt,xI),AKt.Zb=function(){return this.f||(this.f=new nE(this))},AKt.Fb=function(t){return ylt(this,t)},AKt.cc=function(t){return new bA(this,t)},AKt.fc=function(t){return X3(this,t)},AKt.$b=function(){iW(this)},AKt._b=function(t){return $A(this,t)},AKt.ac=function(){return new nE(this)},AKt.bc=function(){return new bd(this)},AKt.qc=function(t){return new bA(this,t)},AKt.dc=function(){return!this.a},AKt.rc=function(t){return X3(this,t)},AKt.gc=function(){return this.d},AKt.c=0,AKt.d=0,mW(GKt,"LinkedListMultimap",766),fBt(52,28,MYt),AKt.ad=function(t){Frt(this,t)},AKt.Nc=function(){return new d1(this,16)},AKt.Vc=function(t,e){throw $b(new Jv("Add not supported on this list"))},AKt.Fc=function(t){return this.Vc(this.gc(),t),!0},AKt.Wc=function(t,e){var n,i,r;for(kK(e),n=!1,r=e.Kc();r.Ob();)i=r.Pb(),this.Vc(t++,i),n=!0;return n},AKt.$b=function(){this.Ud(0,this.gc())},AKt.Fb=function(t){return PBt(this,t)},AKt.Hb=function(){return jct(this)},AKt.Xc=function(t){return dit(this,t)},AKt.Kc=function(){return new Af(this)},AKt.Yc=function(){return this.Zc(0)},AKt.Zc=function(t){return new C2(this,t)},AKt.$c=function(t){throw $b(new Jv("Remove not supported on this list"))},AKt.Ud=function(t,e){var n,i;for(i=this.Zc(t),n=t;n<e;++n)i.Pb(),i.Qb()},AKt._c=function(t,e){throw $b(new Jv("Set not supported on this list"))},AKt.bd=function(t,e){return new s1(this,t,e)},AKt.j=0,mW(XKt,"AbstractList",52),fBt(1964,52,MYt),AKt.Vc=function(t,e){NO(this,t,e)},AKt.Wc=function(t,e){return Ilt(this,t,e)},AKt.Xb=function(t){return Obt(this,t)},AKt.Kc=function(){return this.Zc(0)},AKt.$c=function(t){return tyt(this,t)},AKt._c=function(t,e){var n,i;n=this.Zc(t);try{return i=n.Pb(),n.Wb(e),i}catch(e){throw iP(e=hst(e),109)?$b(new Dv("Can't set element "+t)):$b(e)}},mW(XKt,"AbstractSequentialList",1964),fBt(636,1964,MYt,bA),AKt.Zc=function(t){return mL(this,t)},AKt.gc=function(){var t;return(t=jz(OW(this.a.b,this.b),283))?t.a:0},mW(GKt,"LinkedListMultimap/1",636),fBt(1297,1970,tYt,bd),AKt.Hc=function(t){return $A(this.a,t)},AKt.Kc=function(){return new brt(this.a)},AKt.Mc=function(t){return!X3(this.a,t).a.dc()},AKt.gc=function(){return MA(this.a.b)},mW(GKt,"LinkedListMultimap/1KeySetImpl",1297),fBt(1296,1,YKt,brt),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return hq(this),!!this.c},AKt.Pb=function(){hq(this),aL(this.c),this.a=this.c,_G(this.d,this.a.a);do{this.c=this.c.b}while(this.c&&!_G(this.d,this.c.a));return this.a.a},AKt.Qb=function(){hq(this),lat(!!this.a),EH(new E9(this.e,this.a.a)),this.a=null,this.b=this.e.c},AKt.b=0,mW(GKt,"LinkedListMultimap/DistinctKeyIterator",1296),fBt(283,1,{283:1},sZ),AKt.a=0,mW(GKt,"LinkedListMultimap/KeyList",283),fBt(1295,345,oYt,wA),AKt.cd=function(){return this.a},AKt.dd=function(){return this.f},AKt.ed=function(t){var e;return e=this.f,this.f=t,e},mW(GKt,"LinkedListMultimap/Node",1295),fBt(560,1,rYt,E9,RTt),AKt.Nb=function(t){lG(this,t)},AKt.Rb=function(t){this.e=kFt(this.f,this.b,t,this.c),++this.d,this.a=null},AKt.Ob=function(){return!!this.c},AKt.Sb=function(){return!!this.e},AKt.Pb=function(){return yJ(this)},AKt.Tb=function(){return this.d},AKt.Ub=function(){return _J(this)},AKt.Vb=function(){return this.d-1},AKt.Qb=function(){lat(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,QSt(this.f,this.a),this.a=null},AKt.Wb=function(t){oL(!!this.a),this.a.f=t},AKt.d=0,mW(GKt,"LinkedListMultimap/ValueForKeyIterator",560),fBt(1018,52,MYt),AKt.Vc=function(t,e){this.a.Vc(t,e)},AKt.Wc=function(t,e){return this.a.Wc(t,e)},AKt.Hc=function(t){return this.a.Hc(t)},AKt.Xb=function(t){return this.a.Xb(t)},AKt.$c=function(t){return this.a.$c(t)},AKt._c=function(t,e){return this.a._c(t,e)},AKt.gc=function(){return this.a.gc()},mW(GKt,"Lists/AbstractListWrapper",1018),fBt(1019,1018,LYt),mW(GKt,"Lists/RandomAccessListWrapper",1019),fBt(1021,1019,LYt,TA),AKt.Zc=function(t){return this.a.Zc(t)},mW(GKt,"Lists/1",1021),fBt(131,52,{131:1,20:1,28:1,52:1,14:1,15:1},EA),AKt.Vc=function(t,e){this.a.Vc(pG(this,t),e)},AKt.$b=function(){this.a.$b()},AKt.Xb=function(t){return this.a.Xb(BW(this,t))},AKt.Kc=function(){return G1(this,0)},AKt.Zc=function(t){return G1(this,t)},AKt.$c=function(t){return this.a.$c(BW(this,t))},AKt.Ud=function(t,e){(f2(t,e,this.a.gc()),eat(this.a.bd(pG(this,e),pG(this,t)))).$b()},AKt._c=function(t,e){return this.a._c(BW(this,t),e)},AKt.gc=function(){return this.a.gc()},AKt.bd=function(t,e){return f2(t,e,this.a.gc()),eat(this.a.bd(pG(this,e),pG(this,t)))},mW(GKt,"Lists/ReverseList",131),fBt(280,131,{131:1,20:1,28:1,52:1,14:1,15:1,54:1},lv),mW(GKt,"Lists/RandomAccessReverseList",280),fBt(1020,1,rYt,kA),AKt.Nb=function(t){lG(this,t)},AKt.Rb=function(t){this.c.Rb(t),this.c.Ub(),this.a=!1},AKt.Ob=function(){return this.c.Sb()},AKt.Sb=function(){return this.c.Ob()},AKt.Pb=function(){return d4(this)},AKt.Tb=function(){return pG(this.b,this.c.Tb())},AKt.Ub=function(){if(!this.c.Ob())throw $b(new ww);return this.a=!0,this.c.Pb()},AKt.Vb=function(){return pG(this.b,this.c.Tb())-1},AKt.Qb=function(){lat(this.a),this.c.Qb(),this.a=!1},AKt.Wb=function(t){oL(this.a),this.c.Wb(t)},AKt.a=!1,mW(GKt,"Lists/ReverseList/1",1020),fBt(432,487,YKt,uv),AKt.Qd=function(t){return iE(t)},mW(GKt,"Maps/1",432),fBt(698,487,YKt,hv),AKt.Qd=function(t){return jz(t,42).dd()},mW(GKt,"Maps/2",698),fBt(962,487,YKt,pL),AKt.Qd=function(t){return new mA(t,RI(this.a,t))},mW(GKt,"Maps/3",962),fBt(959,1971,tYt,md),AKt.Jc=function(t){Pw(this.a,t)},AKt.Kc=function(){return this.a.kc()},AKt.Rc=function(){return this.a},AKt.Nc=function(){return this.a.lc()},mW(GKt,"Maps/IteratorBasedAbstractMap/1",959),fBt(960,1,{},pd),AKt.Od=function(t,e){this.a.td(t)},mW(GKt,"Maps/KeySet/lambda$0$Type",960),fBt(958,28,QKt,xA),AKt.$b=function(){this.a.$b()},AKt.Hc=function(t){return this.a.uc(t)},AKt.Jc=function(t){wW(t),this.a.wc(new ld(t))},AKt.dc=function(){return this.a.dc()},AKt.Kc=function(){return new hv(this.a.vc().Kc())},AKt.Mc=function(t){var e,n;try{return kgt(this,t,!0)}catch(i){if(iP(i=hst(i),41)){for(n=this.a.vc().Kc();n.Ob();)if(dK(t,(e=jz(n.Pb(),42)).dd()))return this.a.Bc(e.cd()),!0;return!1}throw $b(i)}},AKt.gc=function(){return this.a.gc()},mW(GKt,"Maps/Values",958),fBt(961,1,{},ld),AKt.Od=function(t,e){this.a.td(e)},mW(GKt,"Maps/Values/lambda$0$Type",961),fBt(736,1987,ZKt,nE),AKt.xc=function(t){return this.a._b(t)?this.a.cc(t):null},AKt.Bc=function(t){return this.a._b(t)?this.a.fc(t):null},AKt.$b=function(){this.a.$b()},AKt._b=function(t){return this.a._b(t)},AKt.Ec=function(){return new cd(this)},AKt.Dc=function(){return this.Ec()},AKt.dc=function(){return this.a.dc()},AKt.ec=function(){return this.a.ec()},AKt.gc=function(){return this.a.ec().gc()},mW(GKt,"Multimaps/AsMap",736),fBt(1104,1971,tYt,cd),AKt.Kc=function(){return QM(this.a.a.ec(),new ud(this))},AKt.Rc=function(){return this.a},AKt.Mc=function(t){var e;return!!npt(this,t)&&(e=jz(t,42),vy(this.a,e.cd()),!0)},mW(GKt,"Multimaps/AsMap/EntrySet",1104),fBt(1108,1,{},ud),AKt.Kb=function(t){return RI(this,t)},AKt.Fb=function(t){return this===t},mW(GKt,"Multimaps/AsMap/EntrySet/1",1108),fBt(543,1989,{543:1,835:1,20:1,28:1,14:1},hd),AKt.$b=function(){fit(this.a)},AKt.Hc=function(t){return G_(this.a,t)},AKt.Jc=function(t){wW(t),t4(CW(this.a),new fd(t))},AKt.Kc=function(){return new uv(CW(this.a).a.kc())},AKt.gc=function(){return this.a.d},AKt.Nc=function(){return Oz(CW(this.a).Nc(),new d)},mW(GKt,"Multimaps/Keys",543),fBt(1106,1,{},d),AKt.Kb=function(t){return jz(t,42).cd()},mW(GKt,"Multimaps/Keys/0methodref$getKey$Type",1106),fBt(1105,487,YKt,dv),AKt.Qd=function(t){return new dd(jz(t,42))},mW(GKt,"Multimaps/Keys/1",1105),fBt(1990,1,{416:1}),AKt.Fb=function(t){var e;return!!iP(t,492)&&(e=jz(t,416),jz(this.a.dd(),14).gc()==jz(e.a.dd(),14).gc()&&dK(this.a.cd(),e.a.cd()))},AKt.Hb=function(){var t;return(null==(t=this.a.cd())?0:Jct(t))^jz(this.a.dd(),14).gc()},AKt.Ib=function(){var t,e;return e=kL(this.a.cd()),1==(t=jz(this.a.dd(),14).gc())?e:e+" x "+t},mW(GKt,"Multisets/AbstractEntry",1990),fBt(492,1990,{492:1,416:1},dd),mW(GKt,"Multimaps/Keys/1/1",492),fBt(1107,1,hYt,fd),AKt.td=function(t){this.a.td(jz(t,42).cd())},mW(GKt,"Multimaps/Keys/lambda$1$Type",1107),fBt(1110,1,hYt,f),AKt.td=function(t){TH(jz(t,416))},mW(GKt,"Multiset/lambda$0$Type",1110),fBt(737,1,hYt,gd),AKt.td=function(t){Set(this.a,jz(t,416))},mW(GKt,"Multiset/lambda$1$Type",737),fBt(1111,1,{},k),mW(GKt,"Multisets/0methodref$add$Type",1111),fBt(738,1,{},v),AKt.Kb=function(t){return s3(jz(t,416))},mW(GKt,"Multisets/lambda$3$Type",738),fBt(2008,1,RKt),mW(GKt,"RangeGwtSerializationDependencies",2008),fBt(514,2008,{169:1,514:1,3:1,45:1},cwt),AKt.Lb=function(t){return CU(this,jz(t,35))},AKt.Mb=function(t){return CU(this,jz(t,35))},AKt.Fb=function(t){var e;return!!iP(t,514)&&(e=jz(t,514),Lpt(this.a,e.a)&&Lpt(this.b,e.b))},AKt.Hb=function(){return 31*this.a.Hb()+this.b.Hb()},AKt.Ib=function(){return j3(this.a,this.b)},mW(GKt,"Range",514),fBt(778,1999,kYt,rG),AKt.Zc=function(t){return eO(this.b,t)},AKt.Pd=function(){return this.a},AKt.Xb=function(t){return GD(this.b,t)},AKt.Fd=function(t){return eO(this.b,t)},mW(GKt,"RegularImmutableAsList",778),fBt(646,2006,kYt,AZ),AKt.Hd=function(){return this.a},mW(GKt,"RegularImmutableList",646),fBt(616,715,yYt,cv),mW(GKt,"RegularImmutableMap",616),fBt(716,703,CYt,mE),mW(GKt,"RegularImmutableSet",716),fBt(1976,JKt,tYt),AKt.Kc=function(){return new AY(this.a,this.b)},AKt.Fc=function(t){throw $b(new pw)},AKt.Gc=function(t){throw $b(new pw)},AKt.$b=function(){throw $b(new pw)},AKt.Mc=function(t){throw $b(new pw)},mW(GKt,"Sets/SetView",1976),fBt(963,1976,tYt,yA),AKt.Kc=function(){return new AY(this.a,this.b)},AKt.Hc=function(t){return Eq(this.a,t)&&this.b.Hc(t)},AKt.Ic=function(t){return sst(this.a,t)&&this.b.Ic(t)},AKt.dc=function(){return Rbt(this.b,this.a)},AKt.Lc=function(){return DY(new OH(null,new d1(this.a,1)),new kd(this.b))},AKt.gc=function(){return Tat(this)},AKt.Oc=function(){return DY(new OH(null,new d1(this.a,1)),new wd(this.b))},mW(GKt,"Sets/2",963),fBt(700,699,UKt,AY),AKt.Yb=function(){for(var t;kM(this.a);)if(t=o5(this.a),this.c.Hc(t))return t;return this.e=2,null},mW(GKt,"Sets/2/1",700),fBt(964,1,OYt,wd),AKt.Mb=function(t){return this.a.Hc(t)},mW(GKt,"Sets/2/4methodref$contains$Type",964),fBt(965,1,OYt,kd),AKt.Mb=function(t){return this.a.Hc(t)},mW(GKt,"Sets/2/5methodref$contains$Type",965),fBt(607,1975,{607:1,3:1,20:1,14:1,271:1,21:1,84:1},hQ),AKt.Bd=function(){return this.b},AKt.Cd=function(){return this.b},AKt.Md=function(){return this.b},AKt.Jc=function(t){this.a.Jc(t)},AKt.Lc=function(){return this.a.Lc()},AKt.Oc=function(){return this.a.Oc()},mW(GKt,"Sets/UnmodifiableNavigableSet",607),fBt(1932,1931,yYt,VK),AKt.Ld=function(){return sj(),new wy(this.a)},AKt.Cc=function(){return sj(),new wy(this.a)},AKt.pd=function(){return sj(),new wy(this.a)},mW(GKt,"SingletonImmutableBiMap",1932),fBt(647,2006,kYt,xH),AKt.Hd=function(){return this.a},mW(GKt,"SingletonImmutableList",647),fBt(350,1981,CYt,wy),AKt.Kc=function(){return new ad(this.a)},AKt.Hc=function(t){return Pht(this.a,t)},AKt.Ed=function(){return new ad(this.a)},AKt.gc=function(){return 1},mW(GKt,"SingletonImmutableSet",350),fBt(1115,1,{},y),AKt.Kb=function(t){return jz(t,164)},mW(GKt,"Streams/lambda$0$Type",1115),fBt(1116,1,NYt,vd),AKt.Vd=function(){j4(this.a)},mW(GKt,"Streams/lambda$1$Type",1116),fBt(1659,1658,KKt,pZ),AKt.Zb=function(){return jz(jz(this.f||(this.f=iP(this.c,171)?new TN(this,jz(this.c,171)):iP(this.c,161)?new EN(this,jz(this.c,161)):new pA(this,this.c)),161),171)},AKt.hc=function(){return new fC(this.b)},AKt.gd=function(){return new fC(this.b)},AKt.ec=function(){return jz(jz(this.i||(this.i=iP(this.c,171)?new JC(this,jz(this.c,171)):iP(this.c,161)?new QC(this,jz(this.c,161)):new $P(this,this.c)),84),271)},AKt.ac=function(){return iP(this.c,171)?new TN(this,jz(this.c,171)):iP(this.c,161)?new EN(this,jz(this.c,161)):new pA(this,this.c)},AKt.ic=function(t){return null==t&&this.a.ue(t,t),new fC(this.b)},mW(GKt,"TreeMultimap",1659),fBt(78,1,{3:1,78:1}),AKt.Wd=function(t){return new Error(t)},AKt.Xd=function(){return this.e},AKt.Yd=function(){return Fgt(IY(BG((null==this.k&&(this.k=P7(Zte,cYt,78,0,0,1)),this.k)),new O))},AKt.Zd=function(){return this.f},AKt.$d=function(){return this.g},AKt._d=function(){wv(this,h2(this.Wd(EZ(this,this.g)))),aw(this)},AKt.Ib=function(){return EZ(this,this.$d())},AKt.e=jYt,AKt.i=!1,AKt.n=!0;var Xte,Zte=mW(NKt,"Throwable",78);fBt(102,78,{3:1,102:1,78:1}),mW(NKt,"Exception",102),fBt(60,102,$Yt,sw,fv),mW(NKt,"RuntimeException",60),fBt(598,60,$Yt),mW(NKt,"JsException",598),fBt(863,598,$Yt),mW(zYt,"JavaScriptExceptionBase",863),fBt(477,863,{477:1,3:1,102:1,60:1,78:1},yut),AKt.$d=function(){return mCt(this),this.c},AKt.ae=function(){return VD(this.b)===VD(Xte)?null:this.b},mW(HYt,"JavaScriptException",477);var Qte,Jte=mW(HYt,"JavaScriptObject$",0);fBt(1948,1,{}),mW(HYt,"Scheduler",1948);var tee,eee,nee,iee,ree=0,oee=0,aee=-1;fBt(890,1948,{},_),mW(zYt,"SchedulerImpl",890),fBt(1960,1,{}),mW(zYt,"StackTraceCreator/Collector",1960),fBt(864,1960,{},C),AKt.be=function(t){var e={},n=[];t[UYt]=n;for(var i=arguments.callee.caller;i;){var r=(xZ(),i.name||(i.name=Knt(i.toString())));n.push(r);var o,a,s=":"+r,c=e[s];if(c)for(o=0,a=c.length;o<a;o++)if(c[o]===i)return;(c||(e[s]=[])).push(i),i=i.caller}},AKt.ce=function(t){var e,n,i,r;for(xZ(),n=(i=t&&t[UYt]?t[UYt]:[]).length,r=P7(jee,cYt,310,n,0,1),e=0;e<n;e++)r[e]=new xY(i[e],null,-1);return r},mW(zYt,"StackTraceCreator/CollectorLegacy",864),fBt(1961,1960,{}),AKt.be=function(t){},AKt.de=function(t,e,n,i){return new xY(e,t+"@"+i,n<0?-1:n)},AKt.ce=function(t){var e,n,i,r,o,a;if(r=hvt(t),o=P7(jee,cYt,310,0,0,1),e=0,0==(i=r.length))return o;for(bF((a=DHt(this,r[0])).d,qYt)||(o[e++]=a),n=1;n<i;n++)o[e++]=DHt(this,r[n]);return o},mW(zYt,"StackTraceCreator/CollectorModern",1961),fBt(865,1961,{},p),AKt.de=function(t,e,n,i){return new xY(e,t,-1)},mW(zYt,"StackTraceCreator/CollectorModernNoSourceMap",865),fBt(1050,1,{}),mW(kXt,vXt,1050),fBt(615,1050,{615:1},HW),mW(yXt,vXt,615),fBt(2001,1,{}),mW(kXt,_Xt,2001),fBt(2002,2001,{}),mW(yXt,_Xt,2002),fBt(1090,1,{},m),mW(yXt,"LocaleInfo",1090),fBt(1918,1,{},b),AKt.a=0,mW(yXt,"TimeZone",1918),fBt(1258,2002,{},g),mW("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1258),fBt(434,1,{434:1},Wz),AKt.a=!1,AKt.b=0,mW(kXt,"DateTimeFormat/PatternPart",434),fBt(199,1,CXt,DA,bct,xN),AKt.wd=function(t){return X0(this,jz(t,199))},AKt.Fb=function(t){return iP(t,199)&&KD(uat(this.q.getTime()),uat(jz(t,199).q.getTime()))},AKt.Hb=function(){var t;return fq(n0(t=uat(this.q.getTime()),vU(t,32)))},AKt.Ib=function(){var t,e,n;return t=((n=-this.q.getTimezoneOffset())>=0?"+":"")+(n/60|0),e=qI(i.Math.abs(n)%60),(mxt(),pne)[this.q.getDay()]+" "+mne[this.q.getMonth()]+" "+qI(this.q.getDate())+" "+qI(this.q.getHours())+":"+qI(this.q.getMinutes())+":"+qI(this.q.getSeconds())+" GMT"+t+e+" "+this.q.getFullYear()};var see,cee,lee,uee,hee,dee,fee,gee,pee,mee,bee,wee=mW(XKt,"Date",199);fBt(1915,199,CXt,Xyt),AKt.a=!1,AKt.b=0,AKt.c=0,AKt.d=0,AKt.e=0,AKt.f=0,AKt.g=!1,AKt.i=0,AKt.j=0,AKt.k=0,AKt.n=0,AKt.o=0,AKt.p=0,mW("com.google.gwt.i18n.shared.impl","DateRecord",1915),fBt(1966,1,{}),AKt.fe=function(){return null},AKt.ge=function(){return null},AKt.he=function(){return null},AKt.ie=function(){return null},AKt.je=function(){return null},mW(AXt,"JSONValue",1966),fBt(216,1966,{216:1},xd,yd),AKt.Fb=function(t){return!!iP(t,216)&&m0(this.a,jz(t,216).a)},AKt.ee=function(){return zb},AKt.Hb=function(){return JX(this.a)},AKt.fe=function(){return this},AKt.Ib=function(){var t,e,n;for(n=new uL("["),e=0,t=this.a.length;e<t;e++)e>0&&(n.a+=","),oI(n,ftt(this,e));return n.a+="]",n.a},mW(AXt,"JSONArray",216),fBt(483,1966,{483:1},_d),AKt.ee=function(){return Vb},AKt.ge=function(){return this},AKt.Ib=function(){return cL(),""+this.a},AKt.a=!1,mW(AXt,"JSONBoolean",483),fBt(985,60,$Yt,gv),mW(AXt,"JSONException",985),fBt(1023,1966,{},w),AKt.ee=function(){return Wb},AKt.Ib=function(){return qKt},mW(AXt,"JSONNull",1023),fBt(258,1966,{258:1},Cd),AKt.Fb=function(t){return!!iP(t,258)&&this.a==jz(t,258).a},AKt.ee=function(){return Hb},AKt.Hb=function(){return WI(this.a)},AKt.he=function(){return this},AKt.Ib=function(){return this.a+""},AKt.a=0,mW(AXt,"JSONNumber",258),fBt(183,1966,{183:1},pv,Ad),AKt.Fb=function(t){return!!iP(t,183)&&m0(this.a,jz(t,183).a)},AKt.ee=function(){return qb},AKt.Hb=function(){return JX(this.a)},AKt.ie=function(){return this},AKt.Ib=function(){var t,e,n,i,r,o;for(o=new uL("{"),t=!0,i=0,r=(n=yrt(this,P7(Yee,cYt,2,0,6,1))).length;i<r;++i)e=n[i],t?t=!1:o.a+=jKt,aI(o,wIt(e)),o.a+=":",oI(o,HQ(this,e));return o.a+="}",o.a},mW(AXt,"JSONObject",183),fBt(596,JKt,tYt,_A),AKt.Hc=function(t){return UD(t)&&Hy(this.a,AN(t))},AKt.Kc=function(){return new Af(new Xv(this.b))},AKt.gc=function(){return this.b.length},mW(AXt,"JSONObject/1",596),fBt(204,1966,{204:1},VW),AKt.Fb=function(t){return!!iP(t,204)&&bF(this.a,jz(t,204).a)},AKt.ee=function(){return Ub},AKt.Hb=function(){return bwt(this.a)},AKt.je=function(){return this},AKt.Ib=function(){return wIt(this.a)},mW(AXt,"JSONString",204),fBt(1962,1,{525:1}),mW(MXt,"OutputStream",1962),fBt(1963,1962,{525:1}),mW(MXt,"FilterOutputStream",1963),fBt(866,1963,{525:1},B),mW(MXt,"PrintStream",866),fBt(418,1,{475:1}),AKt.Ib=function(){return this.a},mW(NKt,"AbstractStringBuilder",418),fBt(529,60,$Yt,Sv),mW(NKt,"ArithmeticException",529),fBt(73,60,PXt,lw,Dv),mW(NKt,"IndexOutOfBoundsException",73),fBt(320,73,{3:1,320:1,102:1,73:1,60:1,78:1},Aw,_y),mW(NKt,"ArrayIndexOutOfBoundsException",320),fBt(528,60,$Yt,uw,Iv),mW(NKt,"ArrayStoreException",528),fBt(289,78,LXt,Bv),mW(NKt,"Error",289),fBt(194,289,LXt,cw,g4),mW(NKt,"AssertionError",194),TKt={3:1,476:1,35:1};var kee,vee=mW(NKt,"Boolean",476);fBt(236,1,{3:1,236:1}),mW(NKt,"Number",236),fBt(217,236,{3:1,217:1,35:1,236:1},If),AKt.wd=function(t){return Fy(this,jz(t,217))},AKt.ke=function(){return this.a},AKt.Fb=function(t){return iP(t,217)&&jz(t,217).a==this.a},AKt.Hb=function(){return this.a},AKt.Ib=function(){return""+this.a},AKt.a=0;var yee,_ee,Cee=mW(NKt,"Byte",217);fBt(172,1,{3:1,172:1,35:1},Bf),AKt.wd=function(t){return jy(this,jz(t,172))},AKt.Fb=function(t){return iP(t,172)&&jz(t,172).a==this.a},AKt.Hb=function(){return this.a},AKt.Ib=function(){return String.fromCharCode(this.a)},AKt.a=0;var Aee,xee=mW(NKt,"Character",172);fBt(205,60,{3:1,205:1,102:1,60:1,78:1},hw,Nv),mW(NKt,"ClassCastException",205),SKt={3:1,35:1,333:1,236:1};var Eee=mW(NKt,"Double",333);fBt(155,236,{3:1,35:1,155:1,236:1},Mf,Lw),AKt.wd=function(t){return jI(this,jz(t,155))},AKt.ke=function(){return this.a},AKt.Fb=function(t){return iP(t,155)&&mF(this.a,jz(t,155).a)},AKt.Hb=function(){return EQ(this.a)},AKt.Ib=function(){return""+this.a},AKt.a=0;var Tee=mW(NKt,"Float",155);fBt(32,60,{3:1,102:1,32:1,60:1,78:1},dw,Rv,jlt),mW(NKt,"IllegalArgumentException",32),fBt(71,60,$Yt,fw,Fv),mW(NKt,"IllegalStateException",71),fBt(19,236,{3:1,35:1,19:1,236:1},Pf),AKt.wd=function(t){return $I(this,jz(t,19))},AKt.ke=function(){return this.a},AKt.Fb=function(t){return iP(t,19)&&jz(t,19).a==this.a},AKt.Hb=function(){return this.a},AKt.Ib=function(){return""+this.a},AKt.a=0;var See,Dee,Iee=mW(NKt,"Integer",19);fBt(162,236,{3:1,35:1,162:1,236:1},Lf),AKt.wd=function(t){return zI(this,jz(t,162))},AKt.ke=function(){return v2(this.a)},AKt.Fb=function(t){return iP(t,162)&&KD(jz(t,162).a,this.a)},AKt.Hb=function(){return fq(this.a)},AKt.Ib=function(){return""+mU(this.a)},AKt.a=0;var Bee,Mee,Pee,Lee,Oee,Nee=mW(NKt,"Long",162);fBt(2039,1,{}),fBt(1831,60,$Yt,jv),mW(NKt,"NegativeArraySizeException",1831),fBt(173,598,{3:1,102:1,173:1,60:1,78:1},gw,$v),AKt.Wd=function(t){return new TypeError(t)},mW(NKt,"NullPointerException",173),fBt(127,32,{3:1,102:1,32:1,127:1,60:1,78:1},Cy),mW(NKt,"NumberFormatException",127),fBt(184,236,{3:1,35:1,236:1,184:1},Of),AKt.wd=function(t){return $y(this,jz(t,184))},AKt.ke=function(){return this.a},AKt.Fb=function(t){return iP(t,184)&&jz(t,184).a==this.a},AKt.Hb=function(){return this.a},AKt.Ib=function(){return""+this.a},AKt.a=0;var Ree,Fee=mW(NKt,"Short",184);fBt(310,1,{3:1,310:1},xY),AKt.Fb=function(t){var e;return!!iP(t,310)&&(e=jz(t,310),this.c==e.c&&this.d==e.d&&this.a==e.a&&this.b==e.b)},AKt.Hb=function(){return uut(Est(Vy(Ite,1),zKt,1,5,[ndt(this.c),this.a,this.d,this.b]))},AKt.Ib=function(){return this.a+"."+this.d+"("+(null!=this.b?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},AKt.c=0;var jee=mW(NKt,"StackTraceElement",310);DKt={3:1,475:1,35:1,2:1};var $ee,zee,Vee,Hee,qee,Uee,Gee,Wee,Kee,Yee=mW(NKt,VYt,2);fBt(107,418,{475:1},Ay,xy,lL),mW(NKt,"StringBuffer",107),fBt(100,418,{475:1},Ey,Ty,uL),mW(NKt,"StringBuilder",100),fBt(687,73,PXt,Sy),mW(NKt,"StringIndexOutOfBoundsException",687),fBt(2043,1,{}),fBt(844,1,{},O),AKt.Kb=function(t){return jz(t,78).e},mW(NKt,"Throwable/lambda$0$Type",844),fBt(41,60,{3:1,102:1,60:1,78:1,41:1},pw,Jv),mW(NKt,"UnsupportedOperationException",41),fBt(240,236,{3:1,35:1,236:1,240:1},ktt,dC),AKt.wd=function(t){return Zjt(this,jz(t,240))},AKt.ke=function(){return dEt(eHt(this))},AKt.Fb=function(t){var e;return this===t||!!iP(t,240)&&(e=jz(t,240),this.e==e.e&&0==Zjt(this,e))},AKt.Hb=function(){var t;return 0!=this.b?this.b:this.a<54?(t=uat(this.f),this.b=fq(t0(t,-1)),this.b=33*this.b+fq(t0(kU(t,32),-1)),this.b=17*this.b+EQ(this.e),this.b):(this.b=17*Rut(this.c)+EQ(this.e),this.b)},AKt.Ib=function(){return eHt(this)},AKt.a=0,AKt.b=0,AKt.d=0,AKt.e=0,AKt.f=0;var Xee,Zee,Qee,Jee,tne,ene,nne=mW("java.math","BigDecimal",240);fBt(91,236,{3:1,35:1,236:1,91:1},Nbt,U6,uG,bCt,Tmt,IB),AKt.wd=function(t){return tmt(this,jz(t,91))},AKt.ke=function(){return dEt(VWt(this,0))},AKt.Fb=function(t){return cgt(this,t)},AKt.Hb=function(){return Rut(this)},AKt.Ib=function(){return VWt(this,0)},AKt.b=-2,AKt.c=0,AKt.d=0,AKt.e=0;var ine,rne,one,ane,sne=mW("java.math","BigInteger",91);fBt(488,1967,ZKt),AKt.$b=function(){IG(this)},AKt._b=function(t){return cG(this,t)},AKt.uc=function(t){return Mlt(this,t,this.g)||Mlt(this,t,this.f)},AKt.vc=function(){return new xf(this)},AKt.xc=function(t){return OW(this,t)},AKt.zc=function(t,e){return WK(this,t,e)},AKt.Bc=function(t){return m6(this,t)},AKt.gc=function(){return MA(this)},mW(XKt,"AbstractHashMap",488),fBt(261,JKt,tYt,xf),AKt.$b=function(){this.a.$b()},AKt.Hc=function(t){return b2(this,t)},AKt.Kc=function(){return new alt(this.a)},AKt.Mc=function(t){var e;return!!b2(this,t)&&(e=jz(t,42).cd(),this.a.Bc(e),!0)},AKt.gc=function(){return this.a.gc()},mW(XKt,"AbstractHashMap/EntrySet",261),fBt(262,1,YKt,alt),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return tnt(this)},AKt.Ob=function(){return this.b},AKt.Qb=function(){a8(this)},AKt.b=!1,mW(XKt,"AbstractHashMap/EntrySetIterator",262),fBt(417,1,YKt,Af),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return rE(this)},AKt.Pb=function(){return bX(this)},AKt.Qb=function(){lK(this)},AKt.b=0,AKt.c=-1,mW(XKt,"AbstractList/IteratorImpl",417),fBt(96,417,rYt,C2),AKt.Qb=function(){lK(this)},AKt.Rb=function(t){wR(this,t)},AKt.Sb=function(){return this.b>0},AKt.Tb=function(){return this.b},AKt.Ub=function(){return xO(this.b>0),this.a.Xb(this.c=--this.b)},AKt.Vb=function(){return this.b-1},AKt.Wb=function(t){CO(-1!=this.c),this.a._c(this.c,t)},mW(XKt,"AbstractList/ListIteratorImpl",96),fBt(219,52,MYt,s1),AKt.Vc=function(t,e){BJ(t,this.b),this.c.Vc(this.a+t,e),++this.b},AKt.Xb=function(t){return u1(t,this.b),this.c.Xb(this.a+t)},AKt.$c=function(t){var e;return u1(t,this.b),e=this.c.$c(this.a+t),--this.b,e},AKt._c=function(t,e){return u1(t,this.b),this.c._c(this.a+t,e)},AKt.gc=function(){return this.b},AKt.a=0,AKt.b=0,mW(XKt,"AbstractList/SubList",219),fBt(384,JKt,tYt,Ef),AKt.$b=function(){this.a.$b()},AKt.Hc=function(t){return this.a._b(t)},AKt.Kc=function(){return new Tf(this.a.vc().Kc())},AKt.Mc=function(t){return!!this.a._b(t)&&(this.a.Bc(t),!0)},AKt.gc=function(){return this.a.gc()},mW(XKt,"AbstractMap/1",384),fBt(691,1,YKt,Tf),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return this.a.Ob()},AKt.Pb=function(){return jz(this.a.Pb(),42).cd()},AKt.Qb=function(){this.a.Qb()},mW(XKt,"AbstractMap/1/1",691),fBt(226,28,QKt,Sf),AKt.$b=function(){this.a.$b()},AKt.Hc=function(t){return this.a.uc(t)},AKt.Kc=function(){return new Nf(this.a.vc().Kc())},AKt.gc=function(){return this.a.gc()},mW(XKt,"AbstractMap/2",226),fBt(294,1,YKt,Nf),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return this.a.Ob()},AKt.Pb=function(){return jz(this.a.Pb(),42).dd()},AKt.Qb=function(){this.a.Qb()},mW(XKt,"AbstractMap/2/1",294),fBt(484,1,{484:1,42:1}),AKt.Fb=function(t){var e;return!!iP(t,42)&&(e=jz(t,42),iY(this.d,e.cd())&&iY(this.e,e.dd()))},AKt.cd=function(){return this.d},AKt.dd=function(){return this.e},AKt.Hb=function(){return NB(this.d)^NB(this.e)},AKt.ed=function(t){return pR(this,t)},AKt.Ib=function(){return this.d+"="+this.e},mW(XKt,"AbstractMap/AbstractEntry",484),fBt(383,484,{484:1,383:1,42:1},xE),mW(XKt,"AbstractMap/SimpleEntry",383),fBt(1984,1,KXt),AKt.Fb=function(t){var e;return!!iP(t,42)&&(e=jz(t,42),iY(this.cd(),e.cd())&&iY(this.dd(),e.dd()))},AKt.Hb=function(){return NB(this.cd())^NB(this.dd())},AKt.Ib=function(){return this.cd()+"="+this.dd()},mW(XKt,aYt,1984),fBt(1992,1967,eYt),AKt.tc=function(t){return z4(this,t)},AKt._b=function(t){return LF(this,t)},AKt.vc=function(){return new jf(this)},AKt.xc=function(t){return zD(hlt(this,t))},AKt.ec=function(){return new Rf(this)},mW(XKt,"AbstractNavigableMap",1992),fBt(739,JKt,tYt,jf),AKt.Hc=function(t){return iP(t,42)&&z4(this.b,jz(t,42))},AKt.Kc=function(){return new jR(this.b)},AKt.Mc=function(t){var e;return!!iP(t,42)&&(e=jz(t,42),H7(this.b,e))},AKt.gc=function(){return this.b.c},mW(XKt,"AbstractNavigableMap/EntrySet",739),fBt(493,JKt,iYt,Rf),AKt.Nc=function(){return new dE(this)},AKt.$b=function(){bv(this.a)},AKt.Hc=function(t){return LF(this.a,t)},AKt.Kc=function(){return new Ff(new jR(new PL(this.a).b))},AKt.Mc=function(t){return!!LF(this.a,t)&&(IQ(this.a,t),!0)},AKt.gc=function(){return this.a.c},mW(XKt,"AbstractNavigableMap/NavigableKeySet",493),fBt(494,1,YKt,Ff),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return rE(this.a.a)},AKt.Pb=function(){return bO(this.a).cd()},AKt.Qb=function(){tj(this.a)},mW(XKt,"AbstractNavigableMap/NavigableKeySet/1",494),fBt(2004,28,QKt),AKt.Fc=function(t){return F7(ext(this,t)),!0},AKt.Gc=function(t){return kK(t),mV(t!=this,"Can't add a queue to itself"),jrt(this,t)},AKt.$b=function(){for(;null!=btt(this););},mW(XKt,"AbstractQueue",2004),fBt(302,28,{4:1,20:1,28:1,14:1},Bb,f1),AKt.Fc=function(t){return d3(this,t),!0},AKt.$b=function(){a5(this)},AKt.Hc=function(t){return fst(new hY(this),t)},AKt.dc=function(){return Gv(this)},AKt.Kc=function(){return new hY(this)},AKt.Mc=function(t){return VQ(new hY(this),t)},AKt.gc=function(){return this.c-this.b&this.a.length-1},AKt.Nc=function(){return new d1(this,272)},AKt.Qc=function(t){var e;return e=this.c-this.b&this.a.length-1,t.length<e&&(t=zy(new Array(e),t)),art(this,t,e),t.length>e&&IW(t,e,null),t},AKt.b=0,AKt.c=0,mW(XKt,"ArrayDeque",302),fBt(446,1,YKt,hY),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return this.a!=this.b},AKt.Pb=function(){return Fut(this)},AKt.Qb=function(){eit(this)},AKt.a=0,AKt.b=0,AKt.c=-1,mW(XKt,"ArrayDeque/IteratorImpl",446),fBt(12,52,YXt,Mb,X6,JF),AKt.Vc=function(t,e){kq(this,t,e)},AKt.Fc=function(t){return Gz(this,t)},AKt.Wc=function(t,e){return sut(this,t,e)},AKt.Gc=function(t){return pst(this,t)},AKt.$b=function(){this.c=P7(Ite,zKt,1,0,5,1)},AKt.Hc=function(t){return-1!=y9(this,t,0)},AKt.Jc=function(t){Det(this,t)},AKt.Xb=function(t){return PH(this,t)},AKt.Xc=function(t){return y9(this,t,0)},AKt.dc=function(){return 0==this.c.length},AKt.Kc=function(){return new Gf(this)},AKt.$c=function(t){return s6(this,t)},AKt.Mc=function(t){return w9(this,t)},AKt.Ud=function(t,e){c1(this,t,e)},AKt._c=function(t,e){return i4(this,t,e)},AKt.gc=function(){return this.c.length},AKt.ad=function(t){bM(this,t)},AKt.Pc=function(){return hO(this)},AKt.Qc=function(t){return Ymt(this,t)};var cne,lne,une,hne,dne,fne,gne,pne,mne,bne=mW(XKt,"ArrayList",12);fBt(7,1,YKt,Gf),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return wM(this)},AKt.Pb=function(){return Q1(this)},AKt.Qb=function(){DG(this)},AKt.a=0,AKt.b=-1,mW(XKt,"ArrayList/1",7),fBt(2013,i.Function,{},A),AKt.te=function(t,e){return Edt(t,e)},fBt(154,52,XXt,Xv),AKt.Hc=function(t){return-1!=dit(this,t)},AKt.Jc=function(t){var e,n,i,r;for(kK(t),i=0,r=(n=this.a).length;i<r;++i)e=n[i],t.td(e)},AKt.Xb=function(t){return LH(this,t)},AKt._c=function(t,e){var n;return u1(t,this.a.length),n=this.a[t],IW(this.a,t,e),n},AKt.gc=function(){return this.a.length},AKt.ad=function(t){wq(this.a,this.a.length,t)},AKt.Pc=function(){return Xmt(this,P7(Ite,zKt,1,this.a.length,5,1))},AKt.Qc=function(t){return Xmt(this,t)},mW(XKt,"Arrays/ArrayList",154),fBt(940,52,XXt,E),AKt.Hc=function(t){return!1},AKt.Xb=function(t){return wI(t)},AKt.Kc=function(){return AX(),BA(),hne},AKt.Yc=function(){return AX(),BA(),hne},AKt.gc=function(){return 0},mW(XKt,"Collections/EmptyList",940),fBt(941,1,rYt,T),AKt.Nb=function(t){lG(this,t)},AKt.Rb=function(t){throw $b(new pw)},AKt.Ob=function(){return!1},AKt.Sb=function(){return!1},AKt.Pb=function(){throw $b(new ww)},AKt.Tb=function(){return 0},AKt.Ub=function(){throw $b(new ww)},AKt.Vb=function(){return-1},AKt.Qb=function(){throw $b(new fw)},AKt.Wb=function(t){throw $b(new fw)},mW(XKt,"Collections/EmptyListIterator",941),fBt(943,1967,yYt,S),AKt._b=function(t){return!1},AKt.uc=function(t){return!1},AKt.vc=function(){return AX(),une},AKt.xc=function(t){return null},AKt.ec=function(){return AX(),une},AKt.gc=function(){return 0},AKt.Cc=function(){return AX(),cne},mW(XKt,"Collections/EmptyMap",943),fBt(942,JKt,CYt,x),AKt.Hc=function(t){return!1},AKt.Kc=function(){return AX(),BA(),hne},AKt.gc=function(){return 0},mW(XKt,"Collections/EmptySet",942),fBt(599,52,{3:1,20:1,28:1,52:1,14:1,15:1},Vf),AKt.Hc=function(t){return iY(this.a,t)},AKt.Xb=function(t){return u1(t,1),this.a},AKt.gc=function(){return 1},mW(XKt,"Collections/SingletonList",599),fBt(372,1,bYt,$f),AKt.Jc=function(t){t4(this,t)},AKt.Lc=function(){return new OH(null,this.Nc())},AKt.Nc=function(){return new d1(this,0)},AKt.Oc=function(){return new OH(null,this.Nc())},AKt.Fc=function(t){return aC()},AKt.Gc=function(t){return sC()},AKt.$b=function(){cC()},AKt.Hc=function(t){return PA(this,t)},AKt.Ic=function(t){return LA(this,t)},AKt.dc=function(){return this.b.dc()},AKt.Kc=function(){return new zf(this.b.Kc())},AKt.Mc=function(t){return lC()},AKt.gc=function(){return this.b.gc()},AKt.Pc=function(){return this.b.Pc()},AKt.Qc=function(t){return OA(this,t)},AKt.Ib=function(){return $ft(this.b)},mW(XKt,"Collections/UnmodifiableCollection",372),fBt(371,1,YKt,zf),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return this.b.Ob()},AKt.Pb=function(){return this.b.Pb()},AKt.Qb=function(){uC()},mW(XKt,"Collections/UnmodifiableCollectionIterator",371),fBt(531,372,ZXt,hL),AKt.Nc=function(){return new d1(this,16)},AKt.Vc=function(t,e){throw $b(new pw)},AKt.Wc=function(t,e){throw $b(new pw)},AKt.Fb=function(t){return Pht(this.a,t)},AKt.Xb=function(t){return this.a.Xb(t)},AKt.Hb=function(){return Jct(this.a)},AKt.Xc=function(t){return this.a.Xc(t)},AKt.dc=function(){return this.a.dc()},AKt.Yc=function(){return new dL(this.a.Zc(0))},AKt.Zc=function(t){return new dL(this.a.Zc(t))},AKt.$c=function(t){throw $b(new pw)},AKt._c=function(t,e){throw $b(new pw)},AKt.ad=function(t){throw $b(new pw)},AKt.bd=function(t,e){return new hL(this.a.bd(t,e))},mW(XKt,"Collections/UnmodifiableList",531),fBt(690,371,rYt,dL),AKt.Qb=function(){uC()},AKt.Rb=function(t){throw $b(new pw)},AKt.Sb=function(){return this.a.Sb()},AKt.Tb=function(){return this.a.Tb()},AKt.Ub=function(){return this.a.Ub()},AKt.Vb=function(){return this.a.Vb()},AKt.Wb=function(t){throw $b(new pw)},mW(XKt,"Collections/UnmodifiableListIterator",690),fBt(600,1,ZKt,Uf),AKt.wc=function(t){Jot(this,t)},AKt.yc=function(t,e,n){return Qdt(this,t,e,n)},AKt.$b=function(){throw $b(new pw)},AKt._b=function(t){return this.c._b(t)},AKt.uc=function(t){return RA(this,t)},AKt.vc=function(){return tY(this)},AKt.Fb=function(t){return jA(this,t)},AKt.xc=function(t){return this.c.xc(t)},AKt.Hb=function(){return Jct(this.c)},AKt.dc=function(){return this.c.dc()},AKt.ec=function(){return eY(this)},AKt.zc=function(t,e){throw $b(new pw)},AKt.Bc=function(t){throw $b(new pw)},AKt.gc=function(){return this.c.gc()},AKt.Ib=function(){return $ft(this.c)},AKt.Cc=function(){return JK(this)},mW(XKt,"Collections/UnmodifiableMap",600),fBt(382,372,_Yt,Dy),AKt.Nc=function(){return new d1(this,1)},AKt.Fb=function(t){return Pht(this.b,t)},AKt.Hb=function(){return Jct(this.b)},mW(XKt,"Collections/UnmodifiableSet",382),fBt(944,382,_Yt,By),AKt.Hc=function(t){return NA(this,t)},AKt.Ic=function(t){return this.b.Ic(t)},AKt.Kc=function(){return new Hf(this.b.Kc())},AKt.Pc=function(){var t;return v5(t=this.b.Pc(),t.length),t},AKt.Qc=function(t){return TZ(this,t)},mW(XKt,"Collections/UnmodifiableMap/UnmodifiableEntrySet",944),fBt(945,1,YKt,Hf),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return new qf(jz(this.a.Pb(),42))},AKt.Ob=function(){return this.a.Ob()},AKt.Qb=function(){throw $b(new pw)},mW(XKt,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",945),fBt(688,1,KXt,qf),AKt.Fb=function(t){return this.a.Fb(t)},AKt.cd=function(){return this.a.cd()},AKt.dd=function(){return this.a.dd()},AKt.Hb=function(){return this.a.Hb()},AKt.ed=function(t){throw $b(new pw)},AKt.Ib=function(){return $ft(this.a)},mW(XKt,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",688),fBt(601,531,{20:1,14:1,15:1,54:1},Iy),mW(XKt,"Collections/UnmodifiableRandomAccessList",601),fBt(689,382,AYt,fL),AKt.Nc=function(){return new dE(this)},AKt.Fb=function(t){return Pht(this.a,t)},AKt.Hb=function(){return Jct(this.a)},mW(XKt,"Collections/UnmodifiableSortedSet",689),fBt(847,1,QXt,N),AKt.ue=function(t,e){var n;return 0!=(n=_5(jz(t,11),jz(e,11)))?n:Jjt(jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(XKt,"Comparator/lambda$0$Type",847),fBt(751,1,QXt,R),AKt.ue=function(t,e){return RH(jz(t,35),jz(e,35))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return xX(),gne},mW(XKt,"Comparators/NaturalOrderComparator",751),fBt(1177,1,QXt,F),AKt.ue=function(t,e){return FH(jz(t,35),jz(e,35))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return xX(),fne},mW(XKt,"Comparators/ReverseNaturalOrderComparator",1177),fBt(64,1,QXt,Qf),AKt.Fb=function(t){return this===t},AKt.ue=function(t,e){return this.a.ue(e,t)},AKt.ve=function(){return this.a},mW(XKt,"Comparators/ReversedComparator",64),fBt(166,60,$Yt,mw),mW(XKt,"ConcurrentModificationException",166),fBt(1904,1,JXt,j),AKt.we=function(t){lpt(this,t)},AKt.Ib=function(){return"DoubleSummaryStatistics[count = "+mU(this.a)+", avg = "+(aE(this.a,0)?u6(this)/v2(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+u6(this)+"]"},AKt.a=0,AKt.b=RXt,AKt.c=NXt,AKt.d=0,AKt.e=0,AKt.f=0,mW(XKt,"DoubleSummaryStatistics",1904),fBt(1805,60,$Yt,bw),mW(XKt,"EmptyStackException",1805),fBt(451,1967,ZKt,zft),AKt.zc=function(t,e){return dR(this,t,e)},AKt.$b=function(){_K(this)},AKt._b=function(t){return oE(this,t)},AKt.uc=function(t){var e,n;for(n=new KA(this.a);n.a<n.c.a.length;)if(e=o5(n),iY(t,this.b[e.g]))return!0;return!1},AKt.vc=function(){return new Jf(this)},AKt.xc=function(t){return aY(this,t)},AKt.Bc=function(t){return MJ(this,t)},AKt.gc=function(){return this.a.c},mW(XKt,"EnumMap",451),fBt(1352,JKt,tYt,Jf),AKt.$b=function(){_K(this.a)},AKt.Hc=function(t){return m2(this,t)},AKt.Kc=function(){return new DH(this.a)},AKt.Mc=function(t){var e;return!!m2(this,t)&&(e=jz(t,42).cd(),MJ(this.a,e),!0)},AKt.gc=function(){return this.a.a.c},mW(XKt,"EnumMap/EntrySet",1352),fBt(1353,1,YKt,DH),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return this.b=o5(this.a),new EE(this.c,this.b)},AKt.Ob=function(){return kM(this.a)},AKt.Qb=function(){CO(!!this.b),MJ(this.c,this.b),this.b=null},mW(XKt,"EnumMap/EntrySetIterator",1353),fBt(1354,1984,KXt,EE),AKt.cd=function(){return this.a},AKt.dd=function(){return this.b.b[this.a.g]},AKt.ed=function(t){return yG(this.b,this.a.g,t)},mW(XKt,"EnumMap/MapEntry",1354),fBt(174,JKt,{20:1,28:1,14:1,174:1,21:1});var wne=mW(XKt,"EnumSet",174);fBt(156,174,{20:1,28:1,14:1,174:1,156:1,21:1},YF),AKt.Fc=function(t){return srt(this,jz(t,22))},AKt.Hc=function(t){return Eq(this,t)},AKt.Kc=function(){return new KA(this)},AKt.Mc=function(t){return Tq(this,t)},AKt.gc=function(){return this.c},AKt.c=0,mW(XKt,"EnumSet/EnumSetImpl",156),fBt(343,1,YKt,KA),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return o5(this)},AKt.Ob=function(){return kM(this)},AKt.Qb=function(){CO(-1!=this.b),IW(this.c.b,this.b,null),--this.c.c,this.b=-1},AKt.a=-1,AKt.b=-1,mW(XKt,"EnumSet/EnumSetImpl/IteratorImpl",343),fBt(43,488,tZt,Pb,UA,bI),AKt.re=function(t,e){return VD(t)===VD(e)||null!=t&&Pht(t,e)},AKt.se=function(t){return 0|Jct(t)},mW(XKt,"HashMap",43),fBt(53,JKt,eZt,Ow,hC,IH),AKt.Fc=function(t){return _G(this,t)},AKt.$b=function(){this.a.$b()},AKt.Hc=function(t){return FA(this,t)},AKt.dc=function(){return 0==this.a.gc()},AKt.Kc=function(){return this.a.ec().Kc()},AKt.Mc=function(t){return tP(this,t)},AKt.gc=function(){return this.a.gc()};var kne,vne=mW(XKt,"HashSet",53);fBt(1781,1,fYt,$),AKt.ud=function(t){iat(this,t)},AKt.Ib=function(){return"IntSummaryStatistics[count = "+mU(this.a)+", avg = "+(aE(this.a,0)?v2(this.d)/v2(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+mU(this.d)+"]"},AKt.a=0,AKt.b=FYt,AKt.c=OKt,AKt.d=0,mW(XKt,"IntSummaryStatistics",1781),fBt(1049,1,mYt,tB),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new A2(this)},AKt.c=0,mW(XKt,"InternalHashCodeMap",1049),fBt(711,1,YKt,A2),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return this.d=this.a[this.c++],this.d},AKt.Ob=function(){var t;return this.c<this.a.length||!(t=this.b.next()).done&&(this.a=t.value[1],this.c=0,!0)},AKt.Qb=function(){pBt(this.e,this.d.cd()),0!=this.c&&--this.c},AKt.c=0,AKt.d=null,mW(XKt,"InternalHashCodeMap/1",711),fBt(1047,1,mYt,eB),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new p5(this)},AKt.c=0,AKt.d=0,mW(XKt,"InternalStringMap",1047),fBt(710,1,YKt,p5),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return this.c=this.a,this.a=this.b.next(),new XF(this.d,this.c,this.d.d)},AKt.Ob=function(){return!this.a.done},AKt.Qb=function(){Hat(this.d,this.c.value[0])},mW(XKt,"InternalStringMap/1",710),fBt(1048,1984,KXt,XF),AKt.cd=function(){return this.b.value[0]},AKt.dd=function(){return this.a.d!=this.c?cE(this.a,this.b.value[0]):this.b.value[1]},AKt.ed=function(t){return aft(this.a,this.b.value[0],t)},AKt.c=0,mW(XKt,"InternalStringMap/2",1048),fBt(228,43,tZt,m5,z7),AKt.$b=function(){kR(this)},AKt._b=function(t){return uE(this,t)},AKt.uc=function(t){var e;for(e=this.d.a;e!=this.d;){if(iY(e.e,t))return!0;e=e.a}return!1},AKt.vc=function(){return new eg(this)},AKt.xc=function(t){return utt(this,t)},AKt.zc=function(t,e){return Zmt(this,t,e)},AKt.Bc=function(t){return k9(this,t)},AKt.gc=function(){return MA(this.e)},AKt.c=!1,mW(XKt,"LinkedHashMap",228),fBt(387,383,{484:1,383:1,387:1,42:1},EO,Qz),mW(XKt,"LinkedHashMap/ChainEntry",387),fBt(701,JKt,tYt,eg),AKt.$b=function(){kR(this.a)},AKt.Hc=function(t){return w2(this,t)},AKt.Kc=function(){return new cK(this)},AKt.Mc=function(t){var e;return!!w2(this,t)&&(e=jz(t,42).cd(),k9(this.a,e),!0)},AKt.gc=function(){return MA(this.a.e)},mW(XKt,"LinkedHashMap/EntrySet",701),fBt(702,1,YKt,cK),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return s8(this)},AKt.Ob=function(){return this.b!=this.c.a.d},AKt.Qb=function(){CO(!!this.a),p2(this.c.a.e,this),OV(this.a),m6(this.c.a.e,this.a.d),hN(this.c.a.e,this),this.a=null},mW(XKt,"LinkedHashMap/EntrySet/EntryIterator",702),fBt(178,53,eZt,lB,BL,BH);var yne=mW(XKt,"LinkedHashSet",178);fBt(68,1964,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1},YA,QF),AKt.Fc=function(t){return LV(this,t)},AKt.$b=function(){wX(this)},AKt.Zc=function(t){return cbt(this,t)},AKt.gc=function(){return this.b},AKt.b=0;var _ne,Cne,Ane,xne,Ene,Tne=mW(XKt,"LinkedList",68);fBt(970,1,rYt,ZF),AKt.Nb=function(t){lG(this,t)},AKt.Rb=function(t){QG(this,t)},AKt.Ob=function(){return yC(this)},AKt.Sb=function(){return this.b.b!=this.d.a},AKt.Pb=function(){return h3(this)},AKt.Tb=function(){return this.a},AKt.Ub=function(){return q0(this)},AKt.Vb=function(){return this.a-1},AKt.Qb=function(){wet(this)},AKt.Wb=function(t){CO(!!this.c),this.c.c=t},AKt.a=0,AKt.c=null,mW(XKt,"LinkedList/ListIteratorImpl",970),fBt(608,1,{},M),mW(XKt,"LinkedList/Node",608),fBt(1959,1,{}),mW(XKt,"Locale",1959),fBt(861,1959,{},P),AKt.Ib=function(){return""},mW(XKt,"Locale/1",861),fBt(862,1959,{},L),AKt.Ib=function(){return"unknown"},mW(XKt,"Locale/4",862),fBt(109,60,{3:1,102:1,60:1,78:1,109:1},ww,uY),mW(XKt,"NoSuchElementException",109),fBt(404,1,{404:1},mv),AKt.Fb=function(t){var e;return t===this||!!iP(t,404)&&(e=jz(t,404),iY(this.a,e.a))},AKt.Hb=function(){return NB(this.a)},AKt.Ib=function(){return null!=this.a?HKt+kL(this.a)+")":"Optional.empty()"},mW(XKt,"Optional",404),fBt(463,1,{463:1},EI,wO),AKt.Fb=function(t){var e;return t===this||!!iP(t,463)&&(e=jz(t,463),this.a==e.a&&0==Edt(this.b,e.b))},AKt.Hb=function(){return this.a?EQ(this.b):0},AKt.Ib=function(){return this.a?"OptionalDouble.of("+this.b+")":"OptionalDouble.empty()"},AKt.a=!1,AKt.b=0,mW(XKt,"OptionalDouble",463),fBt(517,1,{517:1},TI,kO),AKt.Fb=function(t){var e;return t===this||!!iP(t,517)&&(e=jz(t,517),this.a==e.a&&0==yM(this.b,e.b))},AKt.Hb=function(){return this.a?this.b:0},AKt.Ib=function(){return this.a?"OptionalInt.of("+this.b+")":"OptionalInt.empty()"},AKt.a=!1,AKt.b=0,mW(XKt,"OptionalInt",517),fBt(503,2004,QKt,UU),AKt.Gc=function(t){return nyt(this,t)},AKt.$b=function(){this.b.c=P7(Ite,zKt,1,0,5,1)},AKt.Hc=function(t){return-1!=(null==t?-1:y9(this.b,t,0))},AKt.Kc=function(){return new Wf(this)},AKt.Mc=function(t){return crt(this,t)},AKt.gc=function(){return this.b.c.length},AKt.Nc=function(){return new d1(this,256)},AKt.Pc=function(){return hO(this.b)},AKt.Qc=function(t){return Ymt(this.b,t)},mW(XKt,"PriorityQueue",503),fBt(1277,1,YKt,Wf),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return this.a<this.c.b.c.length},AKt.Pb=function(){return xO(this.a<this.c.b.c.length),this.b=this.a++,PH(this.c.b,this.b)},AKt.Qb=function(){CO(-1!=this.b),lrt(this.c,this.a=this.b),this.b=-1},AKt.a=0,AKt.b=-1,mW(XKt,"PriorityQueue/1",1277),fBt(230,1,{230:1},cft,E5),AKt.a=0,AKt.b=0;var Sne,Dne,Ine,Bne=0;mW(XKt,"Random",230),fBt(27,1,uYt,d1,HG,EY),AKt.qd=function(){return this.a},AKt.rd=function(){return LU(this),this.c},AKt.Nb=function(t){LU(this),this.d.Nb(t)},AKt.sd=function(t){return Qtt(this,t)},AKt.a=0,AKt.c=0,mW(XKt,"Spliterators/IteratorSpliterator",27),fBt(485,27,uYt,dE),mW(XKt,"SortedSet/1",485),fBt(602,1,JXt,Kf),AKt.we=function(t){this.a.td(t)},mW(XKt,"Spliterator/OfDouble/0methodref$accept$Type",602),fBt(603,1,JXt,Yf),AKt.we=function(t){this.a.td(t)},mW(XKt,"Spliterator/OfDouble/1methodref$accept$Type",603),fBt(604,1,fYt,Xf),AKt.ud=function(t){this.a.td(ndt(t))},mW(XKt,"Spliterator/OfInt/2methodref$accept$Type",604),fBt(605,1,fYt,Zf),AKt.ud=function(t){this.a.td(ndt(t))},mW(XKt,"Spliterator/OfInt/3methodref$accept$Type",605),fBt(617,1,uYt),AKt.Nb=function(t){pC(this,t)},AKt.qd=function(){return this.d},AKt.rd=function(){return this.e},AKt.d=0,AKt.e=0,mW(XKt,"Spliterators/BaseSpliterator",617),fBt(721,617,uYt),AKt.xe=function(t){gC(this,t)},AKt.Nb=function(t){iP(t,182)?gC(this,jz(t,182)):gC(this,new Yf(t))},AKt.sd=function(t){return iP(t,182)?this.ye(jz(t,182)):this.ye(new Kf(t))},mW(XKt,"Spliterators/AbstractDoubleSpliterator",721),fBt(720,617,uYt),AKt.xe=function(t){gC(this,t)},AKt.Nb=function(t){iP(t,196)?gC(this,jz(t,196)):gC(this,new Zf(t))},AKt.sd=function(t){return iP(t,196)?this.ye(jz(t,196)):this.ye(new Xf(t))},mW(XKt,"Spliterators/AbstractIntSpliterator",720),fBt(540,617,uYt),mW(XKt,"Spliterators/AbstractSpliterator",540),fBt(692,1,uYt),AKt.Nb=function(t){pC(this,t)},AKt.qd=function(){return this.b},AKt.rd=function(){return this.d-this.c},AKt.b=0,AKt.c=0,AKt.d=0,mW(XKt,"Spliterators/BaseArraySpliterator",692),fBt(947,692,uYt,jV),AKt.ze=function(t,e){i_(this,jz(t,38),e)},AKt.Nb=function(t){LW(this,t)},AKt.sd=function(t){return N6(this,t)},mW(XKt,"Spliterators/ArraySpliterator",947),fBt(693,692,uYt,RF),AKt.ze=function(t,e){r_(this,jz(t,182),e)},AKt.xe=function(t){LW(this,t)},AKt.Nb=function(t){iP(t,182)?LW(this,jz(t,182)):LW(this,new Yf(t))},AKt.ye=function(t){return N6(this,t)},AKt.sd=function(t){return iP(t,182)?N6(this,jz(t,182)):N6(this,new Kf(t))},mW(XKt,"Spliterators/DoubleArraySpliterator",693),fBt(1968,1,uYt),AKt.Nb=function(t){pC(this,t)},AKt.qd=function(){return 16448},AKt.rd=function(){return 0},mW(XKt,"Spliterators/EmptySpliterator",1968),fBt(946,1968,uYt,U),AKt.xe=function(t){Fh(t)},AKt.Nb=function(t){iP(t,196)?Fh(jz(t,196)):Fh(new Zf(t))},AKt.ye=function(t){return hE(t)},AKt.sd=function(t){return iP(t,196)?hE(jz(t,196)):hE(new Xf(t))},mW(XKt,"Spliterators/EmptySpliterator/OfInt",946),fBt(580,52,uZt,Rw),AKt.Vc=function(t,e){NU(t,this.a.c.length+1),kq(this.a,t,e)},AKt.Fc=function(t){return Gz(this.a,t)},AKt.Wc=function(t,e){return NU(t,this.a.c.length+1),sut(this.a,t,e)},AKt.Gc=function(t){return pst(this.a,t)},AKt.$b=function(){this.a.c=P7(Ite,zKt,1,0,5,1)},AKt.Hc=function(t){return-1!=y9(this.a,t,0)},AKt.Ic=function(t){return sst(this.a,t)},AKt.Jc=function(t){Det(this.a,t)},AKt.Xb=function(t){return NU(t,this.a.c.length),PH(this.a,t)},AKt.Xc=function(t){return y9(this.a,t,0)},AKt.dc=function(){return 0==this.a.c.length},AKt.Kc=function(){return new Gf(this.a)},AKt.$c=function(t){return NU(t,this.a.c.length),s6(this.a,t)},AKt.Ud=function(t,e){c1(this.a,t,e)},AKt._c=function(t,e){return NU(t,this.a.c.length),i4(this.a,t,e)},AKt.gc=function(){return this.a.c.length},AKt.ad=function(t){bM(this.a,t)},AKt.bd=function(t,e){return new s1(this.a,t,e)},AKt.Pc=function(){return hO(this.a)},AKt.Qc=function(t){return Ymt(this.a,t)},AKt.Ib=function(){return Mxt(this.a)},mW(XKt,"Vector",580),fBt(809,580,uZt,ak),mW(XKt,"Stack",809),fBt(206,1,{206:1},Bat),AKt.Ib=function(){return G0(this)},mW(XKt,"StringJoiner",206),fBt(544,1992,{3:1,83:1,171:1,161:1},GA,GU),AKt.$b=function(){bv(this)},AKt.vc=function(){return new PL(this)},AKt.zc=function(t,e){return Act(this,t,e)},AKt.Bc=function(t){return IQ(this,t)},AKt.gc=function(){return this.c},AKt.c=0,mW(XKt,"TreeMap",544),fBt(390,1,YKt,jR),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return bO(this)},AKt.Ob=function(){return rE(this.a)},AKt.Qb=function(){tj(this)},mW(XKt,"TreeMap/EntryIterator",390),fBt(435,739,tYt,PL),AKt.$b=function(){bv(this.a)},mW(XKt,"TreeMap/EntrySet",435),fBt(436,383,{484:1,383:1,42:1,436:1},$7),AKt.b=!1;var Mne,Pne,Lne,One,Nne=mW(XKt,"TreeMap/Node",436);fBt(621,1,{},H),AKt.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},AKt.a=!1,AKt.b=!1,AKt.c=!1,mW(XKt,"TreeMap/State",621),fBt(297,22,hZt,gE),AKt.Ae=function(){return!1},AKt.Be=function(){return!1};var Rne,Fne=$nt(XKt,"TreeMap/SubMapType",297,Ute,X2,cj);fBt(1112,297,hZt,BB),AKt.Be=function(){return!0},$nt(XKt,"TreeMap/SubMapType/1",1112,Fne,null,null),fBt(1113,297,hZt,DM),AKt.Ae=function(){return!0},AKt.Be=function(){return!0},$nt(XKt,"TreeMap/SubMapType/2",1113,Fne,null,null),fBt(1114,297,hZt,MB),AKt.Ae=function(){return!0},$nt(XKt,"TreeMap/SubMapType/3",1114,Fne,null,null),fBt(208,JKt,{3:1,20:1,28:1,14:1,271:1,21:1,84:1,208:1},Hw,fC),AKt.Nc=function(){return new dE(this)},AKt.Fc=function(t){return ZG(this,t)},AKt.$b=function(){bv(this.a)},AKt.Hc=function(t){return LF(this.a,t)},AKt.Kc=function(){return new Ff(new jR(new PL(new Rf(this.a).a).b))},AKt.Mc=function(t){return CL(this,t)},AKt.gc=function(){return this.a.c};var jne=mW(XKt,"TreeSet",208);fBt(966,1,{},ng),AKt.Ce=function(t,e){return LN(this.a,t,e)},mW(dZt,"BinaryOperator/lambda$0$Type",966),fBt(967,1,{},ig),AKt.Ce=function(t,e){return ON(this.a,t,e)},mW(dZt,"BinaryOperator/lambda$1$Type",967),fBt(846,1,{},q),AKt.Kb=function(t){return t},mW(dZt,"Function/lambda$0$Type",846),fBt(431,1,OYt,rg),AKt.Mb=function(t){return!this.a.Mb(t)},mW(dZt,"Predicate/lambda$2$Type",431),fBt(572,1,{572:1});var $ne,zne,Vne=mW(fZt,"Handler",572);fBt(2007,1,RKt),AKt.ne=function(){return"DUMMY"},AKt.Ib=function(){return this.ne()},mW(fZt,"Level",2007),fBt(1621,2007,RKt,G),AKt.ne=function(){return"INFO"},mW(fZt,"Level/LevelInfo",1621),fBt(1640,1,{},Nw),mW(fZt,"LogManager",1640),fBt(1780,1,RKt,ej),AKt.b=null,mW(fZt,"LogRecord",1780),fBt(512,1,{512:1},w4),AKt.e=!1;var Hne,qne,Une,Gne=!1,Wne=!1,Kne=!1,Yne=!1,Xne=!1;mW(fZt,"Logger",512),fBt(819,572,{572:1},W),mW(fZt,"SimpleConsoleLogHandler",819),fBt(132,22,{3:1,35:1,22:1,132:1},pE);var Zne,Qne=$nt(mZt,"Collector/Characteristics",132,Ute,p1,lj);fBt(744,1,{},vG),mW(mZt,"CollectorImpl",744),fBt(1060,1,{},K),AKt.Ce=function(t,e){return Dht(jz(t,206),jz(e,206))},mW(mZt,"Collectors/10methodref$merge$Type",1060),fBt(1061,1,{},Y),AKt.Kb=function(t){return G0(jz(t,206))},mW(mZt,"Collectors/11methodref$toString$Type",1061),fBt(1062,1,{},og),AKt.Kb=function(t){return cL(),!!_I(t)},mW(mZt,"Collectors/12methodref$test$Type",1062),fBt(251,1,{},z),AKt.Od=function(t,e){jz(t,14).Fc(e)},mW(mZt,"Collectors/20methodref$add$Type",251),fBt(253,1,{},V),AKt.Ee=function(){return new Mb},mW(mZt,"Collectors/21methodref$ctor$Type",253),fBt(346,1,{},X),AKt.Ee=function(){return new Ow},mW(mZt,"Collectors/23methodref$ctor$Type",346),fBt(347,1,{},Z),AKt.Od=function(t,e){_G(jz(t,53),e)},mW(mZt,"Collectors/24methodref$add$Type",347),fBt(1055,1,{},Q),AKt.Ce=function(t,e){return ZA(jz(t,15),jz(e,14))},mW(mZt,"Collectors/4methodref$addAll$Type",1055),fBt(1059,1,{},J),AKt.Od=function(t,e){h6(jz(t,206),jz(e,475))},mW(mZt,"Collectors/9methodref$add$Type",1059),fBt(1058,1,{},Yz),AKt.Ee=function(){return new Bat(this.a,this.b,this.c)},mW(mZt,"Collectors/lambda$15$Type",1058),fBt(1063,1,{},tt),AKt.Ee=function(){var t;return Zmt(t=new m5,(cL(),!1),new Mb),Zmt(t,!0,new Mb),t},mW(mZt,"Collectors/lambda$22$Type",1063),fBt(1064,1,{},ag),AKt.Ee=function(){return Est(Vy(Ite,1),zKt,1,5,[this.a])},mW(mZt,"Collectors/lambda$25$Type",1064),fBt(1065,1,{},sg),AKt.Od=function(t,e){jH(this.a,ent(t))},mW(mZt,"Collectors/lambda$26$Type",1065),fBt(1066,1,{},cg),AKt.Ce=function(t,e){return RU(this.a,ent(t),ent(e))},mW(mZt,"Collectors/lambda$27$Type",1066),fBt(1067,1,{},et),AKt.Kb=function(t){return ent(t)[0]},mW(mZt,"Collectors/lambda$28$Type",1067),fBt(713,1,{},nt),AKt.Ce=function(t,e){return $H(t,e)},mW(mZt,"Collectors/lambda$4$Type",713),fBt(252,1,{},it),AKt.Ce=function(t,e){return VA(jz(t,14),jz(e,14))},mW(mZt,"Collectors/lambda$42$Type",252),fBt(348,1,{},rt),AKt.Ce=function(t,e){return HA(jz(t,53),jz(e,53))},mW(mZt,"Collectors/lambda$50$Type",348),fBt(349,1,{},ot),AKt.Kb=function(t){return jz(t,53)},mW(mZt,"Collectors/lambda$51$Type",349),fBt(1054,1,{},lg),AKt.Od=function(t,e){dlt(this.a,jz(t,83),e)},mW(mZt,"Collectors/lambda$7$Type",1054),fBt(1056,1,{},at),AKt.Ce=function(t,e){return mst(jz(t,83),jz(e,83),new Q)},mW(mZt,"Collectors/lambda$8$Type",1056),fBt(1057,1,{},ug),AKt.Kb=function(t){return wft(this.a,jz(t,83))},mW(mZt,"Collectors/lambda$9$Type",1057),fBt(539,1,{}),AKt.He=function(){vK(this)},AKt.d=!1,mW(mZt,"TerminatableStream",539),fBt(812,539,bZt,DN),AKt.He=function(){vK(this)},mW(mZt,"DoubleStreamImpl",812),fBt(1784,721,uYt,Zz),AKt.ye=function(t){return mkt(this,jz(t,182))},AKt.a=null,mW(mZt,"DoubleStreamImpl/2",1784),fBt(1785,1,JXt,hg),AKt.we=function(t){$B(this.a,t)},mW(mZt,"DoubleStreamImpl/2/lambda$0$Type",1785),fBt(1782,1,JXt,dg),AKt.we=function(t){jB(this.a,t)},mW(mZt,"DoubleStreamImpl/lambda$0$Type",1782),fBt(1783,1,JXt,fg),AKt.we=function(t){lpt(this.a,t)},mW(mZt,"DoubleStreamImpl/lambda$2$Type",1783),fBt(1358,720,uYt,b4),AKt.ye=function(t){return k2(this,jz(t,196))},AKt.a=0,AKt.b=0,AKt.c=0,mW(mZt,"IntStream/5",1358),fBt(787,539,bZt,IN),AKt.He=function(){vK(this)},AKt.Ie=function(){return yK(this),this.a},mW(mZt,"IntStreamImpl",787),fBt(788,539,bZt,WA),AKt.He=function(){vK(this)},AKt.Ie=function(){return yK(this),TP(),Ine},mW(mZt,"IntStreamImpl/Empty",788),fBt(1463,1,fYt,gg),AKt.ud=function(t){iat(this.a,t)},mW(mZt,"IntStreamImpl/lambda$4$Type",1463);var Jne,tie=hH(mZt,"Stream");fBt(30,539,{525:1,670:1,833:1},OH),AKt.He=function(){vK(this)},mW(mZt,"StreamImpl",30),fBt(845,1,{},st),AKt.ld=function(t){return uV(t)},mW(mZt,"StreamImpl/0methodref$lambda$2$Type",845),fBt(1084,540,uYt,NF),AKt.sd=function(t){for(;I8(this);){if(this.a.sd(t))return!0;vK(this.b),this.b=null,this.a=null}return!1},mW(mZt,"StreamImpl/1",1084),fBt(1085,1,hYt,pg),AKt.td=function(t){eV(this.a,jz(t,833))},mW(mZt,"StreamImpl/1/lambda$0$Type",1085),fBt(1086,1,OYt,mg),AKt.Mb=function(t){return _G(this.a,t)},mW(mZt,"StreamImpl/1methodref$add$Type",1086),fBt(1087,540,uYt,mX),AKt.sd=function(t){var e;return this.a||(e=new Mb,this.b.a.Nb(new bg(e)),AX(),bM(e,this.c),this.a=new d1(e,16)),Qtt(this.a,t)},AKt.a=null,mW(mZt,"StreamImpl/5",1087),fBt(1088,1,hYt,bg),AKt.td=function(t){Gz(this.a,t)},mW(mZt,"StreamImpl/5/2methodref$add$Type",1088),fBt(722,540,uYt,K8),AKt.sd=function(t){for(this.b=!1;!this.b&&this.c.sd(new DE(this,t)););return this.b},AKt.b=!1,mW(mZt,"StreamImpl/FilterSpliterator",722),fBt(1079,1,hYt,DE),AKt.td=function(t){OU(this.a,this.b,t)},mW(mZt,"StreamImpl/FilterSpliterator/lambda$0$Type",1079),fBt(1075,721,uYt,y6),AKt.ye=function(t){return vF(this,jz(t,182))},mW(mZt,"StreamImpl/MapToDoubleSpliterator",1075),fBt(1078,1,hYt,IE),AKt.td=function(t){vE(this.a,this.b,t)},mW(mZt,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1078),fBt(1074,720,uYt,_6),AKt.ye=function(t){return yF(this,jz(t,196))},mW(mZt,"StreamImpl/MapToIntSpliterator",1074),fBt(1077,1,hYt,BE),AKt.td=function(t){kE(this.a,this.b,t)},mW(mZt,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1077),fBt(719,540,uYt,C6),AKt.sd=function(t){return _F(this,t)},mW(mZt,"StreamImpl/MapToObjSpliterator",719),fBt(1076,1,hYt,ME),AKt.td=function(t){yE(this.a,this.b,t)},mW(mZt,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1076),fBt(618,1,hYt,ct),AKt.td=function(t){Ed(this,t)},mW(mZt,"StreamImpl/ValueConsumer",618),fBt(1080,1,hYt,lt),AKt.td=function(t){fx()},mW(mZt,"StreamImpl/lambda$0$Type",1080),fBt(1081,1,hYt,ut),AKt.td=function(t){fx()},mW(mZt,"StreamImpl/lambda$1$Type",1081),fBt(1082,1,{},wg),AKt.Ce=function(t,e){return Fj(this.a,t,e)},mW(mZt,"StreamImpl/lambda$4$Type",1082),fBt(1083,1,hYt,TE),AKt.td=function(t){yR(this.b,this.a,t)},mW(mZt,"StreamImpl/lambda$5$Type",1083),fBt(1089,1,hYt,kg),AKt.td=function(t){zct(this.a,jz(t,365))},mW(mZt,"TerminatableStream/lambda$0$Type",1089),fBt(2041,1,{}),fBt(1914,1,{},ht),mW("javaemul.internal","ConsoleLogger",1914),fBt(2038,1,{});var eie,nie,iie=0,rie=0;fBt(1768,1,hYt,dt),AKt.td=function(t){jz(t,308)},mW(CZt,"BowyerWatsonTriangulation/lambda$0$Type",1768),fBt(1769,1,hYt,vg),AKt.td=function(t){jrt(this.a,jz(t,308).e)},mW(CZt,"BowyerWatsonTriangulation/lambda$1$Type",1769),fBt(1770,1,hYt,ft),AKt.td=function(t){jz(t,168)},mW(CZt,"BowyerWatsonTriangulation/lambda$2$Type",1770),fBt(1765,1,AZt,yg),AKt.ue=function(t,e){return z3(this.a,jz(t,168),jz(e,168))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(CZt,"NaiveMinST/lambda$0$Type",1765),fBt(499,1,{},_g),mW(CZt,"NodeMicroLayout",499),fBt(168,1,{168:1},PE),AKt.Fb=function(t){var e;return!!iP(t,168)&&(e=jz(t,168),iY(this.a,e.a)&&iY(this.b,e.b)||iY(this.a,e.b)&&iY(this.b,e.a))},AKt.Hb=function(){return NB(this.a)+NB(this.b)};var oie=mW(CZt,"TEdge",168);fBt(308,1,{308:1},Q$t),AKt.Fb=function(t){var e;return!!iP(t,308)&&N9(this,(e=jz(t,308)).a)&&N9(this,e.b)&&N9(this,e.c)},AKt.Hb=function(){return NB(this.a)+NB(this.b)+NB(this.c)},mW(CZt,"TTriangle",308),fBt(221,1,{221:1},EM),mW(CZt,"Tree",221),fBt(1254,1,{},TJ),mW(xZt,"Scanline",1254);var aie=hH(xZt,EZt);fBt(1692,1,{},het),mW(TZt,"CGraph",1692),fBt(307,1,{307:1},iJ),AKt.b=0,AKt.c=0,AKt.d=0,AKt.g=0,AKt.i=0,AKt.k=RXt,mW(TZt,"CGroup",307),fBt(815,1,{},Uw),mW(TZt,"CGroup/CGroupBuilder",815),fBt(57,1,{57:1},DR),AKt.Ib=function(){return this.j?AN(this.j.Kb(this)):(yN(hie),hie.o+"@"+(xL(this)>>>0).toString(16))},AKt.f=0,AKt.i=RXt;var sie,cie,lie,uie,hie=mW(TZt,"CNode",57);fBt(814,1,{},Gw),mW(TZt,"CNode/CNodeBuilder",814),fBt(1525,1,{},gt),AKt.Oe=function(t,e){return 0},AKt.Pe=function(t,e){return 0},mW(TZt,DZt,1525),fBt(1790,1,{},pt),AKt.Le=function(t){var e,n,r,o,a,s,c,l,u,h,d,f,g,p,m;for(u=NXt,r=new Gf(t.a.b);r.a<r.c.c.length;)e=jz(Q1(r),57),u=i.Math.min(u,e.a.j.d.c+e.b.a);for(g=new YA,s=new Gf(t.a.a);s.a<s.c.c.length;)(a=jz(Q1(s),307)).k=u,0==a.g&&n4(g,a,g.c.b,g.c);for(;0!=g.b;){for(o=(a=jz(0==g.b?null:(xO(0!=g.b),Iet(g,g.a.a)),307)).j.d.c,f=a.a.a.ec().Kc();f.Ob();)h=jz(f.Pb(),57),m=a.k+h.b.a,!Hut(t,a,t.d)||h.d.c<m?h.i=m:h.i=h.d.c;for(o-=a.j.i,a.b+=o,t.d==(jht(),FTe)||t.d==NTe?a.c+=o:a.c-=o,d=a.a.a.ec().Kc();d.Ob();)for(l=(h=jz(d.Pb(),57)).c.Kc();l.Ob();)c=jz(l.Pb(),57),p=fB(t.d)?t.g.Oe(h,c):t.g.Pe(h,c),c.a.k=i.Math.max(c.a.k,h.i+h.d.b+p-c.b.a),iZ(t,c,t.d)&&(c.a.k=i.Math.max(c.a.k,c.d.c-c.b.a)),--c.a.g,0==c.a.g&&LV(g,c.a)}for(n=new Gf(t.a.b);n.a<n.c.c.length;)(e=jz(Q1(n),57)).d.c=e.i},mW(TZt,"LongestPathCompaction",1790),fBt(1690,1,{},kIt),AKt.e=!1;var die,fie,gie=mW(TZt,LZt,1690);fBt(1691,1,hYt,Cg),AKt.td=function(t){nst(this.a,jz(t,46))},mW(TZt,OZt,1691),fBt(1791,1,{},mt),AKt.Me=function(t){var e,n,i,r,o,a;for(e=new Gf(t.a.b);e.a<e.c.c.length;)jz(Q1(e),57).c.$b();for(i=new Gf(t.a.b);i.a<i.c.c.length;)for(n=jz(Q1(i),57),o=new Gf(t.a.b);o.a<o.c.c.length;)n!=(r=jz(Q1(o),57))&&(n.a&&n.a==r.a||(a=fB(t.d)?t.g.Pe(n,r):t.g.Oe(n,r),(r.d.c>n.d.c||n.d.c==r.d.c&&n.d.b<r.d.b)&&Npt(r.d.d+r.d.a+a,n.d.d)&&Rpt(r.d.d,n.d.d+n.d.a+a)&&n.c.Fc(r)))},mW(TZt,"QuadraticConstraintCalculation",1791),fBt(522,1,{522:1},Lb),AKt.a=!1,AKt.b=!1,AKt.c=!1,AKt.d=!1,mW(TZt,NZt,522),fBt(803,1,{},Oq),AKt.Me=function(t){this.c=t,mSt(this,new kt)},mW(TZt,RZt,803),fBt(1718,1,{679:1},lZ),AKt.Ke=function(t){FTt(this,jz(t,464))},mW(TZt,FZt,1718),fBt(1719,1,AZt,bt),AKt.ue=function(t,e){return oX(jz(t,57),jz(e,57))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(TZt,jZt,1719),fBt(464,1,{464:1},SE),AKt.a=!1,mW(TZt,$Zt,464),fBt(1720,1,AZt,wt),AKt.ue=function(t,e){return Zyt(jz(t,464),jz(e,464))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(TZt,zZt,1720),fBt(1721,1,VZt,kt),AKt.Lb=function(t){return jz(t,57),!0},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return jz(t,57),!0},mW(TZt,"ScanlineConstraintCalculator/lambda$1$Type",1721),fBt(428,22,{3:1,35:1,22:1,428:1},FE);var pie,mie,bie,wie=$nt(HZt,"HighLevelSortingCriterion",428,Ute,nQ,uj);fBt(427,22,{3:1,35:1,22:1,427:1},jE);var kie,vie,yie,_ie,Cie,Aie,xie,Eie,Tie,Sie,Die,Iie,Bie,Mie,Pie,Lie,Oie,Nie=$nt(HZt,"LowLevelSortingCriterion",427,Ute,iQ,hj),Rie=hH(qZt,"ILayoutMetaDataProvider");fBt(853,1,YZt,Vu),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,UZt),XZt),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),Eie),(ETt(),gxe)),jie),Jdt((ibt(),cxe))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,GZt),XZt),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),Aie),gxe),Nie),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,WZt),XZt),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),_ie),gxe),wie),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,KZt),XZt),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(cL(),!0)),dxe),vee),Jdt(cxe))))},mW(HZt,"PolyominoOptions",853),fBt(250,22,{3:1,35:1,22:1,250:1},$E);var Fie,jie=$nt(HZt,"TraversalStrategy",250,Ute,Cit,dj);fBt(213,1,{213:1},vt),AKt.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},AKt.a=1,AKt.b=0,AKt.c=0,AKt.f=!1,AKt.g=0;var $ie=mW(ZZt,"NEdge",213);fBt(176,1,{},$w),mW(ZZt,"NEdge/NEdgeBuilder",176),fBt(653,1,{},Fw),mW(ZZt,"NGraph",653),fBt(121,1,{121:1},k6),AKt.c=-1,AKt.d=0,AKt.e=0,AKt.i=-1,AKt.j=!1;var zie=mW(ZZt,"NNode",121);fBt(795,1,ZXt,jw),AKt.Jc=function(t){t4(this,t)},AKt.Lc=function(){return new OH(null,new d1(this,16))},AKt.ad=function(t){Frt(this,t)},AKt.Nc=function(){return new d1(this,16)},AKt.Oc=function(){return new OH(null,new d1(this,16))},AKt.Vc=function(t,e){++this.b,kq(this.a,t,e)},AKt.Fc=function(t){return OL(this,t)},AKt.Wc=function(t,e){return++this.b,sut(this.a,t,e)},AKt.Gc=function(t){return++this.b,pst(this.a,t)},AKt.$b=function(){++this.b,this.a.c=P7(Ite,zKt,1,0,5,1)},AKt.Hc=function(t){return-1!=y9(this.a,t,0)},AKt.Ic=function(t){return sst(this.a,t)},AKt.Xb=function(t){return PH(this.a,t)},AKt.Xc=function(t){return y9(this.a,t,0)},AKt.dc=function(){return 0==this.a.c.length},AKt.Kc=function(){return B8(new Gf(this.a))},AKt.Yc=function(){throw $b(new pw)},AKt.Zc=function(t){throw $b(new pw)},AKt.$c=function(t){return++this.b,s6(this.a,t)},AKt.Mc=function(t){return NL(this,t)},AKt._c=function(t,e){return++this.b,i4(this.a,t,e)},AKt.gc=function(){return this.a.c.length},AKt.bd=function(t,e){return new s1(this.a,t,e)},AKt.Pc=function(){return hO(this.a)},AKt.Qc=function(t){return Ymt(this.a,t)},AKt.b=0,mW(ZZt,"NNode/ChangeAwareArrayList",795),fBt(269,1,{},zw),mW(ZZt,"NNode/NNodeBuilder",269),fBt(1630,1,{},yt),AKt.a=!1,AKt.f=OKt,AKt.j=0,mW(ZZt,"NetworkSimplex",1630),fBt(1294,1,hYt,Ag),AKt.td=function(t){VUt(this.a,jz(t,680),!0,!1)},mW(JZt,"NodeLabelAndSizeCalculator/lambda$0$Type",1294),fBt(558,1,{},xg),AKt.b=!0,AKt.c=!0,AKt.d=!0,AKt.e=!0,mW(JZt,"NodeMarginCalculator",558),fBt(212,1,{212:1}),AKt.j=!1,AKt.k=!1;var Vie,Hie,qie,Uie=mW(tQt,"Cell",212);fBt(124,212,{124:1,212:1},FR),AKt.Re=function(){return UV(this)},AKt.Se=function(){var t;return t=this.n,this.a.a+t.b+t.c},mW(tQt,"AtomicCell",124),fBt(232,22,{3:1,35:1,22:1,232:1},zE);var Gie,Wie=$nt(tQt,"ContainerArea",232,Ute,m1,fj);fBt(326,212,nQt),mW(tQt,"ContainerCell",326),fBt(1473,326,nQt,zgt),AKt.Re=function(){var t;return t=0,this.e?this.b?t=this.b.b:this.a[1][1]&&(t=this.a[1][1].Re()):t=Xft(this,Ukt(this,!0)),t>0?t+this.n.d+this.n.a:0},AKt.Se=function(){var t,e,n,r,o;if(o=0,this.e)this.b?o=this.b.a:this.a[1][1]&&(o=this.a[1][1].Se());else if(this.g)o=Xft(this,Dyt(this,null,!0));else for(Oet(),n=0,r=(e=Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length;n<r;++n)t=e[n],o=i.Math.max(o,Xft(this,Dyt(this,t,!0)));return o>0?o+this.n.b+this.n.c:0},AKt.Te=function(){var t,e,n,i,r;if(this.g)for(t=Dyt(this,null,!1),Oet(),i=0,r=(n=Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length;i<r;++i)KOt(this,e=n[i],t);else for(Oet(),i=0,r=(n=Est(Vy(Wie,1),BYt,232,0,[Vie,Hie,qie])).length;i<r;++i)KOt(this,e=n[i],t=Dyt(this,e,!1))},AKt.Ue=function(){var t,e,n,r;e=this.i,t=this.n,r=Ukt(this,!1),K4(this,(Oet(),Vie),e.d+t.d,r),K4(this,qie,e.d+e.a-t.a-r[2],r),n=e.a-t.d-t.a,r[0]>0&&(r[0]+=this.d,n-=r[0]),r[2]>0&&(r[2]+=this.d,n-=r[2]),this.c.a=i.Math.max(0,n),this.c.d=e.d+t.d+(this.c.a-n)/2,r[1]=i.Math.max(r[1],n),K4(this,Hie,e.d+t.d+r[0]-(r[1]-n)/2,r)},AKt.b=null,AKt.d=0,AKt.e=!1,AKt.f=!1,AKt.g=!1;var Kie,Yie,Xie,Zie=0,Qie=0;mW(tQt,"GridContainerCell",1473),fBt(461,22,{3:1,35:1,22:1,461:1},VE);var Jie,tre=$nt(tQt,"HorizontalLabelAlignment",461,Ute,b1,gj);fBt(306,212,{212:1,306:1},wQ,fet,NZ),AKt.Re=function(){return GV(this)},AKt.Se=function(){return WV(this)},AKt.a=0,AKt.c=!1;var ere,nre,ire,rre=mW(tQt,"LabelCell",306);fBt(244,326,{212:1,326:1,244:1},Smt),AKt.Re=function(){return ADt(this)},AKt.Se=function(){return xDt(this)},AKt.Te=function(){F$t(this)},AKt.Ue=function(){H$t(this)},AKt.b=0,AKt.c=0,AKt.d=!1,mW(tQt,"StripContainerCell",244),fBt(1626,1,OYt,_t),AKt.Mb=function(t){return Kv(jz(t,212))},mW(tQt,"StripContainerCell/lambda$0$Type",1626),fBt(1627,1,{},Ct),AKt.Fe=function(t){return jz(t,212).Se()},mW(tQt,"StripContainerCell/lambda$1$Type",1627),fBt(1628,1,OYt,At),AKt.Mb=function(t){return Yv(jz(t,212))},mW(tQt,"StripContainerCell/lambda$2$Type",1628),fBt(1629,1,{},xt),AKt.Fe=function(t){return jz(t,212).Re()},mW(tQt,"StripContainerCell/lambda$3$Type",1629),fBt(462,22,{3:1,35:1,22:1,462:1},HE);var ore,are,sre,cre,lre,ure,hre,dre,fre,gre,pre,mre,bre,wre,kre,vre,yre,_re,Cre,Are,xre,Ere,Tre,Sre=$nt(tQt,"VerticalLabelAlignment",462,Ute,w1,pj);fBt(789,1,{},eGt),AKt.c=0,AKt.d=0,AKt.k=0,AKt.s=0,AKt.t=0,AKt.v=!1,AKt.w=0,AKt.D=!1,mW(cQt,"NodeContext",789),fBt(1471,1,AZt,Et),AKt.ue=function(t,e){return YI(jz(t,61),jz(e,61))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(cQt,"NodeContext/0methodref$comparePortSides$Type",1471),fBt(1472,1,AZt,Tt),AKt.ue=function(t,e){return UAt(jz(t,111),jz(e,111))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(cQt,"NodeContext/1methodref$comparePortContexts$Type",1472),fBt(159,22,{3:1,35:1,22:1,159:1},sot);var Dre,Ire,Bre,Mre,Pre,Lre,Ore,Nre=$nt(cQt,"NodeLabelLocation",159,Ute,tbt,mj);fBt(111,1,{111:1},AIt),AKt.a=!1,mW(cQt,"PortContext",111),fBt(1476,1,hYt,St),AKt.td=function(t){EC(jz(t,306))},mW(hQt,dQt,1476),fBt(1477,1,OYt,Dt),AKt.Mb=function(t){return!!jz(t,111).c},mW(hQt,fQt,1477),fBt(1478,1,hYt,It),AKt.td=function(t){EC(jz(t,111).c)},mW(hQt,"LabelPlacer/lambda$2$Type",1478),fBt(1475,1,hYt,Mt),AKt.td=function(t){zN(),Yb(jz(t,111))},mW(hQt,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),fBt(790,1,hYt,Ij),AKt.td=function(t){Ox(this.b,this.c,this.a,jz(t,181))},AKt.a=!1,AKt.c=!1,mW(hQt,"NodeLabelCellCreator/lambda$0$Type",790),fBt(1474,1,hYt,Eg),AKt.td=function(t){Tw(this.a,jz(t,181))},mW(hQt,"PortContextCreator/lambda$0$Type",1474),fBt(1829,1,{},Pt),mW(pQt,"GreedyRectangleStripOverlapRemover",1829),fBt(1830,1,AZt,Bt),AKt.ue=function(t,e){return FL(jz(t,222),jz(e,222))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(pQt,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),fBt(1786,1,{},Zw),AKt.a=5,AKt.e=0,mW(pQt,"RectangleStripOverlapRemover",1786),fBt(1787,1,AZt,Ot),AKt.ue=function(t,e){return jL(jz(t,222),jz(e,222))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(pQt,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),fBt(1789,1,AZt,Nt),AKt.ue=function(t,e){return XG(jz(t,222),jz(e,222))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(pQt,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),fBt(406,22,{3:1,35:1,22:1,406:1},qE);var Rre,Fre,jre,$re,zre,Vre=$nt(pQt,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,Ute,Y2,bj);fBt(222,1,{222:1},Pq),mW(pQt,"RectangleStripOverlapRemover/RectangleNode",222),fBt(1788,1,hYt,Tg),AKt.td=function(t){Tkt(this.a,jz(t,222))},mW(pQt,"RectangleStripOverlapRemover/lambda$1$Type",1788),fBt(1304,1,AZt,Rt),AKt.ue=function(t,e){return qVt(jz(t,167),jz(e,167))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(bQt,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1304),fBt(1307,1,{},Ft),AKt.Kb=function(t){return jz(t,324).a},mW(bQt,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1307),fBt(1308,1,OYt,jt),AKt.Mb=function(t){return jz(t,323).a},mW(bQt,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1308),fBt(1309,1,OYt,$t),AKt.Mb=function(t){return jz(t,323).a},mW(bQt,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1309),fBt(1302,1,AZt,zt),AKt.ue=function(t,e){return WRt(jz(t,167),jz(e,167))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(bQt,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1302),fBt(1305,1,{},Lt),AKt.Kb=function(t){return jz(t,324).a},mW(bQt,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1305),fBt(767,1,AZt,Vt),AKt.ue=function(t,e){return Uat(jz(t,167),jz(e,167))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(bQt,"PolyominoCompactor/MinNumOfExtensionsComparator",767),fBt(1300,1,AZt,Ht),AKt.ue=function(t,e){return Yit(jz(t,321),jz(e,321))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(bQt,"PolyominoCompactor/MinPerimeterComparator",1300),fBt(1301,1,AZt,qt),AKt.ue=function(t,e){return owt(jz(t,321),jz(e,321))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(bQt,"PolyominoCompactor/MinPerimeterComparatorWithShape",1301),fBt(1303,1,AZt,Ut),AKt.ue=function(t,e){return $Ft(jz(t,167),jz(e,167))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(bQt,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1303),fBt(1306,1,{},Gt),AKt.Kb=function(t){return jz(t,324).a},mW(bQt,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1306),fBt(777,1,{},LE),AKt.Ce=function(t,e){return S2(this,jz(t,46),jz(e,167))},mW(bQt,"SuccessorCombination",777),fBt(644,1,{},Wt),AKt.Ce=function(t,e){var n;return GDt((n=jz(t,46),jz(e,167),n))},mW(bQt,"SuccessorJitter",644),fBt(643,1,{},Kt),AKt.Ce=function(t,e){var n;return dOt((n=jz(t,46),jz(e,167),n))},mW(bQt,"SuccessorLineByLine",643),fBt(568,1,{},Yt),AKt.Ce=function(t,e){var n;return uMt((n=jz(t,46),jz(e,167),n))},mW(bQt,"SuccessorManhattan",568),fBt(1356,1,{},Xt),AKt.Ce=function(t,e){var n;return yLt((n=jz(t,46),jz(e,167),n))},mW(bQt,"SuccessorMaxNormWindingInMathPosSense",1356),fBt(400,1,{},Sg),AKt.Ce=function(t,e){return jG(this,t,e)},AKt.c=!1,AKt.d=!1,AKt.e=!1,AKt.f=!1,mW(bQt,"SuccessorQuadrantsGeneric",400),fBt(1357,1,{},Zt),AKt.Kb=function(t){return jz(t,324).a},mW(bQt,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),fBt(323,22,{3:1,35:1,22:1,323:1},RE),AKt.a=!1;var Hre,qre=$nt(_Qt,CQt,323,Ute,Q2,wj);fBt(1298,1,{}),AKt.Ib=function(){var t,e,n,i,r,o;for(n=" ",t=ndt(0),r=0;r<this.o;r++)n+=""+t.a,t=ndt(uR(t.a));for(n+="\n",t=ndt(0),o=0;o<this.p;o++){for(n+=""+t.a,t=ndt(uR(t.a)),i=0;i<this.o;i++)0==Kut(e=trt(this,i,o),0)?n+="_":0==Kut(e,1)?n+="X":n+="0";n+="\n"}return lO(n,0,n.length-1)},AKt.o=0,AKt.p=0,mW(_Qt,"TwoBitGrid",1298),fBt(321,1298,{321:1},Vgt),AKt.j=0,AKt.k=0,mW(_Qt,"PlanarGrid",321),fBt(167,321,{321:1,167:1}),AKt.g=0,AKt.i=0,mW(_Qt,"Polyomino",167);var Ure=hH(SQt,DQt);fBt(134,1,IQt,Qt),AKt.Ye=function(t,e){return cct(this,t,e)},AKt.Ve=function(){return VH(this)},AKt.We=function(t){return wxt(this,t)},AKt.Xe=function(t){return BO(this,t)},mW(SQt,"MapPropertyHolder",134),fBt(1299,134,IQt,kOt),mW(_Qt,"Polyominoes",1299);var Gre,Wre,Kre,Yre,Xre,Zre,Qre,Jre,toe=!1;fBt(1766,1,hYt,Jt),AKt.td=function(t){aHt(jz(t,221))},mW(BQt,"DepthFirstCompaction/0methodref$compactTree$Type",1766),fBt(810,1,hYt,Dg),AKt.td=function(t){NK(this.a,jz(t,221))},mW(BQt,"DepthFirstCompaction/lambda$1$Type",810),fBt(1767,1,hYt,Mj),AKt.td=function(t){gmt(this.a,this.b,this.c,jz(t,221))},mW(BQt,"DepthFirstCompaction/lambda$2$Type",1767),fBt(65,1,{65:1},DJ),mW(BQt,"Node",65),fBt(1250,1,{},TM),mW(BQt,"ScanlineOverlapCheck",1250),fBt(1251,1,{679:1},cZ),AKt.Ke=function(t){VN(this,jz(t,440))},mW(BQt,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251),fBt(1252,1,AZt,te),AKt.ue=function(t,e){return Ldt(jz(t,65),jz(e,65))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(BQt,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252),fBt(440,1,{440:1},OE),AKt.a=!1,mW(BQt,"ScanlineOverlapCheck/Timestamp",440),fBt(1253,1,AZt,ee),AKt.ue=function(t,e){return Qyt(jz(t,440),jz(e,440))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(BQt,"ScanlineOverlapCheck/lambda$0$Type",1253),fBt(550,1,{},ne),mW(MQt,"SVGImage",550),fBt(324,1,{324:1},Pj),AKt.Ib=function(){return"("+this.a+jKt+this.b+jKt+this.c+")"},mW(MQt,"UniqueTriple",324),fBt(209,1,PQt),mW(LQt,"AbstractLayoutProvider",209),fBt(1132,209,PQt,ie),AKt.Ze=function(t,e){var n,i,r;DAt(e,OQt,1),this.a=Vv(CN(QBt(t,(_bt(),yoe)))),x7(t,hoe)&&(i=AN(QBt(t,hoe)),(n=GRt(rit(),i))&&jz(sQ(n.f),209).Ze(t,wot(e,1))),r=new s5(this.a),this.b=NUt(r,t),0===jz(QBt(t,(Hlt(),aoe)),481).g?($It(new re,this.b),Xbt(t,goe,wxt(this.b,goe))):IA(),UUt(r),Xbt(t,foe,this.b),zEt(e)},AKt.a=0,mW(NQt,"DisCoLayoutProvider",1132),fBt(1244,1,{},re),AKt.c=!1,AKt.e=0,AKt.f=0,mW(NQt,"DisCoPolyominoCompactor",1244),fBt(561,1,{561:1},cq),AKt.b=!0,mW(RQt,"DCComponent",561),fBt(394,22,{3:1,35:1,22:1,394:1},NE),AKt.a=!1;var eoe,noe,ioe=$nt(RQt,"DCDirection",394,Ute,Z2,kj);fBt(266,134,{3:1,266:1,94:1,134:1},_Bt),mW(RQt,"DCElement",266),fBt(395,1,{395:1},Skt),AKt.c=0,mW(RQt,"DCExtension",395),fBt(755,134,IQt,R_),mW(RQt,"DCGraph",755),fBt(481,22,{3:1,35:1,22:1,481:1},TO);var roe,ooe,aoe,soe,coe,loe,uoe,hoe,doe,foe,goe,poe,moe,boe,woe,koe,voe,yoe,_oe,Coe,Aoe,xoe=$nt(FQt,jQt,481,Ute,OY,vj);fBt(854,1,YZt,$u),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,$Qt),qQt),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),soe),(ETt(),gxe)),xoe),Jdt((ibt(),cxe))))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,zQt),qQt),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),wxe),Yee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,VQt),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),bxe),Ite),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,HQt),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),bxe),Ite),Jdt(cxe)))),$zt((new zu,t))},mW(FQt,"DisCoMetaDataProvider",854),fBt(998,1,YZt,zu),AKt.Qe=function(t){$zt(t)},mW(FQt,"DisCoOptions",998),fBt(999,1,{},oe),AKt.$e=function(){return new ie},AKt._e=function(t){},mW(FQt,"DisCoOptions/DiscoFactory",999),fBt(562,167,{321:1,167:1,562:1},YMt),AKt.a=0,AKt.b=0,AKt.c=0,AKt.d=0,mW("org.eclipse.elk.alg.disco.structures","DCPolyomino",562),fBt(1268,1,OYt,ae),AKt.Mb=function(t){return _I(t)},mW(XQt,"ElkGraphComponentsProcessor/lambda$0$Type",1268),fBt(1269,1,{},se),AKt.Kb=function(t){return CX(),Ext(jz(t,79))},mW(XQt,"ElkGraphComponentsProcessor/lambda$1$Type",1269),fBt(1270,1,OYt,ce),AKt.Mb=function(t){return zV(jz(t,79))},mW(XQt,"ElkGraphComponentsProcessor/lambda$2$Type",1270),fBt(1271,1,{},le),AKt.Kb=function(t){return CX(),Dxt(jz(t,79))},mW(XQt,"ElkGraphComponentsProcessor/lambda$3$Type",1271),fBt(1272,1,OYt,ue),AKt.Mb=function(t){return VV(jz(t,79))},mW(XQt,"ElkGraphComponentsProcessor/lambda$4$Type",1272),fBt(1273,1,OYt,Ig),AKt.Mb=function(t){return CQ(this.a,jz(t,79))},mW(XQt,"ElkGraphComponentsProcessor/lambda$5$Type",1273),fBt(1274,1,{},Bg),AKt.Kb=function(t){return NW(this.a,jz(t,79))},mW(XQt,"ElkGraphComponentsProcessor/lambda$6$Type",1274),fBt(1241,1,{},s5),AKt.a=0,mW(XQt,"ElkGraphTransformer",1241),fBt(1242,1,{},he),AKt.Od=function(t,e){tIt(this,jz(t,160),jz(e,266))},mW(XQt,"ElkGraphTransformer/OffsetApplier",1242),fBt(1243,1,hYt,Mg),AKt.td=function(t){_P(this,jz(t,8))},mW(XQt,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1243),fBt(753,1,{},de),mW(eJt,nJt,753),fBt(1232,1,AZt,fe),AKt.ue=function(t,e){return TDt(jz(t,231),jz(e,231))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(eJt,iJt,1232),fBt(740,209,PQt,Vw),AKt.Ze=function(t,e){bPt(this,t,e)},mW(eJt,"ForceLayoutProvider",740),fBt(357,134,{3:1,357:1,94:1,134:1}),mW(rJt,"FParticle",357),fBt(559,357,{3:1,559:1,357:1,94:1,134:1},cW),AKt.Ib=function(){var t;return this.a?(t=y9(this.a.a,this,0))>=0?"b"+t+"["+o4(this.a)+"]":"b["+o4(this.a)+"]":"b_"+xL(this)},mW(rJt,"FBendpoint",559),fBt(282,134,{3:1,282:1,94:1,134:1},TR),AKt.Ib=function(){return o4(this)},mW(rJt,"FEdge",282),fBt(231,134,{3:1,231:1,94:1,134:1},w6);var Eoe,Toe,Soe,Doe,Ioe,Boe,Moe,Poe,Loe,Ooe,Noe=mW(rJt,"FGraph",231);fBt(447,357,{3:1,447:1,357:1,94:1,134:1},b5),AKt.Ib=function(){return null==this.b||0==this.b.length?"l["+o4(this.a)+"]":"l_"+this.b},mW(rJt,"FLabel",447),fBt(144,357,{3:1,144:1,357:1,94:1,134:1},zW),AKt.Ib=function(){return p0(this)},AKt.b=0,mW(rJt,"FNode",144),fBt(2003,1,{}),AKt.bf=function(t){c$t(this,t)},AKt.cf=function(){Vkt(this)},AKt.d=0,mW(aJt,"AbstractForceModel",2003),fBt(631,2003,{631:1},Mat),AKt.af=function(t,e){var n,r,o,a;return tDt(this.f,t,e),o=UR(jM(e.d),t.d),a=i.Math.sqrt(o.a*o.a+o.b*o.b),r=i.Math.max(0,a-uK(t.e)/2-uK(e.e)/2),kP(o,((n=Vct(this.e,t,e))>0?-RG(r,this.c)*n:PO(r,this.b)*jz(wxt(t,(uRt(),Zoe)),19).a)/a),o},AKt.bf=function(t){c$t(this,t),this.a=jz(wxt(t,(uRt(),zoe)),19).a,this.c=Vv(CN(wxt(t,iae))),this.b=Vv(CN(wxt(t,Joe)))},AKt.df=function(t){return t<this.a},AKt.a=0,AKt.b=0,AKt.c=0,mW(aJt,"EadesModel",631),fBt(632,2003,{632:1},lV),AKt.af=function(t,e){var n,r,o,a,s;return tDt(this.f,t,e),o=UR(jM(e.d),t.d),s=i.Math.sqrt(o.a*o.a+o.b*o.b),a=MO(r=i.Math.max(0,s-uK(t.e)/2-uK(e.e)/2),this.a)*jz(wxt(t,(uRt(),Zoe)),19).a,(n=Vct(this.e,t,e))>0&&(a-=Av(r,this.a)*n),kP(o,a*this.b/s),o},AKt.bf=function(t){var e,n,r,o,a,s,c;for(c$t(this,t),this.b=Vv(CN(wxt(t,(uRt(),rae)))),this.c=this.b/jz(wxt(t,zoe),19).a,r=t.e.c.length,a=0,o=0,c=new Gf(t.e);c.a<c.c.c.length;)a+=(s=jz(Q1(c),144)).e.a,o+=s.e.b;e=a*o,n=Vv(CN(wxt(t,iae)))*uQt,this.a=i.Math.sqrt(e/(2*r))*n},AKt.cf=function(){Vkt(this),this.b-=this.c},AKt.df=function(t){return this.b>0},AKt.a=0,AKt.b=0,AKt.c=0,mW(aJt,"FruchtermanReingoldModel",632),fBt(849,1,YZt,Hu),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,sJt),""),"Force Model"),"Determines the model for force calculation."),Soe),(ETt(),gxe)),Iae),Jdt((ibt(),cxe))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,cJt),""),"Iterations"),"The number of iterations on the force model."),ndt(300)),mxe),Iee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,lJt),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),ndt(0)),mxe),Iee),Jdt(oxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,uJt),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),hJt),fxe),Eee),Jdt(cxe)))),r2(t,uJt,sJt,Poe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,dJt),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),fxe),Eee),Jdt(cxe)))),r2(t,dJt,sJt,Ioe),mGt((new qu,t))},mW(fJt,"ForceMetaDataProvider",849),fBt(424,22,{3:1,35:1,22:1,424:1},UE);var Roe,Foe,joe,$oe,zoe,Voe,Hoe,qoe,Uoe,Goe,Woe,Koe,Yoe,Xoe,Zoe,Qoe,Joe,tae,eae,nae,iae,rae,oae,aae,sae,cae,lae,uae,hae,dae,fae,gae,pae,mae,bae,wae,kae,vae,yae,_ae,Cae,Aae,xae,Eae,Tae,Sae,Dae,Iae=$nt(fJt,"ForceModelStrategy",424,Ute,rQ,yj);fBt(988,1,YZt,qu),AKt.Qe=function(t){mGt(t)},mW(fJt,"ForceOptions",988),fBt(989,1,{},ge),AKt.$e=function(){return new Vw},AKt._e=function(t){},mW(fJt,"ForceOptions/ForceFactory",989),fBt(850,1,YZt,Uu),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,PJt),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(cL(),!1)),(ETt(),dxe)),vee),Jdt((ibt(),sxe))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,LJt),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),fxe),Eee),yq(cxe,Est(Vy(vxe,1),BYt,175,0,[oxe]))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,OJt),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),hae),gxe),$ae),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,NJt),""),"Stress Epsilon"),"Termination criterion for the iterative process."),hJt),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,RJt),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),ndt(OKt)),mxe),Iee),Jdt(cxe)))),Uqt((new Gu,t))},mW(fJt,"StressMetaDataProvider",850),fBt(992,1,YZt,Gu),AKt.Qe=function(t){Uqt(t)},mW(fJt,"StressOptions",992),fBt(993,1,{},pe),AKt.$e=function(){return new SR},AKt._e=function(t){},mW(fJt,"StressOptions/StressFactory",993),fBt(1128,209,PQt,SR),AKt.Ze=function(t,e){var n,i,r,o;for(DAt(e,jJt,1),zv(_N(QBt(t,(iyt(),kae))))?zv(_N(QBt(t,xae)))||vQ(new _g((Vx(),new Lv(t)))):bPt(new Vw,t,wot(e,1)),i=uct(t),o=(n=z$t(this.a,i)).Kc();o.Ob();)(r=jz(o.Pb(),231)).e.c.length<=1||(zVt(this.b,r),nMt(this.b),Det(r.d,new me));xGt(i=HGt(n)),zEt(e)},mW(zJt,"StressLayoutProvider",1128),fBt(1129,1,hYt,me),AKt.td=function(t){Fzt(jz(t,447))},mW(zJt,"StressLayoutProvider/lambda$0$Type",1129),fBt(990,1,{},_w),AKt.c=0,AKt.e=0,AKt.g=0,mW(zJt,"StressMajorization",990),fBt(379,22,{3:1,35:1,22:1,379:1},GE);var Bae,Mae,Pae,Lae,Oae,Nae,Rae,Fae,jae,$ae=$nt(zJt,"StressMajorization/Dimension",379,Ute,v1,_j);fBt(991,1,AZt,Pg),AKt.ue=function(t,e){return AF(this.a,jz(t,144),jz(e,144))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(zJt,"StressMajorization/lambda$0$Type",991),fBt(1229,1,{},L0),mW(HJt,"ElkLayered",1229),fBt(1230,1,hYt,be),AKt.td=function(t){NDt(jz(t,37))},mW(HJt,"ElkLayered/lambda$0$Type",1230),fBt(1231,1,hYt,Lg),AKt.td=function(t){xF(this.a,jz(t,37))},mW(HJt,"ElkLayered/lambda$1$Type",1231),fBt(1263,1,{},IM),mW(HJt,"GraphConfigurator",1263),fBt(759,1,hYt,Og),AKt.td=function(t){Kxt(this.a,jz(t,10))},mW(HJt,"GraphConfigurator/lambda$0$Type",759),fBt(760,1,{},we),AKt.Kb=function(t){return t_t(),new OH(null,new d1(jz(t,29).a,16))},mW(HJt,"GraphConfigurator/lambda$1$Type",760),fBt(761,1,hYt,Ng),AKt.td=function(t){Kxt(this.a,jz(t,10))},mW(HJt,"GraphConfigurator/lambda$2$Type",761),fBt(1127,209,PQt,qw),AKt.Ze=function(t,e){var n;n=xzt(new Jw,t),VD(QBt(t,(zWt(),sme)))===VD((aht(),pSe))?igt(this.a,n,e):fIt(this.a,n,e),pGt(new Ku,n)},mW(HJt,"LayeredLayoutProvider",1127),fBt(356,22,{3:1,35:1,22:1,356:1},WE);var zae,Vae,Hae,qae=$nt(HJt,"LayeredPhases",356,Ute,s4,Cj);fBt(1651,1,{},bit),AKt.i=0,mW(qJt,"ComponentsToCGraphTransformer",1651),fBt(1652,1,{},ke),AKt.ef=function(t,e){return i.Math.min(null!=t.a?Vv(t.a):t.c.i,null!=e.a?Vv(e.a):e.c.i)},AKt.ff=function(t,e){return i.Math.min(null!=t.a?Vv(t.a):t.c.i,null!=e.a?Vv(e.a):e.c.i)},mW(qJt,"ComponentsToCGraphTransformer/1",1652),fBt(81,1,{81:1}),AKt.i=0,AKt.k=!0,AKt.o=RXt;var Uae,Gae,Wae,Kae=mW(UJt,"CNode",81);fBt(460,81,{460:1,81:1},ML,xmt),AKt.Ib=function(){return""},mW(qJt,"ComponentsToCGraphTransformer/CRectNode",460),fBt(1623,1,{},ve),mW(qJt,"OneDimensionalComponentsCompaction",1623),fBt(1624,1,{},ye),AKt.Kb=function(t){return PJ(jz(t,46))},AKt.Fb=function(t){return this===t},mW(qJt,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),fBt(1625,1,{},_e),AKt.Kb=function(t){return _gt(jz(t,46))},AKt.Fb=function(t){return this===t},mW(qJt,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),fBt(1654,1,{},jW),mW(UJt,"CGraph",1654),fBt(189,1,{189:1},Emt),AKt.b=0,AKt.c=0,AKt.e=0,AKt.g=!0,AKt.i=RXt,mW(UJt,"CGroup",189),fBt(1653,1,{},Ee),AKt.ef=function(t,e){return i.Math.max(null!=t.a?Vv(t.a):t.c.i,null!=e.a?Vv(e.a):e.c.i)},AKt.ff=function(t,e){return i.Math.max(null!=t.a?Vv(t.a):t.c.i,null!=e.a?Vv(e.a):e.c.i)},mW(UJt,DZt,1653),fBt(1655,1,{},cIt),AKt.d=!1;var Yae=mW(UJt,LZt,1655);fBt(1656,1,{},Te),AKt.Kb=function(t){return kx(),cL(),0!=jz(jz(t,46).a,81).d.e},AKt.Fb=function(t){return this===t},mW(UJt,OZt,1656),fBt(823,1,{},AH),AKt.a=!1,AKt.b=!1,AKt.c=!1,AKt.d=!1,mW(UJt,NZt,823),fBt(1825,1,{},Lq),mW(GJt,RZt,1825);var Xae=hH(WJt,EZt);fBt(1826,1,{369:1},uZ),AKt.Ke=function(t){HOt(this,jz(t,466))},mW(GJt,FZt,1826),fBt(1827,1,AZt,Se),AKt.ue=function(t,e){return aX(jz(t,81),jz(e,81))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(GJt,jZt,1827),fBt(466,1,{466:1},lT),AKt.a=!1,mW(GJt,$Zt,466),fBt(1828,1,AZt,De),AKt.ue=function(t,e){return Jyt(jz(t,466),jz(e,466))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(GJt,zZt,1828),fBt(140,1,{140:1},fT,bV),AKt.Fb=function(t){var e;return null!=t&&ese==tlt(t)&&(e=jz(t,140),iY(this.c,e.c)&&iY(this.d,e.d))},AKt.Hb=function(){return uut(Est(Vy(Ite,1),zKt,1,5,[this.c,this.d]))},AKt.Ib=function(){return"("+this.c+jKt+this.d+(this.a?"cx":"")+this.b+")"},AKt.a=!0,AKt.c=0,AKt.d=0;var Zae,Qae,Jae,tse,ese=mW(WJt,"Point",140);fBt(405,22,{3:1,35:1,22:1,405:1},KE);var nse,ise,rse,ose,ase,sse,cse,lse,use,hse,dse,fse=$nt(WJt,"Point/Quadrant",405,Ute,J2,Aj);fBt(1642,1,{},Ww),AKt.b=null,AKt.c=null,AKt.d=null,AKt.e=null,AKt.f=null,mW(WJt,"RectilinearConvexHull",1642),fBt(574,1,{369:1},Cbt),AKt.Ke=function(t){R8(this,jz(t,140))},AKt.b=0,mW(WJt,"RectilinearConvexHull/MaximalElementsEventHandler",574),fBt(1644,1,AZt,Ae),AKt.ue=function(t,e){return LY(CN(t),CN(e))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(WJt,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),fBt(1643,1,{369:1},uet),AKt.Ke=function(t){ELt(this,jz(t,140))},AKt.a=0,AKt.b=null,AKt.c=null,AKt.d=null,AKt.e=null,mW(WJt,"RectilinearConvexHull/RectangleEventHandler",1643),fBt(1645,1,AZt,xe),AKt.ue=function(t,e){return o0(jz(t,140),jz(e,140))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(WJt,"RectilinearConvexHull/lambda$0$Type",1645),fBt(1646,1,AZt,Ce),AKt.ue=function(t,e){return a0(jz(t,140),jz(e,140))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(WJt,"RectilinearConvexHull/lambda$1$Type",1646),fBt(1647,1,AZt,Ie),AKt.ue=function(t,e){return c0(jz(t,140),jz(e,140))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(WJt,"RectilinearConvexHull/lambda$2$Type",1647),fBt(1648,1,AZt,Be),AKt.ue=function(t,e){return s0(jz(t,140),jz(e,140))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(WJt,"RectilinearConvexHull/lambda$3$Type",1648),fBt(1649,1,AZt,Me),AKt.ue=function(t,e){return yxt(jz(t,140),jz(e,140))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(WJt,"RectilinearConvexHull/lambda$4$Type",1649),fBt(1650,1,{},SJ),mW(WJt,"Scanline",1650),fBt(2005,1,{}),mW(KJt,"AbstractGraphPlacer",2005),fBt(325,1,{325:1},UO),AKt.mf=function(t){return!!this.nf(t)&&(ZDt(this.b,jz(wxt(t,(lKt(),Uhe)),21),t),!0)},AKt.nf=function(t){var e,n,i;for(e=jz(wxt(t,(lKt(),Uhe)),21),i=jz(c6(lse,e),21).Kc();i.Ob();)if(n=jz(i.Pb(),21),!jz(c6(this.b,n),15).dc())return!1;return!0},mW(KJt,"ComponentGroup",325),fBt(765,2005,{},Kw),AKt.of=function(t){var e;for(e=new Gf(this.a);e.a<e.c.c.length;)if(jz(Q1(e),325).mf(t))return;Gz(this.a,new UO(t))},AKt.lf=function(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g;if(this.a.c=P7(Ite,zKt,1,0,5,1),e.a.c=P7(Ite,zKt,1,0,5,1),t.dc())return e.f.a=0,void(e.f.b=0);for(Vat(e,a=jz(t.Xb(0),37)),r=t.Kc();r.Ob();)i=jz(r.Pb(),37),this.of(i);for(g=new V_,o=Vv(CN(wxt(a,(zWt(),bbe)))),l=new Gf(this.a);l.a<l.c.c.length;)u=CWt(s=jz(Q1(l),325),o),d8(_W(s.b),g.a,g.b),g.a+=u.a,g.b+=u.b;if(e.f.a=g.a-o,e.f.b=g.b-o,zv(_N(wxt(a,Cpe)))&&VD(wxt(a,Zpe))===VD((Aft(),KTe))){for(f=t.Kc();f.Ob();)QRt(h=jz(f.Pb(),37),h.c.a,h.c.b);for(RWt(n=new Pe,t,o),d=t.Kc();d.Ob();)qR(kI((h=jz(d.Pb(),37)).c),n.e);qR(kI(e.f),n.a)}for(c=new Gf(this.a);c.a<c.c.c.length;)f8(e,_W((s=jz(Q1(c),325)).b))},mW(KJt,"ComponentGroupGraphPlacer",765),fBt(1293,765,{},ck),AKt.of=function(t){mht(this,t)},AKt.lf=function(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w;if(this.a.c=P7(Ite,zKt,1,0,5,1),e.a.c=P7(Ite,zKt,1,0,5,1),t.dc())return e.f.a=0,void(e.f.b=0);for(Vat(e,a=jz(t.Xb(0),37)),r=t.Kc();r.Ob();)mht(this,jz(r.Pb(),37));for(w=new V_,b=new V_,p=new V_,g=new V_,o=Vv(CN(wxt(a,(zWt(),bbe)))),l=new Gf(this.a);l.a<l.c.c.length;){if(s=jz(Q1(l),325),fB(jz(wxt(e,(cKt(),hEe)),103))){for(p.a=w.a,m=new uv(CW(kW(s.b).a).a.kc());m.b.Ob();)if(jz(iE(m.b.Pb()),21).Hc((vGt(),sDe))){p.a=b.a;break}}else if(gB(jz(wxt(e,hEe),103)))for(p.b=w.b,m=new uv(CW(kW(s.b).a).a.kc());m.b.Ob();)if(jz(iE(m.b.Pb()),21).Hc((vGt(),EDe))){p.b=b.b;break}if(u=CWt(jz(s,570),o),d8(_W(s.b),p.a,p.b),fB(jz(wxt(e,hEe),103))){for(b.a=p.a+u.a,g.a=i.Math.max(g.a,b.a),m=new uv(CW(kW(s.b).a).a.kc());m.b.Ob();)if(jz(iE(m.b.Pb()),21).Hc((vGt(),ADe))){w.a=p.a+u.a;break}b.b=p.b+u.b,p.b=b.b,g.b=i.Math.max(g.b,p.b)}else if(gB(jz(wxt(e,hEe),103))){for(b.b=p.b+u.b,g.b=i.Math.max(g.b,b.b),m=new uv(CW(kW(s.b).a).a.kc());m.b.Ob();)if(jz(iE(m.b.Pb()),21).Hc((vGt(),aDe))){w.b=p.b+u.b;break}b.a=p.a+u.a,p.a=b.a,g.a=i.Math.max(g.a,p.a)}}if(e.f.a=g.a-o,e.f.b=g.b-o,zv(_N(wxt(a,Cpe)))&&VD(wxt(a,Zpe))===VD((Aft(),KTe))){for(f=t.Kc();f.Ob();)QRt(h=jz(f.Pb(),37),h.c.a,h.c.b);for(RWt(n=new Pe,t,o),d=t.Kc();d.Ob();)qR(kI((h=jz(d.Pb(),37)).c),n.e);qR(kI(e.f),n.a)}for(c=new Gf(this.a);c.a<c.c.c.length;)f8(e,_W((s=jz(Q1(c),325)).b))},mW(KJt,"ComponentGroupModelOrderGraphPlacer",1293),fBt(423,22,{3:1,35:1,22:1,423:1},YE);var gse,pse,mse,bse=$nt(KJt,"ComponentOrderingStrategy",423,Ute,k1,xj);fBt(650,1,{},Pe),mW(KJt,"ComponentsCompactor",650),fBt(1468,12,YXt,m4),AKt.Fc=function(t){return X_t(this,jz(t,140))},mW(KJt,"ComponentsCompactor/Hullpoints",1468),fBt(1465,1,{841:1},lwt),AKt.a=!1,mW(KJt,"ComponentsCompactor/InternalComponent",1465),fBt(1464,1,mYt,Yw),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new Gf(this.a)},mW(KJt,"ComponentsCompactor/InternalConnectedComponents",1464),fBt(1467,1,{594:1},gIt),AKt.hf=function(){return null},AKt.jf=function(){return this.a},AKt.gf=function(){return abt(this.d)},AKt.kf=function(){return this.b},mW(KJt,"ComponentsCompactor/InternalExternalExtension",1467),fBt(1466,1,{594:1},Qw),AKt.jf=function(){return this.a},AKt.gf=function(){return abt(this.d)},AKt.hf=function(){return this.c},AKt.kf=function(){return this.b},mW(KJt,"ComponentsCompactor/InternalUnionExternalExtension",1466),fBt(1470,1,{},YOt),mW(KJt,"ComponentsCompactor/OuterSegments",1470),fBt(1469,1,{},Xw),mW(KJt,"ComponentsCompactor/Segments",1469),fBt(1264,1,{},hZ),mW(KJt,nJt,1264),fBt(1265,1,AZt,Le),AKt.ue=function(t,e){return h0(jz(t,37),jz(e,37))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(KJt,"ComponentsProcessor/lambda$0$Type",1265),fBt(570,325,{325:1,570:1},p4),AKt.mf=function(t){return glt(this,t)},AKt.nf=function(t){return dLt(this,t)},mW(KJt,"ModelOrderComponentGroup",570),fBt(1291,2005,{},Oe),AKt.lf=function(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_;if(1!=t.gc()){if(t.dc())return e.a.c=P7(Ite,zKt,1,0,5,1),e.f.a=0,void(e.f.b=0);if(VD(wxt(e,(zWt(),Epe)))===VD(($ht(),dse))){for(l=t.Kc();l.Ob();){for(b=0,p=new Gf((s=jz(l.Pb(),37)).a);p.a<p.c.c.length;)g=jz(Q1(p),10),b+=jz(wxt(g,cbe),19).a;s.p=b}AX(),t.ad(new Ne)}for(a=jz(t.Xb(0),37),e.a.c=P7(Ite,zKt,1,0,5,1),Vat(e,a),f=0,v=0,u=t.Kc();u.Ob();)w=(s=jz(u.Pb(),37)).f,f=i.Math.max(f,w.a),v+=w.a*w.b;for(f=i.Math.max(f,i.Math.sqrt(v)*Vv(CN(wxt(e,ype)))),y=0,_=0,d=0,n=o=Vv(CN(wxt(e,bbe))),c=t.Kc();c.Ob();)y+(w=(s=jz(c.Pb(),37)).f).a>f&&(y=0,_+=d+o,d=0),QRt(s,y+(m=s.c).a,_+m.b),kI(m),n=i.Math.max(n,y+w.a),d=i.Math.max(d,w.b),y+=w.a+o;if(e.f.a=n,e.f.b=_+d,zv(_N(wxt(a,Cpe)))){for(RWt(r=new Pe,t,o),h=t.Kc();h.Ob();)qR(kI(jz(h.Pb(),37).c),r.e);qR(kI(e.f),r.a)}f8(e,t)}else(k=jz(t.Xb(0),37))!=e&&(e.a.c=P7(Ite,zKt,1,0,5,1),BFt(e,k,0,0),Vat(e,k),kX(e.d,k.d),e.f.a=k.f.a,e.f.b=k.f.b)},mW(KJt,"SimpleRowGraphPlacer",1291),fBt(1292,1,AZt,Ne),AKt.ue=function(t,e){return qat(jz(t,37),jz(e,37))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(KJt,"SimpleRowGraphPlacer/1",1292),fBt(1262,1,VZt,Re),AKt.Lb=function(t){var e;return!!(e=jz(wxt(jz(t,243).b,(zWt(),mme)),74))&&0!=e.b},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){var e;return!!(e=jz(wxt(jz(t,243).b,(zWt(),mme)),74))&&0!=e.b},mW(QJt,"CompoundGraphPostprocessor/1",1262),fBt(1261,1,JJt,tk),AKt.pf=function(t,e){wwt(this,jz(t,37),e)},mW(QJt,"CompoundGraphPreprocessor",1261),fBt(441,1,{441:1},qht),AKt.c=!1,mW(QJt,"CompoundGraphPreprocessor/ExternalPort",441),fBt(243,1,{243:1},Bj),AKt.Ib=function(){return fO(this.c)+":"+DDt(this.b)},mW(QJt,"CrossHierarchyEdge",243),fBt(763,1,AZt,Rg),AKt.ue=function(t,e){return Kvt(this,jz(t,243),jz(e,243))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(QJt,"CrossHierarchyEdgeComparator",763),fBt(299,134,{3:1,299:1,94:1,134:1}),AKt.p=0,mW(t1t,"LGraphElement",299),fBt(17,299,{3:1,17:1,299:1,94:1,134:1},dZ),AKt.Ib=function(){return DDt(this)};var wse=mW(t1t,"LEdge",17);fBt(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},wit),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new Gf(this.b)},AKt.Ib=function(){return 0==this.b.c.length?"G-unlayered"+Mxt(this.a):0==this.a.c.length?"G-layered"+Mxt(this.b):"G[layerless"+Mxt(this.a)+", layers"+Mxt(this.b)+"]"};var kse,vse=mW(t1t,"LGraph",37);fBt(657,1,{}),AKt.qf=function(){return this.e.n},AKt.We=function(t){return wxt(this.e,t)},AKt.rf=function(){return this.e.o},AKt.sf=function(){return this.e.p},AKt.Xe=function(t){return BO(this.e,t)},AKt.tf=function(t){this.e.n.a=t.a,this.e.n.b=t.b},AKt.uf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},AKt.vf=function(t){this.e.p=t},mW(t1t,"LGraphAdapters/AbstractLShapeAdapter",657),fBt(577,1,{839:1},Fg),AKt.wf=function(){var t,e;if(!this.b)for(this.b=sO(this.a.b.c.length),e=new Gf(this.a.b);e.a<e.c.c.length;)t=jz(Q1(e),70),Gz(this.b,new jg(t));return this.b},AKt.b=null,mW(t1t,"LGraphAdapters/LEdgeAdapter",577),fBt(656,1,{},$Y),AKt.xf=function(){var t,e,n,i,r;if(!this.b)for(this.b=new Mb,n=new Gf(this.a.b);n.a<n.c.c.length;)for(r=new Gf(jz(Q1(n),29).a);r.a<r.c.c.length;)if(i=jz(Q1(r),10),this.c.Mb(i)&&(Gz(this.b,new Rj(this,i,this.e)),this.d)){if(BO(i,(lKt(),Nde)))for(e=jz(wxt(i,Nde),15).Kc();e.Ob();)t=jz(e.Pb(),10),Gz(this.b,new Rj(this,t,!1));if(BO(i,Lhe))for(e=jz(wxt(i,Lhe),15).Kc();e.Ob();)t=jz(e.Pb(),10),Gz(this.b,new Rj(this,t,!1))}return this.b},AKt.qf=function(){throw $b(new Jv(n1t))},AKt.We=function(t){return wxt(this.a,t)},AKt.rf=function(){return this.a.f},AKt.sf=function(){return this.a.p},AKt.Xe=function(t){return BO(this.a,t)},AKt.tf=function(t){throw $b(new Jv(n1t))},AKt.uf=function(t){this.a.f.a=t.a,this.a.f.b=t.b},AKt.vf=function(t){this.a.p=t},AKt.b=null,AKt.d=!1,AKt.e=!1,mW(t1t,"LGraphAdapters/LGraphAdapter",656),fBt(576,657,{181:1},jg),mW(t1t,"LGraphAdapters/LLabelAdapter",576),fBt(575,657,{680:1},Rj),AKt.yf=function(){return this.b},AKt.zf=function(){return AX(),AX(),cne},AKt.wf=function(){var t,e;if(!this.a)for(this.a=sO(jz(this.e,10).b.c.length),e=new Gf(jz(this.e,10).b);e.a<e.c.c.length;)t=jz(Q1(e),70),Gz(this.a,new jg(t));return this.a},AKt.Af=function(){var t;return new $R((t=jz(this.e,10).d).d,t.c,t.a,t.b)},AKt.Bf=function(){return AX(),AX(),cne},AKt.Cf=function(){var t,e;if(!this.c)for(this.c=sO(jz(this.e,10).j.c.length),e=new Gf(jz(this.e,10).j);e.a<e.c.c.length;)t=jz(Q1(e),11),Gz(this.c,new gT(t,this.d));return this.c},AKt.Df=function(){return zv(_N(wxt(jz(this.e,10),(lKt(),Rhe))))},AKt.Ef=function(t){jz(this.e,10).d.b=t.b,jz(this.e,10).d.d=t.d,jz(this.e,10).d.c=t.c,jz(this.e,10).d.a=t.a},AKt.Ff=function(t){jz(this.e,10).f.b=t.b,jz(this.e,10).f.d=t.d,jz(this.e,10).f.c=t.c,jz(this.e,10).f.a=t.a},AKt.Gf=function(){Pet(this,(gx(),kse))},AKt.a=null,AKt.b=null,AKt.c=null,AKt.d=!1,mW(t1t,"LGraphAdapters/LNodeAdapter",575),fBt(1722,657,{838:1},gT),AKt.zf=function(){var t,e,n,i;if(this.d&&jz(this.e,11).i.k==(aEt(),Tse))return AX(),AX(),cne;if(!this.a){for(this.a=new Mb,n=new Gf(jz(this.e,11).e);n.a<n.c.c.length;)t=jz(Q1(n),17),Gz(this.a,new Fg(t));if(this.d&&(i=jz(wxt(jz(this.e,11),(lKt(),yde)),10)))for(e=new aU(ZP(uft(i).a.Kc(),new u));gBt(e);)t=jz(q4(e),17),Gz(this.a,new Fg(t))}return this.a},AKt.wf=function(){var t,e;if(!this.b)for(this.b=sO(jz(this.e,11).f.c.length),e=new Gf(jz(this.e,11).f);e.a<e.c.c.length;)t=jz(Q1(e),70),Gz(this.b,new jg(t));return this.b},AKt.Bf=function(){var t,e,n,i;if(this.d&&jz(this.e,11).i.k==(aEt(),Tse))return AX(),AX(),cne;if(!this.c){for(this.c=new Mb,n=new Gf(jz(this.e,11).g);n.a<n.c.c.length;)t=jz(Q1(n),17),Gz(this.c,new Fg(t));if(this.d&&(i=jz(wxt(jz(this.e,11),(lKt(),yde)),10)))for(e=new aU(ZP(hft(i).a.Kc(),new u));gBt(e);)t=jz(q4(e),17),Gz(this.c,new Fg(t))}return this.c},AKt.Hf=function(){return jz(this.e,11).j},AKt.If=function(){return zv(_N(wxt(jz(this.e,11),(lKt(),tde))))},AKt.a=null,AKt.b=null,AKt.c=null,AKt.d=!1,mW(t1t,"LGraphAdapters/LPortAdapter",1722),fBt(1723,1,AZt,Fe),AKt.ue=function(t,e){return WNt(jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(t1t,"LGraphAdapters/PortComparator",1723),fBt(804,1,OYt,je),AKt.Mb=function(t){return jz(t,10),gx(),!0},mW(t1t,"LGraphAdapters/lambda$0$Type",804),fBt(392,299,{3:1,299:1,392:1,94:1,134:1}),mW(t1t,"LShape",392),fBt(70,392,{3:1,299:1,70:1,392:1,94:1,134:1},z_,SM),AKt.Ib=function(){var t;return null==(t=YV(this))?"label":"l_"+t},mW(t1t,"LLabel",70),fBt(207,1,{3:1,4:1,207:1,414:1}),AKt.Fb=function(t){var e;return!!iP(t,207)&&(e=jz(t,207),this.d==e.d&&this.a==e.a&&this.b==e.b&&this.c==e.c)},AKt.Hb=function(){var t,e;return t=WI(this.b)<<16,t|=WI(this.a)&YYt,e=WI(this.c)<<16,t^(e|=WI(this.d)&YYt)},AKt.Jf=function(t){var e,n,i,r,o,a,s,c,l;for(r=0;r<t.length&&Out((h1(r,t.length),t.charCodeAt(r)),s1t);)++r;for(e=t.length;e>0&&Out((h1(e-1,t.length),t.charCodeAt(e-1)),c1t);)--e;if(r<e){c=vFt(t.substr(r,e-r),",|;");try{for(a=0,s=(o=c).length;a<s;++a){if(2!=(i=vFt(o[a],"=")).length)throw $b(new Rv("Expecting a list of key-value pairs."));n=Nxt(i[0]),l=dEt(Nxt(i[1])),bF(n,"top")?this.d=l:bF(n,"left")?this.b=l:bF(n,"bottom")?this.a=l:bF(n,"right")&&(this.c=l)}}catch(t){throw iP(t=hst(t),127)?$b(new Rv(l1t+t)):$b(t)}}},AKt.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},AKt.a=0,AKt.b=0,AKt.c=0,AKt.d=0,mW(u1t,"Spacing",207),fBt(142,207,h1t,uk,uB,$R,Dj);var yse=mW(u1t,"ElkMargin",142);fBt(651,142,h1t,lk),mW(t1t,"LMargin",651),fBt(10,392,{3:1,299:1,10:1,392:1,94:1,134:1},Bwt),AKt.Ib=function(){return Bbt(this)},AKt.i=!1;var _se,Cse,Ase,xse,Ese,Tse,Sse=mW(t1t,"LNode",10);fBt(267,22,{3:1,35:1,22:1,267:1},XE);var Dse,Ise=$nt(t1t,"LNode/NodeType",267,Ute,o8,Tj);fBt(116,207,d1t,hk,GB,Sj);var Bse,Mse,Pse,Lse,Ose,Nse,Rse=mW(u1t,"ElkPadding",116);fBt(764,116,d1t,dk),mW(t1t,"LPadding",764),fBt(11,392,{3:1,299:1,11:1,392:1,94:1,134:1},TEt),AKt.Ib=function(){var t,e,n;return aI(((t=new Ey).a+="p_",t),mvt(this)),this.i&&aI(oI((t.a+="[",t),this.i),"]"),1==this.e.c.length&&0==this.g.c.length&&jz(PH(this.e,0),17).c!=this&&(e=jz(PH(this.e,0),17).c,aI((t.a+=" << ",t),mvt(e)),aI(oI((t.a+="[",t),e.i),"]")),0==this.e.c.length&&1==this.g.c.length&&jz(PH(this.g,0),17).d!=this&&(n=jz(PH(this.g,0),17).d,aI((t.a+=" >> ",t),mvt(n)),aI(oI((t.a+="[",t),n.i),"]")),t.a},AKt.c=!0,AKt.d=!1;var Fse,jse,$se,zse,Vse=mW(t1t,"LPort",11);fBt(397,1,mYt,$g),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new zg(new Gf(this.a.e))},mW(t1t,"LPort/1",397),fBt(1290,1,YKt,zg),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return jz(Q1(this.a),17).c},AKt.Ob=function(){return wM(this.a)},AKt.Qb=function(){DG(this.a)},mW(t1t,"LPort/1/1",1290),fBt(359,1,mYt,Vg),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new Hg(new Gf(this.a.g))},mW(t1t,"LPort/2",359),fBt(762,1,YKt,Hg),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return jz(Q1(this.a),17).d},AKt.Ob=function(){return wM(this.a)},AKt.Qb=function(){DG(this.a)},mW(t1t,"LPort/2/1",762),fBt(1283,1,mYt,cT),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new b6(this)},mW(t1t,"LPort/CombineIter",1283),fBt(201,1,YKt,b6),AKt.Nb=function(t){lG(this,t)},AKt.Qb=function(){oC()},AKt.Ob=function(){return HL(this)},AKt.Pb=function(){return wM(this.a)?Q1(this.a):Q1(this.b)},mW(t1t,"LPort/CombineIter/1",201),fBt(1285,1,VZt,$e),AKt.Lb=function(t){return DU(t)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return pot(),0!=jz(t,11).e.c.length},mW(t1t,"LPort/lambda$0$Type",1285),fBt(1284,1,VZt,ze),AKt.Lb=function(t){return IU(t)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return pot(),0!=jz(t,11).g.c.length},mW(t1t,"LPort/lambda$1$Type",1284),fBt(1286,1,VZt,Ve),AKt.Lb=function(t){return pot(),jz(t,11).j==(vGt(),sDe)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return pot(),jz(t,11).j==(vGt(),sDe)},mW(t1t,"LPort/lambda$2$Type",1286),fBt(1287,1,VZt,He),AKt.Lb=function(t){return pot(),jz(t,11).j==(vGt(),aDe)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return pot(),jz(t,11).j==(vGt(),aDe)},mW(t1t,"LPort/lambda$3$Type",1287),fBt(1288,1,VZt,qe),AKt.Lb=function(t){return pot(),jz(t,11).j==(vGt(),ADe)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return pot(),jz(t,11).j==(vGt(),ADe)},mW(t1t,"LPort/lambda$4$Type",1288),fBt(1289,1,VZt,Ue),AKt.Lb=function(t){return pot(),jz(t,11).j==(vGt(),EDe)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return pot(),jz(t,11).j==(vGt(),EDe)},mW(t1t,"LPort/lambda$5$Type",1289),fBt(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},$W),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new Gf(this.a)},AKt.Ib=function(){return"L_"+y9(this.b.b,this,0)+Mxt(this.a)},mW(t1t,"Layer",29),fBt(1342,1,{},Jw),mW(g1t,p1t,1342),fBt(1346,1,{},Ge),AKt.Kb=function(t){return EAt(jz(t,82))},mW(g1t,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),fBt(1349,1,{},We),AKt.Kb=function(t){return EAt(jz(t,82))},mW(g1t,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),fBt(1343,1,hYt,qg),AKt.td=function(t){EIt(this.a,jz(t,118))},mW(g1t,m1t,1343),fBt(1344,1,hYt,Ug),AKt.td=function(t){EIt(this.a,jz(t,118))},mW(g1t,b1t,1344),fBt(1345,1,{},Ke),AKt.Kb=function(t){return new OH(null,new d1(pY(jz(t,79)),16))},mW(g1t,w1t,1345),fBt(1347,1,OYt,Gg),AKt.Mb=function(t){return RB(this.a,jz(t,33))},mW(g1t,k1t,1347),fBt(1348,1,{},Ye),AKt.Kb=function(t){return new OH(null,new d1(mY(jz(t,79)),16))},mW(g1t,"ElkGraphImporter/lambda$5$Type",1348),fBt(1350,1,OYt,Wg),AKt.Mb=function(t){return FB(this.a,jz(t,33))},mW(g1t,"ElkGraphImporter/lambda$7$Type",1350),fBt(1351,1,OYt,Xe),AKt.Mb=function(t){return DX(jz(t,79))},mW(g1t,"ElkGraphImporter/lambda$8$Type",1351),fBt(1278,1,{},Ku),mW(g1t,"ElkGraphLayoutTransferrer",1278),fBt(1279,1,OYt,Kg),AKt.Mb=function(t){return XR(this.a,jz(t,17))},mW(g1t,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),fBt(1280,1,hYt,Yg),AKt.td=function(t){bx(),Gz(this.a,jz(t,17))},mW(g1t,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),fBt(1281,1,OYt,Xg),AKt.Mb=function(t){return qN(this.a,jz(t,17))},mW(g1t,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),fBt(1282,1,hYt,Zg),AKt.td=function(t){bx(),Gz(this.a,jz(t,17))},mW(g1t,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),fBt(1485,1,JJt,Ze),AKt.pf=function(t,e){Krt(jz(t,37),e)},mW(y1t,"CommentNodeMarginCalculator",1485),fBt(1486,1,{},Qe),AKt.Kb=function(t){return new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"CommentNodeMarginCalculator/lambda$0$Type",1486),fBt(1487,1,hYt,Je),AKt.td=function(t){tVt(jz(t,10))},mW(y1t,"CommentNodeMarginCalculator/lambda$1$Type",1487),fBt(1488,1,JJt,tn),AKt.pf=function(t,e){oNt(jz(t,37),e)},mW(y1t,"CommentPostprocessor",1488),fBt(1489,1,JJt,en),AKt.pf=function(t,e){aGt(jz(t,37),e)},mW(y1t,"CommentPreprocessor",1489),fBt(1490,1,JJt,nn),AKt.pf=function(t,e){yPt(jz(t,37),e)},mW(y1t,"ConstraintsPostprocessor",1490),fBt(1491,1,JJt,rn),AKt.pf=function(t,e){rat(jz(t,37),e)},mW(y1t,"EdgeAndLayerConstraintEdgeReverser",1491),fBt(1492,1,JJt,on),AKt.pf=function(t,e){Hgt(jz(t,37),e)},mW(y1t,"EndLabelPostprocessor",1492),fBt(1493,1,{},an),AKt.Kb=function(t){return new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"EndLabelPostprocessor/lambda$0$Type",1493),fBt(1494,1,OYt,sn),AKt.Mb=function(t){return CZ(jz(t,10))},mW(y1t,"EndLabelPostprocessor/lambda$1$Type",1494),fBt(1495,1,hYt,cn),AKt.td=function(t){e_t(jz(t,10))},mW(y1t,"EndLabelPostprocessor/lambda$2$Type",1495),fBt(1496,1,JJt,ln),AKt.pf=function(t,e){QTt(jz(t,37),e)},mW(y1t,"EndLabelPreprocessor",1496),fBt(1497,1,{},un),AKt.Kb=function(t){return new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"EndLabelPreprocessor/lambda$0$Type",1497),fBt(1498,1,hYt,Lj),AKt.td=function(t){Nx(this.a,this.b,this.c,jz(t,10))},AKt.a=0,AKt.b=0,AKt.c=!1,mW(y1t,"EndLabelPreprocessor/lambda$1$Type",1498),fBt(1499,1,OYt,hn),AKt.Mb=function(t){return VD(wxt(jz(t,70),(zWt(),Ype)))===VD((Net(),UTe))},mW(y1t,"EndLabelPreprocessor/lambda$2$Type",1499),fBt(1500,1,hYt,Qg),AKt.td=function(t){LV(this.a,jz(t,70))},mW(y1t,"EndLabelPreprocessor/lambda$3$Type",1500),fBt(1501,1,OYt,dn),AKt.Mb=function(t){return VD(wxt(jz(t,70),(zWt(),Ype)))===VD((Net(),qTe))},mW(y1t,"EndLabelPreprocessor/lambda$4$Type",1501),fBt(1502,1,hYt,Jg),AKt.td=function(t){LV(this.a,jz(t,70))},mW(y1t,"EndLabelPreprocessor/lambda$5$Type",1502),fBt(1551,1,JJt,Wu),AKt.pf=function(t,e){Tdt(jz(t,37),e)},mW(y1t,"EndLabelSorter",1551),fBt(1552,1,AZt,fn),AKt.ue=function(t,e){return zmt(jz(t,456),jz(e,456))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"EndLabelSorter/1",1552),fBt(456,1,{456:1},_X),mW(y1t,"EndLabelSorter/LabelGroup",456),fBt(1553,1,{},gn),AKt.Kb=function(t){return yx(),new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"EndLabelSorter/lambda$0$Type",1553),fBt(1554,1,OYt,pn),AKt.Mb=function(t){return yx(),jz(t,10).k==(aEt(),Ese)},mW(y1t,"EndLabelSorter/lambda$1$Type",1554),fBt(1555,1,hYt,mn),AKt.td=function(t){sEt(jz(t,10))},mW(y1t,"EndLabelSorter/lambda$2$Type",1555),fBt(1556,1,OYt,bn),AKt.Mb=function(t){return yx(),VD(wxt(jz(t,70),(zWt(),Ype)))===VD((Net(),qTe))},mW(y1t,"EndLabelSorter/lambda$3$Type",1556),fBt(1557,1,OYt,wn),AKt.Mb=function(t){return yx(),VD(wxt(jz(t,70),(zWt(),Ype)))===VD((Net(),UTe))},mW(y1t,"EndLabelSorter/lambda$4$Type",1557),fBt(1503,1,JJt,kn),AKt.pf=function(t,e){SVt(this,jz(t,37))},AKt.b=0,AKt.c=0,mW(y1t,"FinalSplineBendpointsCalculator",1503),fBt(1504,1,{},vn),AKt.Kb=function(t){return new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"FinalSplineBendpointsCalculator/lambda$0$Type",1504),fBt(1505,1,{},yn),AKt.Kb=function(t){return new OH(null,new HG(new aU(ZP(hft(jz(t,10)).a.Kc(),new u))))},mW(y1t,"FinalSplineBendpointsCalculator/lambda$1$Type",1505),fBt(1506,1,OYt,_n),AKt.Mb=function(t){return!h4(jz(t,17))},mW(y1t,"FinalSplineBendpointsCalculator/lambda$2$Type",1506),fBt(1507,1,OYt,Cn),AKt.Mb=function(t){return BO(jz(t,17),(lKt(),Mde))},mW(y1t,"FinalSplineBendpointsCalculator/lambda$3$Type",1507),fBt(1508,1,hYt,tp),AKt.td=function(t){qFt(this.a,jz(t,128))},mW(y1t,"FinalSplineBendpointsCalculator/lambda$4$Type",1508),fBt(1509,1,hYt,An),AKt.td=function(t){ZTt(jz(t,17).a)},mW(y1t,"FinalSplineBendpointsCalculator/lambda$5$Type",1509),fBt(792,1,JJt,ep),AKt.pf=function(t,e){KHt(this,jz(t,37),e)},mW(y1t,"GraphTransformer",792),fBt(511,22,{3:1,35:1,22:1,511:1},ZE);var Hse,qse,Use,Gse=$nt(y1t,"GraphTransformer/Mode",511,Ute,oQ,J$);fBt(1510,1,JJt,xn),AKt.pf=function(t,e){eOt(jz(t,37),e)},mW(y1t,"HierarchicalNodeResizingProcessor",1510),fBt(1511,1,JJt,En),AKt.pf=function(t,e){hrt(jz(t,37),e)},mW(y1t,"HierarchicalPortConstraintProcessor",1511),fBt(1512,1,AZt,Tn),AKt.ue=function(t,e){return Sbt(jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"HierarchicalPortConstraintProcessor/NodeComparator",1512),fBt(1513,1,JJt,Sn),AKt.pf=function(t,e){yzt(jz(t,37),e)},mW(y1t,"HierarchicalPortDummySizeProcessor",1513),fBt(1514,1,JJt,Dn),AKt.pf=function(t,e){ZNt(this,jz(t,37),e)},AKt.a=0,mW(y1t,"HierarchicalPortOrthogonalEdgeRouter",1514),fBt(1515,1,AZt,In),AKt.ue=function(t,e){return RL(jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"HierarchicalPortOrthogonalEdgeRouter/1",1515),fBt(1516,1,AZt,Bn),AKt.ue=function(t,e){return x8(jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"HierarchicalPortOrthogonalEdgeRouter/2",1516),fBt(1517,1,JJt,Mn),AKt.pf=function(t,e){_xt(jz(t,37),e)},mW(y1t,"HierarchicalPortPositionProcessor",1517),fBt(1518,1,JJt,Yu),AKt.pf=function(t,e){iWt(this,jz(t,37))},AKt.a=0,AKt.c=0,mW(y1t,"HighDegreeNodeLayeringProcessor",1518),fBt(571,1,{571:1},Pn),AKt.b=-1,AKt.d=-1,mW(y1t,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",571),fBt(1519,1,{},Ln),AKt.Kb=function(t){return zj(),uft(jz(t,10))},AKt.Fb=function(t){return this===t},mW(y1t,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1519),fBt(1520,1,{},On),AKt.Kb=function(t){return zj(),hft(jz(t,10))},AKt.Fb=function(t){return this===t},mW(y1t,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1520),fBt(1526,1,JJt,Nn),AKt.pf=function(t,e){g$t(this,jz(t,37),e)},mW(y1t,"HyperedgeDummyMerger",1526),fBt(793,1,{},Oj),AKt.a=!1,AKt.b=!1,AKt.c=!1,mW(y1t,"HyperedgeDummyMerger/MergeState",793),fBt(1527,1,{},Rn),AKt.Kb=function(t){return new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"HyperedgeDummyMerger/lambda$0$Type",1527),fBt(1528,1,{},Fn),AKt.Kb=function(t){return new OH(null,new d1(jz(t,10).j,16))},mW(y1t,"HyperedgeDummyMerger/lambda$1$Type",1528),fBt(1529,1,hYt,jn),AKt.td=function(t){jz(t,11).p=-1},mW(y1t,"HyperedgeDummyMerger/lambda$2$Type",1529),fBt(1530,1,JJt,$n),AKt.pf=function(t,e){d$t(jz(t,37),e)},mW(y1t,"HypernodesProcessor",1530),fBt(1531,1,JJt,zn),AKt.pf=function(t,e){f$t(jz(t,37),e)},mW(y1t,"InLayerConstraintProcessor",1531),fBt(1532,1,JJt,Vn),AKt.pf=function(t,e){Mot(jz(t,37),e)},mW(y1t,"InnermostNodeMarginCalculator",1532),fBt(1533,1,JJt,Hn),AKt.pf=function(t,e){KUt(this,jz(t,37))},AKt.a=RXt,AKt.b=RXt,AKt.c=NXt,AKt.d=NXt;var Wse,Kse,Yse,Xse,Zse,Qse,Jse,tce,ece,nce,ice,rce,oce,ace,sce,cce,lce,uce,hce,dce,fce,gce,pce,mce,bce,wce,kce,vce,yce,_ce,Cce,Ace,xce,Ece,Tce,Sce,Dce,Ice,Bce,Mce,Pce,Lce,Oce,Nce,Rce,Fce,jce,$ce,zce,Vce,Hce,qce,Uce,Gce,Wce,Kce,Yce,Xce=mW(y1t,"InteractiveExternalPortPositioner",1533);fBt(1534,1,{},qn),AKt.Kb=function(t){return jz(t,17).d.i},AKt.Fb=function(t){return this===t},mW(y1t,"InteractiveExternalPortPositioner/lambda$0$Type",1534),fBt(1535,1,{},np),AKt.Kb=function(t){return zL(this.a,CN(t))},AKt.Fb=function(t){return this===t},mW(y1t,"InteractiveExternalPortPositioner/lambda$1$Type",1535),fBt(1536,1,{},Un),AKt.Kb=function(t){return jz(t,17).c.i},AKt.Fb=function(t){return this===t},mW(y1t,"InteractiveExternalPortPositioner/lambda$2$Type",1536),fBt(1537,1,{},ip),AKt.Kb=function(t){return VL(this.a,CN(t))},AKt.Fb=function(t){return this===t},mW(y1t,"InteractiveExternalPortPositioner/lambda$3$Type",1537),fBt(1538,1,{},rp),AKt.Kb=function(t){return GR(this.a,CN(t))},AKt.Fb=function(t){return this===t},mW(y1t,"InteractiveExternalPortPositioner/lambda$4$Type",1538),fBt(1539,1,{},op),AKt.Kb=function(t){return WR(this.a,CN(t))},AKt.Fb=function(t){return this===t},mW(y1t,"InteractiveExternalPortPositioner/lambda$5$Type",1539),fBt(77,22,{3:1,35:1,22:1,77:1,234:1},QE),AKt.Kf=function(){switch(this.g){case 15:return new mo;case 22:return new bo;case 47:return new vo;case 28:case 35:return new ni;case 32:return new Ze;case 42:return new tn;case 1:return new en;case 41:return new nn;case 56:return new ep((xrt(),zse));case 0:return new ep((xrt(),$se));case 2:return new rn;case 54:return new on;case 33:return new ln;case 51:return new kn;case 55:return new xn;case 13:return new En;case 38:return new Sn;case 44:return new Dn;case 40:return new Mn;case 9:return new Yu;case 49:return new aO;case 37:return new Nn;case 43:return new $n;case 27:return new zn;case 30:return new Vn;case 3:return new Hn;case 18:return new Wn;case 29:return new Kn;case 5:return new Xu;case 50:return new Gn;case 34:return new Zu;case 36:return new ii;case 52:return new Wu;case 11:return new oi;case 7:return new Ju;case 39:return new ai;case 45:return new si;case 16:return new ci;case 10:return new li;case 48:return new hi;case 21:return new di;case 23:return new Mv((sit(),Dke));case 8:return new gi;case 12:return new mi;case 4:return new bi;case 19:return new ih;case 17:return new Ti;case 53:return new Si;case 6:return new zi;case 25:return new rk;case 46:return new Li;case 31:return new PR;case 14:return new Yi;case 26:return new To;case 20:return new tr;case 24:return new Mv((sit(),Ike));default:throw $b(new Rv(A1t+(null!=this.f?this.f:""+this.g)))}};var Zce,Qce,Jce,tle,ele,nle,ile,rle,ole=$nt(y1t,x1t,77,Ute,_Lt,Q$);fBt(1540,1,JJt,Wn),AKt.pf=function(t,e){ZUt(jz(t,37),e)},mW(y1t,"InvertedPortProcessor",1540),fBt(1541,1,JJt,Kn),AKt.pf=function(t,e){MFt(jz(t,37),e)},mW(y1t,"LabelAndNodeSizeProcessor",1541),fBt(1542,1,OYt,Yn),AKt.Mb=function(t){return jz(t,10).k==(aEt(),Ese)},mW(y1t,"LabelAndNodeSizeProcessor/lambda$0$Type",1542),fBt(1543,1,OYt,Xn),AKt.Mb=function(t){return jz(t,10).k==(aEt(),Cse)},mW(y1t,"LabelAndNodeSizeProcessor/lambda$1$Type",1543),fBt(1544,1,hYt,Nj),AKt.td=function(t){Rx(this.b,this.a,this.c,jz(t,10))},AKt.a=!1,AKt.c=!1,mW(y1t,"LabelAndNodeSizeProcessor/lambda$2$Type",1544),fBt(1545,1,JJt,Xu),AKt.pf=function(t,e){uUt(jz(t,37),e)},mW(y1t,"LabelDummyInserter",1545),fBt(1546,1,VZt,Zn),AKt.Lb=function(t){return VD(wxt(jz(t,70),(zWt(),Ype)))===VD((Net(),HTe))},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return VD(wxt(jz(t,70),(zWt(),Ype)))===VD((Net(),HTe))},mW(y1t,"LabelDummyInserter/1",1546),fBt(1547,1,JJt,Gn),AKt.pf=function(t,e){EHt(jz(t,37),e)},mW(y1t,"LabelDummyRemover",1547),fBt(1548,1,OYt,Qn),AKt.Mb=function(t){return zv(_N(wxt(jz(t,70),(zWt(),Kpe))))},mW(y1t,"LabelDummyRemover/lambda$0$Type",1548),fBt(1359,1,JJt,Zu),AKt.pf=function(t,e){Cqt(this,jz(t,37),e)},AKt.a=null,mW(y1t,"LabelDummySwitcher",1359),fBt(286,1,{286:1},rFt),AKt.c=0,AKt.d=null,AKt.f=0,mW(y1t,"LabelDummySwitcher/LabelDummyInfo",286),fBt(1360,1,{},Jn),AKt.Kb=function(t){return Srt(),new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"LabelDummySwitcher/lambda$0$Type",1360),fBt(1361,1,OYt,ti),AKt.Mb=function(t){return Srt(),jz(t,10).k==(aEt(),Ase)},mW(y1t,"LabelDummySwitcher/lambda$1$Type",1361),fBt(1362,1,{},cp),AKt.Kb=function(t){return UN(this.a,jz(t,10))},mW(y1t,"LabelDummySwitcher/lambda$2$Type",1362),fBt(1363,1,hYt,lp),AKt.td=function(t){YW(this.a,jz(t,286))},mW(y1t,"LabelDummySwitcher/lambda$3$Type",1363),fBt(1364,1,AZt,ei),AKt.ue=function(t,e){return BU(jz(t,286),jz(e,286))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"LabelDummySwitcher/lambda$4$Type",1364),fBt(791,1,JJt,ni),AKt.pf=function(t,e){Y6(jz(t,37),e)},mW(y1t,"LabelManagementProcessor",791),fBt(1549,1,JJt,ii),AKt.pf=function(t,e){POt(jz(t,37),e)},mW(y1t,"LabelSideSelector",1549),fBt(1550,1,OYt,ri),AKt.Mb=function(t){return zv(_N(wxt(jz(t,70),(zWt(),Kpe))))},mW(y1t,"LabelSideSelector/lambda$0$Type",1550),fBt(1558,1,JJt,oi),AKt.pf=function(t,e){_zt(jz(t,37),e)},mW(y1t,"LayerConstraintPostprocessor",1558),fBt(1559,1,JJt,Ju),AKt.pf=function(t,e){iMt(jz(t,37),e)},mW(y1t,"LayerConstraintPreprocessor",1559),fBt(360,22,{3:1,35:1,22:1,360:1},JE);var ale,sle,cle,lle,ule,hle,dle,fle,gle,ple=$nt(y1t,"LayerConstraintPreprocessor/HiddenNodeConnections",360,Ute,t3,Hj);fBt(1560,1,JJt,ai),AKt.pf=function(t,e){_Ht(jz(t,37),e)},mW(y1t,"LayerSizeAndGraphHeightCalculator",1560),fBt(1561,1,JJt,si),AKt.pf=function(t,e){IPt(jz(t,37),e)},mW(y1t,"LongEdgeJoiner",1561),fBt(1562,1,JJt,ci),AKt.pf=function(t,e){WVt(jz(t,37),e)},mW(y1t,"LongEdgeSplitter",1562),fBt(1563,1,JJt,li),AKt.pf=function(t,e){Eqt(this,jz(t,37),e)},AKt.d=0,AKt.e=0,AKt.i=0,AKt.j=0,AKt.k=0,AKt.n=0,mW(y1t,"NodePromotion",1563),fBt(1564,1,{},ui),AKt.Kb=function(t){return jz(t,46),cL(),!0},AKt.Fb=function(t){return this===t},mW(y1t,"NodePromotion/lambda$0$Type",1564),fBt(1565,1,{},ap),AKt.Kb=function(t){return rY(this.a,jz(t,46))},AKt.Fb=function(t){return this===t},AKt.a=0,mW(y1t,"NodePromotion/lambda$1$Type",1565),fBt(1566,1,{},sp),AKt.Kb=function(t){return oY(this.a,jz(t,46))},AKt.Fb=function(t){return this===t},AKt.a=0,mW(y1t,"NodePromotion/lambda$2$Type",1566),fBt(1567,1,JJt,hi),AKt.pf=function(t,e){GGt(jz(t,37),e)},mW(y1t,"NorthSouthPortPostprocessor",1567),fBt(1568,1,JJt,di),AKt.pf=function(t,e){AGt(jz(t,37),e)},mW(y1t,"NorthSouthPortPreprocessor",1568),fBt(1569,1,AZt,fi),AKt.ue=function(t,e){return Qat(jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"NorthSouthPortPreprocessor/lambda$0$Type",1569),fBt(1570,1,JJt,gi),AKt.pf=function(t,e){Bjt(jz(t,37),e)},mW(y1t,"PartitionMidprocessor",1570),fBt(1571,1,OYt,pi),AKt.Mb=function(t){return BO(jz(t,10),(zWt(),Gme))},mW(y1t,"PartitionMidprocessor/lambda$0$Type",1571),fBt(1572,1,hYt,up),AKt.td=function(t){IX(this.a,jz(t,10))},mW(y1t,"PartitionMidprocessor/lambda$1$Type",1572),fBt(1573,1,JJt,mi),AKt.pf=function(t,e){fLt(jz(t,37),e)},mW(y1t,"PartitionPostprocessor",1573),fBt(1574,1,JJt,bi),AKt.pf=function(t,e){PIt(jz(t,37),e)},mW(y1t,"PartitionPreprocessor",1574),fBt(1575,1,OYt,wi),AKt.Mb=function(t){return BO(jz(t,10),(zWt(),Gme))},mW(y1t,"PartitionPreprocessor/lambda$0$Type",1575),fBt(1576,1,{},ki),AKt.Kb=function(t){return new OH(null,new HG(new aU(ZP(hft(jz(t,10)).a.Kc(),new u))))},mW(y1t,"PartitionPreprocessor/lambda$1$Type",1576),fBt(1577,1,OYt,vi),AKt.Mb=function(t){return Mmt(jz(t,17))},mW(y1t,"PartitionPreprocessor/lambda$2$Type",1577),fBt(1578,1,hYt,yi),AKt.td=function(t){Nst(jz(t,17))},mW(y1t,"PartitionPreprocessor/lambda$3$Type",1578),fBt(1579,1,JJt,ih),AKt.pf=function(t,e){ajt(jz(t,37),e)},mW(y1t,"PortListSorter",1579),fBt(1580,1,{},_i),AKt.Kb=function(t){return qlt(),jz(t,11).e},mW(y1t,"PortListSorter/lambda$0$Type",1580),fBt(1581,1,{},Ci),AKt.Kb=function(t){return qlt(),jz(t,11).g},mW(y1t,"PortListSorter/lambda$1$Type",1581),fBt(1582,1,AZt,Ai),AKt.ue=function(t,e){return _5(jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"PortListSorter/lambda$2$Type",1582),fBt(1583,1,AZt,xi),AKt.ue=function(t,e){return Dvt(jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"PortListSorter/lambda$3$Type",1583),fBt(1584,1,AZt,Ei),AKt.ue=function(t,e){return Jjt(jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"PortListSorter/lambda$4$Type",1584),fBt(1585,1,JJt,Ti),AKt.pf=function(t,e){WBt(jz(t,37),e)},mW(y1t,"PortSideProcessor",1585),fBt(1586,1,JJt,Si),AKt.pf=function(t,e){SRt(jz(t,37),e)},mW(y1t,"ReversedEdgeRestorer",1586),fBt(1591,1,JJt,rk),AKt.pf=function(t,e){Xkt(this,jz(t,37),e)},mW(y1t,"SelfLoopPortRestorer",1591),fBt(1592,1,{},Di),AKt.Kb=function(t){return new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"SelfLoopPortRestorer/lambda$0$Type",1592),fBt(1593,1,OYt,Ii),AKt.Mb=function(t){return jz(t,10).k==(aEt(),Ese)},mW(y1t,"SelfLoopPortRestorer/lambda$1$Type",1593),fBt(1594,1,OYt,Bi),AKt.Mb=function(t){return BO(jz(t,10),(lKt(),Sde))},mW(y1t,"SelfLoopPortRestorer/lambda$2$Type",1594),fBt(1595,1,{},Mi),AKt.Kb=function(t){return jz(wxt(jz(t,10),(lKt(),Sde)),403)},mW(y1t,"SelfLoopPortRestorer/lambda$3$Type",1595),fBt(1596,1,hYt,hp),AKt.td=function(t){xEt(this.a,jz(t,403))},mW(y1t,"SelfLoopPortRestorer/lambda$4$Type",1596),fBt(794,1,hYt,Pi),AKt.td=function(t){JEt(jz(t,101))},mW(y1t,"SelfLoopPortRestorer/lambda$5$Type",794),fBt(1597,1,JJt,Li),AKt.pf=function(t,e){Mbt(jz(t,37),e)},mW(y1t,"SelfLoopPostProcessor",1597),fBt(1598,1,{},Oi),AKt.Kb=function(t){return new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"SelfLoopPostProcessor/lambda$0$Type",1598),fBt(1599,1,OYt,Ni),AKt.Mb=function(t){return jz(t,10).k==(aEt(),Ese)},mW(y1t,"SelfLoopPostProcessor/lambda$1$Type",1599),fBt(1600,1,OYt,Ri),AKt.Mb=function(t){return BO(jz(t,10),(lKt(),Sde))},mW(y1t,"SelfLoopPostProcessor/lambda$2$Type",1600),fBt(1601,1,hYt,Fi),AKt.td=function(t){M_t(jz(t,10))},mW(y1t,"SelfLoopPostProcessor/lambda$3$Type",1601),fBt(1602,1,{},ji),AKt.Kb=function(t){return new OH(null,new d1(jz(t,101).f,1))},mW(y1t,"SelfLoopPostProcessor/lambda$4$Type",1602),fBt(1603,1,hYt,dp),AKt.td=function(t){r3(this.a,jz(t,409))},mW(y1t,"SelfLoopPostProcessor/lambda$5$Type",1603),fBt(1604,1,OYt,$i),AKt.Mb=function(t){return!!jz(t,101).i},mW(y1t,"SelfLoopPostProcessor/lambda$6$Type",1604),fBt(1605,1,hYt,fp),AKt.td=function(t){_v(this.a,jz(t,101))},mW(y1t,"SelfLoopPostProcessor/lambda$7$Type",1605),fBt(1587,1,JJt,zi),AKt.pf=function(t,e){QMt(jz(t,37),e)},mW(y1t,"SelfLoopPreProcessor",1587),fBt(1588,1,{},Vi),AKt.Kb=function(t){return new OH(null,new d1(jz(t,101).f,1))},mW(y1t,"SelfLoopPreProcessor/lambda$0$Type",1588),fBt(1589,1,{},Hi),AKt.Kb=function(t){return jz(t,409).a},mW(y1t,"SelfLoopPreProcessor/lambda$1$Type",1589),fBt(1590,1,hYt,qi),AKt.td=function(t){zM(jz(t,17))},mW(y1t,"SelfLoopPreProcessor/lambda$2$Type",1590),fBt(1606,1,JJt,PR),AKt.pf=function(t,e){cEt(this,jz(t,37),e)},mW(y1t,"SelfLoopRouter",1606),fBt(1607,1,{},Ui),AKt.Kb=function(t){return new OH(null,new d1(jz(t,29).a,16))},mW(y1t,"SelfLoopRouter/lambda$0$Type",1607),fBt(1608,1,OYt,Gi),AKt.Mb=function(t){return jz(t,10).k==(aEt(),Ese)},mW(y1t,"SelfLoopRouter/lambda$1$Type",1608),fBt(1609,1,OYt,Wi),AKt.Mb=function(t){return BO(jz(t,10),(lKt(),Sde))},mW(y1t,"SelfLoopRouter/lambda$2$Type",1609),fBt(1610,1,{},Ki),AKt.Kb=function(t){return jz(wxt(jz(t,10),(lKt(),Sde)),403)},mW(y1t,"SelfLoopRouter/lambda$3$Type",1610),fBt(1611,1,hYt,tT),AKt.td=function(t){KY(this.a,this.b,jz(t,403))},mW(y1t,"SelfLoopRouter/lambda$4$Type",1611),fBt(1612,1,JJt,Yi),AKt.pf=function(t,e){uOt(jz(t,37),e)},mW(y1t,"SemiInteractiveCrossMinProcessor",1612),fBt(1613,1,OYt,Xi),AKt.Mb=function(t){return jz(t,10).k==(aEt(),Ese)},mW(y1t,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1613),fBt(1614,1,OYt,Zi),AKt.Mb=function(t){return VH(jz(t,10))._b((zWt(),sbe))},mW(y1t,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1614),fBt(1615,1,AZt,Qi),AKt.ue=function(t,e){return grt(jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(y1t,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1615),fBt(1616,1,{},Ji),AKt.Ce=function(t,e){return UX(jz(t,10),jz(e,10))},mW(y1t,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1616),fBt(1618,1,JJt,tr),AKt.pf=function(t,e){Azt(jz(t,37),e)},mW(y1t,"SortByInputModelProcessor",1618),fBt(1619,1,OYt,er),AKt.Mb=function(t){return 0!=jz(t,11).g.c.length},mW(y1t,"SortByInputModelProcessor/lambda$0$Type",1619),fBt(1620,1,hYt,gp),AKt.td=function(t){uTt(this.a,jz(t,11))},mW(y1t,"SortByInputModelProcessor/lambda$1$Type",1620),fBt(1693,803,{},prt),AKt.Me=function(t){var e,n,i,r;switch(this.c=t,this.a.g){case 2:e=new Mb,XA(DY(new OH(null,new d1(this.c.a.b,16)),new pr),new oT(this,e)),mSt(this,new rr),Det(e,new or),e.c=P7(Ite,zKt,1,0,5,1),XA(DY(new OH(null,new d1(this.c.a.b,16)),new ar),new mp(e)),mSt(this,new sr),Det(e,new cr),e.c=P7(Ite,zKt,1,0,5,1),n=vM(not(BY(new OH(null,new d1(this.c.a.b,16)),new bp(this))),new lr),XA(new OH(null,new d1(this.c.a.a,16)),new nT(n,e)),mSt(this,new hr),Det(e,new nr),e.c=P7(Ite,zKt,1,0,5,1);break;case 3:i=new Mb,mSt(this,new ir),r=vM(not(BY(new OH(null,new d1(this.c.a.b,16)),new pp(this))),new ur),XA(DY(new OH(null,new d1(this.c.a.b,16)),new dr),new rT(r,i)),mSt(this,new fr),Det(i,new gr),i.c=P7(Ite,zKt,1,0,5,1);break;default:throw $b(new kw)}},AKt.b=0,mW(I1t,"EdgeAwareScanlineConstraintCalculation",1693),fBt(1694,1,VZt,ir),AKt.Lb=function(t){return iP(jz(t,57).g,145)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return iP(jz(t,57).g,145)},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1694),fBt(1695,1,{},pp),AKt.Fe=function(t){return HSt(this.a,jz(t,57))},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1695),fBt(1703,1,NYt,eT),AKt.Vd=function(){jyt(this.a,this.b,-1)},AKt.b=0,mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1703),fBt(1705,1,VZt,rr),AKt.Lb=function(t){return iP(jz(t,57).g,145)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return iP(jz(t,57).g,145)},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1705),fBt(1706,1,hYt,or),AKt.td=function(t){jz(t,365).Vd()},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1706),fBt(1707,1,OYt,ar),AKt.Mb=function(t){return iP(jz(t,57).g,10)},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1707),fBt(1709,1,hYt,mp),AKt.td=function(t){_ft(this.a,jz(t,57))},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1709),fBt(1708,1,NYt,uT),AKt.Vd=function(){jyt(this.b,this.a,-1)},AKt.a=0,mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1708),fBt(1710,1,VZt,sr),AKt.Lb=function(t){return iP(jz(t,57).g,10)},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return iP(jz(t,57).g,10)},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1710),fBt(1711,1,hYt,cr),AKt.td=function(t){jz(t,365).Vd()},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1711),fBt(1712,1,{},bp),AKt.Fe=function(t){return qSt(this.a,jz(t,57))},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1712),fBt(1713,1,{},lr),AKt.De=function(){return 0},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1713),fBt(1696,1,{},ur),AKt.De=function(){return 0},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1696),fBt(1715,1,hYt,nT),AKt.td=function(t){$q(this.a,this.b,jz(t,307))},AKt.a=0,mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1715),fBt(1714,1,NYt,iT),AKt.Vd=function(){KBt(this.a,this.b,-1)},AKt.b=0,mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1714),fBt(1716,1,VZt,hr),AKt.Lb=function(t){return jz(t,57),!0},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return jz(t,57),!0},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1716),fBt(1717,1,hYt,nr),AKt.td=function(t){jz(t,365).Vd()},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1717),fBt(1697,1,OYt,dr),AKt.Mb=function(t){return iP(jz(t,57).g,10)},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1697),fBt(1699,1,hYt,rT),AKt.td=function(t){zq(this.a,this.b,jz(t,57))},AKt.a=0,mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1699),fBt(1698,1,NYt,hT),AKt.Vd=function(){jyt(this.b,this.a,-1)},AKt.a=0,mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1698),fBt(1700,1,VZt,fr),AKt.Lb=function(t){return jz(t,57),!0},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return jz(t,57),!0},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1700),fBt(1701,1,hYt,gr),AKt.td=function(t){jz(t,365).Vd()},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1701),fBt(1702,1,OYt,pr),AKt.Mb=function(t){return iP(jz(t,57).g,145)},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1702),fBt(1704,1,hYt,oT),AKt.td=function(t){Cet(this.a,this.b,jz(t,57))},mW(I1t,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1704),fBt(1521,1,JJt,aO),AKt.pf=function(t,e){rHt(this,jz(t,37),e)},mW(I1t,"HorizontalGraphCompactor",1521),fBt(1522,1,{},wp),AKt.Oe=function(t,e){var n,i;return Z9(t,e)?0:(n=l2(t),i=l2(e),n&&n.k==(aEt(),Cse)||i&&i.k==(aEt(),Cse)?0:qL(jz(wxt(this.a.a,(lKt(),Dde)),304),n?n.k:(aEt(),xse),i?i.k:(aEt(),xse)))},AKt.Pe=function(t,e){var n,i;return Z9(t,e)?1:(n=l2(t),i=l2(e),UL(jz(wxt(this.a.a,(lKt(),Dde)),304),n?n.k:(aEt(),xse),i?i.k:(aEt(),xse)))},mW(I1t,"HorizontalGraphCompactor/1",1522),fBt(1523,1,{},mr),AKt.Ne=function(t,e){return Cx(),0==t.a.i},mW(I1t,"HorizontalGraphCompactor/lambda$0$Type",1523),fBt(1524,1,{},kp),AKt.Ne=function(t,e){return RX(this.a,t,e)},mW(I1t,"HorizontalGraphCompactor/lambda$1$Type",1524),fBt(1664,1,{},T9),mW(I1t,"LGraphToCGraphTransformer",1664),fBt(1672,1,OYt,br),AKt.Mb=function(t){return null!=t},mW(I1t,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1672),fBt(1665,1,{},wr),AKt.Kb=function(t){return Vj(),$ft(wxt(jz(jz(t,57).g,10),(lKt(),fde)))},mW(I1t,"LGraphToCGraphTransformer/lambda$0$Type",1665),fBt(1666,1,{},kr),AKt.Kb=function(t){return Vj(),wht(jz(jz(t,57).g,145))},mW(I1t,"LGraphToCGraphTransformer/lambda$1$Type",1666),fBt(1675,1,OYt,vr),AKt.Mb=function(t){return Vj(),iP(jz(t,57).g,10)},mW(I1t,"LGraphToCGraphTransformer/lambda$10$Type",1675),fBt(1676,1,hYt,yr),AKt.td=function(t){NX(jz(t,57))},mW(I1t,"LGraphToCGraphTransformer/lambda$11$Type",1676),fBt(1677,1,OYt,_r),AKt.Mb=function(t){return Vj(),iP(jz(t,57).g,145)},mW(I1t,"LGraphToCGraphTransformer/lambda$12$Type",1677),fBt(1681,1,hYt,Cr),AKt.td=function(t){bht(jz(t,57))},mW(I1t,"LGraphToCGraphTransformer/lambda$13$Type",1681),fBt(1678,1,hYt,vp),AKt.td=function(t){oB(this.a,jz(t,8))},AKt.a=0,mW(I1t,"LGraphToCGraphTransformer/lambda$14$Type",1678),fBt(1679,1,hYt,yp),AKt.td=function(t){sB(this.a,jz(t,110))},AKt.a=0,mW(I1t,"LGraphToCGraphTransformer/lambda$15$Type",1679),fBt(1680,1,hYt,_p),AKt.td=function(t){aB(this.a,jz(t,8))},AKt.a=0,mW(I1t,"LGraphToCGraphTransformer/lambda$16$Type",1680),fBt(1682,1,{},Ar),AKt.Kb=function(t){return Vj(),new OH(null,new HG(new aU(ZP(hft(jz(t,10)).a.Kc(),new u))))},mW(I1t,"LGraphToCGraphTransformer/lambda$17$Type",1682),fBt(1683,1,OYt,xr),AKt.Mb=function(t){return Vj(),h4(jz(t,17))},mW(I1t,"LGraphToCGraphTransformer/lambda$18$Type",1683),fBt(1684,1,hYt,Cp),AKt.td=function(t){Att(this.a,jz(t,17))},mW(I1t,"LGraphToCGraphTransformer/lambda$19$Type",1684),fBt(1668,1,hYt,Ap),AKt.td=function(t){u0(this.a,jz(t,145))},mW(I1t,"LGraphToCGraphTransformer/lambda$2$Type",1668),fBt(1685,1,{},Er),AKt.Kb=function(t){return Vj(),new OH(null,new d1(jz(t,29).a,16))},mW(I1t,"LGraphToCGraphTransformer/lambda$20$Type",1685),fBt(1686,1,{},Tr),AKt.Kb=function(t){return Vj(),new OH(null,new HG(new aU(ZP(hft(jz(t,10)).a.Kc(),new u))))},mW(I1t,"LGraphToCGraphTransformer/lambda$21$Type",1686),fBt(1687,1,{},Sr),AKt.Kb=function(t){return Vj(),jz(wxt(jz(t,17),(lKt(),Mde)),15)},mW(I1t,"LGraphToCGraphTransformer/lambda$22$Type",1687),fBt(1688,1,OYt,Dr),AKt.Mb=function(t){return JL(jz(t,15))},mW(I1t,"LGraphToCGraphTransformer/lambda$23$Type",1688),fBt(1689,1,hYt,xp),AKt.td=function(t){ESt(this.a,jz(t,15))},mW(I1t,"LGraphToCGraphTransformer/lambda$24$Type",1689),fBt(1667,1,hYt,aT),AKt.td=function(t){$3(this.a,this.b,jz(t,145))},mW(I1t,"LGraphToCGraphTransformer/lambda$3$Type",1667),fBt(1669,1,{},Ir),AKt.Kb=function(t){return Vj(),new OH(null,new d1(jz(t,29).a,16))},mW(I1t,"LGraphToCGraphTransformer/lambda$4$Type",1669),fBt(1670,1,{},Br),AKt.Kb=function(t){return Vj(),new OH(null,new HG(new aU(ZP(hft(jz(t,10)).a.Kc(),new u))))},mW(I1t,"LGraphToCGraphTransformer/lambda$5$Type",1670),fBt(1671,1,{},Mr),AKt.Kb=function(t){return Vj(),jz(wxt(jz(t,17),(lKt(),Mde)),15)},mW(I1t,"LGraphToCGraphTransformer/lambda$6$Type",1671),fBt(1673,1,hYt,Ep),AKt.td=function(t){RDt(this.a,jz(t,15))},mW(I1t,"LGraphToCGraphTransformer/lambda$8$Type",1673),fBt(1674,1,hYt,sT),AKt.td=function(t){PM(this.a,this.b,jz(t,145))},mW(I1t,"LGraphToCGraphTransformer/lambda$9$Type",1674),fBt(1663,1,{},Pr),AKt.Le=function(t){var e,n,i,r,o;for(this.a=t,this.d=new Fw,this.c=P7(zie,zKt,121,this.a.a.a.c.length,0,1),this.b=0,n=new Gf(this.a.a.a);n.a<n.c.c.length;)(e=jz(Q1(n),307)).d=this.b,o=DL(ax(new zw,e),this.d),this.c[this.b]=o,++this.b;for(Zqt(this),IGt(this),QPt(this),WFt(jj(this.d),new Uk),r=new Gf(this.a.a.b);r.a<r.c.c.length;)(i=jz(Q1(r),57)).d.c=this.c[i.a.d].e+i.b.a},AKt.b=0,mW(I1t,"NetworkSimplexCompaction",1663),fBt(145,1,{35:1,145:1},Ezt),AKt.wd=function(t){return Btt(this,jz(t,145))},AKt.Ib=function(){return wht(this)},mW(I1t,"VerticalSegment",145),fBt(827,1,{},qCt),AKt.c=0,AKt.e=0,AKt.i=0,mW(B1t,"BetweenLayerEdgeTwoNodeCrossingsCounter",827),fBt(663,1,{663:1},vot),AKt.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},AKt.b=0,AKt.c=0,AKt.f=0,mW(B1t,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",663),fBt(287,1,{35:1,287:1},VO),AKt.wd=function(t){return rH(this,jz(t,287))},AKt.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},AKt.a=0,AKt.b=0,AKt.c=0,mW(B1t,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",287),fBt(1929,1,{},QEt),AKt.b=0,AKt.e=!1,mW(B1t,"CrossingMatrixFiller",1929);var mle,ble,wle,kle,vle=hH(M1t,"IInitializable");fBt(1804,1,P1t,mT),AKt.Nf=function(t,e,n,i,r,o){},AKt.Pf=function(t,e,n){},AKt.Lf=function(){return this.c!=(sit(),Dke)},AKt.Mf=function(){this.e=P7(SLe,lXt,25,this.d,15,1)},AKt.Of=function(t,e){e[t][0].c.p=t},AKt.Qf=function(t,e,n,i){++this.d},AKt.Rf=function(){return!0},AKt.Sf=function(t,e,n,i){return Xut(this,t,e,n),Z5(this,e)},AKt.Tf=function(t,e){var n;return Xut(this,t,n=c_(e,t.length),e),dct(this,n)},AKt.d=0,mW(B1t,"GreedySwitchHeuristic",1804),fBt(1930,1,{},uq),AKt.b=0,AKt.d=0,mW(B1t,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",1930),fBt(1917,1,{},aRt),AKt.a=!1,mW(B1t,"SwitchDecider",1917),fBt(101,1,{101:1},mTt),AKt.a=null,AKt.c=null,AKt.i=null,mW(L1t,"SelfHyperLoop",101),fBt(1916,1,{},ebt),AKt.c=0,AKt.e=0,mW(L1t,"SelfHyperLoopLabels",1916),fBt(411,22,{3:1,35:1,22:1,411:1},bT);var yle,_le,Cle,Ale,xle,Ele,Tle=$nt(L1t,"SelfHyperLoopLabels/Alignment",411,Ute,n3,qj);fBt(409,1,{409:1},v6),mW(L1t,"SelfLoopEdge",409),fBt(403,1,{403:1},Dmt),AKt.a=!1,mW(L1t,"SelfLoopHolder",403),fBt(1724,1,OYt,Hr),AKt.Mb=function(t){return h4(jz(t,17))},mW(L1t,"SelfLoopHolder/lambda$0$Type",1724),fBt(113,1,{113:1},nbt),AKt.a=!1,AKt.c=!1,mW(L1t,"SelfLoopPort",113),fBt(1792,1,OYt,qr),AKt.Mb=function(t){return h4(jz(t,17))},mW(L1t,"SelfLoopPort/lambda$0$Type",1792),fBt(363,22,{3:1,35:1,22:1,363:1},wT);var Sle,Dle,Ile,Ble,Mle,Ple,Lle,Ole,Nle=$nt(L1t,"SelfLoopType",363,Ute,P4,Yj);fBt(1732,1,{},rh),mW(O1t,"PortRestorer",1732),fBt(361,22,{3:1,35:1,22:1,361:1},kT);var Rle,Fle,jle,$le,zle,Vle,Hle,qle,Ule,Gle=$nt(O1t,"PortRestorer/PortSideArea",361,Ute,x1,Xj);fBt(1733,1,{},Kr),AKt.Kb=function(t){return Fxt(),jz(t,15).Oc()},mW(O1t,"PortRestorer/lambda$0$Type",1733),fBt(1734,1,hYt,Yr),AKt.td=function(t){Fxt(),jz(t,113).c=!1},mW(O1t,"PortRestorer/lambda$1$Type",1734),fBt(1743,1,OYt,Xr),AKt.Mb=function(t){return Fxt(),jz(t,11).j==(vGt(),EDe)},mW(O1t,"PortRestorer/lambda$10$Type",1743),fBt(1744,1,{},Zr),AKt.Kb=function(t){return Fxt(),jz(t,113).d},mW(O1t,"PortRestorer/lambda$11$Type",1744),fBt(1745,1,hYt,Tp),AKt.td=function(t){M_(this.a,jz(t,11))},mW(O1t,"PortRestorer/lambda$12$Type",1745),fBt(1735,1,hYt,Sp),AKt.td=function(t){DO(this.a,jz(t,101))},mW(O1t,"PortRestorer/lambda$2$Type",1735),fBt(1736,1,AZt,Qr),AKt.ue=function(t,e){return snt(jz(t,113),jz(e,113))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(O1t,"PortRestorer/lambda$3$Type",1736),fBt(1737,1,OYt,Jr),AKt.Mb=function(t){return Fxt(),jz(t,113).c},mW(O1t,"PortRestorer/lambda$4$Type",1737),fBt(1738,1,OYt,Or),AKt.Mb=function(t){return Iot(jz(t,11))},mW(O1t,"PortRestorer/lambda$5$Type",1738),fBt(1739,1,OYt,Lr),AKt.Mb=function(t){return Fxt(),jz(t,11).j==(vGt(),sDe)},mW(O1t,"PortRestorer/lambda$6$Type",1739),fBt(1740,1,OYt,Nr),AKt.Mb=function(t){return Fxt(),jz(t,11).j==(vGt(),aDe)},mW(O1t,"PortRestorer/lambda$7$Type",1740),fBt(1741,1,OYt,Rr),AKt.Mb=function(t){return i3(jz(t,11))},mW(O1t,"PortRestorer/lambda$8$Type",1741),fBt(1742,1,OYt,Fr),AKt.Mb=function(t){return Fxt(),jz(t,11).j==(vGt(),ADe)},mW(O1t,"PortRestorer/lambda$9$Type",1742),fBt(270,22,{3:1,35:1,22:1,270:1},GY);var Wle,Kle,Yle,Xle,Zle,Qle,Jle,tue,eue=$nt(O1t,"PortSideAssigner/Target",270,Ute,jet,Uj);fBt(1725,1,{},jr),AKt.Kb=function(t){return DY(new OH(null,new d1(jz(t,101).j,16)),new Wr)},mW(O1t,"PortSideAssigner/lambda$1$Type",1725),fBt(1726,1,{},$r),AKt.Kb=function(t){return jz(t,113).d},mW(O1t,"PortSideAssigner/lambda$2$Type",1726),fBt(1727,1,hYt,zr),AKt.td=function(t){VSt(jz(t,11),(vGt(),sDe))},mW(O1t,"PortSideAssigner/lambda$3$Type",1727),fBt(1728,1,{},Vr),AKt.Kb=function(t){return jz(t,113).d},mW(O1t,"PortSideAssigner/lambda$4$Type",1728),fBt(1729,1,hYt,Dp),AKt.td=function(t){Jb(this.a,jz(t,11))},mW(O1t,"PortSideAssigner/lambda$5$Type",1729),fBt(1730,1,AZt,Ur),AKt.ue=function(t,e){return CK(jz(t,101),jz(e,101))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(O1t,"PortSideAssigner/lambda$6$Type",1730),fBt(1731,1,AZt,Gr),AKt.ue=function(t,e){return aV(jz(t,113),jz(e,113))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(O1t,"PortSideAssigner/lambda$7$Type",1731),fBt(805,1,OYt,Wr),AKt.Mb=function(t){return jz(t,113).c},mW(O1t,"PortSideAssigner/lambda$8$Type",805),fBt(2009,1,{}),mW(N1t,"AbstractSelfLoopRouter",2009),fBt(1750,1,AZt,to),AKt.ue=function(t,e){return TF(jz(t,101),jz(e,101))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(N1t,dQt,1750),fBt(1751,1,AZt,eo),AKt.ue=function(t,e){return EF(jz(t,101),jz(e,101))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(N1t,fQt,1751),fBt(1793,2009,{},no),AKt.Uf=function(t,e,n){return n},mW(N1t,"OrthogonalSelfLoopRouter",1793),fBt(1795,1,hYt,dT),AKt.td=function(t){mmt(this.b,this.a,jz(t,8))},mW(N1t,"OrthogonalSelfLoopRouter/lambda$0$Type",1795),fBt(1794,1793,{},io),AKt.Uf=function(t,e,n){var i,r;return NO(n,0,qR(jM((i=t.c.d).n),i.a)),LV(n,qR(jM((r=t.d.d).n),r.a)),_jt(n)},mW(N1t,"PolylineSelfLoopRouter",1794),fBt(1746,1,{},Qu),AKt.a=null,mW(N1t,"RoutingDirector",1746),fBt(1747,1,AZt,ro),AKt.ue=function(t,e){return dV(jz(t,113),jz(e,113))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(N1t,"RoutingDirector/lambda$0$Type",1747),fBt(1748,1,{},oo),AKt.Kb=function(t){return Ax(),jz(t,101).j},mW(N1t,"RoutingDirector/lambda$1$Type",1748),fBt(1749,1,hYt,ao),AKt.td=function(t){Ax(),jz(t,15).ad(Kle)},mW(N1t,"RoutingDirector/lambda$2$Type",1749),fBt(1752,1,{},so),mW(N1t,"RoutingSlotAssigner",1752),fBt(1753,1,OYt,Ip),AKt.Mb=function(t){return ES(this.a,jz(t,101))},mW(N1t,"RoutingSlotAssigner/lambda$0$Type",1753),fBt(1754,1,AZt,Bp),AKt.ue=function(t,e){return qH(this.a,jz(t,101),jz(e,101))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(N1t,"RoutingSlotAssigner/lambda$1$Type",1754),fBt(1796,1793,{},co),AKt.Uf=function(t,e,n){var i,r,o,a;return i=Vv(CN(pbt(t.b.g.b,(zWt(),vbe)))),JMt(t,e,n,a=new qO(Est(Vy(xxe,1),cYt,8,0,[(o=t.c.d,qR(new dB(o.n),o.a))])),i),LV(a,qR(new dB((r=t.d.d).n),r.a)),jwt(new szt(a))},mW(N1t,"SplineSelfLoopRouter",1796),fBt(578,1,AZt,Hrt,kV),AKt.ue=function(t,e){return uWt(this,jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(R1t,"ModelOrderNodeComparator",578),fBt(1755,1,OYt,lo),AKt.Mb=function(t){return 0!=jz(t,11).e.c.length},mW(R1t,"ModelOrderNodeComparator/lambda$0$Type",1755),fBt(1756,1,{},uo),AKt.Kb=function(t){return jz(PH(jz(t,11).e,0),17).c},mW(R1t,"ModelOrderNodeComparator/lambda$1$Type",1756),fBt(1757,1,OYt,ho),AKt.Mb=function(t){return 0!=jz(t,11).e.c.length},mW(R1t,"ModelOrderNodeComparator/lambda$2$Type",1757),fBt(1758,1,{},fo),AKt.Kb=function(t){return jz(PH(jz(t,11).e,0),17).c},mW(R1t,"ModelOrderNodeComparator/lambda$3$Type",1758),fBt(1759,1,OYt,go),AKt.Mb=function(t){return 0!=jz(t,11).e.c.length},mW(R1t,"ModelOrderNodeComparator/lambda$4$Type",1759),fBt(806,1,AZt,S9,pT),AKt.ue=function(t,e){return MU(this,t,e)},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(R1t,"ModelOrderPortComparator",806),fBt(801,1,{},po),AKt.Vf=function(t,e){var n,r,o,a;for(o=EEt(e),n=new Mb,a=e.f/o,r=1;r<o;++r)Gz(n,ndt(fq(uat(i.Math.round(r*a)))));return n},AKt.Wf=function(){return!1},mW(F1t,"ARDCutIndexHeuristic",801),fBt(1479,1,JJt,mo),AKt.pf=function(t,e){sFt(jz(t,37),e)},mW(F1t,"BreakingPointInserter",1479),fBt(305,1,{305:1},m3),AKt.Ib=function(){var t;return(t=new Ey).a+="BPInfo[",t.a+="\n\tstart=",oI(t,this.i),t.a+="\n\tend=",oI(t,this.a),t.a+="\n\tnodeStartEdge=",oI(t,this.e),t.a+="\n\tstartEndEdge=",oI(t,this.j),t.a+="\n\toriginalEdge=",oI(t,this.f),t.a+="\n\tstartInLayerDummy=",oI(t,this.k),t.a+="\n\tstartInLayerEdge=",oI(t,this.n),t.a+="\n\tendInLayerDummy=",oI(t,this.b),t.a+="\n\tendInLayerEdge=",oI(t,this.c),t.a},mW(F1t,"BreakingPointInserter/BPInfo",305),fBt(652,1,{652:1},$p),AKt.a=!1,AKt.b=0,AKt.c=0,mW(F1t,"BreakingPointInserter/Cut",652),fBt(1480,1,JJt,bo),AKt.pf=function(t,e){wPt(jz(t,37),e)},mW(F1t,"BreakingPointProcessor",1480),fBt(1481,1,OYt,wo),AKt.Mb=function(t){return Xtt(jz(t,10))},mW(F1t,"BreakingPointProcessor/0methodref$isEnd$Type",1481),fBt(1482,1,OYt,ko),AKt.Mb=function(t){return Ztt(jz(t,10))},mW(F1t,"BreakingPointProcessor/1methodref$isStart$Type",1482),fBt(1483,1,JJt,vo),AKt.pf=function(t,e){iLt(this,jz(t,37),e)},mW(F1t,"BreakingPointRemover",1483),fBt(1484,1,hYt,yo),AKt.td=function(t){jz(t,128).k=!0},mW(F1t,"BreakingPointRemover/lambda$0$Type",1484),fBt(797,1,{},ABt),AKt.b=0,AKt.e=0,AKt.f=0,AKt.j=0,mW(F1t,"GraphStats",797),fBt(798,1,{},_o),AKt.Ce=function(t,e){return i.Math.max(Vv(CN(t)),Vv(CN(e)))},mW(F1t,"GraphStats/0methodref$max$Type",798),fBt(799,1,{},Co),AKt.Ce=function(t,e){return i.Math.max(Vv(CN(t)),Vv(CN(e)))},mW(F1t,"GraphStats/2methodref$max$Type",799),fBt(1660,1,{},Ao),AKt.Ce=function(t,e){return mz(CN(t),CN(e))},mW(F1t,"GraphStats/lambda$1$Type",1660),fBt(1661,1,{},Mp),AKt.Kb=function(t){return fbt(this.a,jz(t,29))},mW(F1t,"GraphStats/lambda$2$Type",1661),fBt(1662,1,{},Pp),AKt.Kb=function(t){return KPt(this.a,jz(t,29))},mW(F1t,"GraphStats/lambda$6$Type",1662),fBt(800,1,{},xo),AKt.Vf=function(t,e){return jz(wxt(t,(zWt(),Rbe)),15)||(AX(),AX(),cne)},AKt.Wf=function(){return!1},mW(F1t,"ICutIndexCalculator/ManualCutIndexCalculator",800),fBt(802,1,{},Eo),AKt.Vf=function(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y;for(null==e.n&&Okt(e),y=e.n,null==e.d&&Okt(e),l=e.d,(v=P7(MLe,VXt,25,y.length,15,1))[0]=y[0],w=y[0],u=1;u<y.length;u++)v[u]=v[u-1]+y[u],w+=y[u];for(o=EEt(e)-1,s=jz(wxt(t,(zWt(),Fbe)),19).a,r=RXt,n=new Mb,f=i.Math.max(0,o-s);f<=i.Math.min(e.f-1,o+s);f++){if(m=w/(f+1),b=0,h=1,a=new Mb,k=RXt,d=0,c=0,p=l[0],0==f)k=w,null==e.g&&(e.g=Grt(e,new Co)),c=Vv(e.g);else{for(;h<e.f;)v[h-1]-b>=m&&(Gz(a,ndt(h)),k=i.Math.max(k,v[h-1]-d),c+=p,b+=v[h-1]-b,d=v[h-1],p=l[h]),p=i.Math.max(p,l[h]),++h;c+=p}(g=i.Math.min(1/k,1/e.b/c))>r&&(r=g,n=a)}return n},AKt.Wf=function(){return!1},mW(F1t,"MSDCutIndexHeuristic",802),fBt(1617,1,JJt,To),AKt.pf=function(t,e){dzt(jz(t,37),e)},mW(F1t,"SingleEdgeGraphWrapper",1617),fBt(227,22,{3:1,35:1,22:1,227:1},vT);var nue,iue,rue,oue=$nt(j1t,"CenterEdgeLabelPlacementStrategy",227,Ute,Z7,Gj);fBt(422,22,{3:1,35:1,22:1,422:1},yT);var aue,sue,cue,lue,uue=$nt(j1t,"ConstraintCalculationStrategy",422,Ute,VZ,Wj);fBt(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},_T),AKt.Kf=function(){return cDt(this)},AKt.Xf=function(){return cDt(this)};var hue,due,fue,gue,pue=$nt(j1t,"CrossingMinimizationStrategy",314,Ute,_1,Kj);fBt(337,22,{3:1,35:1,22:1,337:1},CT);var mue,bue,wue,kue,vue,yue,_ue=$nt(j1t,"CuttingStrategy",337,Ute,C1,Zj);fBt(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},AT),AKt.Kf=function(){return NBt(this)},AKt.Xf=function(){return NBt(this)};var Cue,Aue,xue,Eue=$nt(j1t,"CycleBreakingStrategy",335,Ute,B4,Qj);fBt(419,22,{3:1,35:1,22:1,419:1},xT);var Tue,Sue,Due,Iue,Bue=$nt(j1t,"DirectionCongruency",419,Ute,zZ,Jj);fBt(450,22,{3:1,35:1,22:1,450:1},ET);var Mue,Pue,Lue,Oue,Nue,Rue,Fue,jue=$nt(j1t,"EdgeConstraint",450,Ute,A1,t$);fBt(276,22,{3:1,35:1,22:1,276:1},TT);var $ue,zue,Vue,Hue=$nt(j1t,"EdgeLabelSideSelection",276,Ute,e8,e$);fBt(479,22,{3:1,35:1,22:1,479:1},ST);var que,Uue,Gue,Wue,Kue,Yue,Xue,Zue=$nt(j1t,"EdgeStraighteningStrategy",479,Ute,$Z,n$);fBt(274,22,{3:1,35:1,22:1,274:1},DT);var Que,Jue,the,ehe,nhe,ihe,rhe,ohe=$nt(j1t,"FixedAlignment",274,Ute,J7,i$);fBt(275,22,{3:1,35:1,22:1,275:1},IT);var ahe,she,che,lhe,uhe,hhe,dhe,fhe,ghe,phe,mhe,bhe=$nt(j1t,"GraphCompactionStrategy",275,Ute,Q7,r$);fBt(256,22,{3:1,35:1,22:1,256:1},BT);var whe,khe,vhe,yhe,_he=$nt(j1t,"GraphProperties",256,Ute,dot,o$);fBt(292,22,{3:1,35:1,22:1,292:1},MT);var Che,Ahe,xhe,Ehe,The=$nt(j1t,"GreedySwitchType",292,Ute,T1,a$);fBt(303,22,{3:1,35:1,22:1,303:1},PT);var She,Dhe,Ihe,Bhe=$nt(j1t,"InLayerConstraint",303,Ute,E1,s$);fBt(420,22,{3:1,35:1,22:1,420:1},LT);var Mhe,Phe,Lhe,Ohe,Nhe,Rhe,Fhe,jhe,$he,zhe,Vhe,Hhe,qhe,Uhe,Ghe,Whe,Khe,Yhe,Xhe,Zhe,Qhe,Jhe,tde,ede,nde,ide,rde,ode,ade,sde,cde,lde,ude,hde,dde,fde,gde,pde,mde,bde,wde,kde,vde,yde,_de,Cde,Ade,xde,Ede,Tde,Sde,Dde,Ide,Bde,Mde,Pde,Lde,Ode,Nde,Rde,Fde,jde,$de,zde,Vde=$nt(j1t,"InteractiveReferencePoint",420,Ute,HZ,c$);fBt(163,22,{3:1,35:1,22:1,163:1},jT);var Hde,qde,Ude,Gde,Wde,Kde,Yde,Xde,Zde,Qde,Jde,tfe,efe,nfe,ife,rfe,ofe,afe,sfe,cfe,lfe,ufe,hfe,dfe,ffe,gfe,pfe,mfe,bfe,wfe,kfe,vfe,yfe,_fe,Cfe,Afe,xfe,Efe,Tfe,Sfe,Dfe,Ife,Bfe,Mfe,Pfe,Lfe,Ofe,Nfe,Rfe,Ffe,jfe,$fe,zfe,Vfe,Hfe,qfe,Ufe,Gfe,Wfe,Kfe,Yfe,Xfe,Zfe,Qfe,Jfe,tge,ege,nge,ige,rge,oge,age,sge,cge,lge,uge,hge,dge,fge,gge,pge,mge,bge,wge,kge,vge,yge,_ge,Cge,Age,xge,Ege,Tge,Sge,Dge,Ige,Bge,Mge,Pge,Lge,Oge,Nge,Rge,Fge,jge,$ge,zge,Vge,Hge,qge,Uge,Gge,Wge,Kge,Yge,Xge,Zge,Qge,Jge,tpe,epe,npe,ipe,rpe,ope,ape,spe,cpe,lpe,upe,hpe,dpe,fpe,gpe,ppe,mpe,bpe,wpe,kpe,vpe,ype,_pe,Cpe,Ape,xpe,Epe,Tpe,Spe,Dpe,Ipe,Bpe,Mpe,Ppe,Lpe,Ope,Npe,Rpe,Fpe,jpe,$pe,zpe,Vpe,Hpe,qpe,Upe,Gpe,Wpe,Kpe,Ype,Xpe,Zpe,Qpe,Jpe,tme,eme,nme,ime,rme,ome,ame,sme,cme,lme,ume,hme,dme,fme,gme,pme,mme,bme,wme,kme,vme,yme,_me,Cme,Ame,xme,Eme,Tme,Sme,Dme,Ime,Bme,Mme,Pme,Lme,Ome,Nme,Rme,Fme,jme,$me,zme,Vme,Hme,qme,Ume,Gme,Wme,Kme,Yme,Xme,Zme,Qme,Jme,tbe,ebe,nbe,ibe,rbe,obe,abe,sbe,cbe,lbe,ube,hbe,dbe,fbe,gbe,pbe,mbe,bbe,wbe,kbe,vbe,ybe,_be,Cbe,Abe,xbe,Ebe,Tbe,Sbe,Dbe,Ibe,Bbe,Mbe,Pbe,Lbe,Obe,Nbe,Rbe,Fbe,jbe,$be,zbe,Vbe,Hbe,qbe,Ube,Gbe,Wbe,Kbe,Ybe,Xbe,Zbe,Qbe,Jbe,twe,ewe=$nt(j1t,"LayerConstraint",163,Ute,L4,l$);fBt(848,1,YZt,sh),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,U1t),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),xfe),(ETt(),gxe)),Bue),Jdt((ibt(),cxe))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,G1t),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(cL(),!1)),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,W1t),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Kfe),gxe),Vde),Jdt(cxe)))),r2(t,W1t,e0t,Xfe),r2(t,W1t,h0t,Yfe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,K1t),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,Y1t),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(x_(S_(T_(D_(__(y_(E_(C_(A_(new zs,X1t),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),dxe),vee),Jdt(lxe)),Est(Vy(Yee,1),cYt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,Z1t),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Pge),gxe),Hwe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,Q1t),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),ndt(7)),mxe),Iee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,J1t),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,t0t),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,e0t),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Cfe),gxe),Eue),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,n0t),u2t),"Node Layering Strategy"),"Strategy for node layering."),hge),gxe),awe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,i0t),u2t),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),ege),gxe),ewe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,r0t),u2t),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),ndt(-1)),mxe),Iee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,o0t),u2t),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ndt(-1)),mxe),Iee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,a0t),h2t),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),ndt(4)),mxe),Iee),Jdt(cxe)))),r2(t,a0t,n0t,rge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,s0t),h2t),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),ndt(2)),mxe),Iee),Jdt(cxe)))),r2(t,s0t,n0t,age),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,c0t),d2t),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),lge),gxe),Lwe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,l0t),d2t),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),ndt(0)),mxe),Iee),Jdt(cxe)))),r2(t,l0t,c0t,null),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,u0t),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),ndt(OKt)),mxe),Iee),Jdt(cxe)))),r2(t,u0t,n0t,Qfe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,h0t),f2t),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),yfe),gxe),pue),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,d0t),f2t),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,f0t),f2t),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),fxe),Eee),Jdt(cxe)))),r2(t,f0t,g2t,pfe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,g0t),f2t),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),dxe),vee),Jdt(cxe)))),r2(t,g0t,h0t,kfe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,p0t),f2t),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),ndt(-1)),mxe),Iee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,m0t),f2t),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),ndt(-1)),mxe),Iee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,b0t),p2t),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),ndt(40)),mxe),Iee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,w0t),p2t),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),dfe),gxe),The),Jdt(cxe)))),r2(t,w0t,h0t,ffe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,k0t),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),cfe),gxe),The),Jdt(cxe)))),r2(t,k0t,h0t,lfe),r2(t,k0t,g2t,ufe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,v0t),m2t),"Node Placement Strategy"),"Strategy for node placement."),Bge),gxe),Dwe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,y0t),m2t),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),dxe),vee),Jdt(cxe)))),r2(t,y0t,v0t,yge),r2(t,y0t,v0t,_ge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,_0t),b2t),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),pge),gxe),Zue),Jdt(cxe)))),r2(t,_0t,v0t,mge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,C0t),b2t),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),wge),gxe),ohe),Jdt(cxe)))),r2(t,C0t,v0t,kge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,A0t),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),fxe),Eee),Jdt(cxe)))),r2(t,A0t,v0t,Age),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,x0t),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),gxe),kwe),Jdt(sxe)))),r2(t,x0t,v0t,Dge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,E0t),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Tge),gxe),kwe),Jdt(cxe)))),r2(t,E0t,v0t,Sge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,T0t),w2t),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Pfe),gxe),Qwe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,S0t),w2t),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Ofe),gxe),ike),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,D0t),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Rfe),gxe),cke),Jdt(cxe)))),r2(t,D0t,k2t,Ffe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,I0t),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),fxe),Eee),Jdt(cxe)))),r2(t,I0t,k2t,$fe),r2(t,I0t,D0t,zfe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,B0t),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),fxe),Eee),Jdt(cxe)))),r2(t,B0t,k2t,Bfe),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,M0t),v2t),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,P0t),v2t),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,L0t),v2t),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,O0t),v2t),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,N0t),y2t),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),ndt(0)),mxe),Iee),Jdt(oxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,R0t),y2t),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),ndt(0)),mxe),Iee),Jdt(oxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,F0t),y2t),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),ndt(0)),mxe),Iee),Jdt(oxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,j0t),_2t),OQt),"Tries to further compact components (disconnected sub-graphs)."),!1),dxe),vee),Jdt(cxe)))),r2(t,j0t,vJt,!0),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,$0t),C2t),"Post Compaction Strategy"),A2t),Yde),gxe),bhe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,z0t),C2t),"Post Compaction Constraint Calculation"),A2t),Wde),gxe),uue),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,V0t),x2t),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,H0t),x2t),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),ndt(16)),mxe),Iee),Jdt(cxe)))),r2(t,H0t,V0t,!0),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,q0t),x2t),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),ndt(5)),mxe),Iee),Jdt(cxe)))),r2(t,q0t,V0t,!0),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,U0t),E2t),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),hpe),gxe),Ake),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,G0t),E2t),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),fxe),Eee),Jdt(cxe)))),r2(t,G0t,U0t,qge),r2(t,G0t,U0t,Uge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,W0t),E2t),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),fxe),Eee),Jdt(cxe)))),r2(t,W0t,U0t,Wge),r2(t,W0t,U0t,Kge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,K0t),T2t),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),epe),gxe),_ue),Jdt(cxe)))),r2(t,K0t,U0t,npe),r2(t,K0t,U0t,ipe),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,Y0t),T2t),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),bxe),Nte),Jdt(cxe)))),r2(t,Y0t,K0t,Xge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,X0t),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),Qge),mxe),Iee),Jdt(cxe)))),r2(t,X0t,K0t,Jge),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,Z0t),S2t),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),mpe),gxe),fke),Jdt(cxe)))),r2(t,Z0t,U0t,bpe),r2(t,Z0t,U0t,wpe),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,Q0t),S2t),"Valid Indices for Wrapping"),null),bxe),Nte),Jdt(cxe)))),r2(t,Q0t,U0t,fpe),r2(t,Q0t,U0t,gpe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,J0t),D2t),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),dxe),vee),Jdt(cxe)))),r2(t,J0t,U0t,spe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,t2t),D2t),"Distance Penalty When Improving Cuts"),null),2),fxe),Eee),Jdt(cxe)))),r2(t,t2t,U0t,ope),r2(t,t2t,J0t,!0),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,e2t),D2t),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),dxe),vee),Jdt(cxe)))),r2(t,e2t,U0t,lpe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,n2t),I2t),"Edge Label Side Selection"),"Method to decide on edge label sides."),Dfe),gxe),Hue),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,i2t),I2t),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Tfe),gxe),oue),yq(cxe,Est(Vy(vxe,1),BYt,175,0,[axe]))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,r2t),B2t),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),rfe),gxe),Fwe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,o2t),B2t),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,a2t),B2t),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),Zde),gxe),bse),Jdt(cxe)))),r2(t,a2t,vJt,null),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,s2t),B2t),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),efe),gxe),dwe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,c2t),B2t),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),fxe),Eee),Jdt(cxe)))),r2(t,c2t,r2t,null),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,l2t),B2t),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),fxe),Eee),Jdt(cxe)))),r2(t,l2t,r2t,null),bKt((new uh,t))},mW(j1t,"LayeredMetaDataProvider",848),fBt(986,1,YZt,uh),AKt.Qe=function(t){bKt(t)},mW(j1t,"LayeredOptions",986),fBt(987,1,{},Do),AKt.$e=function(){return new qw},AKt._e=function(t){},mW(j1t,"LayeredOptions/LayeredFactory",987),fBt(1372,1,{}),AKt.a=0,mW(k3t,"ElkSpacings/AbstractSpacingsBuilder",1372),fBt(779,1372,{},agt),mW(j1t,"LayeredSpacings/LayeredSpacingsBuilder",779),fBt(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},OT),AKt.Kf=function(){return iPt(this)},AKt.Xf=function(){return iPt(this)};var nwe,iwe,rwe,owe,awe=$nt(j1t,"LayeringStrategy",313,Ute,t8,u$);fBt(378,22,{3:1,35:1,22:1,378:1},NT);var swe,cwe,lwe,uwe,hwe,dwe=$nt(j1t,"LongEdgeOrderingStrategy",378,Ute,y1,h$);fBt(197,22,{3:1,35:1,22:1,197:1},RT);var fwe,gwe,pwe,mwe,bwe,wwe,kwe=$nt(j1t,"NodeFlexibility",197,Ute,k3,d$);fBt(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},FT),AKt.Kf=function(){return OBt(this)},AKt.Xf=function(){return OBt(this)};var vwe,ywe,_we,Cwe,Awe,xwe,Ewe,Twe,Swe,Dwe=$nt(j1t,"NodePlacementStrategy",315,Ute,I4,w$);fBt(260,22,{3:1,35:1,22:1,260:1},$T);var Iwe,Bwe,Mwe,Pwe,Lwe=$nt(j1t,"NodePromotionStrategy",260,Ute,$et,g$);fBt(339,22,{3:1,35:1,22:1,339:1},zT);var Owe,Nwe,Rwe,Fwe=$nt(j1t,"OrderingStrategy",339,Ute,D1,p$);fBt(421,22,{3:1,35:1,22:1,421:1},VT);var jwe,$we,zwe,Vwe,Hwe=$nt(j1t,"PortSortingStrategy",421,Ute,qZ,m$);fBt(452,22,{3:1,35:1,22:1,452:1},HT);var qwe,Uwe,Gwe,Wwe,Kwe=$nt(j1t,"PortType",452,Ute,S1,f$);fBt(375,22,{3:1,35:1,22:1,375:1},qT);var Ywe,Xwe,Zwe,Qwe=$nt(j1t,"SelfLoopDistributionStrategy",375,Ute,I1,b$);fBt(376,22,{3:1,35:1,22:1,376:1},UT);var Jwe,tke,eke,nke,ike=$nt(j1t,"SelfLoopOrderingStrategy",376,Ute,jZ,k$);fBt(304,1,{304:1},cqt),mW(j1t,"Spacings",304),fBt(336,22,{3:1,35:1,22:1,336:1},GT);var rke,oke,ake,ske,cke=$nt(j1t,"SplineRoutingMode",336,Ute,M1,v$);fBt(338,22,{3:1,35:1,22:1,338:1},WT);var lke,uke,hke,dke,fke=$nt(j1t,"ValidifyStrategy",338,Ute,P1,y$);fBt(377,22,{3:1,35:1,22:1,377:1},KT);var gke,pke,mke,bke,wke,kke,vke,yke,_ke,Cke,Ake=$nt(j1t,"WrappingStrategy",377,Ute,B1,_$);fBt(1383,1,_3t,hh),AKt.Yf=function(t){return jz(t,37),pke},AKt.pf=function(t,e){ZVt(this,jz(t,37),e)},mW(C3t,"DepthFirstCycleBreaker",1383),fBt(782,1,_3t,Nq),AKt.Yf=function(t){return jz(t,37),mke},AKt.pf=function(t,e){UWt(this,jz(t,37),e)},AKt.Zf=function(t){return jz(PH(t,mwt(this.d,t.c.length)),10)},mW(C3t,"GreedyCycleBreaker",782),fBt(1386,782,_3t,_D),AKt.Zf=function(t){var e,n,i,r;for(r=null,e=OKt,i=new Gf(t);i.a<i.c.c.length;)BO(n=jz(Q1(i),10),(lKt(),dde))&&jz(wxt(n,dde),19).a<e&&(e=jz(wxt(n,dde),19).a,r=n);return r||jz(PH(t,mwt(this.d,t.c.length)),10)},mW(C3t,"GreedyModelOrderCycleBreaker",1386),fBt(1384,1,_3t,eh),AKt.Yf=function(t){return jz(t,37),bke},AKt.pf=function(t,e){SHt(this,jz(t,37),e)},mW(C3t,"InteractiveCycleBreaker",1384),fBt(1385,1,_3t,nh),AKt.Yf=function(t){return jz(t,37),wke},AKt.pf=function(t,e){MHt(this,jz(t,37),e)},AKt.a=0,AKt.b=0,mW(C3t,"ModelOrderCycleBreaker",1385),fBt(1389,1,_3t,Ix),AKt.Yf=function(t){return jz(t,37),kke},AKt.pf=function(t,e){ZWt(this,jz(t,37),e)},mW(A3t,"CoffmanGrahamLayerer",1389),fBt(1390,1,AZt,Lp),AKt.ue=function(t,e){return $Dt(this.a,jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(A3t,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1390),fBt(1391,1,AZt,Op),AKt.ue=function(t,e){return Hq(this.a,jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(A3t,"CoffmanGrahamLayerer/lambda$1$Type",1391),fBt(1392,1,_3t,Io),AKt.Yf=function(t){return jz(t,37),fH(fH(fH(new j2,(kxt(),Oae),(hKt(),kce)),Nae,Sce),Rae,Tce)},AKt.pf=function(t,e){_Gt(this,jz(t,37),e)},mW(A3t,"InteractiveLayerer",1392),fBt(569,1,{569:1},ek),AKt.a=0,AKt.c=0,mW(A3t,"InteractiveLayerer/LayerSpan",569),fBt(1388,1,_3t,th),AKt.Yf=function(t){return jz(t,37),vke},AKt.pf=function(t,e){VOt(this,jz(t,37),e)},mW(A3t,"LongestPathLayerer",1388),fBt(1395,1,_3t,ah),AKt.Yf=function(t){return jz(t,37),fH(fH(fH(new j2,(kxt(),Oae),(hKt(),ice)),Nae,Sce),Rae,Tce)},AKt.pf=function(t,e){nWt(this,jz(t,37),e)},AKt.a=0,AKt.b=0,AKt.d=0,mW(A3t,"MinWidthLayerer",1395),fBt(1396,1,AZt,Np),AKt.ue=function(t,e){return gat(this,jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(A3t,"MinWidthLayerer/MinOutgoingEdgesComparator",1396),fBt(1387,1,_3t,oh),AKt.Yf=function(t){return jz(t,37),Cke},AKt.pf=function(t,e){wqt(this,jz(t,37),e)},mW(A3t,"NetworkSimplexLayerer",1387),fBt(1393,1,_3t,OR),AKt.Yf=function(t){return jz(t,37),fH(fH(fH(new j2,(kxt(),Oae),(hKt(),ice)),Nae,Sce),Rae,Tce)},AKt.pf=function(t,e){BUt(this,jz(t,37),e)},AKt.d=0,AKt.f=0,AKt.g=0,AKt.i=0,AKt.s=0,AKt.t=0,AKt.u=0,mW(A3t,"StretchWidthLayerer",1393),fBt(1394,1,AZt,Bo),AKt.ue=function(t,e){return O6(jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(A3t,"StretchWidthLayerer/1",1394),fBt(402,1,x3t),AKt.Nf=function(t,e,n,i,r,o){},AKt._f=function(t,e,n){return ijt(this,t,e,n)},AKt.Mf=function(){this.g=P7(PLe,E3t,25,this.d,15,1),this.f=P7(PLe,E3t,25,this.d,15,1)},AKt.Of=function(t,e){this.e[t]=P7(SLe,lXt,25,e[t].length,15,1)},AKt.Pf=function(t,e,n){n[t][e].p=e,this.e[t][e]=e},AKt.Qf=function(t,e,n,i){jz(PH(i[t][e].j,n),11).p=this.d++},AKt.b=0,AKt.c=0,AKt.d=0,mW(T3t,"AbstractBarycenterPortDistributor",402),fBt(1633,1,AZt,Rp),AKt.ue=function(t,e){return Vmt(this.a,jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(T3t,"AbstractBarycenterPortDistributor/lambda$0$Type",1633),fBt(817,1,P1t,V2),AKt.Nf=function(t,e,n,i,r,o){},AKt.Pf=function(t,e,n){},AKt.Qf=function(t,e,n,i){},AKt.Lf=function(){return!1},AKt.Mf=function(){this.c=this.e.a,this.g=this.f.g},AKt.Of=function(t,e){e[t][0].c.p=t},AKt.Rf=function(){return!1},AKt.ag=function(t,e,n,i){n?c_t(this,t):(O_t(this,t,i),Qqt(this,t,e)),t.c.length>1&&(zv(_N(wxt(mK((u1(0,t.c.length),jz(t.c[0],10))),(zWt(),Ppe))))?NMt(t,this.d,jz(this,660)):(AX(),bM(t,this.d)),$at(this.e,t))},AKt.Sf=function(t,e,n,i){var r,o,a,s,c,l,u;for(e!=XH(n,t.length)&&(o=t[e-(n?1:-1)],V6(this.f,o,n?(oit(),zwe):(oit(),$we))),r=t[e][0],u=!i||r.k==(aEt(),Cse),l=o6(t[e]),this.ag(l,u,!1,n),a=0,c=new Gf(l);c.a<c.c.c.length;)s=jz(Q1(c),10),t[e][a++]=s;return!1},AKt.Tf=function(t,e){var n,i,r,o,a;for(o=o6(t[a=XH(e,t.length)]),this.ag(o,!1,!0,e),n=0,r=new Gf(o);r.a<r.c.c.length;)i=jz(Q1(r),10),t[a][n++]=i;return!1},mW(T3t,"BarycenterHeuristic",817),fBt(658,1,{658:1},jp),AKt.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},AKt.b=0,AKt.d=0,AKt.e=!1;var xke=mW(T3t,"BarycenterHeuristic/BarycenterState",658);fBt(1802,1,AZt,Fp),AKt.ue=function(t,e){return ACt(this.a,jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(T3t,"BarycenterHeuristic/lambda$0$Type",1802),fBt(816,1,P1t,UCt),AKt.Mf=function(){},AKt.Nf=function(t,e,n,i,r,o){},AKt.Qf=function(t,e,n,i){},AKt.Of=function(t,e){this.a[t]=P7(xke,{3:1,4:1,5:1,2018:1},658,e[t].length,0,1),this.b[t]=P7(Bke,{3:1,4:1,5:1,2019:1},233,e[t].length,0,1)},AKt.Pf=function(t,e,n){Omt(this,n[t][e],!0)},AKt.c=!1,mW(T3t,"ForsterConstraintResolver",816),fBt(233,1,{233:1},LZ,aqt),AKt.Ib=function(){var t,e;for((e=new Ey).a+="[",t=0;t<this.d.length;t++)aI(e,Bbt(this.d[t])),null!=uP(this.g,this.d[0]).a&&aI(aI((e.a+="<",e),ZD(uP(this.g,this.d[0]).a)),">"),t<this.d.length-1&&(e.a+=jKt);return(e.a+="]",e).a},AKt.a=0,AKt.c=0,AKt.f=0;var Eke,Tke,Ske,Dke,Ike,Bke=mW(T3t,"ForsterConstraintResolver/ConstraintGroup",233);fBt(1797,1,hYt,zp),AKt.td=function(t){Omt(this.a,jz(t,10),!1)},mW(T3t,"ForsterConstraintResolver/lambda$0$Type",1797),fBt(214,1,{214:1,225:1},Tqt),AKt.Nf=function(t,e,n,i,r,o){},AKt.Of=function(t,e){},AKt.Mf=function(){this.r=P7(SLe,lXt,25,this.n,15,1)},AKt.Pf=function(t,e,n){var i;(i=n[t][e].e)&&Gz(this.b,i)},AKt.Qf=function(t,e,n,i){++this.n},AKt.Ib=function(){return nUt(this.e,new Ow)},AKt.g=!1,AKt.i=!1,AKt.n=0,AKt.s=!1,mW(T3t,"GraphInfoHolder",214),fBt(1832,1,P1t,So),AKt.Nf=function(t,e,n,i,r,o){},AKt.Of=function(t,e){},AKt.Qf=function(t,e,n,i){},AKt._f=function(t,e,n){return n&&e>0?oJ(this.a,t[e-1],t[e]):!n&&e<t.length-1?oJ(this.a,t[e],t[e+1]):krt(this.a,t[e],n?(vGt(),EDe):(vGt(),aDe)),dPt(this,t,e,n)},AKt.Mf=function(){this.d=P7(SLe,lXt,25,this.c,15,1),this.a=new KF(this.d)},AKt.Pf=function(t,e,n){var i;i=n[t][e],this.c+=i.j.c.length},AKt.c=0,mW(T3t,"GreedyPortDistributor",1832),fBt(1401,1,_3t,dh),AKt.Yf=function(t){return Gut(jz(t,37))},AKt.pf=function(t,e){Gqt(jz(t,37),e)},mW(T3t,"InteractiveCrossingMinimizer",1401),fBt(1402,1,AZt,Vp),AKt.ue=function(t,e){return z_t(this,jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(T3t,"InteractiveCrossingMinimizer/1",1402),fBt(507,1,{507:1,123:1,51:1},Mv),AKt.Yf=function(t){var e;return jz(t,37),fH(e=kB(Tke),(kxt(),Rae),(hKt(),jce)),e},AKt.pf=function(t,e){Ejt(this,jz(t,37),e)},AKt.e=0,mW(T3t,"LayerSweepCrossingMinimizer",507),fBt(1398,1,hYt,Hp),AKt.td=function(t){fzt(this.a,jz(t,214))},mW(T3t,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1398),fBt(1399,1,hYt,qp),AKt.td=function(t){Dut(this.a,jz(t,214))},mW(T3t,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1399),fBt(1400,1,hYt,Up),AKt.td=function(t){m$t(this.a,jz(t,214))},mW(T3t,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1400),fBt(454,22,{3:1,35:1,22:1,454:1},YT);var Mke,Pke=$nt(T3t,"LayerSweepCrossingMinimizer/CrossMinType",454,Ute,L1,C$);fBt(1397,1,OYt,Mo),AKt.Mb=function(t){return Fot(),0==jz(t,29).a.c.length},mW(T3t,"LayerSweepCrossingMinimizer/lambda$0$Type",1397),fBt(1799,1,P1t,rJ),AKt.Mf=function(){},AKt.Nf=function(t,e,n,i,r,o){},AKt.Qf=function(t,e,n,i){},AKt.Of=function(t,e){e[t][0].c.p=t,this.b[t]=P7(Rke,{3:1,4:1,5:1,1944:1},659,e[t].length,0,1)},AKt.Pf=function(t,e,n){n[t][e].p=e,IW(this.b[t],e,new Po)},mW(T3t,"LayerSweepTypeDecider",1799),fBt(659,1,{659:1},Po),AKt.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},AKt.a=0,AKt.b=0,AKt.c=0;var Lke,Oke,Nke,Rke=mW(T3t,"LayerSweepTypeDecider/NodeInfo",659);fBt(1800,1,VZt,Lo),AKt.Lb=function(t){return HL(new b6(jz(t,11).b))},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return HL(new b6(jz(t,11).b))},mW(T3t,"LayerSweepTypeDecider/lambda$0$Type",1800),fBt(1801,1,VZt,Oo),AKt.Lb=function(t){return HL(new b6(jz(t,11).b))},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return HL(new b6(jz(t,11).b))},mW(T3t,"LayerSweepTypeDecider/lambda$1$Type",1801),fBt(1833,402,x3t,L_),AKt.$f=function(t,e,n){var i,r,o,a,s,c,l,u,h;switch(l=this.g,n.g){case 1:for(i=0,r=0,c=new Gf(t.j);c.a<c.c.c.length;)0!=(a=jz(Q1(c),11)).e.c.length&&(++i,a.j==(vGt(),sDe)&&++r);for(o=e+r,h=e+i,s=Lgt(t,(oit(),$we)).Kc();s.Ob();)(a=jz(s.Pb(),11)).j==(vGt(),sDe)?(l[a.p]=o,--o):(l[a.p]=h,--h);return i;case 2:for(u=0,s=Lgt(t,(oit(),zwe)).Kc();s.Ob();)++u,l[(a=jz(s.Pb(),11)).p]=e+u;return u;default:throw $b(new dw)}},mW(T3t,"LayerTotalPortDistributor",1833),fBt(660,817,{660:1,225:1},mrt),AKt.ag=function(t,e,n,i){n?c_t(this,t):(O_t(this,t,i),Qqt(this,t,e)),t.c.length>1&&(zv(_N(wxt(mK((u1(0,t.c.length),jz(t.c[0],10))),(zWt(),Ppe))))?NMt(t,this.d,this):(AX(),bM(t,this.d)),zv(_N(wxt(mK((u1(0,t.c.length),jz(t.c[0],10))),Ppe)))||$at(this.e,t))},mW(T3t,"ModelOrderBarycenterHeuristic",660),fBt(1803,1,AZt,Gp),AKt.ue=function(t,e){return REt(this.a,jz(t,10),jz(e,10))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(T3t,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),fBt(1403,1,_3t,kh),AKt.Yf=function(t){var e;return jz(t,37),fH(e=kB(Lke),(kxt(),Rae),(hKt(),jce)),e},AKt.pf=function(t,e){bZ((jz(t,37),e))},mW(T3t,"NoCrossingMinimizer",1403),fBt(796,402,x3t,O_),AKt.$f=function(t,e,n){var i,r,o,a,s,c,l,u,h,d,f;switch(h=this.g,n.g){case 1:for(r=0,o=0,u=new Gf(t.j);u.a<u.c.c.length;)0!=(c=jz(Q1(u),11)).e.c.length&&(++r,c.j==(vGt(),sDe)&&++o);for(a=e+o*(i=1/(r+1)),f=e+1-i,l=Lgt(t,(oit(),$we)).Kc();l.Ob();)(c=jz(l.Pb(),11)).j==(vGt(),sDe)?(h[c.p]=a,a-=i):(h[c.p]=f,f-=i);break;case 2:for(s=0,u=new Gf(t.j);u.a<u.c.c.length;)0==(c=jz(Q1(u),11)).g.c.length||++s;for(d=e+(i=1/(s+1)),l=Lgt(t,(oit(),zwe)).Kc();l.Ob();)h[(c=jz(l.Pb(),11)).p]=d,d+=i;break;default:throw $b(new Rv("Port type is undefined"))}return 1},mW(T3t,"NodeRelativePortDistributor",796),fBt(807,1,{},WU,zxt),mW(T3t,"SweepCopy",807),fBt(1798,1,P1t,fpt),AKt.Of=function(t,e){},AKt.Mf=function(){var t;t=P7(SLe,lXt,25,this.f,15,1),this.d=new tm(t),this.a=new KF(t)},AKt.Nf=function(t,e,n,i,r,o){var a;a=jz(PH(o[t][e].j,n),11),r.c==a&&r.c.i.c==r.d.i.c&&++this.e[t]},AKt.Pf=function(t,e,n){var i;i=n[t][e],this.c[t]=this.c[t]|i.k==(aEt(),Tse)},AKt.Qf=function(t,e,n,i){var r;(r=jz(PH(i[t][e].j,n),11)).p=this.f++,r.g.c.length+r.e.c.length>1&&(r.j==(vGt(),aDe)?this.b[t]=!0:r.j==EDe&&t>0&&(this.b[t-1]=!0))},AKt.f=0,mW(M1t,"AllCrossingsCounter",1798),fBt(587,1,{},wrt),AKt.b=0,AKt.d=0,mW(M1t,"BinaryIndexedTree",587),fBt(524,1,{},KF),mW(M1t,"CrossingsCounter",524),fBt(1906,1,AZt,Wp),AKt.ue=function(t,e){return UH(this.a,jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(M1t,"CrossingsCounter/lambda$0$Type",1906),fBt(1907,1,AZt,Kp),AKt.ue=function(t,e){return GH(this.a,jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(M1t,"CrossingsCounter/lambda$1$Type",1907),fBt(1908,1,AZt,Yp),AKt.ue=function(t,e){return WH(this.a,jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(M1t,"CrossingsCounter/lambda$2$Type",1908),fBt(1909,1,AZt,Xp),AKt.ue=function(t,e){return KH(this.a,jz(t,11),jz(e,11))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(M1t,"CrossingsCounter/lambda$3$Type",1909),fBt(1910,1,hYt,Zp),AKt.td=function(t){p9(this.a,jz(t,11))},mW(M1t,"CrossingsCounter/lambda$4$Type",1910),fBt(1911,1,OYt,Qp),AKt.Mb=function(t){return wD(this.a,jz(t,11))},mW(M1t,"CrossingsCounter/lambda$5$Type",1911),fBt(1912,1,hYt,Jp),AKt.td=function(t){bD(this,t)},mW(M1t,"CrossingsCounter/lambda$6$Type",1912),fBt(1913,1,hYt,ZT),AKt.td=function(t){var e;cV(),f3(this.b,(e=this.a,jz(t,11),e))},mW(M1t,"CrossingsCounter/lambda$7$Type",1913),fBt(826,1,VZt,No),AKt.Lb=function(t){return cV(),BO(jz(t,11),(lKt(),yde))},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return cV(),BO(jz(t,11),(lKt(),yde))},mW(M1t,"CrossingsCounter/lambda$8$Type",826),fBt(1905,1,{},tm),mW(M1t,"HyperedgeCrossingsCounter",1905),fBt(467,1,{35:1,467:1},LR),AKt.wd=function(t){return bmt(this,jz(t,467))},AKt.b=0,AKt.c=0,AKt.e=0,AKt.f=0;var Fke=mW(M1t,"HyperedgeCrossingsCounter/Hyperedge",467);fBt(362,1,{35:1,362:1},zY),AKt.wd=function(t){return hMt(this,jz(t,362))},AKt.b=0,AKt.c=0;var jke,$ke,zke=mW(M1t,"HyperedgeCrossingsCounter/HyperedgeCorner",362);fBt(523,22,{3:1,35:1,22:1,523:1},XT);var Vke,Hke,qke,Uke,Gke,Wke=$nt(M1t,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,Ute,UZ,A$);fBt(1405,1,_3t,lh),AKt.Yf=function(t){return jz(wxt(jz(t,37),(lKt(),Zhe)),21).Hc((dNt(),uhe))?Hke:null},AKt.pf=function(t,e){h_t(this,jz(t,37),e)},mW(S3t,"InteractiveNodePlacer",1405),fBt(1406,1,_3t,ch),AKt.Yf=function(t){return jz(wxt(jz(t,37),(lKt(),Zhe)),21).Hc((dNt(),uhe))?qke:null},AKt.pf=function(t,e){ykt(this,jz(t,37),e)},mW(S3t,"LinearSegmentsNodePlacer",1406),fBt(257,1,{35:1,257:1},nk),AKt.wd=function(t){return o_(this,jz(t,257))},AKt.Fb=function(t){var e;return!!iP(t,257)&&(e=jz(t,257),this.b==e.b)},AKt.Hb=function(){return this.b},AKt.Ib=function(){return"ls"+Mxt(this.e)},AKt.a=0,AKt.b=0,AKt.c=-1,AKt.d=-1,AKt.g=0;var Kke,Yke=mW(S3t,"LinearSegmentsNodePlacer/LinearSegment",257);fBt(1408,1,_3t,Rq),AKt.Yf=function(t){return jz(wxt(jz(t,37),(lKt(),Zhe)),21).Hc((dNt(),uhe))?Kke:null},AKt.pf=function(t,e){xWt(this,jz(t,37),e)},AKt.b=0,AKt.g=0,mW(S3t,"NetworkSimplexPlacer",1408),fBt(1427,1,AZt,Ro),AKt.ue=function(t,e){return yM(jz(t,19).a,jz(e,19).a)},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(S3t,"NetworkSimplexPlacer/0methodref$compare$Type",1427),fBt(1429,1,AZt,Fo),AKt.ue=function(t,e){return yM(jz(t,19).a,jz(e,19).a)},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(S3t,"NetworkSimplexPlacer/1methodref$compare$Type",1429),fBt(649,1,{649:1},QT);var Xke=mW(S3t,"NetworkSimplexPlacer/EdgeRep",649);fBt(401,1,{401:1},VY),AKt.b=!1;var Zke,Qke,Jke,tve=mW(S3t,"NetworkSimplexPlacer/NodeRep",401);fBt(508,12,{3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1,508:1},ok),mW(S3t,"NetworkSimplexPlacer/Path",508),fBt(1409,1,{},jo),AKt.Kb=function(t){return jz(t,17).d.i.k},mW(S3t,"NetworkSimplexPlacer/Path/lambda$0$Type",1409),fBt(1410,1,OYt,$o),AKt.Mb=function(t){return jz(t,267)==(aEt(),xse)},mW(S3t,"NetworkSimplexPlacer/Path/lambda$1$Type",1410),fBt(1411,1,{},zo),AKt.Kb=function(t){return jz(t,17).d.i},mW(S3t,"NetworkSimplexPlacer/Path/lambda$2$Type",1411),fBt(1412,1,OYt,em),AKt.Mb=function(t){return $N(tpt(jz(t,10)))},mW(S3t,"NetworkSimplexPlacer/Path/lambda$3$Type",1412),fBt(1413,1,OYt,Vo),AKt.Mb=function(t){return cH(jz(t,11))},mW(S3t,"NetworkSimplexPlacer/lambda$0$Type",1413),fBt(1414,1,hYt,JT),AKt.td=function(t){LM(this.a,this.b,jz(t,11))},mW(S3t,"NetworkSimplexPlacer/lambda$1$Type",1414),fBt(1423,1,hYt,nm),AKt.td=function(t){WSt(this.a,jz(t,17))},mW(S3t,"NetworkSimplexPlacer/lambda$10$Type",1423),fBt(1424,1,{},Ho),AKt.Kb=function(t){return jJ(),new OH(null,new d1(jz(t,29).a,16))},mW(S3t,"NetworkSimplexPlacer/lambda$11$Type",1424),fBt(1425,1,hYt,im),AKt.td=function(t){$Nt(this.a,jz(t,10))},mW(S3t,"NetworkSimplexPlacer/lambda$12$Type",1425),fBt(1426,1,{},qo),AKt.Kb=function(t){return jJ(),ndt(jz(t,121).e)},mW(S3t,"NetworkSimplexPlacer/lambda$13$Type",1426),fBt(1428,1,{},Uo),AKt.Kb=function(t){return jJ(),ndt(jz(t,121).e)},mW(S3t,"NetworkSimplexPlacer/lambda$15$Type",1428),fBt(1430,1,OYt,Go),AKt.Mb=function(t){return jJ(),jz(t,401).c.k==(aEt(),Ese)},mW(S3t,"NetworkSimplexPlacer/lambda$17$Type",1430),fBt(1431,1,OYt,Wo),AKt.Mb=function(t){return jJ(),jz(t,401).c.j.c.length>1},mW(S3t,"NetworkSimplexPlacer/lambda$18$Type",1431),fBt(1432,1,hYt,HY),AKt.td=function(t){rgt(this.c,this.b,this.d,this.a,jz(t,401))},AKt.c=0,AKt.d=0,mW(S3t,"NetworkSimplexPlacer/lambda$19$Type",1432),fBt(1415,1,{},Ko),AKt.Kb=function(t){return jJ(),new OH(null,new d1(jz(t,29).a,16))},mW(S3t,"NetworkSimplexPlacer/lambda$2$Type",1415),fBt(1433,1,hYt,rm),AKt.td=function(t){MM(this.a,jz(t,11))},AKt.a=0,mW(S3t,"NetworkSimplexPlacer/lambda$20$Type",1433),fBt(1434,1,{},Yo),AKt.Kb=function(t){return jJ(),new OH(null,new d1(jz(t,29).a,16))},mW(S3t,"NetworkSimplexPlacer/lambda$21$Type",1434),fBt(1435,1,hYt,om),AKt.td=function(t){fP(this.a,jz(t,10))},mW(S3t,"NetworkSimplexPlacer/lambda$22$Type",1435),fBt(1436,1,OYt,Xo),AKt.Mb=function(t){return $N(t)},mW(S3t,"NetworkSimplexPlacer/lambda$23$Type",1436),fBt(1437,1,{},Zo),AKt.Kb=function(t){return jJ(),new OH(null,new d1(jz(t,29).a,16))},mW(S3t,"NetworkSimplexPlacer/lambda$24$Type",1437),fBt(1438,1,OYt,am),AKt.Mb=function(t){return yI(this.a,jz(t,10))},mW(S3t,"NetworkSimplexPlacer/lambda$25$Type",1438),fBt(1439,1,hYt,tS),AKt.td=function(t){ATt(this.a,this.b,jz(t,10))},mW(S3t,"NetworkSimplexPlacer/lambda$26$Type",1439),fBt(1440,1,OYt,Qo),AKt.Mb=function(t){return jJ(),!h4(jz(t,17))},mW(S3t,"NetworkSimplexPlacer/lambda$27$Type",1440),fBt(1441,1,OYt,Jo),AKt.Mb=function(t){return jJ(),!h4(jz(t,17))},mW(S3t,"NetworkSimplexPlacer/lambda$28$Type",1441),fBt(1442,1,{},sm),AKt.Ce=function(t,e){return sP(this.a,jz(t,29),jz(e,29))},mW(S3t,"NetworkSimplexPlacer/lambda$29$Type",1442),fBt(1416,1,{},ta),AKt.Kb=function(t){return jJ(),new OH(null,new HG(new aU(ZP(hft(jz(t,10)).a.Kc(),new u))))},mW(S3t,"NetworkSimplexPlacer/lambda$3$Type",1416),fBt(1417,1,OYt,ea),AKt.Mb=function(t){return jJ(),J0(jz(t,17))},mW(S3t,"NetworkSimplexPlacer/lambda$4$Type",1417),fBt(1418,1,hYt,cm),AKt.td=function(t){nzt(this.a,jz(t,17))},mW(S3t,"NetworkSimplexPlacer/lambda$5$Type",1418),fBt(1419,1,{},na),AKt.Kb=function(t){return jJ(),new OH(null,new d1(jz(t,29).a,16))},mW(S3t,"NetworkSimplexPlacer/lambda$6$Type",1419),fBt(1420,1,OYt,ia),AKt.Mb=function(t){return jJ(),jz(t,10).k==(aEt(),Ese)},mW(S3t,"NetworkSimplexPlacer/lambda$7$Type",1420),fBt(1421,1,{},ra),AKt.Kb=function(t){return jJ(),new OH(null,new HG(new aU(ZP(lft(jz(t,10)).a.Kc(),new u))))},mW(S3t,"NetworkSimplexPlacer/lambda$8$Type",1421),fBt(1422,1,OYt,oa),AKt.Mb=function(t){return jJ(),qV(jz(t,17))},mW(S3t,"NetworkSimplexPlacer/lambda$9$Type",1422),fBt(1404,1,_3t,xh),AKt.Yf=function(t){return jz(wxt(jz(t,37),(lKt(),Zhe)),21).Hc((dNt(),uhe))?Zke:null},AKt.pf=function(t,e){vVt(jz(t,37),e)},mW(S3t,"SimpleNodePlacer",1404),fBt(180,1,{180:1},VFt),AKt.Ib=function(){var t;return t="",this.c==(gQ(),Jke)?t+=oQt:this.c==Qke&&(t+=rQt),this.o==(aJ(),nve)?t+=mQt:this.o==ive?t+="UP":t+="BALANCED",t},mW(B3t,"BKAlignedLayout",180),fBt(516,22,{3:1,35:1,22:1,516:1},iS);var eve,nve,ive,rve=$nt(B3t,"BKAlignedLayout/HDirection",516,Ute,WZ,x$);fBt(515,22,{3:1,35:1,22:1,515:1},nS);var ove,ave,sve,cve,lve,uve,hve,dve,fve,gve,pve,mve,bve,wve,kve,vve,yve,_ve,Cve,Ave=$nt(B3t,"BKAlignedLayout/VDirection",515,Ute,KZ,E$);fBt(1634,1,{},eS),mW(B3t,"BKAligner",1634),fBt(1637,1,{},Zvt),mW(B3t,"BKCompactor",1637),fBt(654,1,{654:1},aa),AKt.a=0,mW(B3t,"BKCompactor/ClassEdge",654),fBt(458,1,{458:1},ik),AKt.a=null,AKt.b=0,mW(B3t,"BKCompactor/ClassNode",458),fBt(1407,1,_3t,vD),AKt.Yf=function(t){return jz(wxt(jz(t,37),(lKt(),Zhe)),21).Hc((dNt(),uhe))?ave:null},AKt.pf=function(t,e){iKt(this,jz(t,37),e)},AKt.d=!1,mW(B3t,"BKNodePlacer",1407),fBt(1635,1,{},sa),AKt.d=0,mW(B3t,"NeighborhoodInformation",1635),fBt(1636,1,AZt,lm),AKt.ue=function(t,e){return Aet(this,jz(t,46),jz(e,46))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(B3t,"NeighborhoodInformation/NeighborComparator",1636),fBt(808,1,{}),mW(B3t,"ThresholdStrategy",808),fBt(1763,808,{},fk),AKt.bg=function(t,e,n){return this.a.o==(aJ(),ive)?NXt:RXt},AKt.cg=function(){},mW(B3t,"ThresholdStrategy/NullThresholdStrategy",1763),fBt(579,1,{579:1},rS),AKt.c=!1,AKt.d=!1,mW(B3t,"ThresholdStrategy/Postprocessable",579),fBt(1764,808,{},gk),AKt.bg=function(t,e,n){var i,r,o;return r=e==n,i=this.a.a[n.p]==e,r||i?(o=t,this.a.c,gQ(),r&&(o=CVt(this,e,!0)),!isNaN(o)&&!isFinite(o)&&i&&(o=CVt(this,n,!1)),o):t},AKt.cg=function(){for(var t,e,n;0!=this.d.b;)(e=r$t(this,n=jz(xQ(this.d),579))).a&&(t=e.a,(zv(this.a.f[this.a.g[n.b.p].p])||h4(t)||t.c.i.c!=t.d.i.c)&&(dMt(this,n)||nB(this.e,n)));for(;0!=this.e.a.c.length;)dMt(this,jz(tut(this.e),579))},mW(B3t,"ThresholdStrategy/SimpleThresholdStrategy",1764),fBt(635,1,{635:1,246:1,234:1},ca),AKt.Kf=function(){return Cat(this)},AKt.Xf=function(){return Cat(this)},mW(M3t,"EdgeRouterFactory",635),fBt(1458,1,_3t,Eh),AKt.Yf=function(t){return UOt(jz(t,37))},AKt.pf=function(t,e){OVt(jz(t,37),e)},mW(M3t,"OrthogonalEdgeRouter",1458),fBt(1451,1,_3t,yD),AKt.Yf=function(t){return __t(jz(t,37))},AKt.pf=function(t,e){DGt(this,jz(t,37),e)},mW(M3t,"PolylineEdgeRouter",1451),fBt(1452,1,VZt,la),AKt.Lb=function(t){return Yat(jz(t,10))},AKt.Fb=function(t){return this===t},AKt.Mb=function(t){return Yat(jz(t,10))},mW(M3t,"PolylineEdgeRouter/1",1452),fBt(1809,1,OYt,ua),AKt.Mb=function(t){return jz(t,129).c==(S6(),_ve)},mW(P3t,"HyperEdgeCycleDetector/lambda$0$Type",1809),fBt(1810,1,{},ha),AKt.Ge=function(t){return jz(t,129).d},mW(P3t,"HyperEdgeCycleDetector/lambda$1$Type",1810),fBt(1811,1,OYt,da),AKt.Mb=function(t){return jz(t,129).c==(S6(),_ve)},mW(P3t,"HyperEdgeCycleDetector/lambda$2$Type",1811),fBt(1812,1,{},fa),AKt.Ge=function(t){return jz(t,129).d},mW(P3t,"HyperEdgeCycleDetector/lambda$3$Type",1812),fBt(1813,1,{},ga),AKt.Ge=function(t){return jz(t,129).d},mW(P3t,"HyperEdgeCycleDetector/lambda$4$Type",1813),fBt(1814,1,{},pa),AKt.Ge=function(t){return jz(t,129).d},mW(P3t,"HyperEdgeCycleDetector/lambda$5$Type",1814),fBt(112,1,{35:1,112:1},jat),AKt.wd=function(t){return a_(this,jz(t,112))},AKt.Fb=function(t){var e;return!!iP(t,112)&&(e=jz(t,112),this.g==e.g)},AKt.Hb=function(){return this.g},AKt.Ib=function(){var t,e,n,i;for(t=new uL("{"),i=new Gf(this.n);i.a<i.c.c.length;)null==(e=pvt((n=jz(Q1(i),11)).i))&&(e="n"+DF(n.i)),t.a+=""+e,i.a<i.c.c.length&&(t.a+=",");return t.a+="}",t.a},AKt.a=0,AKt.b=0,AKt.c=NaN,AKt.d=0,AKt.g=0,AKt.i=0,AKt.o=0,AKt.s=NaN,mW(P3t,"HyperEdgeSegment",112),fBt(129,1,{129:1},HJ),AKt.Ib=function(){return this.a+"->"+this.b+" ("+dO(this.c)+")"},AKt.d=0,mW(P3t,"HyperEdgeSegmentDependency",129),fBt(520,22,{3:1,35:1,22:1,520:1},oS);var xve,Eve,Tve,Sve,Dve,Ive,Bve,Mve,Pve=$nt(P3t,"HyperEdgeSegmentDependency/DependencyType",520,Ute,GZ,T$);fBt(1815,1,{},um),mW(P3t,"HyperEdgeSegmentSplitter",1815),fBt(1816,1,{},H_),AKt.a=0,AKt.b=0,mW(P3t,"HyperEdgeSegmentSplitter/AreaRating",1816),fBt(329,1,{329:1},kz),AKt.a=0,AKt.b=0,AKt.c=0,mW(P3t,"HyperEdgeSegmentSplitter/FreeArea",329),fBt(1817,1,AZt,Ca),AKt.ue=function(t,e){return SF(jz(t,112),jz(e,112))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(P3t,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),fBt(1818,1,hYt,UY),AKt.td=function(t){Q3(this.a,this.d,this.c,this.b,jz(t,112))},AKt.b=0,mW(P3t,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),fBt(1819,1,{},Aa),AKt.Kb=function(t){return new OH(null,new d1(jz(t,112).e,16))},mW(P3t,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),fBt(1820,1,{},xa),AKt.Kb=function(t){return new OH(null,new d1(jz(t,112).j,16))},mW(P3t,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),fBt(1821,1,{},Ea),AKt.Fe=function(t){return Vv(CN(t))},mW(P3t,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),fBt(655,1,{},lW),AKt.a=0,AKt.b=0,AKt.c=0,mW(P3t,"OrthogonalRoutingGenerator",655),fBt(1638,1,{},Ta),AKt.Kb=function(t){return new OH(null,new d1(jz(t,112).e,16))},mW(P3t,"OrthogonalRoutingGenerator/lambda$0$Type",1638),fBt(1639,1,{},Sa),AKt.Kb=function(t){return new OH(null,new d1(jz(t,112).j,16))},mW(P3t,"OrthogonalRoutingGenerator/lambda$1$Type",1639),fBt(661,1,{}),mW(L3t,"BaseRoutingDirectionStrategy",661),fBt(1807,661,{},pk),AKt.dg=function(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m;if(!t.r||t.q)for(h=e+t.o*n,u=new Gf(t.n);u.a<u.c.c.length;)for(l=jz(Q1(u),11),d=Ict(Est(Vy(xxe,1),cYt,8,0,[l.i.n,l.n,l.a])).a,c=new Gf(l.g);c.a<c.c.c.length;)h4(s=jz(Q1(c),17))||(p=s.d,m=Ict(Est(Vy(xxe,1),cYt,8,0,[p.i.n,p.n,p.a])).a,i.Math.abs(d-m)>hJt&&(o=t,r=new PS(d,a=h),LV(s.a,r),jjt(this,s,o,r,!1),(f=t.r)&&(r=new PS(g=Vv(CN(Obt(f.e,0))),a),LV(s.a,r),jjt(this,s,o,r,!1),o=f,r=new PS(g,a=e+f.o*n),LV(s.a,r),jjt(this,s,o,r,!1)),r=new PS(m,a),LV(s.a,r),jjt(this,s,o,r,!1)))},AKt.eg=function(t){return t.i.n.a+t.n.a+t.a.a},AKt.fg=function(){return vGt(),ADe},AKt.gg=function(){return vGt(),sDe},mW(L3t,"NorthToSouthRoutingStrategy",1807),fBt(1808,661,{},mk),AKt.dg=function(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m;if(!t.r||t.q)for(h=e-t.o*n,u=new Gf(t.n);u.a<u.c.c.length;)for(l=jz(Q1(u),11),d=Ict(Est(Vy(xxe,1),cYt,8,0,[l.i.n,l.n,l.a])).a,c=new Gf(l.g);c.a<c.c.c.length;)h4(s=jz(Q1(c),17))||(p=s.d,m=Ict(Est(Vy(xxe,1),cYt,8,0,[p.i.n,p.n,p.a])).a,i.Math.abs(d-m)>hJt&&(o=t,r=new PS(d,a=h),LV(s.a,r),jjt(this,s,o,r,!1),(f=t.r)&&(r=new PS(g=Vv(CN(Obt(f.e,0))),a),LV(s.a,r),jjt(this,s,o,r,!1),o=f,r=new PS(g,a=e-f.o*n),LV(s.a,r),jjt(this,s,o,r,!1)),r=new PS(m,a),LV(s.a,r),jjt(this,s,o,r,!1)))},AKt.eg=function(t){return t.i.n.a+t.n.a+t.a.a},AKt.fg=function(){return vGt(),sDe},AKt.gg=function(){return vGt(),ADe},mW(L3t,"SouthToNorthRoutingStrategy",1808),fBt(1806,661,{},bk),AKt.dg=function(t,e,n){var r,o,a,s,c,l,u,h,d,f,g,p,m;if(!t.r||t.q)for(h=e+t.o*n,u=new Gf(t.n);u.a<u.c.c.length;)for(l=jz(Q1(u),11),d=Ict(Est(Vy(xxe,1),cYt,8,0,[l.i.n,l.n,l.a])).b,c=new Gf(l.g);c.a<c.c.c.length;)h4(s=jz(Q1(c),17))||(p=s.d,m=Ict(Est(Vy(xxe,1),cYt,8,0,[p.i.n,p.n,p.a])).b,i.Math.abs(d-m)>hJt&&(o=t,r=new PS(a=h,d),LV(s.a,r),jjt(this,s,o,r,!0),(f=t.r)&&(r=new PS(a,g=Vv(CN(Obt(f.e,0)))),LV(s.a,r),jjt(this,s,o,r,!0),o=f,r=new PS(a=e+f.o*n,g),LV(s.a,r),jjt(this,s,o,r,!0)),r=new PS(a,m),LV(s.a,r),jjt(this,s,o,r,!0)))},AKt.eg=function(t){return t.i.n.b+t.n.b+t.a.b},AKt.fg=function(){return vGt(),aDe},AKt.gg=function(){return vGt(),EDe},mW(L3t,"WestToEastRoutingStrategy",1806),fBt(813,1,{},szt),AKt.Ib=function(){return Mxt(this.a)},AKt.b=0,AKt.c=!1,AKt.d=!1,AKt.f=0,mW(N3t,"NubSpline",813),fBt(407,1,{407:1},_Ot,dQ),mW(N3t,"NubSpline/PolarCP",407),fBt(1453,1,_3t,lvt),AKt.Yf=function(t){return iAt(jz(t,37))},AKt.pf=function(t,e){rWt(this,jz(t,37),e)},mW(N3t,"SplineEdgeRouter",1453),fBt(268,1,{268:1},A6),AKt.Ib=function(){return this.a+" ->("+this.c+") "+this.b},AKt.c=0,mW(N3t,"SplineEdgeRouter/Dependency",268),fBt(455,22,{3:1,35:1,22:1,455:1},aS);var Lve,Ove,Nve,Rve,Fve,jve=$nt(N3t,"SplineEdgeRouter/SideToProcess",455,Ute,YZ,S$);fBt(1454,1,OYt,ya),AKt.Mb=function(t){return pOt(),!jz(t,128).o},mW(N3t,"SplineEdgeRouter/lambda$0$Type",1454),fBt(1455,1,{},va),AKt.Ge=function(t){return pOt(),jz(t,128).v+1},mW(N3t,"SplineEdgeRouter/lambda$1$Type",1455),fBt(1456,1,hYt,sS),AKt.td=function(t){eH(this.a,this.b,jz(t,46))},mW(N3t,"SplineEdgeRouter/lambda$2$Type",1456),fBt(1457,1,hYt,cS),AKt.td=function(t){nH(this.a,this.b,jz(t,46))},mW(N3t,"SplineEdgeRouter/lambda$3$Type",1457),fBt(128,1,{35:1,128:1},tSt,lHt),AKt.wd=function(t){return s_(this,jz(t,128))},AKt.b=0,AKt.e=!1,AKt.f=0,AKt.g=0,AKt.j=!1,AKt.k=!1,AKt.n=0,AKt.o=!1,AKt.p=!1,AKt.q=!1,AKt.s=0,AKt.u=0,AKt.v=0,AKt.F=0,mW(N3t,"SplineSegment",128),fBt(459,1,{459:1},_a),AKt.a=0,AKt.b=!1,AKt.c=!1,AKt.d=!1,AKt.e=!1,AKt.f=0,mW(N3t,"SplineSegment/EdgeInformation",459),fBt(1234,1,{},ma),mW(z3t,nJt,1234),fBt(1235,1,AZt,ba),AKt.ue=function(t,e){return SDt(jz(t,135),jz(e,135))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(z3t,iJt,1235),fBt(1233,1,{},DC),mW(z3t,"MrTree",1233),fBt(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},lS),AKt.Kf=function(){return IDt(this)},AKt.Xf=function(){return IDt(this)};var $ve,zve=$nt(z3t,"TreeLayoutPhases",393,Ute,v3,D$);fBt(1130,209,PQt,RR),AKt.Ze=function(t,e){var n,i,r,o,a,s;for(zv(_N(QBt(t,(TBt(),Eye))))||vQ(new _g((Vx(),new Lv(t)))),Vat(a=new x6,t),lct(a,(VHt(),sye),t),bjt(t,a,s=new Pb),Wjt(t,a,s),o=a,i=new Gf(r=Ljt(this.a,o));i.a<i.c.c.length;)n=jz(Q1(i),135),WCt(this.b,n,wot(e,1/r.c.length));SUt(o=tKt(r))},mW(z3t,"TreeLayoutProvider",1130),fBt(1847,1,mYt,wa),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return AX(),BA(),hne},mW(z3t,"TreeUtil/1",1847),fBt(1848,1,mYt,ka),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return AX(),BA(),hne},mW(z3t,"TreeUtil/2",1848),fBt(502,134,{3:1,502:1,94:1,134:1}),AKt.g=0,mW(V3t,"TGraphElement",502),fBt(188,502,{3:1,188:1,502:1,94:1,134:1},qX),AKt.Ib=function(){return this.b&&this.c?g0(this.b)+"->"+g0(this.c):"e_"+Jct(this)},mW(V3t,"TEdge",188),fBt(135,134,{3:1,135:1,94:1,134:1},x6),AKt.Ib=function(){var t,e,n,i,r;for(r=null,i=cbt(this.b,0);i.b!=i.d.c;)r+=(null==(n=jz(h3(i),86)).c||0==n.c.length?"n_"+n.g:"n_"+n.c)+"\n";for(e=cbt(this.a,0);e.b!=e.d.c;)r+=((t=jz(h3(e),188)).b&&t.c?g0(t.b)+"->"+g0(t.c):"e_"+Jct(t))+"\n";return r};var Vve=mW(V3t,"TGraph",135);fBt(633,502,{3:1,502:1,633:1,94:1,134:1}),mW(V3t,"TShape",633),fBt(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},rlt),AKt.Ib=function(){return g0(this)};var Hve,qve,Uve,Gve,Wve,Kve,Yve=mW(V3t,"TNode",86);fBt(255,1,mYt,hm),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return new dm(cbt(this.a.d,0))},mW(V3t,"TNode/2",255),fBt(358,1,YKt,dm),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return jz(h3(this.a),188).c},AKt.Ob=function(){return yC(this.a)},AKt.Qb=function(){wet(this.a)},mW(V3t,"TNode/2/1",358),fBt(1840,1,JJt,NR),AKt.pf=function(t,e){L$t(this,jz(t,135),e)},mW(H3t,"FanProcessor",1840),fBt(327,22,{3:1,35:1,22:1,327:1,234:1},uS),AKt.Kf=function(){switch(this.g){case 0:return new Kk;case 1:return new NR;case 2:return new Ba;case 3:return new Da;case 4:return new Pa;case 5:return new La;default:throw $b(new Rv(A1t+(null!=this.f?this.f:""+this.g)))}};var Xve,Zve,Qve,Jve,tye,eye,nye,iye,rye,oye,aye,sye,cye,lye,uye,hye,dye,fye,gye,pye,mye,bye,wye,kye,vye,yye,_ye,Cye,Aye,xye,Eye,Tye,Sye,Dye,Iye,Bye,Mye,Pye,Lye,Oye,Nye,Rye=$nt(H3t,x1t,327,Ute,n8,I$);fBt(1843,1,JJt,Da),AKt.pf=function(t,e){aMt(this,jz(t,135),e)},AKt.a=0,mW(H3t,"LevelHeightProcessor",1843),fBt(1844,1,mYt,Ia),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return AX(),BA(),hne},mW(H3t,"LevelHeightProcessor/1",1844),fBt(1841,1,JJt,Ba),AKt.pf=function(t,e){YTt(this,jz(t,135),e)},AKt.a=0,mW(H3t,"NeighborsProcessor",1841),fBt(1842,1,mYt,Ma),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return AX(),BA(),hne},mW(H3t,"NeighborsProcessor/1",1842),fBt(1845,1,JJt,Pa),AKt.pf=function(t,e){oMt(this,jz(t,135),e)},AKt.a=0,mW(H3t,"NodePositionProcessor",1845),fBt(1839,1,JJt,Kk),AKt.pf=function(t,e){QVt(this,jz(t,135))},mW(H3t,"RootProcessor",1839),fBt(1846,1,JJt,La),AKt.pf=function(t,e){gdt(jz(t,135))},mW(H3t,"Untreeifyer",1846),fBt(851,1,YZt,Ah),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,G3t),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),kye),(ETt(),gxe)),zye),Jdt((ibt(),cxe))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,W3t),""),"Search Order"),"Which search order to use when computing a spanning tree."),bye),gxe),Xye),Jdt(cxe)))),Rqt((new Ch,t))},mW(K3t,"MrTreeMetaDataProvider",851),fBt(994,1,YZt,Ch),AKt.Qe=function(t){Rqt(t)},mW(K3t,"MrTreeOptions",994),fBt(995,1,{},Oa),AKt.$e=function(){return new RR},AKt._e=function(t){},mW(K3t,"MrTreeOptions/MrtreeFactory",995),fBt(480,22,{3:1,35:1,22:1,480:1},hS);var Fye,jye,$ye,zye=$nt(K3t,"OrderWeighting",480,Ute,ZZ,B$);fBt(425,22,{3:1,35:1,22:1,425:1},dS);var Vye,Hye,qye,Uye,Gye,Wye,Kye,Yye,Xye=$nt(K3t,"TreeifyingOrder",425,Ute,XZ,P$);fBt(1459,1,_3t,gh),AKt.Yf=function(t){return jz(t,135),Hye},AKt.pf=function(t,e){kot(this,jz(t,135),e)},mW("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),fBt(1460,1,_3t,ph),AKt.Yf=function(t){return jz(t,135),qye},AKt.pf=function(t,e){uSt(this,jz(t,135),e)},mW("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),fBt(1461,1,_3t,fh),AKt.Yf=function(t){return jz(t,135),Uye},AKt.pf=function(t,e){JNt(this,jz(t,135),e)},AKt.a=0,mW("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),fBt(1462,1,_3t,mh),AKt.Yf=function(t){return jz(t,135),Gye},AKt.pf=function(t,e){Lyt(jz(t,135),e)},mW("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462),fBt(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},fS),AKt.Kf=function(){return dgt(this)},AKt.Xf=function(){return dgt(this)};var Zye,Qye,Jye,t_e,e_e=$nt(Z3t,"RadialLayoutPhases",495,Ute,QZ,M$);fBt(1131,209,PQt,SC),AKt.Ze=function(t,e){var n,i,r;if(DAt(e,"Radial layout",_St(this,t).c.length),zv(_N(QBt(t,(Uvt(),D_e))))||vQ(new _g((Vx(),new Lv(t)))),r=aAt(t),Xbt(t,(dN(),Wye),r),!r)throw $b(new Rv("The given graph is not a tree!"));for(0==(n=Vv(CN(QBt(t,L_e))))&&(n=uDt(t)),Xbt(t,L_e,n),i=new Gf(_St(this,t));i.a<i.c.c.length;)jz(Q1(i),51).pf(t,wot(e,1));zEt(e)},mW(Z3t,"RadialLayoutProvider",1131),fBt(549,1,AZt,TC),AKt.ue=function(t,e){return ORt(this.a,this.b,jz(t,33),jz(e,33))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},AKt.a=0,AKt.b=0,mW(Z3t,"RadialUtil/lambda$0$Type",549),fBt(1375,1,JJt,Ra),AKt.pf=function(t,e){gqt(jz(t,33),e)},mW(t5t,"CalculateGraphSize",1375),fBt(442,22,{3:1,35:1,22:1,442:1,234:1},gS),AKt.Kf=function(){switch(this.g){case 0:return new Va;case 1:return new Na;case 2:return new Ra;default:throw $b(new Rv(A1t+(null!=this.f?this.f:""+this.g)))}};var n_e,i_e,r_e,o_e=$nt(t5t,x1t,442,Ute,O1,L$);fBt(645,1,{}),AKt.e=1,AKt.g=0,mW(e5t,"AbstractRadiusExtensionCompaction",645),fBt(1772,645,{},gN),AKt.hg=function(t){var e,n,i,r,o,a,s,c,l;for(this.c=jz(QBt(t,(dN(),Wye)),33),Jd(this,this.c),this.d=_wt(jz(QBt(t,(Uvt(),O_e)),293)),(c=jz(QBt(t,C_e),19))&&Qd(this,c.a),tf(this,(kK(s=CN(QBt(t,(cKt(),BTe)))),s)),l=fNt(this.c),this.d&&this.d.lg(l),bFt(this,l),a=new Xv(Est(Vy(HIe,1),n5t,33,0,[this.c])),n=0;n<2;n++)for(e=0;e<l.c.length;e++)r=new Xv(Est(Vy(HIe,1),n5t,33,0,[(u1(e,l.c.length),jz(l.c[e],33))])),o=e<l.c.length-1?(u1(e+1,l.c.length),jz(l.c[e+1],33)):(u1(0,l.c.length),jz(l.c[0],33)),i=0==e?jz(PH(l,l.c.length-1),33):(u1(e-1,l.c.length),jz(l.c[e-1],33)),QAt(this,(u1(e,l.c.length),jz(l.c[e],33),a),i,o,r)},mW(e5t,"AnnulusWedgeCompaction",1772),fBt(1374,1,JJt,Na),AKt.pf=function(t,e){d_t(jz(t,33),e)},mW(e5t,"GeneralCompactor",1374),fBt(1771,645,{},Fa),AKt.hg=function(t){var e,n,i,r;n=jz(QBt(t,(dN(),Wye)),33),this.f=n,this.b=_wt(jz(QBt(t,(Uvt(),O_e)),293)),(r=jz(QBt(t,C_e),19))&&Qd(this,r.a),tf(this,(kK(i=CN(QBt(t,(cKt(),BTe)))),i)),e=fNt(n),this.b&&this.b.lg(e),bTt(this,e)},AKt.a=0,mW(e5t,"RadialCompaction",1771),fBt(1779,1,{},ja),AKt.ig=function(t){var e,n,i,r,o,a;for(this.a=t,e=0,i=0,o=new Gf(a=fNt(t));o.a<o.c.c.length;)for(r=jz(Q1(o),33),n=++i;n<a.c.length;n++)X$t(this,r,(u1(n,a.c.length),jz(a.c[n],33)))&&(e+=1);return e},mW(i5t,"CrossingMinimizationPosition",1779),fBt(1777,1,{},$a),AKt.ig=function(t){var e,n,r,o,a,s,c,l,h,d,f,g,p;for(r=0,n=new aU(ZP(gPt(t).a.Kc(),new u));gBt(n);)e=jz(q4(n),79),h=(c=EAt(jz(Wet((!e.c&&(e.c=new cF(OIe,e,5,8)),e.c),0),82))).i+c.g/2,d=c.j+c.f/2,o=t.i+t.g/2,a=t.j+t.f/2,(f=new V_).a=h-o,f.b=d-a,Uyt(s=new PS(f.a,f.b),t.g,t.f),f.a-=s.a,f.b-=s.b,o=h-f.a,a=d-f.b,Uyt(l=new PS(f.a,f.b),c.g,c.f),f.a-=l.a,f.b-=l.b,g=(h=o+f.a)-o,p=(d=a+f.b)-a,r+=i.Math.sqrt(g*g+p*p);return r},mW(i5t,"EdgeLengthOptimization",1777),fBt(1778,1,{},za),AKt.ig=function(t){var e,n,r,o,a,s,c,l,h;for(r=0,n=new aU(ZP(gPt(t).a.Kc(),new u));gBt(n);)e=jz(q4(n),79),s=(a=EAt(jz(Wet((!e.c&&(e.c=new cF(OIe,e,5,8)),e.c),0),82))).i+a.g/2,c=a.j+a.f/2,o=jz(QBt(a,(cKt(),gTe)),8),l=s-(t.i+o.a+t.g/2),h=c-(t.j+o.b+t.f),r+=i.Math.sqrt(l*l+h*h);return r},mW(i5t,"EdgeLengthPositionOptimization",1778),fBt(1373,645,JJt,Va),AKt.pf=function(t,e){uPt(this,jz(t,33),e)},mW("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1373),fBt(426,22,{3:1,35:1,22:1,426:1},pS);var a_e,s_e,c_e,l_e,u_e=$nt(o5t,"AnnulusWedgeCriteria",426,Ute,JZ,O$);fBt(380,22,{3:1,35:1,22:1,380:1},mS);var h_e,d_e,f_e,g_e,p_e,m_e,b_e,w_e,k_e,v_e,y_e,__e,C_e,A_e,x_e,E_e,T_e,S_e,D_e,I_e,B_e,M_e,P_e,L_e,O_e,N_e,R_e,F_e,j_e,$_e,z_e,V_e=$nt(o5t,jQt,380,Ute,N1,N$);fBt(852,1,YZt,bh),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,a5t),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),ndt(0)),(ETt(),mxe)),Iee),Jdt((ibt(),sxe))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,s5t),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,c5t),""),"Compaction"),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),g_e),gxe),V_e),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,l5t),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),ndt(1)),mxe),Iee),Jdt(cxe)))),r2(t,l5t,c5t,null),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,u5t),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),v_e),gxe),Y_e),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,h5t),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),__e),gxe),u_e),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,d5t),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),m_e),gxe),W_e),Jdt(cxe)))),tGt((new wh,t))},mW(o5t,"RadialMetaDataProvider",852),fBt(996,1,YZt,wh),AKt.Qe=function(t){tGt(t)},mW(o5t,"RadialOptions",996),fBt(997,1,{},Ha),AKt.$e=function(){return new SC},AKt._e=function(t){},mW(o5t,"RadialOptions/RadialFactory",997),fBt(340,22,{3:1,35:1,22:1,340:1},bS);var H_e,q_e,U_e,G_e,W_e=$nt(o5t,"RadialTranslationStrategy",340,Ute,y3,R$);fBt(293,22,{3:1,35:1,22:1,293:1},wS);var K_e,Y_e=$nt(o5t,"SortingStrategy",293,Ute,F1,F$);fBt(1449,1,_3t,qa),AKt.Yf=function(t){return jz(t,33),null},AKt.pf=function(t,e){xPt(this,jz(t,33),e)},AKt.c=0,mW("org.eclipse.elk.alg.radial.p1position","EadesRadial",1449),fBt(1775,1,{},Ua),AKt.jg=function(t){return Ubt(t)},mW(g5t,"AnnulusWedgeByLeafs",1775),fBt(1776,1,{},Ga),AKt.jg=function(t){return KCt(this,t)},mW(g5t,"AnnulusWedgeByNodeSpace",1776),fBt(1450,1,_3t,Wa),AKt.Yf=function(t){return jz(t,33),null},AKt.pf=function(t,e){dCt(this,jz(t,33),e)},mW("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1450),fBt(811,1,{},Xk),AKt.kg=function(t){},AKt.lg=function(t){Qb(this,t)},mW(p5t,"IDSorter",811),fBt(1774,1,AZt,Ka),AKt.ue=function(t,e){return Yrt(jz(t,33),jz(e,33))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(p5t,"IDSorter/lambda$0$Type",1774),fBt(1773,1,{},Irt),AKt.kg=function(t){i2(this,t)},AKt.lg=function(t){t.dc()||(this.e||i2(this,QH(jz(t.Xb(0),33))),Qb(this.e,t))},mW(p5t,"PolarCoordinateSorter",1773),fBt(1136,209,PQt,Ya),AKt.Ze=function(t,e){var n,r,o,a,s,c,l,u,h,d,f,g,p,m,b,w,k,v,y,_,C,A;if(DAt(e,"Rectangle Packing",1),e.n&&e.n&&t&&w0(e,a2(t),($lt(),oIe)),n=Vv(CN(QBt(t,(WMt(),uCe)))),g=jz(QBt(t,xCe),381),b=zv(_N(QBt(t,wCe))),v=zv(_N(QBt(t,ACe))),h=zv(_N(QBt(t,gCe))),y=jz(QBt(t,ECe),116),k=Vv(CN(QBt(t,ICe))),r=zv(_N(QBt(t,DCe))),d=zv(_N(QBt(t,pCe))),m=zv(_N(QBt(t,mCe))),A=Vv(CN(QBt(t,BCe))),!t.a&&(t.a=new tG(HIe,t,10,11)),Crt(C=t.a),m){for(f=new Mb,c=new DP(C);c.e!=c.i.gc();)x7(a=jz(vbt(c),33),fCe)&&(f.c[f.c.length]=a);for(l=new Gf(f);l.a<l.c.c.length;)stt(C,a=jz(Q1(l),33));for(AX(),bM(f,new Xa),u=new Gf(f);u.a<u.c.c.length;)a=jz(Q1(u),33),_=jz(QBt(a,fCe),19).a,cdt(C,_=i.Math.min(_,C.i),a);for(p=0,s=new DP(C);s.e!=s.i.gc();)Xbt(a=jz(vbt(s),33),dCe,ndt(p)),++p}(w=GTt(t)).a-=y.b+y.c,w.b-=y.d+y.a,w.a,A<0||A<w.a?(o=DFt(new vz(n,g,b),C,k,y),e.n&&e.n&&t&&w0(e,a2(t),($lt(),oIe))):o=new tH(n,A,0,(XPt(),RCe)),w.a+=y.b+y.c,w.b+=y.d+y.a,v||(Crt(C),o=vUt(new b3(n,h,d,r,k),C,i.Math.max(w.a,o.c),w,e,t,y)),mat(C,y),RGt(t,o.c+(y.b+y.c),o.b+(y.d+y.a),!1,!0),zv(_N(QBt(t,CCe)))||vQ(new _g((Vx(),new Lv(t)))),e.n&&e.n&&t&&w0(e,a2(t),($lt(),oIe)),zEt(e)},mW(k5t,"RectPackingLayoutProvider",1136),fBt(1137,1,AZt,Xa),AKt.ue=function(t,e){return flt(jz(t,33),jz(e,33))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(k5t,"RectPackingLayoutProvider/lambda$0$Type",1137),fBt(1256,1,{},vz),AKt.a=0,AKt.c=!1,mW(v5t,"AreaApproximation",1256);var X_e,Z_e,Q_e,J_e=hH(v5t,"BestCandidateFilter");fBt(638,1,{526:1},Za),AKt.mg=function(t,e,n){var r,o,a,s,c,l;for(l=new Mb,a=NXt,c=new Gf(t);c.a<c.c.c.length;)s=jz(Q1(c),220),a=i.Math.min(a,(s.c+(n.b+n.c))*(s.b+(n.d+n.a)));for(o=new Gf(t);o.a<o.c.c.length;)((r=jz(Q1(o),220)).c+(n.b+n.c))*(r.b+(n.d+n.a))==a&&(l.c[l.c.length]=r);return l},mW(v5t,"AreaFilter",638),fBt(639,1,{526:1},Qa),AKt.mg=function(t,e,n){var r,o,a,s,c,l;for(c=new Mb,l=NXt,s=new Gf(t);s.a<s.c.c.length;)a=jz(Q1(s),220),l=i.Math.min(l,i.Math.abs((a.c+(n.b+n.c))/(a.b+(n.d+n.a))-e));for(o=new Gf(t);o.a<o.c.c.length;)r=jz(Q1(o),220),i.Math.abs((r.c+(n.b+n.c))/(r.b+(n.d+n.a))-e)==l&&(c.c[c.c.length]=r);return c},mW(v5t,"AspectRatioFilter",639),fBt(637,1,{526:1},Ja),AKt.mg=function(t,e,n){var r,o,a,s,c,l;for(l=new Mb,a=RXt,c=new Gf(t);c.a<c.c.c.length;)s=jz(Q1(c),220),a=i.Math.max(a,YH(s.c+(n.b+n.c),s.b+(n.d+n.a),s.a));for(o=new Gf(t);o.a<o.c.c.length;)YH((r=jz(Q1(o),220)).c+(n.b+n.c),r.b+(n.d+n.a),r.a)==a&&(l.c[l.c.length]=r);return l},mW(v5t,"ScaleMeasureFilter",637),fBt(381,22,{3:1,35:1,22:1,381:1},kS);var tCe,eCe,nCe,iCe,rCe,oCe,aCe,sCe,cCe,lCe,uCe,hCe,dCe,fCe,gCe,pCe,mCe,bCe,wCe,kCe,vCe,yCe,_Ce,CCe,ACe,xCe,ECe,TCe,SCe,DCe,ICe,BCe,MCe=$nt(y5t,"OptimizationGoal",381,Ute,R1,j$);fBt(856,1,YZt,Th),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,_5t),""),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),sCe),(ETt(),gxe)),MCe),Jdt((ibt(),sxe))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,C5t),""),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),(cL(),!0)),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,A5t),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),ndt(-1)),mxe),Iee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,x5t),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),ndt(-1)),mxe),Iee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,E5t),""),"Only Area Approximation"),"If enabled only the width approximation step is executed and the nodes are placed accordingly. The nodes are layouted according to the packingStrategy. If set to true not expansion of nodes is taking place."),!1),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,T5t),""),"Compact Rows"),"Enables compaction. Compacts blocks if they do not use the full height of the row. This option allows to have a smaller drawing. If this option is disabled all nodes are placed next to each other in rows."),!0),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,S5t),""),"Fit Aspect Ratio"),"Expands nodes if expandNodes is true to fit the aspect ratio instead of only in their bounds. The option is only useful if the used packingStrategy is ASPECT_RATIO_DRIVEN, otherwise this may result in unreasonable ndoe expansion."),!1),dxe),vee),Jdt(sxe)))),r2(t,S5t,I5t,null),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,D5t),""),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),fxe),Eee),Jdt(sxe)))),PWt((new Sh,t))},mW(y5t,"RectPackingMetaDataProvider",856),fBt(1004,1,YZt,Sh),AKt.Qe=function(t){PWt(t)},mW(y5t,"RectPackingOptions",1004),fBt(1005,1,{},ts),AKt.$e=function(){return new Ya},AKt._e=function(t){},mW(y5t,"RectPackingOptions/RectpackingFactory",1005),fBt(1257,1,{},b3),AKt.a=0,AKt.b=!1,AKt.c=0,AKt.d=0,AKt.e=!1,AKt.f=!1,AKt.g=0,mW("org.eclipse.elk.alg.rectpacking.seconditeration","RowFillingAndCompaction",1257),fBt(187,1,{187:1},olt),AKt.a=0,AKt.c=!1,AKt.d=0,AKt.e=0,AKt.f=0,AKt.g=0,AKt.i=0,AKt.k=!1,AKt.o=NXt,AKt.p=NXt,AKt.r=0,AKt.s=0,AKt.t=0,mW(M5t,"Block",187),fBt(211,1,{211:1},OQ),AKt.a=0,AKt.b=0,AKt.d=0,AKt.e=0,AKt.f=0,mW(M5t,"BlockRow",211),fBt(443,1,{443:1},NQ),AKt.b=0,AKt.c=0,AKt.d=0,AKt.e=0,AKt.f=0,mW(M5t,"BlockStack",443),fBt(220,1,{220:1},tH,ogt),AKt.a=0,AKt.b=0,AKt.c=0,AKt.d=0,AKt.e=0;var PCe,LCe,OCe,NCe,RCe,FCe=mW(M5t,"DrawingData",220);fBt(355,22,{3:1,35:1,22:1,355:1},vS);var jCe,$Ce,zCe,VCe,HCe=$nt(M5t,"DrawingDataDescriptor",355,Ute,M4,$$);fBt(200,1,{200:1},P0),AKt.b=0,AKt.c=0,AKt.e=0,AKt.f=0,mW(M5t,"RectRow",200),fBt(756,1,{},_ut),AKt.j=0,mW(L5t,p1t,756),fBt(1245,1,{},es),AKt.Je=function(t){return G7(t.a,t.b)},mW(L5t,m1t,1245),fBt(1246,1,{},fm),AKt.Je=function(t){return p6(this.a,t)},mW(L5t,b1t,1246),fBt(1247,1,{},gm),AKt.Je=function(t){return Dbt(this.a,t)},mW(L5t,w1t,1247),fBt(1248,1,{},pm),AKt.Je=function(t){return act(this.a,t)},mW(L5t,"ElkGraphImporter/lambda$3$Type",1248),fBt(1249,1,{},mm),AKt.Je=function(t){return nIt(this.a,t)},mW(L5t,k1t,1249),fBt(1133,209,PQt,IC),AKt.Ze=function(t,e){var n,i,r,o,a,s,c,l,u,h;for(x7(t,(Axt(),kAe))&&(h=AN(QBt(t,($wt(),zAe))),(o=GRt(rit(),h))&&jz(sQ(o.f),209).Ze(t,wot(e,1))),Xbt(t,gAe,(I6(),ZCe)),Xbt(t,pAe,(BEt(),iAe)),Xbt(t,mAe,(Mst(),GAe)),a=jz(QBt(t,($wt(),RAe)),19).a,DAt(e,"Overlap removal",1),zv(_N(QBt(t,NAe))),c=new bm(s=new Ow),n=HWt(i=new _ut,t),l=!0,r=0;r<a&&l;){if(zv(_N(QBt(t,FAe)))){if(s.a.$b(),zTt(new TM(c),n.i),0==s.a.gc())break;n.e=s}for(c2(this.b),EG(this.b,(Eft(),$Ce),(Sx(),VAe)),EG(this.b,zCe,n.g),EG(this.b,VCe,(Tx(),KCe)),this.a=BHt(this.b,n),u=new Gf(this.a);u.a<u.c.c.length;)jz(Q1(u),51).pf(n,wot(e,1));r_t(i,n),l=zv(_N(wxt(n,(Got(),Yre)))),++r}Oqt(i,n),zEt(e)},mW(L5t,"OverlapRemovalLayoutProvider",1133),fBt(1134,1,{},bm),mW(L5t,"OverlapRemovalLayoutProvider/lambda$0$Type",1134),fBt(437,22,{3:1,35:1,22:1,437:1},yS);var qCe,UCe,GCe=$nt(L5t,"SPOrEPhases",437,Ute,j1,z$);fBt(1255,1,{},BC),mW(L5t,"ShrinkTree",1255),fBt(1135,209,PQt,Zk),AKt.Ze=function(t,e){var n,i,r,o;x7(t,(Axt(),kAe))&&(o=AN(QBt(t,kAe)),(r=GRt(rit(),o))&&jz(sQ(r.f),209).Ze(t,wot(e,1))),n=HWt(i=new _ut,t),BPt(this.a,n,wot(e,1)),Oqt(i,n)},mW(L5t,"ShrinkTreeLayoutProvider",1135),fBt(300,134,{3:1,300:1,94:1,134:1},LQ),AKt.c=!1,mW("org.eclipse.elk.alg.spore.graph","Graph",300),fBt(482,22,{3:1,35:1,22:1,482:1,246:1,234:1},Bx),AKt.Kf=function(){return elt(this)},AKt.Xf=function(){return elt(this)};var WCe,KCe,YCe=$nt(O5t,jQt,482,Ute,NY,V$);fBt(551,22,{3:1,35:1,22:1,551:1,246:1,234:1},mN),AKt.Kf=function(){return new os},AKt.Xf=function(){return new os};var XCe,ZCe,QCe,JCe=$nt(O5t,"OverlapRemovalStrategy",551,Ute,RY,H$);fBt(430,22,{3:1,35:1,22:1,430:1},_S);var tAe,eAe,nAe,iAe,rAe,oAe,aAe=$nt(O5t,"RootSelection",430,Ute,eQ,q$);fBt(316,22,{3:1,35:1,22:1,316:1},CS);var sAe,cAe,lAe,uAe,hAe,dAe,fAe,gAe,pAe,mAe,bAe,wAe,kAe,vAe,yAe,_Ae,CAe,AAe,xAe,EAe,TAe,SAe,DAe,IAe,BAe,MAe,PAe,LAe,OAe,NAe,RAe,FAe,jAe,$Ae,zAe,VAe,HAe=$nt(O5t,"SpanningTreeCostFunction",316,Ute,D4,U$);fBt(1002,1,YZt,vh),AKt.Qe=function(t){kVt(t)},mW(O5t,"SporeCompactionOptions",1002),fBt(1003,1,{},ns),AKt.$e=function(){return new Zk},AKt._e=function(t){},mW(O5t,"SporeCompactionOptions/SporeCompactionFactory",1003),fBt(855,1,YZt,yh),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,R5t),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(ETt(),wxe)),Yee),Jdt((ibt(),cxe))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,V5t),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),LAe),gxe),WAe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,F5t),W5t),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),MAe),gxe),YAe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,j5t),W5t),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),IAe),gxe),HAe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,$5t),W5t),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),wxe),Yee),Jdt(cxe)))),r2(t,$5t,z5t,EAe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,z5t),W5t),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),SAe),gxe),aAe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,H5t),_2t),"Compaction Strategy"),"This option defines how the compaction is applied."),yAe),gxe),YCe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,q5t),_2t),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(cL(),!1)),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,U5t),K5t),"Upper limit for iterations of overlap removal"),null),ndt(64)),mxe),Iee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,G5t),K5t),"Whether to run a supplementary scanline overlap check."),null),!0),dxe),vee),Jdt(cxe)))),IFt((new _h,t)),kVt((new vh,t))},mW(O5t,"SporeMetaDataProvider",855),fBt(KYt,1,YZt,_h),AKt.Qe=function(t){IFt(t)},mW(O5t,"SporeOverlapRemovalOptions",KYt),fBt(1001,1,{},is),AKt.$e=function(){return new IC},AKt._e=function(t){},mW(O5t,"SporeOverlapRemovalOptions/SporeOverlapFactory",1001),fBt(530,22,{3:1,35:1,22:1,530:1,246:1,234:1},UK),AKt.Kf=function(){return nlt(this)},AKt.Xf=function(){return nlt(this)};var qAe,UAe,GAe,WAe=$nt(O5t,"StructureExtractionStrategy",530,Ute,FY,G$);fBt(429,22,{3:1,35:1,22:1,429:1,246:1,234:1},AS),AKt.Kf=function(){return fgt(this)},AKt.Xf=function(){return fgt(this)};var KAe,YAe=$nt(O5t,"TreeConstructionStrategy",429,Ute,tQ,W$);fBt(1443,1,_3t,rs),AKt.Yf=function(t){return jz(t,300),new j2},AKt.pf=function(t,e){C_t(jz(t,300),e)},mW(X5t,"DelaunayTriangulationPhase",1443),fBt(1444,1,hYt,wm),AKt.td=function(t){Gz(this.a,jz(t,65).a)},mW(X5t,"DelaunayTriangulationPhase/lambda$0$Type",1444),fBt(783,1,_3t,Wk),AKt.Yf=function(t){return jz(t,300),new j2},AKt.pf=function(t,e){this.ng(jz(t,300),e)},AKt.ng=function(t,e){var n;DAt(e,"Minimum spanning tree construction",1),n=t.d?t.d.a:jz(PH(t.i,0),65).a,Rst(this,(zv(_N(wxt(t,(Got(),Kre)))),XVt(t.e,n,t.b)),t),zEt(e)},mW(Z5t,"MinSTPhase",783),fBt(1446,783,_3t,wk),AKt.ng=function(t,e){var n,i;DAt(e,"Maximum spanning tree construction",1),n=new km(t),i=t.d?t.d.c:jz(PH(t.i,0),65).c,Rst(this,(zv(_N(wxt(t,(Got(),Kre)))),XVt(t.e,i,n)),t),zEt(e)},mW(Z5t,"MaxSTPhase",1446),fBt(1447,1,{},km),AKt.Je=function(t){return TS(this.a,t)},mW(Z5t,"MaxSTPhase/lambda$0$Type",1447),fBt(1445,1,hYt,vm),AKt.td=function(t){OM(this.a,jz(t,65))},mW(Z5t,"MinSTPhase/lambda$0$Type",1445),fBt(785,1,_3t,os),AKt.Yf=function(t){return jz(t,300),new j2},AKt.pf=function(t,e){WAt(this,jz(t,300),e)},AKt.a=!1,mW(Q5t,"GrowTreePhase",785),fBt(786,1,hYt,yz),AKt.td=function(t){est(this.a,this.b,this.c,jz(t,221))},mW(Q5t,"GrowTreePhase/lambda$0$Type",786),fBt(1448,1,_3t,as),AKt.Yf=function(t){return jz(t,300),new j2},AKt.pf=function(t,e){tkt(this,jz(t,300),e)},mW(Q5t,"ShrinkTreeCompactionPhase",1448),fBt(784,1,hYt,_z),AKt.td=function(t){hBt(this.a,this.b,this.c,jz(t,221))},mW(Q5t,"ShrinkTreeCompactionPhase/lambda$0$Type",784);var XAe,ZAe,QAe=hH(k3t,"IGraphElementVisitor");fBt(860,1,{527:1},O0),AKt.og=function(t){var e;Vat(e=lRt(this,t),jz(OW(this.b,t),94)),kPt(this,t,e)},mW(LQt,"LayoutConfigurator",860);var JAe,txe,exe,nxe=hH(LQt,"LayoutConfigurator/IPropertyHolderOptionFilter");fBt(932,1,{1933:1},ss),AKt.pg=function(t,e){return Pst(),!t.Xe(e)},mW(LQt,"LayoutConfigurator/lambda$0$Type",932),fBt(933,1,{1933:1},cs),AKt.pg=function(t,e){return AC(t,e)},mW(LQt,"LayoutConfigurator/lambda$1$Type",933),fBt(931,1,{831:1},ls),AKt.qg=function(t,e){return Pst(),!t.Xe(e)},mW(LQt,"LayoutConfigurator/lambda$2$Type",931),fBt(934,1,OYt,BS),AKt.Mb=function(t){return YK(this.a,this.b,jz(t,1933))},mW(LQt,"LayoutConfigurator/lambda$3$Type",934),fBt(858,1,{},us),mW(LQt,"RecursiveGraphLayoutEngine",858),fBt(296,60,$Yt,kw,ny),mW(LQt,"UnsupportedConfigurationException",296),fBt(453,60,$Yt,iy),mW(LQt,"UnsupportedGraphException",453),fBt(754,1,{}),mW(k3t,"AbstractRandomListAccessor",754),fBt(500,754,{},TLt),AKt.rg=function(){return null},AKt.d=!0,AKt.e=!0,AKt.f=0,mW(t4t,"AlgorithmAssembler",500),fBt(1236,1,OYt,hs),AKt.Mb=function(t){return!!jz(t,123)},mW(t4t,"AlgorithmAssembler/lambda$0$Type",1236),fBt(1237,1,{},ym),AKt.Kb=function(t){return h_(this.a,jz(t,123))},mW(t4t,"AlgorithmAssembler/lambda$1$Type",1237),fBt(1238,1,OYt,ds),AKt.Mb=function(t){return!!jz(t,80)},mW(t4t,"AlgorithmAssembler/lambda$2$Type",1238),fBt(1239,1,hYt,_m),AKt.td=function(t){Zot(this.a,jz(t,80))},mW(t4t,"AlgorithmAssembler/lambda$3$Type",1239),fBt(1240,1,hYt,MS),AKt.td=function(t){LO(this.a,this.b,jz(t,234))},mW(t4t,"AlgorithmAssembler/lambda$4$Type",1240),fBt(1355,1,AZt,fs),AKt.ue=function(t,e){return FX(jz(t,234),jz(e,234))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(t4t,"EnumBasedFactoryComparator",1355),fBt(80,754,{80:1},j2),AKt.rg=function(){return new Ow},AKt.a=0,mW(t4t,"LayoutProcessorConfiguration",80),fBt(1013,1,{527:1},Dh),AKt.og=function(t){Jot(txe,new Cm(t))},mW(qZt,"DeprecatedLayoutOptionReplacer",1013),fBt(1014,1,hYt,gs),AKt.td=function(t){M8(jz(t,160))},mW(qZt,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1014),fBt(1015,1,hYt,ps),AKt.td=function(t){Cgt(jz(t,160))},mW(qZt,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1015),fBt(1016,1,{},Cm),AKt.Od=function(t,e){OO(this.a,jz(t,146),jz(e,38))},mW(qZt,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1016),fBt(149,1,{686:1,149:1},AAt),AKt.Fb=function(t){return v4(this,t)},AKt.sg=function(){return this.b},AKt.tg=function(){return this.c},AKt.ne=function(){return this.e},AKt.Hb=function(){return bwt(this.c)},AKt.Ib=function(){return"Layout Algorithm: "+this.c};var ixe,rxe=mW(qZt,"LayoutAlgorithmData",149);fBt(263,1,{},ms),mW(qZt,"LayoutAlgorithmData/Builder",263),fBt(1017,1,{527:1},bs),AKt.og=function(t){iP(t,239)&&!zv(_N(t.We((cKt(),HEe))))&&R$t(jz(t,33))},mW(qZt,"LayoutAlgorithmResolver",1017),fBt(229,1,{686:1,229:1},qJ),AKt.Fb=function(t){return!!iP(t,229)&&bF(this.b,jz(t,229).b)},AKt.sg=function(){return this.a},AKt.tg=function(){return this.b},AKt.ne=function(){return this.d},AKt.Hb=function(){return bwt(this.b)},AKt.Ib=function(){return"Layout Type: "+this.b},mW(qZt,"LayoutCategoryData",229),fBt(344,1,{},ws),mW(qZt,"LayoutCategoryData/Builder",344),fBt(867,1,{},DRt),mW(qZt,"LayoutMetaDataService",867),fBt(868,1,{},qW),mW(qZt,"LayoutMetaDataService/Registry",868),fBt(478,1,{478:1},ks),mW(qZt,"LayoutMetaDataService/Registry/Triple",478),fBt(869,1,e4t,vs),AKt.ug=function(){return new V_},mW(qZt,"LayoutMetaDataService/lambda$0$Type",869),fBt(870,1,n4t,ys),AKt.vg=function(t){return jM(jz(t,8))},mW(qZt,"LayoutMetaDataService/lambda$1$Type",870),fBt(879,1,e4t,_s),AKt.ug=function(){return new Mb},mW(qZt,"LayoutMetaDataService/lambda$10$Type",879),fBt(880,1,n4t,Cs),AKt.vg=function(t){return new JF(jz(t,12))},mW(qZt,"LayoutMetaDataService/lambda$11$Type",880),fBt(881,1,e4t,As),AKt.ug=function(){return new YA},mW(qZt,"LayoutMetaDataService/lambda$12$Type",881),fBt(882,1,n4t,xs),AKt.vg=function(t){return Hz(jz(t,68))},mW(qZt,"LayoutMetaDataService/lambda$13$Type",882),fBt(883,1,e4t,Es),AKt.ug=function(){return new Ow},mW(qZt,"LayoutMetaDataService/lambda$14$Type",883),fBt(884,1,n4t,Ts),AKt.vg=function(t){return XX(jz(t,53))},mW(qZt,"LayoutMetaDataService/lambda$15$Type",884),fBt(885,1,e4t,Ss),AKt.ug=function(){return new lB},mW(qZt,"LayoutMetaDataService/lambda$16$Type",885),fBt(886,1,n4t,Ds),AKt.vg=function(t){return A5(jz(t,53))},mW(qZt,"LayoutMetaDataService/lambda$17$Type",886),fBt(887,1,e4t,Is),AKt.ug=function(){return new Hw},mW(qZt,"LayoutMetaDataService/lambda$18$Type",887),fBt(888,1,n4t,Bs),AKt.vg=function(t){return Vz(jz(t,208))},mW(qZt,"LayoutMetaDataService/lambda$19$Type",888),fBt(871,1,e4t,Ms),AKt.ug=function(){return new kk},mW(qZt,"LayoutMetaDataService/lambda$2$Type",871),fBt(872,1,n4t,Ps),AKt.vg=function(t){return new N_(jz(t,74))},mW(qZt,"LayoutMetaDataService/lambda$3$Type",872),fBt(873,1,e4t,Ls),AKt.ug=function(){return new uk},mW(qZt,"LayoutMetaDataService/lambda$4$Type",873),fBt(874,1,n4t,Os),AKt.vg=function(t){return new Dj(jz(t,142))},mW(qZt,"LayoutMetaDataService/lambda$5$Type",874),fBt(875,1,e4t,Rs),AKt.ug=function(){return new hk},mW(qZt,"LayoutMetaDataService/lambda$6$Type",875),fBt(876,1,n4t,Fs),AKt.vg=function(t){return new Sj(jz(t,116))},mW(qZt,"LayoutMetaDataService/lambda$7$Type",876),fBt(877,1,e4t,js),AKt.ug=function(){return new Qs},mW(qZt,"LayoutMetaDataService/lambda$8$Type",877),fBt(878,1,n4t,$s),AKt.vg=function(t){return new ntt(jz(t,373))},mW(qZt,"LayoutMetaDataService/lambda$9$Type",878);var oxe,axe,sxe,cxe,lxe,uxe=hH(SQt,"IProperty");fBt(23,1,{35:1,686:1,23:1,146:1},dTt),AKt.wd=function(t){return gP(this,jz(t,146))},AKt.Fb=function(t){return iP(t,23)?bF(this.f,jz(t,23).f):iP(t,146)&&bF(this.f,jz(t,146).tg())},AKt.wg=function(){var t;if(iP(this.b,4)){if(null==(t=Zpt(this.b)))throw $b(new Fv(s4t+this.f+"'. Make sure it's type is registered with the "+(yN(uBe),uBe.k)+r4t));return t}return this.b},AKt.sg=function(){return this.d},AKt.tg=function(){return this.f},AKt.ne=function(){return this.i},AKt.Hb=function(){return bwt(this.f)},AKt.Ib=function(){return"Layout Option: "+this.f},mW(qZt,"LayoutOptionData",23),fBt(24,1,{},zs),mW(qZt,"LayoutOptionData/Builder",24),fBt(175,22,{3:1,35:1,22:1,175:1},DS);var hxe,dxe,fxe,gxe,pxe,mxe,bxe,wxe,kxe,vxe=$nt(qZt,"LayoutOptionData/Target",175,Ute,S4,K$);fBt(277,22,{3:1,35:1,22:1,277:1},IS);var yxe,_xe,Cxe,Axe=$nt(qZt,"LayoutOptionData/Type",277,Ute,Fet,Y$);fBt(110,1,{110:1},hB,qY,gZ),AKt.Fb=function(t){var e;return!(null==t||!iP(t,110))&&(e=jz(t,110),iY(this.c,e.c)&&iY(this.d,e.d)&&iY(this.b,e.b)&&iY(this.a,e.a))},AKt.Hb=function(){return uut(Est(Vy(Ite,1),zKt,1,5,[this.c,this.d,this.b,this.a]))},AKt.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},AKt.a=0,AKt.b=0,AKt.c=0,AKt.d=0,mW(u1t,"ElkRectangle",110),fBt(8,1,{3:1,4:1,8:1,414:1},V_,UJ,PS,dB),AKt.Fb=function(t){return Jit(this,t)},AKt.Hb=function(){return WI(this.a)+dvt(WI(this.b))},AKt.Jf=function(t){var e,n,i;for(n=0;n<t.length&&Lut((h1(n,t.length),t.charCodeAt(n)),s1t);)++n;for(e=t.length;e>0&&Lut((h1(e-1,t.length),t.charCodeAt(e-1)),c1t);)--e;if(n>=e)throw $b(new Rv("The given string does not contain any numbers."));if(2!=(i=vFt(t.substr(n,e-n),",|;|\r|\n")).length)throw $b(new Rv("Exactly two numbers are expected, "+i.length+" were found."));try{this.a=dEt(Nxt(i[0])),this.b=dEt(Nxt(i[1]))}catch(t){throw iP(t=hst(t),127)?$b(new Rv(l1t+t)):$b(t)}},AKt.Ib=function(){return"("+this.a+","+this.b+")"},AKt.a=0,AKt.b=0;var xxe=mW(u1t,"KVector",8);fBt(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},kk,N_,qO),AKt.Pc=function(){return Klt(this)},AKt.Jf=function(t){var e,n,i,r,o;n=vFt(t,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),wX(this);try{for(e=0,r=0,i=0,o=0;e<n.length;)null!=n[e]&&Nxt(n[e]).length>0&&(r%2==0?i=dEt(n[e]):o=dEt(n[e]),r>0&&r%2!=0&&LV(this,new PS(i,o)),++r),++e}catch(t){throw iP(t=hst(t),127)?$b(new Rv("The given string does not match the expected format for vectors."+t)):$b(t)}},AKt.Ib=function(){var t,e,n;for(t=new uL("("),e=cbt(this,0);e.b!=e.d.c;)aI(t,(n=jz(h3(e),8)).a+","+n.b),e.b!=e.d.c&&(t.a+="; ");return(t.a+=")",t).a};var Exe,Txe,Sxe,Dxe,Ixe,Bxe,Mxe=mW(u1t,"KVectorChain",74);fBt(248,22,{3:1,35:1,22:1,248:1},LS);var Pxe,Lxe,Oxe,Nxe,Rxe,Fxe,jxe,$xe,zxe,Vxe,Hxe,qxe,Uxe,Gxe,Wxe,Kxe,Yxe,Xxe,Zxe,Qxe=$nt(l4t,"Alignment",248,Ute,X7,X$);fBt(979,1,YZt,Ih),AKt.Qe=function(t){Hjt(t)},mW(l4t,"BoxLayouterOptions",979),fBt(980,1,{},Ns),AKt.$e=function(){return new Us},AKt._e=function(t){},mW(l4t,"BoxLayouterOptions/BoxFactory",980),fBt(291,22,{3:1,35:1,22:1,291:1},OS);var Jxe,tEe,eEe,nEe,iEe,rEe,oEe,aEe,sEe,cEe,lEe,uEe,hEe,dEe,fEe,gEe,pEe,mEe,bEe,wEe,kEe,vEe,yEe,_Ee,CEe,AEe,xEe,EEe,TEe,SEe,DEe,IEe,BEe,MEe,PEe,LEe,OEe,NEe,REe,FEe,jEe,$Ee,zEe,VEe,HEe,qEe,UEe,GEe,WEe,KEe,YEe,XEe,ZEe,QEe,JEe,tTe,eTe,nTe,iTe,rTe,oTe,aTe,sTe,cTe,lTe,uTe,hTe,dTe,fTe,gTe,pTe,mTe,bTe,wTe,kTe,vTe,yTe,_Te,CTe,ATe,xTe,ETe,TTe,STe,DTe,ITe,BTe,MTe,PTe,LTe,OTe,NTe,RTe,FTe,jTe,$Te,zTe=$nt(l4t,"ContentAlignment",291,Ute,Y7,Z$);fBt(684,1,YZt,Bh),AKt.Qe=function(t){Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,f4t),""),"Layout Algorithm"),"Select a specific layout algorithm."),(ETt(),wxe)),Yee),Jdt((ibt(),cxe))))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,g4t),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),bxe),rxe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,W2t),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),nEe),gxe),Qxe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,KQt),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,p4t),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),bxe),Mxe),Jdt(oxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,a3t),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),lEe),pxe),zTe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,G2t),""),"Debug Mode"),"Whether additional debug information shall be generated."),(cL(),!1)),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,Z2t),""),CQt),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),dEe),gxe),GTe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,k2t),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),bEe),gxe),aSe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,I5t),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,g2t),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),_Ee),gxe),ASe),yq(cxe,Est(Vy(vxe,1),BYt,175,0,[sxe]))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,YQt),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),GEe),bxe),Rse),yq(cxe,Est(Vy(vxe,1),BYt,175,0,[sxe]))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,yJt),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,w3t),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,AJt),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,_Jt),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),aTe),gxe),rDe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,p3t),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),bxe),xxe),yq(sxe,Est(Vy(vxe,1),BYt,175,0,[lxe,axe]))))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,mJt),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),mxe),Iee),yq(sxe,Est(Vy(vxe,1),BYt,175,0,[oxe]))))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,kJt),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),mxe),Iee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,vJt),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,s3t),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),DEe),bxe),Mxe),Jdt(oxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,u3t),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,h3t),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,m4t),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),bxe),OLe),yq(cxe,Est(Vy(vxe,1),BYt,175,0,[axe]))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,m3t),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),BEe),bxe),yse),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,q2t),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),dxe),vee),yq(sxe,Est(Vy(vxe,1),BYt,175,0,[oxe,lxe,axe]))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,b4t),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),fxe),Eee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,w4t),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,k4t),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),ndt(100)),mxe),Iee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,v4t),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,y4t),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),ndt(4e3)),mxe),Iee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,_4t),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),ndt(400)),mxe),Iee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,C4t),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,A4t),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,x4t),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,E4t),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,d4t),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),aEe),gxe),iIe),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,M2t),v2t),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,P2t),v2t),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,GQt),v2t),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,L2t),v2t),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,wJt),v2t),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,O2t),v2t),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,N2t),v2t),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,j2t),v2t),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,R2t),v2t),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,F2t),v2t),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,bJt),v2t),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,$2t),v2t),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),fxe),Eee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,z2t),v2t),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),fxe),Eee),yq(cxe,Est(Vy(vxe,1),BYt,175,0,[sxe]))))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,V2t),v2t),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),bxe),cIe),yq(sxe,Est(Vy(vxe,1),BYt,175,0,[oxe,lxe,axe]))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,b3t),v2t),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),LTe),bxe),yse),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,g3t),I4t),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),mxe),Iee),yq(cxe,Est(Vy(vxe,1),BYt,175,0,[sxe]))))),r2(t,g3t,f3t,XEe),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,f3t),I4t),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),KEe),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,Q2t),B4t),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),PEe),bxe),Rse),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,TJt),B4t),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),OEe),pxe),VSe),yq(sxe,Est(Vy(vxe,1),BYt,175,0,[axe]))))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,e3t),M4t),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),QEe),gxe),XSe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,n3t),M4t),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),gxe),XSe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,i3t),M4t),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),gxe),XSe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,r3t),M4t),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),gxe),XSe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,o3t),M4t),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),gxe),XSe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,EJt),P4t),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),REe),pxe),YDe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,xJt),P4t),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),VEe),pxe),eIe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,$Jt),P4t),"Node Size Minimum"),"The minimal size to which a node can be reduced."),$Ee),bxe),xxe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,X2t),P4t),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),dxe),vee),Jdt(cxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,c3t),I2t),"Edge Label Placement"),"Gives a hint on where to put edge labels."),pEe),gxe),QTe),Jdt(axe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,CJt),I2t),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),dxe),vee),Jdt(axe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,T4t),"font"),"Font Name"),"Font name used for a label."),wxe),Yee),Jdt(axe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,S4t),"font"),"Font Size"),"Font size used for a label."),mxe),Iee),Jdt(axe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,d3t),L4t),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),bxe),xxe),Jdt(lxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,l3t),L4t),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),mxe),Iee),Jdt(lxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,U2t),L4t),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),fTe),gxe),FDe),Jdt(lxe)))),Ift(t,new dTt(S_(T_(D_(y_(E_(C_(A_(new zs,H2t),L4t),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),fxe),Eee),Jdt(lxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,SJt),O4t),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),uTe),pxe),TDe),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,J2t),O4t),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,t3t),O4t),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,K2t),N4t),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),dxe),vee),Jdt(sxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,Y2t),N4t),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),dxe),vee),Jdt(oxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,WQt),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),fxe),Eee),Jdt(oxe)))),Ift(t,new dTt(S_(T_(D_(__(y_(E_(C_(A_(new zs,D4t),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),kEe),gxe),wSe),Jdt(oxe)))),Px(t,new qJ(w_(v_(k_(new ws,f1t),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),Px(t,new qJ(w_(v_(k_(new ws,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.'))),Px(t,new qJ(w_(v_(k_(new ws,pJt),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),Px(t,new qJ(w_(v_(k_(new ws,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),Px(t,new qJ(w_(v_(k_(new ws,X3t),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),Px(t,new qJ(w_(v_(k_(new ws,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),Px(t,new qJ(w_(v_(k_(new ws,f5t),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),dFt((new Mh,t)),Hjt((new Ih,t)),NNt((new Ph,t))},mW(l4t,"CoreOptions",684),fBt(103,22,{3:1,35:1,22:1,103:1},NS);var VTe,HTe,qTe,UTe,GTe=$nt(l4t,CQt,103,Ute,E4,tz);fBt(272,22,{3:1,35:1,22:1,272:1},RS);var WTe,KTe,YTe,XTe,ZTe,QTe=$nt(l4t,"EdgeLabelPlacement",272,Ute,z1,ez);fBt(218,22,{3:1,35:1,22:1,218:1},FS);var JTe,tSe,eSe,nSe,iSe,rSe,oSe,aSe=$nt(l4t,"EdgeRouting",218,Ute,A3,nz);fBt(312,22,{3:1,35:1,22:1,312:1},jS);var sSe,cSe,lSe,uSe,hSe,dSe,fSe,gSe,pSe,mSe,bSe,wSe=$nt(l4t,"EdgeType",312,Ute,r8,iz);fBt(977,1,YZt,Mh),AKt.Qe=function(t){dFt(t)},mW(l4t,"FixedLayouterOptions",977),fBt(978,1,{},Xs),AKt.$e=function(){return new Hs},AKt._e=function(t){},mW(l4t,"FixedLayouterOptions/FixedFactory",978),fBt(334,22,{3:1,35:1,22:1,334:1},$S);var kSe,vSe,ySe,_Se,CSe,ASe=$nt(l4t,"HierarchyHandling",334,Ute,$1,rz);fBt(285,22,{3:1,35:1,22:1,285:1},zS);var xSe,ESe,TSe,SSe,DSe,ISe,BSe,MSe,PSe,LSe,OSe=$nt(l4t,"LabelSide",285,Ute,C3,oz);fBt(93,22,{3:1,35:1,22:1,93:1},VS);var NSe,RSe,FSe,jSe,$Se,zSe,VSe=$nt(l4t,"NodeLabelPlacement",93,Ute,vnt,az);fBt(249,22,{3:1,35:1,22:1,249:1},HS);var HSe,qSe,USe,GSe,WSe,KSe,YSe,XSe=$nt(l4t,"PortAlignment",249,Ute,T4,sz);fBt(98,22,{3:1,35:1,22:1,98:1},qS);var ZSe,QSe,JSe,tDe,eDe,nDe,iDe,rDe=$nt(l4t,"PortConstraints",98,Ute,A7,cz);fBt(273,22,{3:1,35:1,22:1,273:1},US);var oDe,aDe,sDe,cDe,lDe,uDe,hDe,dDe,fDe,gDe,pDe,mDe,bDe,wDe,kDe,vDe,yDe,_De,CDe,ADe,xDe,EDe,TDe=$nt(l4t,"PortLabelPlacement",273,Ute,i8,lz);fBt(61,22,{3:1,35:1,22:1,61:1},GS);var SDe,DDe,IDe,BDe,MDe,PDe,LDe,ODe,NDe,RDe,FDe=$nt(l4t,"PortSide",61,Ute,c4,dz);fBt(981,1,YZt,Ph),AKt.Qe=function(t){NNt(t)},mW(l4t,"RandomLayouterOptions",981),fBt(982,1,{},Zs),AKt.$e=function(){return new ec},AKt._e=function(t){},mW(l4t,"RandomLayouterOptions/RandomFactory",982),fBt(374,22,{3:1,35:1,22:1,374:1},WS);var jDe,$De,zDe,VDe,HDe,qDe,UDe,GDe,WDe,KDe,YDe=$nt(l4t,"SizeConstraint",374,Ute,_3,uz);fBt(259,22,{3:1,35:1,22:1,259:1},KS);var XDe,ZDe,QDe,JDe,tIe,eIe=$nt(l4t,"SizeOptions",259,Ute,_it,hz);fBt(370,1,{1949:1},Uk),AKt.b=!1,AKt.c=0,AKt.d=-1,AKt.e=null,AKt.f=null,AKt.g=-1,AKt.j=!1,AKt.k=!1,AKt.n=!1,AKt.o=0,AKt.q=0,AKt.r=0,mW(k3t,"BasicProgressMonitor",370),fBt(972,209,PQt,Us),AKt.Ze=function(t,e){var n,i,r,o,a,s,c,l,u;DAt(e,"Box layout",2),r=Hv(CN(QBt(t,(xxt(),Uxe)))),o=jz(QBt(t,Vxe),116),n=zv(_N(QBt(t,Rxe))),i=zv(_N(QBt(t,Fxe))),0===jz(QBt(t,Oxe),311).g?(s=new JF((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a)),AX(),bM(s,new Am(i)),a=s,c=GTt(t),(null==(l=CN(QBt(t,Lxe)))||(kK(l),l<=0))&&(l=1.3),RGt(t,(u=zGt(a,r,o,c.a,c.b,n,(kK(l),l))).a,u.b,!1,!0)):vHt(t,r,o,n),zEt(e)},mW(k3t,"BoxLayoutProvider",972),fBt(973,1,AZt,Am),AKt.ue=function(t,e){return lLt(this,jz(t,33),jz(e,33))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},AKt.a=!1,mW(k3t,"BoxLayoutProvider/1",973),fBt(157,1,{157:1},Het,HO),AKt.Ib=function(){return this.c?qRt(this.c):Mxt(this.b)},mW(k3t,"BoxLayoutProvider/Group",157),fBt(311,22,{3:1,35:1,22:1,311:1},YS);var nIe,iIe=$nt(k3t,"BoxLayoutProvider/PackingMode",311,Ute,x3,fz);fBt(974,1,AZt,Gs),AKt.ue=function(t,e){return LX(jz(t,157),jz(e,157))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(k3t,"BoxLayoutProvider/lambda$0$Type",974),fBt(975,1,AZt,Ws),AKt.ue=function(t,e){return iX(jz(t,157),jz(e,157))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(k3t,"BoxLayoutProvider/lambda$1$Type",975),fBt(976,1,AZt,Ks),AKt.ue=function(t,e){return rX(jz(t,157),jz(e,157))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(k3t,"BoxLayoutProvider/lambda$2$Type",976),fBt(1365,1,{831:1},Ys),AKt.qg=function(t,e){return Dx(),!iP(e,160)||AC((Pst(),jz(t,160)),e)},mW(k3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1365),fBt(1366,1,hYt,xm),AKt.td=function(t){Zlt(this.a,jz(t,146))},mW(k3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1366),fBt(1367,1,hYt,qs),AKt.td=function(t){jz(t,94),Dx()},mW(k3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1367),fBt(1371,1,hYt,Em),AKt.td=function(t){Drt(this.a,jz(t,94))},mW(k3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1371),fBt(1369,1,OYt,XS),AKt.Mb=function(t){return Kct(this.a,this.b,jz(t,146))},mW(k3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1369),fBt(1368,1,OYt,ZS),AKt.Mb=function(t){return IO(this.a,this.b,jz(t,831))},mW(k3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1368),fBt(1370,1,hYt,QS),AKt.td=function(t){FU(this.a,this.b,jz(t,146))},mW(k3t,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1370),fBt(935,1,{},Vs),AKt.Kb=function(t){return wB(t)},AKt.Fb=function(t){return this===t},mW(k3t,"ElkUtil/lambda$0$Type",935),fBt(936,1,hYt,JS),AKt.td=function(t){iIt(this.a,this.b,jz(t,79))},AKt.a=0,AKt.b=0,mW(k3t,"ElkUtil/lambda$1$Type",936),fBt(937,1,hYt,tD),AKt.td=function(t){yv(this.a,this.b,jz(t,202))},AKt.a=0,AKt.b=0,mW(k3t,"ElkUtil/lambda$2$Type",937),fBt(938,1,hYt,eD),AKt.td=function(t){JB(this.a,this.b,jz(t,137))},AKt.a=0,AKt.b=0,mW(k3t,"ElkUtil/lambda$3$Type",938),fBt(939,1,hYt,Tm),AKt.td=function(t){iH(this.a,jz(t,469))},mW(k3t,"ElkUtil/lambda$4$Type",939),fBt(342,1,{35:1,342:1},Ib),AKt.wd=function(t){return mP(this,jz(t,236))},AKt.Fb=function(t){var e;return!!iP(t,342)&&(e=jz(t,342),this.a==e.a)},AKt.Hb=function(){return EQ(this.a)},AKt.Ib=function(){return this.a+" (exclusive)"},AKt.a=0,mW(k3t,"ExclusiveBounds/ExclusiveLowerBound",342),fBt(1138,209,PQt,Hs),AKt.Ze=function(t,e){var n,r,o,a,s,c,l,h,d,f,g,p,m,b,w,k,v,y,_,C,A;for(DAt(e,"Fixed Layout",1),a=jz(QBt(t,(cKt(),mEe)),218),f=0,g=0,w=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));w.e!=w.i.gc();){for(m=jz(vbt(w),33),(A=jz(QBt(m,(Glt(),gSe)),8))&&(AB(m,A.a,A.b),jz(QBt(m,lSe),174).Hc((wpt(),LDe))&&(p=jz(QBt(m,hSe),8)).a>0&&p.b>0&&RGt(m,p.a,p.b,!0,!0)),f=i.Math.max(f,m.i+m.g),g=i.Math.max(g,m.j+m.f),h=new DP((!m.n&&(m.n=new tG(VIe,m,1,7)),m.n));h.e!=h.i.gc();)c=jz(vbt(h),137),(A=jz(QBt(c,gSe),8))&&AB(c,A.a,A.b),f=i.Math.max(f,m.i+c.i+c.g),g=i.Math.max(g,m.j+c.j+c.f);for(y=new DP((!m.c&&(m.c=new tG(qIe,m,9,9)),m.c));y.e!=y.i.gc();)for(v=jz(vbt(y),118),(A=jz(QBt(v,gSe),8))&&AB(v,A.a,A.b),_=m.i+v.i,C=m.j+v.j,f=i.Math.max(f,_+v.g),g=i.Math.max(g,C+v.f),l=new DP((!v.n&&(v.n=new tG(VIe,v,1,7)),v.n));l.e!=l.i.gc();)c=jz(vbt(l),137),(A=jz(QBt(c,gSe),8))&&AB(c,A.a,A.b),f=i.Math.max(f,_+c.i+c.g),g=i.Math.max(g,C+c.j+c.f);for(o=new aU(ZP(gPt(m).a.Kc(),new u));gBt(o);)d=FGt(n=jz(q4(o),79)),f=i.Math.max(f,d.a),g=i.Math.max(g,d.b);for(r=new aU(ZP(fPt(m).a.Kc(),new u));gBt(r);)XQ(Ext(n=jz(q4(r),79)))!=t&&(d=FGt(n),f=i.Math.max(f,d.a),g=i.Math.max(g,d.b))}if(a==(Aft(),KTe))for(b=new DP((!t.a&&(t.a=new tG(HIe,t,10,11)),t.a));b.e!=b.i.gc();)for(r=new aU(ZP(gPt(m=jz(vbt(b),33)).a.Kc(),new u));gBt(r);)0==(s=i$t(n=jz(q4(r),79))).b?Xbt(n,SEe,null):Xbt(n,SEe,s);zv(_N(QBt(t,(Glt(),uSe))))||RGt(t,f+(k=jz(QBt(t,dSe),116)).b+k.c,g+k.d+k.a,!0,!0),zEt(e)},mW(k3t,"FixedLayoutProvider",1138),fBt(373,134,{3:1,414:1,373:1,94:1,134:1},Qs,ntt),AKt.Jf=function(t){var e,n,i,r,o,a,s;if(t)try{for(a=vFt(t,";,;"),r=0,o=(i=a).length;r<o;++r){if(e=vFt(i[r],"\\:"),!(n=mqt(rit(),e[0])))throw $b(new Rv("Invalid option id: "+e[0]));if(null==(s=QHt(n,e[1])))throw $b(new Rv("Invalid option value: "+e[1]));null==s?(!this.q&&(this.q=new Pb),m6(this.q,n)):(!this.q&&(this.q=new Pb),WK(this.q,n,s))}}catch(t){throw iP(t=hst(t),102)?$b(new jlt(t)):$b(t)}},AKt.Ib=function(){return AN(x5(IY((this.q?this.q:(AX(),AX(),lne)).vc().Oc(),new Js),P9(new Yz,new J,new K,new Y,Est(Vy(Qne,1),BYt,132,0,[]))))};var rIe,oIe,aIe,sIe,cIe=mW(k3t,"IndividualSpacings",373);fBt(971,1,{},Js),AKt.Kb=function(t){return OX(jz(t,42))},mW(k3t,"IndividualSpacings/lambda$0$Type",971),fBt(709,1,{},sq),AKt.c=0,mW(k3t,"InstancePool",709),fBt(1275,1,{},tc),mW(k3t,"LoggedGraph",1275),fBt(396,22,{3:1,35:1,22:1,396:1},iD);var lIe,uIe,hIe,dIe=$nt(k3t,"LoggedGraph/Type",396,Ute,E3,gz);fBt(46,1,{20:1,46:1},nD),AKt.Jc=function(t){t4(this,t)},AKt.Fb=function(t){var e,n,i;return!!iP(t,46)&&(n=jz(t,46),e=null==this.a?null==n.a:Pht(this.a,n.a),i=null==this.b?null==n.b:Pht(this.b,n.b),e&&i)},AKt.Hb=function(){var t,e,n;return t=-65536&(e=null==this.a?0:Jct(this.a)),e&YYt^(-65536&(n=null==this.b?0:Jct(this.b)))>>16&YYt|t^(n&YYt)<<16},AKt.Kc=function(){return new Sm(this)},AKt.Ib=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+$ft(this.b)+")":null==this.b?"pair("+$ft(this.a)+",null)":"pair("+$ft(this.a)+","+$ft(this.b)+")"},mW(k3t,"Pair",46),fBt(983,1,YKt,Sm),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},AKt.Pb=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw $b(new ww)},AKt.Qb=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),$b(new fw)},AKt.b=!1,AKt.c=!1,mW(k3t,"Pair/1",983),fBt(448,1,{448:1},WY),AKt.Fb=function(t){return iY(this.a,jz(t,448).a)&&iY(this.c,jz(t,448).c)&&iY(this.d,jz(t,448).d)&&iY(this.b,jz(t,448).b)},AKt.Hb=function(){return uut(Est(Vy(Ite,1),zKt,1,5,[this.a,this.c,this.d,this.b]))},AKt.Ib=function(){return"("+this.a+jKt+this.c+jKt+this.d+jKt+this.b+")"},mW(k3t,"Quadruple",448),fBt(1126,209,PQt,ec),AKt.Ze=function(t,e){var n;DAt(e,"Random Layout",1),0!=(!t.a&&(t.a=new tG(HIe,t,10,11)),t.a).i?(nGt(t,(n=jz(QBt(t,(bpt(),MDe)),19))&&0!=n.a?new E5(n.a):new cft,Hv(CN(QBt(t,DDe))),Hv(CN(QBt(t,PDe))),jz(QBt(t,IDe),116)),zEt(e)):zEt(e)},mW(k3t,"RandomLayoutProvider",1126),fBt(553,1,{}),AKt.qf=function(){return new PS(this.f.i,this.f.j)},AKt.We=function(t){return yZ(t,(cKt(),rTe))?QBt(this.f,hIe):QBt(this.f,t)},AKt.rf=function(){return new PS(this.f.g,this.f.f)},AKt.sf=function(){return this.g},AKt.Xe=function(t){return x7(this.f,t)},AKt.tf=function(t){Ent(this.f,t.a),Tnt(this.f,t.b)},AKt.uf=function(t){xnt(this.f,t.a),Ant(this.f,t.b)},AKt.vf=function(t){this.g=t},AKt.g=0,mW(z4t,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),fBt(554,1,{839:1},Dm),AKt.wf=function(){var t,e;if(!this.b)for(this.b=E2(bY(this.a).i),e=new DP(bY(this.a));e.e!=e.i.gc();)t=jz(vbt(e),137),Gz(this.b,new Ov(t));return this.b},AKt.b=null,mW(z4t,"ElkGraphAdapters/ElkEdgeAdapter",554),fBt(301,553,{},Lv),AKt.xf=function(){return evt(this)},AKt.a=null,mW(z4t,"ElkGraphAdapters/ElkGraphAdapter",301),fBt(630,553,{181:1},Ov),mW(z4t,"ElkGraphAdapters/ElkLabelAdapter",630),fBt(629,553,{680:1},XL),AKt.wf=function(){return Jkt(this)},AKt.Af=function(){var t;return!(t=jz(QBt(this.f,(cKt(),IEe)),142))&&(t=new uk),t},AKt.Cf=function(){return tvt(this)},AKt.Ef=function(t){var e;e=new Dj(t),Xbt(this.f,(cKt(),IEe),e)},AKt.Ff=function(t){Xbt(this.f,(cKt(),UEe),new Sj(t))},AKt.yf=function(){return this.d},AKt.zf=function(){var t,e;if(!this.a)for(this.a=new Mb,e=new aU(ZP(fPt(jz(this.f,33)).a.Kc(),new u));gBt(e);)t=jz(q4(e),79),Gz(this.a,new Dm(t));return this.a},AKt.Bf=function(){var t,e;if(!this.c)for(this.c=new Mb,e=new aU(ZP(gPt(jz(this.f,33)).a.Kc(),new u));gBt(e);)t=jz(q4(e),79),Gz(this.c,new Dm(t));return this.c},AKt.Df=function(){return 0!=YX(jz(this.f,33)).i||zv(_N(jz(this.f,33).We((cKt(),AEe))))},AKt.Gf=function(){R9(this,(Vx(),uIe))},AKt.a=null,AKt.b=null,AKt.c=null,AKt.d=null,AKt.e=null,mW(z4t,"ElkGraphAdapters/ElkNodeAdapter",629),fBt(1266,553,{838:1},ab),AKt.wf=function(){return vvt(this)},AKt.zf=function(){var t,e;if(!this.a)for(this.a=sO(jz(this.f,118).xg().i),e=new DP(jz(this.f,118).xg());e.e!=e.i.gc();)t=jz(vbt(e),79),Gz(this.a,new Dm(t));return this.a},AKt.Bf=function(){var t,e;if(!this.c)for(this.c=sO(jz(this.f,118).yg().i),e=new DP(jz(this.f,118).yg());e.e!=e.i.gc();)t=jz(vbt(e),79),Gz(this.c,new Dm(t));return this.c},AKt.Hf=function(){return jz(jz(this.f,118).We((cKt(),dTe)),61)},AKt.If=function(){var t,e,n,i,r,o,a;for(i=GQ(jz(this.f,118)),n=new DP(jz(this.f,118).yg());n.e!=n.i.gc();)for(a=new DP((!(t=jz(vbt(n),79)).c&&(t.c=new cF(OIe,t,5,8)),t.c));a.e!=a.i.gc();){if(Tet(EAt(o=jz(vbt(a),82)),i))return!0;if(EAt(o)==i&&zv(_N(QBt(t,(cKt(),xEe)))))return!0}for(e=new DP(jz(this.f,118).xg());e.e!=e.i.gc();)for(r=new DP((!(t=jz(vbt(e),79)).b&&(t.b=new cF(OIe,t,4,7)),t.b));r.e!=r.i.gc();)if(Tet(EAt(jz(vbt(r),82)),i))return!0;return!1},AKt.a=null,AKt.b=null,AKt.c=null,mW(z4t,"ElkGraphAdapters/ElkPortAdapter",1266),fBt(1267,1,AZt,nc),AKt.ue=function(t,e){return HRt(jz(t,118),jz(e,118))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(z4t,"ElkGraphAdapters/PortComparator",1267);var fIe,gIe,pIe,mIe,bIe,wIe,kIe,vIe,yIe,_Ie,CIe,AIe,xIe,EIe,TIe,SIe,DIe,IIe=hH(V4t,"EObject"),BIe=hH(H4t,q4t),MIe=hH(H4t,U4t),PIe=hH(H4t,G4t),LIe=hH(H4t,"ElkShape"),OIe=hH(H4t,W4t),NIe=hH(H4t,K4t),RIe=hH(H4t,Y4t),FIe=hH(V4t,X4t),jIe=hH(V4t,"EFactory"),$Ie=hH(V4t,Z4t),zIe=hH(V4t,"EPackage"),VIe=hH(H4t,Q4t),HIe=hH(H4t,J4t),qIe=hH(H4t,t6t);fBt(90,1,e6t),AKt.Jg=function(){return this.Kg(),null},AKt.Kg=function(){return null},AKt.Lg=function(){return this.Kg(),!1},AKt.Mg=function(){return!1},AKt.Ng=function(t){dat(this,t)},mW(n6t,"BasicNotifierImpl",90),fBt(97,90,u6t),AKt.nh=function(){return bB(this)},AKt.Og=function(t,e){return t},AKt.Pg=function(){throw $b(new pw)},AKt.Qg=function(t){var e;return e=Twt(jz(eet(this.Tg(),this.Vg()),18)),this.eh().ih(this,e.n,e.f,t)},AKt.Rg=function(t,e){throw $b(new pw)},AKt.Sg=function(t,e,n){return Cjt(this,t,e,n)},AKt.Tg=function(){var t;return this.Pg()&&(t=this.Pg().ck())?t:this.zh()},AKt.Ug=function(){return rBt(this)},AKt.Vg=function(){throw $b(new pw)},AKt.Wg=function(){var t,e;return!(e=this.ph().dk())&&this.Pg().ik((Kx(),e=null==(t=uQ(V$t(this.Tg())))?BMe:new KL(this,t))),e},AKt.Xg=function(t,e){return t},AKt.Yg=function(t){return t.Gj()?t.aj():Igt(this.Tg(),t)},AKt.Zg=function(){var t;return(t=this.Pg())?t.fk():null},AKt.$g=function(){return this.Pg()?this.Pg().ck():null},AKt._g=function(t,e,n){return Qbt(this,t,e,n)},AKt.ah=function(t){return A8(this,t)},AKt.bh=function(t,e){return W4(this,t,e)},AKt.dh=function(){var t;return!!(t=this.Pg())&&t.gk()},AKt.eh=function(){throw $b(new pw)},AKt.fh=function(){return Xpt(this)},AKt.gh=function(t,e,n,i){return Pbt(this,t,e,i)},AKt.hh=function(t,e,n){return jz(eet(this.Tg(),e),66).Nj().Qj(this,this.yh(),e-this.Ah(),t,n)},AKt.ih=function(t,e,n,i){return aQ(this,t,e,i)},AKt.jh=function(t,e,n){return jz(eet(this.Tg(),e),66).Nj().Rj(this,this.yh(),e-this.Ah(),t,n)},AKt.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},AKt.lh=function(t){return bbt(this,t)},AKt.mh=function(t){return ZQ(this,t)},AKt.oh=function(t){return FHt(this,t)},AKt.ph=function(){throw $b(new pw)},AKt.qh=function(){return this.Pg()?this.Pg().ek():null},AKt.rh=function(){return Xpt(this)},AKt.sh=function(t,e){kSt(this,t,e)},AKt.th=function(t){this.ph().hk(t)},AKt.uh=function(t){this.ph().kk(t)},AKt.vh=function(t){this.ph().jk(t)},AKt.wh=function(t,e){var n,i,r,o;return(o=this.Zg())&&t&&(e=Fbt(o.Vk(),this,e),o.Zk(this)),(i=this.eh())&&(pFt(this,this.eh(),this.Vg()).Bb&$Xt?(r=i.fh())&&(t?!o&&r.Zk(this):r.Yk(this)):(e=(n=this.Vg())>=0?this.Qg(e):this.eh().ih(this,-1-n,null,e),e=this.Sg(null,-1,e))),this.uh(t),e},AKt.xh=function(t){var e,n,i,r,o,a,s;if((o=Igt(n=this.Tg(),t))>=(e=this.Ah()))return jz(t,66).Nj().Uj(this,this.yh(),o-e);if(o<=-1){if(!(a=jHt((STt(),XMe),n,t)))throw $b(new Rv(i6t+t.ne()+a6t));if(Zx(),jz(a,66).Oj()||(a=Z1(j9(XMe,a))),r=jz((i=this.Yg(a))>=0?this._g(i,!0,!0):rIt(this,a,!0),153),(s=a.Zj())>1||-1==s)return jz(jz(r,215).hl(t,!1),76)}else if(t.$j())return jz((i=this.Yg(t))>=0?this._g(i,!1,!0):rIt(this,t,!1),76);return new TD(this,t)},AKt.yh=function(){return K9(this)},AKt.zh=function(){return(KW(),QBe).S},AKt.Ah=function(){return hW(this.zh())},AKt.Bh=function(t){wTt(this,t)},AKt.Ib=function(){return EMt(this)},mW(h6t,"BasicEObjectImpl",97),fBt(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),AKt.Ch=function(t){return Y9(this)[t]},AKt.Dh=function(t,e){IW(Y9(this),t,e)},AKt.Eh=function(t){IW(Y9(this),t,null)},AKt.Jg=function(){return jz(kat(this,4),126)},AKt.Kg=function(){throw $b(new pw)},AKt.Lg=function(){return!!(4&this.Db)},AKt.Pg=function(){throw $b(new pw)},AKt.Fh=function(t){lmt(this,2,t)},AKt.Rg=function(t,e){this.Db=e<<16|255&this.Db,this.Fh(t)},AKt.Tg=function(){return vZ(this)},AKt.Vg=function(){return this.Db>>16},AKt.Wg=function(){var t;return Kx(),null==(t=uQ(V$t(jz(kat(this,16),26)||this.zh())))?BMe:new KL(this,t)},AKt.Mg=function(){return!(1&this.Db)},AKt.Zg=function(){return jz(kat(this,128),1935)},AKt.$g=function(){return jz(kat(this,16),26)},AKt.dh=function(){return!!(32&this.Db)},AKt.eh=function(){return jz(kat(this,2),49)},AKt.kh=function(){return!!(64&this.Db)},AKt.ph=function(){throw $b(new pw)},AKt.qh=function(){return jz(kat(this,64),281)},AKt.th=function(t){lmt(this,16,t)},AKt.uh=function(t){lmt(this,128,t)},AKt.vh=function(t){lmt(this,64,t)},AKt.yh=function(){return umt(this)},AKt.Db=0,mW(h6t,"MinimalEObjectImpl",114),fBt(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),AKt.Fh=function(t){this.Cb=t},AKt.eh=function(){return this.Cb},mW(h6t,"MinimalEObjectImpl/Container",115),fBt(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),AKt._g=function(t,e,n){return _vt(this,t,e,n)},AKt.jh=function(t,e,n){return eEt(this,t,e,n)},AKt.lh=function(t){return b0(this,t)},AKt.sh=function(t,e){ilt(this,t,e)},AKt.zh=function(){return TWt(),xIe},AKt.Bh=function(t){qst(this,t)},AKt.Ve=function(){return hbt(this)},AKt.We=function(t){return QBt(this,t)},AKt.Xe=function(t){return x7(this,t)},AKt.Ye=function(t,e){return Xbt(this,t,e)},mW(d6t,"EMapPropertyHolderImpl",1985),fBt(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},oc),AKt._g=function(t,e,n){switch(t){case 0:return this.a;case 1:return this.b}return Qbt(this,t,e,n)},AKt.lh=function(t){switch(t){case 0:return 0!=this.a;case 1:return 0!=this.b}return bbt(this,t)},AKt.sh=function(t,e){switch(t){case 0:return void ynt(this,Vv(CN(e)));case 1:return void _nt(this,Vv(CN(e)))}kSt(this,t,e)},AKt.zh=function(){return TWt(),pIe},AKt.Bh=function(t){switch(t){case 0:return void ynt(this,0);case 1:return void _nt(this,0)}wTt(this,t)},AKt.Ib=function(){var t;return 64&this.Db?EMt(this):((t=new lL(EMt(this))).a+=" (x: ",mC(t,this.a),t.a+=", y: ",mC(t,this.b),t.a+=")",t.a)},AKt.a=0,AKt.b=0,mW(d6t,"ElkBendPointImpl",567),fBt(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),AKt._g=function(t,e,n){return Fht(this,t,e,n)},AKt.hh=function(t,e,n){return jAt(this,t,e,n)},AKt.jh=function(t,e,n){return ist(this,t,e,n)},AKt.lh=function(t){return _at(this,t)},AKt.sh=function(t,e){H_t(this,t,e)},AKt.zh=function(){return TWt(),kIe},AKt.Bh=function(t){sht(this,t)},AKt.zg=function(){return this.k},AKt.Ag=function(){return bY(this)},AKt.Ib=function(){return Xdt(this)},AKt.k=null,mW(d6t,"ElkGraphElementImpl",723),fBt(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),AKt._g=function(t,e,n){return Nft(this,t,e,n)},AKt.lh=function(t){return ugt(this,t)},AKt.sh=function(t,e){q_t(this,t,e)},AKt.zh=function(){return TWt(),AIe},AKt.Bh=function(t){Ogt(this,t)},AKt.Bg=function(){return this.f},AKt.Cg=function(){return this.g},AKt.Dg=function(){return this.i},AKt.Eg=function(){return this.j},AKt.Fg=function(t,e){CB(this,t,e)},AKt.Gg=function(t,e){AB(this,t,e)},AKt.Hg=function(t){Ent(this,t)},AKt.Ig=function(t){Tnt(this,t)},AKt.Ib=function(){return wEt(this)},AKt.f=0,AKt.g=0,AKt.i=0,AKt.j=0,mW(d6t,"ElkShapeImpl",724),fBt(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),AKt._g=function(t,e,n){return zwt(this,t,e,n)},AKt.hh=function(t,e,n){return g_t(this,t,e,n)},AKt.jh=function(t,e,n){return p_t(this,t,e,n)},AKt.lh=function(t){return Hct(this,t)},AKt.sh=function(t,e){MBt(this,t,e)},AKt.zh=function(){return TWt(),mIe},AKt.Bh=function(t){Lbt(this,t)},AKt.xg=function(){return!this.d&&(this.d=new cF(NIe,this,8,5)),this.d},AKt.yg=function(){return!this.e&&(this.e=new cF(NIe,this,7,4)),this.e},mW(d6t,"ElkConnectableShapeImpl",725),fBt(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},rc),AKt.Qg=function(t){return Ayt(this,t)},AKt._g=function(t,e,n){switch(t){case 3:return UQ(this);case 4:return!this.b&&(this.b=new cF(OIe,this,4,7)),this.b;case 5:return!this.c&&(this.c=new cF(OIe,this,5,8)),this.c;case 6:return!this.a&&(this.a=new tG(RIe,this,6,6)),this.a;case 7:return cL(),!this.b&&(this.b=new cF(OIe,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new cF(OIe,this,5,8)),this.c.i<=1));case 8:return cL(),!!JIt(this);case 9:return cL(),!!YDt(this);case 10:return cL(),!this.b&&(this.b=new cF(OIe,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new cF(OIe,this,5,8)),0!=this.c.i)}return Fht(this,t,e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 3:return this.Cb&&(n=(i=this.Db>>16)>=0?Ayt(this,n):this.Cb.ih(this,-1-i,null,n)),WN(this,jz(t,33),n);case 4:return!this.b&&(this.b=new cF(OIe,this,4,7)),Xgt(this.b,t,n);case 5:return!this.c&&(this.c=new cF(OIe,this,5,8)),Xgt(this.c,t,n);case 6:return!this.a&&(this.a=new tG(RIe,this,6,6)),Xgt(this.a,t,n)}return jAt(this,t,e,n)},AKt.jh=function(t,e,n){switch(e){case 3:return WN(this,null,n);case 4:return!this.b&&(this.b=new cF(OIe,this,4,7)),Fbt(this.b,t,n);case 5:return!this.c&&(this.c=new cF(OIe,this,5,8)),Fbt(this.c,t,n);case 6:return!this.a&&(this.a=new tG(RIe,this,6,6)),Fbt(this.a,t,n)}return ist(this,t,e,n)},AKt.lh=function(t){switch(t){case 3:return!!UQ(this);case 4:return!!this.b&&0!=this.b.i;case 5:return!!this.c&&0!=this.c.i;case 6:return!!this.a&&0!=this.a.i;case 7:return!this.b&&(this.b=new cF(OIe,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new cF(OIe,this,5,8)),this.c.i<=1));case 8:return JIt(this);case 9:return YDt(this);case 10:return!this.b&&(this.b=new cF(OIe,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new cF(OIe,this,5,8)),0!=this.c.i)}return _at(this,t)},AKt.sh=function(t,e){switch(t){case 3:return void zPt(this,jz(e,33));case 4:return!this.b&&(this.b=new cF(OIe,this,4,7)),cHt(this.b),!this.b&&(this.b=new cF(OIe,this,4,7)),void pW(this.b,jz(e,14));case 5:return!this.c&&(this.c=new cF(OIe,this,5,8)),cHt(this.c),!this.c&&(this.c=new cF(OIe,this,5,8)),void pW(this.c,jz(e,14));case 6:return!this.a&&(this.a=new tG(RIe,this,6,6)),cHt(this.a),!this.a&&(this.a=new tG(RIe,this,6,6)),void pW(this.a,jz(e,14))}H_t(this,t,e)},AKt.zh=function(){return TWt(),bIe},AKt.Bh=function(t){switch(t){case 3:return void zPt(this,null);case 4:return!this.b&&(this.b=new cF(OIe,this,4,7)),void cHt(this.b);case 5:return!this.c&&(this.c=new cF(OIe,this,5,8)),void cHt(this.c);case 6:return!this.a&&(this.a=new tG(RIe,this,6,6)),void cHt(this.a)}sht(this,t)},AKt.Ib=function(){return hVt(this)},mW(d6t,"ElkEdgeImpl",352),fBt(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},ac),AKt.Qg=function(t){return cyt(this,t)},AKt._g=function(t,e,n){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new IP(MIe,this,5)),this.a;case 6:return WQ(this);case 7:return e?Ewt(this):this.i;case 8:return e?xwt(this):this.f;case 9:return!this.g&&(this.g=new cF(RIe,this,9,10)),this.g;case 10:return!this.e&&(this.e=new cF(RIe,this,10,9)),this.e;case 11:return this.d}return _vt(this,t,e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?cyt(this,n):this.Cb.ih(this,-1-i,null,n)),KN(this,jz(t,79),n);case 9:return!this.g&&(this.g=new cF(RIe,this,9,10)),Xgt(this.g,t,n);case 10:return!this.e&&(this.e=new cF(RIe,this,10,9)),Xgt(this.e,t,n)}return jz(eet(jz(kat(this,16),26)||(TWt(),wIe),e),66).Nj().Qj(this,umt(this),e-hW((TWt(),wIe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 5:return!this.a&&(this.a=new IP(MIe,this,5)),Fbt(this.a,t,n);case 6:return KN(this,null,n);case 9:return!this.g&&(this.g=new cF(RIe,this,9,10)),Fbt(this.g,t,n);case 10:return!this.e&&(this.e=new cF(RIe,this,10,9)),Fbt(this.e,t,n)}return eEt(this,t,e,n)},AKt.lh=function(t){switch(t){case 1:return 0!=this.j;case 2:return 0!=this.k;case 3:return 0!=this.b;case 4:return 0!=this.c;case 5:return!!this.a&&0!=this.a.i;case 6:return!!WQ(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&0!=this.g.i;case 10:return!!this.e&&0!=this.e.i;case 11:return null!=this.d}return b0(this,t)},AKt.sh=function(t,e){switch(t){case 1:return void Snt(this,Vv(CN(e)));case 2:return void Int(this,Vv(CN(e)));case 3:return void Cnt(this,Vv(CN(e)));case 4:return void Dnt(this,Vv(CN(e)));case 5:return!this.a&&(this.a=new IP(MIe,this,5)),cHt(this.a),!this.a&&(this.a=new IP(MIe,this,5)),void pW(this.a,jz(e,14));case 6:return void jPt(this,jz(e,79));case 7:return void Pit(this,jz(e,82));case 8:return void Mit(this,jz(e,82));case 9:return!this.g&&(this.g=new cF(RIe,this,9,10)),cHt(this.g),!this.g&&(this.g=new cF(RIe,this,9,10)),void pW(this.g,jz(e,14));case 10:return!this.e&&(this.e=new cF(RIe,this,10,9)),cHt(this.e),!this.e&&(this.e=new cF(RIe,this,10,9)),void pW(this.e,jz(e,14));case 11:return void rrt(this,AN(e))}ilt(this,t,e)},AKt.zh=function(){return TWt(),wIe},AKt.Bh=function(t){switch(t){case 1:return void Snt(this,0);case 2:return void Int(this,0);case 3:return void Cnt(this,0);case 4:return void Dnt(this,0);case 5:return!this.a&&(this.a=new IP(MIe,this,5)),void cHt(this.a);case 6:return void jPt(this,null);case 7:return void Pit(this,null);case 8:return void Mit(this,null);case 9:return!this.g&&(this.g=new cF(RIe,this,9,10)),void cHt(this.g);case 10:return!this.e&&(this.e=new cF(RIe,this,10,9)),void cHt(this.e);case 11:return void rrt(this,null)}qst(this,t)},AKt.Ib=function(){return NIt(this)},AKt.b=0,AKt.c=0,AKt.d=null,AKt.j=0,AKt.k=0,mW(d6t,"ElkEdgeSectionImpl",439),fBt(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),AKt._g=function(t,e,n){return 0==t?(!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab):q8(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e,n)},AKt.hh=function(t,e,n){return 0==e?(!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n)):jz(eet(jz(kat(this,16),26)||this.zh(),e),66).Nj().Qj(this,umt(this),e-hW(this.zh()),t,n)},AKt.jh=function(t,e,n){return 0==e?(!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n)):jz(eet(jz(kat(this,16),26)||this.zh(),e),66).Nj().Rj(this,umt(this),e-hW(this.zh()),t,n)},AKt.lh=function(t){return 0==t?!!this.Ab&&0!=this.Ab.i:S3(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.oh=function(t){return lGt(this,t)},AKt.sh=function(t,e){if(0===t)return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));Mft(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e)},AKt.uh=function(t){lmt(this,128,t)},AKt.zh=function(){return pKt(),uMe},AKt.Bh=function(t){if(0===t)return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);Vht(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.Gh=function(){this.Bb|=1},AKt.Hh=function(t){return Pjt(this,t)},AKt.Bb=0,mW(h6t,"EModelElementImpl",150),fBt(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},Lh),AKt.Ih=function(t,e){return Vqt(this,t,e)},AKt.Jh=function(t){var e,n,i,r;if(this.a!=Uet(t)||256&t.Bb)throw $b(new Rv(w6t+t.zb+p6t));for(n=kZ(t);0!=r5(n.a).i;){if(nvt(e=jz(eqt(n,0,iP(r=jz(Wet(r5(n.a),0),87).c,88)?jz(r,26):(pKt(),dMe)),26)))return jz(i=Uet(e).Nh().Jh(e),49).th(t),i;n=kZ(e)}return"java.util.Map$Entry"==(null!=t.D?t.D:t.B)?new lH(t):new vV(t)},AKt.Kh=function(t,e){return LWt(this,t,e)},AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.a}return q8(this,t-hW((pKt(),sMe)),eet(jz(kat(this,16),26)||sMe,t),e,n)},AKt.hh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 1:return this.a&&(n=jz(this.a,49).ih(this,4,zIe,n)),Zut(this,jz(t,235),n)}return jz(eet(jz(kat(this,16),26)||(pKt(),sMe),e),66).Nj().Qj(this,umt(this),e-hW((pKt(),sMe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 1:return Zut(this,null,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),sMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),sMe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return!!this.a}return S3(this,t-hW((pKt(),sMe)),eet(jz(kat(this,16),26)||sMe,t))},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void Lxt(this,jz(e,235))}Mft(this,t-hW((pKt(),sMe)),eet(jz(kat(this,16),26)||sMe,t),e)},AKt.zh=function(){return pKt(),sMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return void Lxt(this,null)}Vht(this,t-hW((pKt(),sMe)),eet(jz(kat(this,16),26)||sMe,t))},mW(h6t,"EFactoryImpl",704),fBt(v6t,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},sc),AKt.Ih=function(t,e){switch(t.yj()){case 12:return jz(e,146).tg();case 13:return $ft(e);default:throw $b(new Rv(g6t+t.ne()+p6t))}},AKt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=Uet(t))?awt(e.Mh(),t):-1),t.G){case 4:return new cc;case 6:return new vk;case 7:return new yk;case 8:return new rc;case 9:return new oc;case 10:return new ac;case 11:return new uc;default:throw $b(new Rv(w6t+t.zb+p6t))}},AKt.Kh=function(t,e){switch(t.yj()){case 13:case 12:return null;default:throw $b(new Rv(g6t+t.ne()+p6t))}},mW(d6t,"ElkGraphFactoryImpl",v6t),fBt(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),AKt.Wg=function(){var t;return null==(t=uQ(V$t(jz(kat(this,16),26)||this.zh())))?(Kx(),Kx(),BMe):new GO(this,t)},AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.ne()}return q8(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb}return S3(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void this.Lh(AN(e))}Mft(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e)},AKt.zh=function(){return pKt(),hMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return void this.Lh(null)}Vht(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.ne=function(){return this.zb},AKt.Lh=function(t){Prt(this,t)},AKt.Ib=function(){return vht(this)},AKt.zb=null,mW(h6t,"ENamedElementImpl",438),fBt(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},mZ),AKt.Qg=function(t){return fyt(this,t)},AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new XU(this,jBe,this)),this.rb;case 6:return!this.vb&&(this.vb=new tF(zIe,this,6,7)),this.vb;case 7:return e?this.Db>>16==7?jz(this.Cb,235):null:KQ(this)}return q8(this,t-hW((pKt(),pMe)),eet(jz(kat(this,16),26)||pMe,t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 4:return this.sb&&(n=jz(this.sb,49).ih(this,1,jIe,n)),yht(this,jz(t,471),n);case 5:return!this.rb&&(this.rb=new XU(this,jBe,this)),Xgt(this.rb,t,n);case 6:return!this.vb&&(this.vb=new tF(zIe,this,6,7)),Xgt(this.vb,t,n);case 7:return this.Cb&&(n=(i=this.Db>>16)>=0?fyt(this,n):this.Cb.ih(this,-1-i,null,n)),Cjt(this,t,7,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),pMe),e),66).Nj().Qj(this,umt(this),e-hW((pKt(),pMe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 4:return yht(this,null,n);case 5:return!this.rb&&(this.rb=new XU(this,jBe,this)),Fbt(this.rb,t,n);case 6:return!this.vb&&(this.vb=new tF(zIe,this,6,7)),Fbt(this.vb,t,n);case 7:return Cjt(this,null,7,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),pMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),pMe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.yb;case 3:return null!=this.xb;case 4:return!!this.sb;case 5:return!!this.rb&&0!=this.rb.i;case 6:return!!this.vb&&0!=this.vb.i;case 7:return!!KQ(this)}return S3(this,t-hW((pKt(),pMe)),eet(jz(kat(this,16),26)||pMe,t))},AKt.oh=function(t){return MLt(this,t)||lGt(this,t)},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void Prt(this,AN(e));case 2:return void Ort(this,AN(e));case 3:return void Lrt(this,AN(e));case 4:return void nEt(this,jz(e,471));case 5:return!this.rb&&(this.rb=new XU(this,jBe,this)),cHt(this.rb),!this.rb&&(this.rb=new XU(this,jBe,this)),void pW(this.rb,jz(e,14));case 6:return!this.vb&&(this.vb=new tF(zIe,this,6,7)),cHt(this.vb),!this.vb&&(this.vb=new tF(zIe,this,6,7)),void pW(this.vb,jz(e,14))}Mft(this,t-hW((pKt(),pMe)),eet(jz(kat(this,16),26)||pMe,t),e)},AKt.vh=function(t){var e,n;if(t&&this.rb)for(n=new DP(this.rb);n.e!=n.i.gc();)iP(e=vbt(n),351)&&(jz(e,351).w=null);lmt(this,64,t)},AKt.zh=function(){return pKt(),pMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return void Prt(this,null);case 2:return void Ort(this,null);case 3:return void Lrt(this,null);case 4:return void nEt(this,null);case 5:return!this.rb&&(this.rb=new XU(this,jBe,this)),void cHt(this.rb);case 6:return!this.vb&&(this.vb=new tF(zIe,this,6,7)),void cHt(this.vb)}Vht(this,t-hW((pKt(),pMe)),eet(jz(kat(this,16),26)||pMe,t))},AKt.Gh=function(){Cvt(this)},AKt.Mh=function(){return!this.rb&&(this.rb=new XU(this,jBe,this)),this.rb},AKt.Nh=function(){return this.sb},AKt.Oh=function(){return this.ub},AKt.Ph=function(){return this.xb},AKt.Qh=function(){return this.yb},AKt.Rh=function(t){this.ub=t},AKt.Ib=function(){var t;return 64&this.Db?vht(this):((t=new lL(vht(this))).a+=" (nsURI: ",iI(t,this.yb),t.a+=", nsPrefix: ",iI(t,this.xb),t.a+=")",t.a)},AKt.xb=null,AKt.yb=null,mW(h6t,"EPackageImpl",179),fBt(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},cBt),AKt.q=!1,AKt.r=!1;var UIe=!1;mW(d6t,"ElkGraphPackageImpl",555),fBt(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},cc),AKt.Qg=function(t){return lyt(this,t)},AKt._g=function(t,e,n){switch(t){case 7:return YQ(this);case 8:return this.a}return Nft(this,t,e,n)},AKt.hh=function(t,e,n){var i;return 7===e?(this.Cb&&(n=(i=this.Db>>16)>=0?lyt(this,n):this.Cb.ih(this,-1-i,null,n)),Wq(this,jz(t,160),n)):jAt(this,t,e,n)},AKt.jh=function(t,e,n){return 7==e?Wq(this,null,n):ist(this,t,e,n)},AKt.lh=function(t){switch(t){case 7:return!!YQ(this);case 8:return!bF("",this.a)}return ugt(this,t)},AKt.sh=function(t,e){switch(t){case 7:return void SLt(this,jz(e,160));case 8:return void Lit(this,AN(e))}q_t(this,t,e)},AKt.zh=function(){return TWt(),vIe},AKt.Bh=function(t){switch(t){case 7:return void SLt(this,null);case 8:return void Lit(this,"")}Ogt(this,t)},AKt.Ib=function(){return rTt(this)},AKt.a="",mW(d6t,"ElkLabelImpl",354),fBt(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},vk),AKt.Qg=function(t){return xyt(this,t)},AKt._g=function(t,e,n){switch(t){case 9:return!this.c&&(this.c=new tG(qIe,this,9,9)),this.c;case 10:return!this.a&&(this.a=new tG(HIe,this,10,11)),this.a;case 11:return XQ(this);case 12:return!this.b&&(this.b=new tG(NIe,this,12,3)),this.b;case 13:return cL(),!this.a&&(this.a=new tG(HIe,this,10,11)),this.a.i>0}return zwt(this,t,e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 9:return!this.c&&(this.c=new tG(qIe,this,9,9)),Xgt(this.c,t,n);case 10:return!this.a&&(this.a=new tG(HIe,this,10,11)),Xgt(this.a,t,n);case 11:return this.Cb&&(n=(i=this.Db>>16)>=0?xyt(this,n):this.Cb.ih(this,-1-i,null,n)),HR(this,jz(t,33),n);case 12:return!this.b&&(this.b=new tG(NIe,this,12,3)),Xgt(this.b,t,n)}return g_t(this,t,e,n)},AKt.jh=function(t,e,n){switch(e){case 9:return!this.c&&(this.c=new tG(qIe,this,9,9)),Fbt(this.c,t,n);case 10:return!this.a&&(this.a=new tG(HIe,this,10,11)),Fbt(this.a,t,n);case 11:return HR(this,null,n);case 12:return!this.b&&(this.b=new tG(NIe,this,12,3)),Fbt(this.b,t,n)}return p_t(this,t,e,n)},AKt.lh=function(t){switch(t){case 9:return!!this.c&&0!=this.c.i;case 10:return!!this.a&&0!=this.a.i;case 11:return!!XQ(this);case 12:return!!this.b&&0!=this.b.i;case 13:return!this.a&&(this.a=new tG(HIe,this,10,11)),this.a.i>0}return Hct(this,t)},AKt.sh=function(t,e){switch(t){case 9:return!this.c&&(this.c=new tG(qIe,this,9,9)),cHt(this.c),!this.c&&(this.c=new tG(qIe,this,9,9)),void pW(this.c,jz(e,14));case 10:return!this.a&&(this.a=new tG(HIe,this,10,11)),cHt(this.a),!this.a&&(this.a=new tG(HIe,this,10,11)),void pW(this.a,jz(e,14));case 11:return void JPt(this,jz(e,33));case 12:return!this.b&&(this.b=new tG(NIe,this,12,3)),cHt(this.b),!this.b&&(this.b=new tG(NIe,this,12,3)),void pW(this.b,jz(e,14))}MBt(this,t,e)},AKt.zh=function(){return TWt(),yIe},AKt.Bh=function(t){switch(t){case 9:return!this.c&&(this.c=new tG(qIe,this,9,9)),void cHt(this.c);case 10:return!this.a&&(this.a=new tG(HIe,this,10,11)),void cHt(this.a);case 11:return void JPt(this,null);case 12:return!this.b&&(this.b=new tG(NIe,this,12,3)),void cHt(this.b)}Lbt(this,t)},AKt.Ib=function(){return qRt(this)},mW(d6t,"ElkNodeImpl",239),fBt(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},yk),AKt.Qg=function(t){return uyt(this,t)},AKt._g=function(t,e,n){return 9==t?GQ(this):zwt(this,t,e,n)},AKt.hh=function(t,e,n){var i;return 9===e?(this.Cb&&(n=(i=this.Db>>16)>=0?uyt(this,n):this.Cb.ih(this,-1-i,null,n)),YN(this,jz(t,33),n)):g_t(this,t,e,n)},AKt.jh=function(t,e,n){return 9==e?YN(this,null,n):p_t(this,t,e,n)},AKt.lh=function(t){return 9==t?!!GQ(this):Hct(this,t)},AKt.sh=function(t,e){9!==t?MBt(this,t,e):$Pt(this,jz(e,33))},AKt.zh=function(){return TWt(),_Ie},AKt.Bh=function(t){9!==t?Lbt(this,t):$Pt(this,null)},AKt.Ib=function(){return URt(this)},mW(d6t,"ElkPortImpl",186);var GIe=hH($6t,"BasicEMap/Entry");fBt(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},uc),AKt.Fb=function(t){return this===t},AKt.cd=function(){return this.b},AKt.Hb=function(){return xL(this)},AKt.Uh=function(t){Oit(this,jz(t,146))},AKt._g=function(t,e,n){switch(t){case 0:return this.b;case 1:return this.c}return Qbt(this,t,e,n)},AKt.lh=function(t){switch(t){case 0:return!!this.b;case 1:return null!=this.c}return bbt(this,t)},AKt.sh=function(t,e){switch(t){case 0:return void Oit(this,jz(e,146));case 1:return void Fit(this,e)}kSt(this,t,e)},AKt.zh=function(){return TWt(),CIe},AKt.Bh=function(t){switch(t){case 0:return void Oit(this,null);case 1:return void Fit(this,null)}wTt(this,t)},AKt.Sh=function(){var t;return-1==this.a&&(t=this.b,this.a=t?Jct(t):0),this.a},AKt.dd=function(){return this.c},AKt.Th=function(t){this.a=t},AKt.ed=function(t){var e;return e=this.c,Fit(this,t),e},AKt.Ib=function(){var t;return 64&this.Db?EMt(this):(aI(aI(aI(t=new Ey,this.b?this.b.tg():qKt),e1t),kL(this.c)),t.a)},AKt.a=-1,AKt.c=null;var WIe,KIe,YIe,XIe,ZIe,QIe,JIe,tBe,eBe=mW(d6t,"ElkPropertyToValueMapEntryImpl",1092);fBt(984,1,{},fc),mW(H6t,"JsonAdapter",984),fBt(210,60,$Yt,ty),mW(H6t,"JsonImportException",210),fBt(857,1,{},gyt),mW(H6t,"JsonImporter",857),fBt(891,1,{},rD),mW(H6t,"JsonImporter/lambda$0$Type",891),fBt(892,1,{},oD),mW(H6t,"JsonImporter/lambda$1$Type",892),fBt(900,1,{},Im),mW(H6t,"JsonImporter/lambda$10$Type",900),fBt(902,1,{},aD),mW(H6t,"JsonImporter/lambda$11$Type",902),fBt(903,1,{},sD),mW(H6t,"JsonImporter/lambda$12$Type",903),fBt(909,1,{},lX),mW(H6t,"JsonImporter/lambda$13$Type",909),fBt(908,1,{},cX),mW(H6t,"JsonImporter/lambda$14$Type",908),fBt(904,1,{},cD),mW(H6t,"JsonImporter/lambda$15$Type",904),fBt(905,1,{},lD),mW(H6t,"JsonImporter/lambda$16$Type",905),fBt(906,1,{},uD),mW(H6t,"JsonImporter/lambda$17$Type",906),fBt(907,1,{},hD),mW(H6t,"JsonImporter/lambda$18$Type",907),fBt(912,1,{},Bm),mW(H6t,"JsonImporter/lambda$19$Type",912),fBt(893,1,{},Mm),mW(H6t,"JsonImporter/lambda$2$Type",893),fBt(910,1,{},Pm),mW(H6t,"JsonImporter/lambda$20$Type",910),fBt(911,1,{},Lm),mW(H6t,"JsonImporter/lambda$21$Type",911),fBt(915,1,{},Om),mW(H6t,"JsonImporter/lambda$22$Type",915),fBt(913,1,{},Nm),mW(H6t,"JsonImporter/lambda$23$Type",913),fBt(914,1,{},Rm),mW(H6t,"JsonImporter/lambda$24$Type",914),fBt(917,1,{},Fm),mW(H6t,"JsonImporter/lambda$25$Type",917),fBt(916,1,{},jm),mW(H6t,"JsonImporter/lambda$26$Type",916),fBt(918,1,hYt,dD),AKt.td=function(t){y8(this.b,this.a,AN(t))},mW(H6t,"JsonImporter/lambda$27$Type",918),fBt(919,1,hYt,fD),AKt.td=function(t){_8(this.b,this.a,AN(t))},mW(H6t,"JsonImporter/lambda$28$Type",919),fBt(920,1,{},gD),mW(H6t,"JsonImporter/lambda$29$Type",920),fBt(896,1,{},$m),mW(H6t,"JsonImporter/lambda$3$Type",896),fBt(921,1,{},pD),mW(H6t,"JsonImporter/lambda$30$Type",921),fBt(922,1,{},zm),mW(H6t,"JsonImporter/lambda$31$Type",922),fBt(923,1,{},Vm),mW(H6t,"JsonImporter/lambda$32$Type",923),fBt(924,1,{},Hm),mW(H6t,"JsonImporter/lambda$33$Type",924),fBt(925,1,{},qm),mW(H6t,"JsonImporter/lambda$34$Type",925),fBt(859,1,{},Um),mW(H6t,"JsonImporter/lambda$35$Type",859),fBt(929,1,{},Cz),mW(H6t,"JsonImporter/lambda$36$Type",929),fBt(926,1,hYt,Gm),AKt.td=function(t){Y5(this.a,jz(t,469))},mW(H6t,"JsonImporter/lambda$37$Type",926),fBt(927,1,hYt,AD),AKt.td=function(t){uI(this.a,this.b,jz(t,202))},mW(H6t,"JsonImporter/lambda$38$Type",927),fBt(928,1,hYt,xD),AKt.td=function(t){hI(this.a,this.b,jz(t,202))},mW(H6t,"JsonImporter/lambda$39$Type",928),fBt(894,1,{},Wm),mW(H6t,"JsonImporter/lambda$4$Type",894),fBt(930,1,hYt,Km),AKt.td=function(t){X5(this.a,jz(t,8))},mW(H6t,"JsonImporter/lambda$40$Type",930),fBt(895,1,{},Ym),mW(H6t,"JsonImporter/lambda$5$Type",895),fBt(899,1,{},Xm),mW(H6t,"JsonImporter/lambda$6$Type",899),fBt(897,1,{},Zm),mW(H6t,"JsonImporter/lambda$7$Type",897),fBt(898,1,{},Qm),mW(H6t,"JsonImporter/lambda$8$Type",898),fBt(901,1,{},Jm),mW(H6t,"JsonImporter/lambda$9$Type",901),fBt(948,1,hYt,tb),AKt.td=function(t){QW(this.a,new VW(AN(t)))},mW(H6t,"JsonMetaDataConverter/lambda$0$Type",948),fBt(949,1,hYt,eb),AKt.td=function(t){RW(this.a,jz(t,237))},mW(H6t,"JsonMetaDataConverter/lambda$1$Type",949),fBt(950,1,hYt,nb),AKt.td=function(t){JJ(this.a,jz(t,149))},mW(H6t,"JsonMetaDataConverter/lambda$2$Type",950),fBt(951,1,hYt,ib),AKt.td=function(t){FW(this.a,jz(t,175))},mW(H6t,"JsonMetaDataConverter/lambda$3$Type",951),fBt(237,22,{3:1,35:1,22:1,237:1},CD);var nBe,iBe=$nt(SQt,"GraphFeature",237,Ute,Ret,pz);fBt(13,1,{35:1,146:1},ob,eR,II,UB),AKt.wd=function(t){return pP(this,jz(t,146))},AKt.Fb=function(t){return yZ(this,t)},AKt.wg=function(){return wbt(this)},AKt.tg=function(){return this.b},AKt.Hb=function(){return bwt(this.b)},AKt.Ib=function(){return this.b},mW(SQt,"Property",13),fBt(818,1,AZt,rb),AKt.ue=function(t,e){return Fdt(this,jz(t,94),jz(e,94))},AKt.Fb=function(t){return this===t},AKt.ve=function(){return new Qf(this)},mW(SQt,"PropertyHolderComparator",818),fBt(695,1,YKt,sb),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return D8(this)},AKt.Qb=function(){oC()},AKt.Ob=function(){return!!this.a},mW(r7t,"ElkGraphUtil/AncestorIterator",695);var rBe=hH($6t,"EList");fBt(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),AKt.Vc=function(t,e){cdt(this,t,e)},AKt.Fc=function(t){return l8(this,t)},AKt.Wc=function(t,e){return sct(this,t,e)},AKt.Gc=function(t){return pW(this,t)},AKt.Zh=function(){return new rO(this)},AKt.$h=function(){return new oO(this)},AKt._h=function(t){return cit(this,t)},AKt.ai=function(){return!0},AKt.bi=function(t,e){},AKt.ci=function(){},AKt.di=function(t,e){B7(this,t,e)},AKt.ei=function(t,e,n){},AKt.fi=function(t,e){},AKt.gi=function(t,e,n){},AKt.Fb=function(t){return YNt(this,t)},AKt.Hb=function(){return Ast(this)},AKt.hi=function(){return!1},AKt.Kc=function(){return new DP(this)},AKt.Yc=function(){return new iO(this)},AKt.Zc=function(t){var e;if(e=this.gc(),t<0||t>e)throw $b(new JR(t,e));return new VG(this,t)},AKt.ji=function(t,e){this.ii(t,this.Xc(e))},AKt.Mc=function(t){return stt(this,t)},AKt.li=function(t,e){return e},AKt._c=function(t,e){return swt(this,t,e)},AKt.Ib=function(){return Zft(this)},AKt.ni=function(){return!0},AKt.oi=function(t,e){return Llt(this,e)},mW($6t,"AbstractEList",67),fBt(63,67,l7t,mc,pet,yot),AKt.Vh=function(t,e){return $At(this,t,e)},AKt.Wh=function(t){return dkt(this,t)},AKt.Xh=function(t,e){Sht(this,t,e)},AKt.Yh=function(t){i6(this,t)},AKt.pi=function(t){return F8(this,t)},AKt.$b=function(){r6(this)},AKt.Hc=function(t){return x_t(this,t)},AKt.Xb=function(t){return Wet(this,t)},AKt.qi=function(t){var e,n,i;++this.j,t>(n=null==this.g?0:this.g.length)&&(i=this.g,(e=n+(n/2|0)+4)<t&&(e=t),this.g=this.ri(e),null!=i&&oVt(i,0,this.g,0,this.i))},AKt.Xc=function(t){return Wvt(this,t)},AKt.dc=function(){return 0==this.i},AKt.ii=function(t,e){return XDt(this,t,e)},AKt.ri=function(t){return P7(Ite,zKt,1,t,5,1)},AKt.ki=function(t){return this.g[t]},AKt.$c=function(t){return Mvt(this,t)},AKt.mi=function(t,e){return att(this,t,e)},AKt.gc=function(){return this.i},AKt.Pc=function(){return M3(this)},AKt.Qc=function(t){return Ygt(this,t)},AKt.i=0;var oBe,aBe,sBe=mW($6t,"BasicEList",63),cBe=hH($6t,"TreeIterator");fBt(694,63,u7t),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return null!=this.g||this.c?null==this.g||0!=this.i&&jz(this.g[this.i-1],47).Ob():JQ(this)},AKt.Pb=function(){return oPt(this)},AKt.Qb=function(){if(!this.e)throw $b(new Fv("There is no valid object to remove."));this.e.Qb()},AKt.c=!1,mW($6t,"AbstractTreeIterator",694),fBt(685,694,u7t,SB),AKt.si=function(t){var e;return iP(e=jz(t,56).Wg().Kc(),279)&&jz(e,279).Nk(new gc),e},mW(r7t,"ElkGraphUtil/PropertiesSkippingTreeIterator",685),fBt(952,1,{},gc),mW(r7t,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",952);var lBe,uBe=mW(r7t,"ElkReflect",null);fBt(889,1,n4t,pc),AKt.vg=function(t){return cJ(),j6(jz(t,174))},mW(r7t,"ElkReflect/lambda$0$Type",889),hH($6t,"ResourceLocator"),fBt(1051,1,{}),mW($6t,"DelegatingResourceLocator",1051),fBt(1052,1051,{}),mW("org.eclipse.emf.common","EMFPlugin",1052);var hBe,dBe=hH(Z7t,"Adapter"),fBe=hH(Z7t,"Notification");fBt(1153,1,Q7t),AKt.ti=function(){return this.d},AKt.ui=function(t){},AKt.vi=function(t){this.d=t},AKt.wi=function(t){this.d==t&&(this.d=null)},AKt.d=null,mW(n6t,"AdapterImpl",1153),fBt(1995,67,J7t),AKt.Vh=function(t,e){return vgt(this,t,e)},AKt.Wh=function(t){var e,n,i;if(++this.j,t.dc())return!1;for(e=this.Vi(),i=t.Kc();i.Ob();)n=i.Pb(),this.Ii(this.oi(e,n)),++e;return!0},AKt.Xh=function(t,e){ZN(this,t,e)},AKt.Yh=function(t){tK(this,t)},AKt.Gi=function(){return this.Ji()},AKt.$b=function(){XN(this,this.Vi(),this.Wi())},AKt.Hc=function(t){return this.Li(t)},AKt.Ic=function(t){return this.Mi(t)},AKt.Hi=function(t,e){this.Si().jm()},AKt.Ii=function(t){this.Si().jm()},AKt.Ji=function(){return this.Si()},AKt.Ki=function(){this.Si().jm()},AKt.Li=function(t){return this.Si().jm()},AKt.Mi=function(t){return this.Si().jm()},AKt.Ni=function(t){return this.Si().jm()},AKt.Oi=function(t){return this.Si().jm()},AKt.Pi=function(){return this.Si().jm()},AKt.Qi=function(t){return this.Si().jm()},AKt.Ri=function(){return this.Si().jm()},AKt.Ti=function(t){return this.Si().jm()},AKt.Ui=function(t,e){return this.Si().jm()},AKt.Vi=function(){return this.Si().jm()},AKt.Wi=function(){return this.Si().jm()},AKt.Xi=function(t){return this.Si().jm()},AKt.Yi=function(){return this.Si().jm()},AKt.Fb=function(t){return this.Ni(t)},AKt.Xb=function(t){return this.li(t,this.Oi(t))},AKt.Hb=function(){return this.Pi()},AKt.Xc=function(t){return this.Qi(t)},AKt.dc=function(){return this.Ri()},AKt.ii=function(t,e){return Ixt(this,t,e)},AKt.ki=function(t){return this.Oi(t)},AKt.$c=function(t){return dH(this,t)},AKt.Mc=function(t){var e;return(e=this.Xc(t))>=0&&(this.$c(e),!0)},AKt.mi=function(t,e){return this.Ui(t,this.oi(t,e))},AKt.gc=function(){return this.Vi()},AKt.Pc=function(){return this.Wi()},AKt.Qc=function(t){return this.Xi(t)},AKt.Ib=function(){return this.Yi()},mW($6t,"DelegatingEList",1995),fBt(1996,1995,J7t),AKt.Vh=function(t,e){return a$t(this,t,e)},AKt.Wh=function(t){return this.Vh(this.Vi(),t)},AKt.Xh=function(t,e){eBt(this,t,e)},AKt.Yh=function(t){DIt(this,t)},AKt.ai=function(){return!this.bj()},AKt.$b=function(){bHt(this)},AKt.Zi=function(t,e,n,i,r){return new MZ(this,t,e,n,i,r)},AKt.$i=function(t){dat(this.Ai(),t)},AKt._i=function(){return null},AKt.aj=function(){return-1},AKt.Ai=function(){return null},AKt.bj=function(){return!1},AKt.cj=function(t,e){return e},AKt.dj=function(t,e){return e},AKt.ej=function(){return!1},AKt.fj=function(){return!this.Ri()},AKt.ii=function(t,e){var n,i;return this.ej()?(i=this.fj(),n=Ixt(this,t,e),this.$i(this.Zi(7,ndt(e),n,t,i)),n):Ixt(this,t,e)},AKt.$c=function(t){var e,n,i,r;return this.ej()?(n=null,i=this.fj(),e=this.Zi(4,r=dH(this,t),null,t,i),this.bj()&&r?(n=this.dj(r,n))?(n.Ei(e),n.Fi()):this.$i(e):n?(n.Ei(e),n.Fi()):this.$i(e),r):(r=dH(this,t),this.bj()&&r&&(n=this.dj(r,null))&&n.Fi(),r)},AKt.mi=function(t,e){return s$t(this,t,e)},mW(n6t,"DelegatingNotifyingListImpl",1996),fBt(143,1,t8t),AKt.Ei=function(t){return RCt(this,t)},AKt.Fi=function(){I9(this)},AKt.xi=function(){return this.d},AKt._i=function(){return null},AKt.gj=function(){return null},AKt.yi=function(t){return-1},AKt.zi=function(){return NOt(this)},AKt.Ai=function(){return null},AKt.Bi=function(){return ROt(this)},AKt.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},AKt.hj=function(){return!1},AKt.Di=function(t){var e,n,i,r,o,a,s,c;switch(this.d){case 1:case 2:switch(t.xi()){case 1:case 2:if(VD(t.Ai())===VD(this.Ai())&&this.yi(null)==t.yi(null))return this.g=t.zi(),1==t.xi()&&(this.d=1),!0}case 4:if(4===t.xi()&&VD(t.Ai())===VD(this.Ai())&&this.yi(null)==t.yi(null))return a=tqt(this),o=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,i=t.Ci(),this.d=6,c=new pet(2),o<=i?(l8(c,this.n),l8(c,t.Bi()),this.g=Est(Vy(SLe,1),lXt,25,15,[this.o=o,i+1])):(l8(c,t.Bi()),l8(c,this.n),this.g=Est(Vy(SLe,1),lXt,25,15,[this.o=i,o])),this.n=c,a||(this.o=-2-this.o-1),!0;break;case 6:if(4===t.xi()&&VD(t.Ai())===VD(this.Ai())&&this.yi(null)==t.yi(null)){for(a=tqt(this),i=t.Ci(),s=jz(this.g,48),n=P7(SLe,lXt,25,s.length+1,15,1),e=0;e<s.length&&(r=s[e])<=i;)n[e++]=r,++i;for(jz(this.n,15).Vc(e,t.Bi()),n[e]=i;++e<n.length;)n[e]=s[e-1];return this.g=n,a||(this.o=-2-n[0]),!0}}return!1},AKt.Ib=function(){var t,e,n;switch((n=new lL(Q_(this.gm)+"@"+(Jct(this)>>>0).toString(16))).a+=" (eventType: ",this.d){case 1:n.a+="SET";break;case 2:n.a+="UNSET";break;case 3:n.a+="ADD";break;case 5:n.a+="ADD_MANY";break;case 4:n.a+="REMOVE";break;case 6:n.a+="REMOVE_MANY";break;case 7:n.a+="MOVE";break;case 8:n.a+="REMOVING_ADAPTER";break;case 9:n.a+="RESOLVE";break;default:bC(n,this.d)}if(hFt(this)&&(n.a+=", touch: true"),n.a+=", position: ",bC(n,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),n.a+=", notifier: ",nI(n,this.Ai()),n.a+=", feature: ",nI(n,this._i()),n.a+=", oldValue: ",nI(n,ROt(this)),n.a+=", newValue: ",6==this.d&&iP(this.g,48)){for(e=jz(this.g,48),n.a+="[",t=0;t<e.length;)n.a+=e[t],++t<e.length&&(n.a+=jKt);n.a+="]"}else nI(n,NOt(this));return n.a+=", isTouch: ",wC(n,hFt(this)),n.a+=", wasSet: ",wC(n,tqt(this)),n.a+=")",n.a},AKt.d=0,AKt.e=0,AKt.f=0,AKt.j=0,AKt.k=0,AKt.o=0,AKt.p=0,mW(n6t,"NotificationImpl",143),fBt(1167,143,t8t,MZ),AKt._i=function(){return this.a._i()},AKt.yi=function(t){return this.a.aj()},AKt.Ai=function(){return this.a.Ai()},mW(n6t,"DelegatingNotifyingListImpl/1",1167),fBt(242,63,l7t,bc,F_),AKt.Fc=function(t){return Agt(this,jz(t,366))},AKt.Ei=function(t){return Agt(this,t)},AKt.Fi=function(){var t,e,n;for(t=0;t<this.i;++t)null!=(n=(e=jz(this.g[t],366)).Ai())&&-1!=e.xi()&&jz(n,92).Ng(e)},AKt.ri=function(t){return P7(fBe,zKt,366,t,0,1)},mW(n6t,"NotificationChainImpl",242),fBt(1378,90,e6t),AKt.Kg=function(){return this.e},AKt.Mg=function(){return!!(1&this.f)},AKt.f=1,mW(n6t,"NotifierImpl",1378),fBt(1993,63,l7t),AKt.Vh=function(t,e){return M$t(this,t,e)},AKt.Wh=function(t){return this.Vh(this.i,t)},AKt.Xh=function(t,e){VIt(this,t,e)},AKt.Yh=function(t){tBt(this,t)},AKt.ai=function(){return!this.bj()},AKt.$b=function(){cHt(this)},AKt.Zi=function(t,e,n,i,r){return new PZ(this,t,e,n,i,r)},AKt.$i=function(t){dat(this.Ai(),t)},AKt._i=function(){return null},AKt.aj=function(){return-1},AKt.Ai=function(){return null},AKt.bj=function(){return!1},AKt.ij=function(){return!1},AKt.cj=function(t,e){return e},AKt.dj=function(t,e){return e},AKt.ej=function(){return!1},AKt.fj=function(){return 0!=this.i},AKt.ii=function(t,e){return Sdt(this,t,e)},AKt.$c=function(t){return uNt(this,t)},AKt.mi=function(t,e){return uzt(this,t,e)},AKt.jj=function(t,e){return e},AKt.kj=function(t,e){return e},AKt.lj=function(t,e,n){return n},mW(n6t,"NotifyingListImpl",1993),fBt(1166,143,t8t,PZ),AKt._i=function(){return this.a._i()},AKt.yi=function(t){return this.a.aj()},AKt.Ai=function(){return this.a.Ai()},mW(n6t,"NotifyingListImpl/1",1166),fBt(953,63,l7t,rR),AKt.Hc=function(t){return this.i>10?(this.b&&this.c.j==this.a||(this.b=new IH(this),this.a=this.j),FA(this.b,t)):x_t(this,t)},AKt.ni=function(){return!0},AKt.a=0,mW($6t,"AbstractEList/1",953),fBt(295,73,PXt,JR),mW($6t,"AbstractEList/BasicIndexOutOfBoundsException",295),fBt(40,1,YKt,DP),AKt.Nb=function(t){lG(this,t)},AKt.mj=function(){if(this.i.j!=this.f)throw $b(new mw)},AKt.nj=function(){return vbt(this)},AKt.Ob=function(){return this.e!=this.i.gc()},AKt.Pb=function(){return this.nj()},AKt.Qb=function(){Y_t(this)},AKt.e=0,AKt.f=0,AKt.g=-1,mW($6t,"AbstractEList/EIterator",40),fBt(278,40,rYt,iO,VG),AKt.Qb=function(){Y_t(this)},AKt.Rb=function(t){spt(this,t)},AKt.oj=function(){var t;try{return t=this.d.Xb(--this.e),this.mj(),this.g=this.e,t}catch(t){throw iP(t=hst(t),73)?(this.mj(),$b(new ww)):$b(t)}},AKt.pj=function(t){vkt(this,t)},AKt.Sb=function(){return 0!=this.e},AKt.Tb=function(){return this.e},AKt.Ub=function(){return this.oj()},AKt.Vb=function(){return this.e-1},AKt.Wb=function(t){this.pj(t)},mW($6t,"AbstractEList/EListIterator",278),fBt(341,40,YKt,rO),AKt.nj=function(){return ybt(this)},AKt.Qb=function(){throw $b(new pw)},mW($6t,"AbstractEList/NonResolvingEIterator",341),fBt(385,278,rYt,oO,OF),AKt.Rb=function(t){throw $b(new pw)},AKt.nj=function(){var t;try{return t=this.c.ki(this.e),this.mj(),this.g=this.e++,t}catch(t){throw iP(t=hst(t),73)?(this.mj(),$b(new ww)):$b(t)}},AKt.oj=function(){var t;try{return t=this.c.ki(--this.e),this.mj(),this.g=this.e,t}catch(t){throw iP(t=hst(t),73)?(this.mj(),$b(new ww)):$b(t)}},AKt.Qb=function(){throw $b(new pw)},AKt.Wb=function(t){throw $b(new pw)},mW($6t,"AbstractEList/NonResolvingEListIterator",385),fBt(1982,67,i8t),AKt.Vh=function(t,e){var n,i,r,o,a,s,c,l,u;if(0!=(i=e.gc())){for(n=Elt(this,(l=null==(c=jz(kat(this.a,4),126))?0:c.length)+i),(u=l-t)>0&&oVt(c,t,n,t+i,u),s=e.Kc(),o=0;o<i;++o)XB(n,t+o,Llt(this,a=s.Pb()));for(jmt(this,n),r=0;r<i;++r)a=n[t],this.bi(t,a),++t;return!0}return++this.j,!1},AKt.Wh=function(t){var e,n,i,r,o,a,s,c,l;if(0!=(i=t.gc())){for(e=Elt(this,l=(c=null==(n=jz(kat(this.a,4),126))?0:n.length)+i),s=t.Kc(),o=c;o<l;++o)XB(e,o,Llt(this,a=s.Pb()));for(jmt(this,e),r=c;r<l;++r)a=e[r],this.bi(r,a);return!0}return++this.j,!1},AKt.Xh=function(t,e){var n,i,r,o;n=Elt(this,(r=null==(i=jz(kat(this.a,4),126))?0:i.length)+1),o=Llt(this,e),t!=r&&oVt(i,t,n,t+1,r-t),IW(n,t,o),jmt(this,n),this.bi(t,e)},AKt.Yh=function(t){var e,n,i;XB(e=Elt(this,(i=null==(n=jz(kat(this.a,4),126))?0:n.length)+1),i,Llt(this,t)),jmt(this,e),this.bi(i,t)},AKt.Zh=function(){return new A4(this)},AKt.$h=function(){return new YU(this)},AKt._h=function(t){var e,n;if(n=null==(e=jz(kat(this.a,4),126))?0:e.length,t<0||t>n)throw $b(new JR(t,n));return new jK(this,t)},AKt.$b=function(){var t,e;++this.j,e=null==(t=jz(kat(this.a,4),126))?0:t.length,jmt(this,null),B7(this,e,t)},AKt.Hc=function(t){var e,n,i,r;if(null!=(e=jz(kat(this.a,4),126)))if(null!=t){for(i=0,r=(n=e).length;i<r;++i)if(Pht(t,n[i]))return!0}else for(i=0,r=(n=e).length;i<r;++i)if(VD(n[i])===VD(t))return!0;return!1},AKt.Xb=function(t){var e,n;if(t>=(n=null==(e=jz(kat(this.a,4),126))?0:e.length))throw $b(new JR(t,n));return e[t]},AKt.Xc=function(t){var e,n,i;if(null!=(e=jz(kat(this.a,4),126)))if(null!=t){for(n=0,i=e.length;n<i;++n)if(Pht(t,e[n]))return n}else for(n=0,i=e.length;n<i;++n)if(VD(e[n])===VD(t))return n;return-1},AKt.dc=function(){return null==jz(kat(this.a,4),126)},AKt.Kc=function(){return new C4(this)},AKt.Yc=function(){return new KU(this)},AKt.Zc=function(t){var e,n;if(n=null==(e=jz(kat(this.a,4),126))?0:e.length,t<0||t>n)throw $b(new JR(t,n));return new FK(this,t)},AKt.ii=function(t,e){var n,i,r;if(t>=(r=null==(n=Bpt(this))?0:n.length))throw $b(new Dv(a7t+t+s7t+r));if(e>=r)throw $b(new Dv(c7t+e+s7t+r));return i=n[e],t!=e&&(t<e?oVt(n,t,n,t+1,e-t):oVt(n,e+1,n,e,t-e),IW(n,t,i),jmt(this,n)),i},AKt.ki=function(t){return jz(kat(this.a,4),126)[t]},AKt.$c=function(t){return _It(this,t)},AKt.mi=function(t,e){var n,i;return i=(n=Bpt(this))[t],XB(n,t,Llt(this,e)),jmt(this,n),i},AKt.gc=function(){var t;return null==(t=jz(kat(this.a,4),126))?0:t.length},AKt.Pc=function(){var t,e,n;return n=null==(t=jz(kat(this.a,4),126))?0:t.length,e=P7(dBe,n8t,415,n,0,1),n>0&&oVt(t,0,e,0,n),e},AKt.Qc=function(t){var e,n;return(n=null==(e=jz(kat(this.a,4),126))?0:e.length)>0&&(t.length<n&&(t=Ont(tlt(t).c,n)),oVt(e,0,t,0,n)),t.length>n&&IW(t,n,null),t},mW($6t,"ArrayDelegatingEList",1982),fBt(1038,40,YKt,C4),AKt.mj=function(){if(this.b.j!=this.f||VD(jz(kat(this.b.a,4),126))!==VD(this.a))throw $b(new mw)},AKt.Qb=function(){Y_t(this),this.a=jz(kat(this.b.a,4),126)},mW($6t,"ArrayDelegatingEList/EIterator",1038),fBt(706,278,rYt,KU,FK),AKt.mj=function(){if(this.b.j!=this.f||VD(jz(kat(this.b.a,4),126))!==VD(this.a))throw $b(new mw)},AKt.pj=function(t){vkt(this,t),this.a=jz(kat(this.b.a,4),126)},AKt.Qb=function(){Y_t(this),this.a=jz(kat(this.b.a,4),126)},mW($6t,"ArrayDelegatingEList/EListIterator",706),fBt(1039,341,YKt,A4),AKt.mj=function(){if(this.b.j!=this.f||VD(jz(kat(this.b.a,4),126))!==VD(this.a))throw $b(new mw)},mW($6t,"ArrayDelegatingEList/NonResolvingEIterator",1039),fBt(707,385,rYt,YU,jK),AKt.mj=function(){if(this.b.j!=this.f||VD(jz(kat(this.b.a,4),126))!==VD(this.a))throw $b(new mw)},mW($6t,"ArrayDelegatingEList/NonResolvingEListIterator",707),fBt(606,295,PXt,BI),mW($6t,"BasicEList/BasicIndexOutOfBoundsException",606),fBt(696,63,l7t,LD),AKt.Vc=function(t,e){throw $b(new pw)},AKt.Fc=function(t){throw $b(new pw)},AKt.Wc=function(t,e){throw $b(new pw)},AKt.Gc=function(t){throw $b(new pw)},AKt.$b=function(){throw $b(new pw)},AKt.qi=function(t){throw $b(new pw)},AKt.Kc=function(){return this.Zh()},AKt.Yc=function(){return this.$h()},AKt.Zc=function(t){return this._h(t)},AKt.ii=function(t,e){throw $b(new pw)},AKt.ji=function(t,e){throw $b(new pw)},AKt.$c=function(t){throw $b(new pw)},AKt.Mc=function(t){throw $b(new pw)},AKt._c=function(t,e){throw $b(new pw)},mW($6t,"BasicEList/UnmodifiableEList",696),fBt(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),AKt.Vc=function(t,e){KM(this,t,jz(e,42))},AKt.Fc=function(t){return rN(this,jz(t,42))},AKt.Jc=function(t){t4(this,t)},AKt.Xb=function(t){return jz(Wet(this.c,t),133)},AKt.ii=function(t,e){return jz(this.c.ii(t,e),42)},AKt.ji=function(t,e){YM(this,t,jz(e,42))},AKt.Lc=function(){return new OH(null,new d1(this,16))},AKt.$c=function(t){return jz(this.c.$c(t),42)},AKt._c=function(t,e){return oW(this,t,jz(e,42))},AKt.ad=function(t){Frt(this,t)},AKt.Nc=function(){return new d1(this,16)},AKt.Oc=function(){return new OH(null,new d1(this,16))},AKt.Wc=function(t,e){return this.c.Wc(t,e)},AKt.Gc=function(t){return this.c.Gc(t)},AKt.$b=function(){this.c.$b()},AKt.Hc=function(t){return this.c.Hc(t)},AKt.Ic=function(t){return sst(this.c,t)},AKt.qj=function(){var t,e;if(null==this.d){for(this.d=P7(sBe,r8t,63,2*this.f+1,0,1),e=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)Swt(this,jz(t.nj(),133));this.e=e}},AKt.Fb=function(t){return MF(this,t)},AKt.Hb=function(){return Ast(this.c)},AKt.Xc=function(t){return this.c.Xc(t)},AKt.rj=function(){this.c=new cb(this)},AKt.dc=function(){return 0==this.f},AKt.Kc=function(){return this.c.Kc()},AKt.Yc=function(){return this.c.Yc()},AKt.Zc=function(t){return this.c.Zc(t)},AKt.sj=function(){return D7(this)},AKt.tj=function(t,e,n){return new Az(t,e,n)},AKt.uj=function(){return new wc},AKt.Mc=function(t){return lit(this,t)},AKt.gc=function(){return this.f},AKt.bd=function(t,e){return new s1(this.c,t,e)},AKt.Pc=function(){return this.c.Pc()},AKt.Qc=function(t){return this.c.Qc(t)},AKt.Ib=function(){return Zft(this.c)},AKt.e=0,AKt.f=0,mW($6t,"BasicEMap",705),fBt(1033,63,l7t,cb),AKt.bi=function(t,e){Dw(this,jz(e,133))},AKt.ei=function(t,e,n){var i;++(i=this,jz(e,133),i).a.e},AKt.fi=function(t,e){Iw(this,jz(e,133))},AKt.gi=function(t,e,n){WL(this,jz(e,133),jz(n,133))},AKt.di=function(t,e){oat(this.a)},mW($6t,"BasicEMap/1",1033),fBt(1034,63,l7t,wc),AKt.ri=function(t){return P7(pBe,o8t,612,t,0,1)},mW($6t,"BasicEMap/2",1034),fBt(1035,JKt,tYt,lb),AKt.$b=function(){this.a.c.$b()},AKt.Hc=function(t){return ipt(this.a,t)},AKt.Kc=function(){return 0==this.a.f?(fN(),gBe.a):new j_(this.a)},AKt.Mc=function(t){var e;return e=this.a.f,Wpt(this.a,t),this.a.f!=e},AKt.gc=function(){return this.a.f},mW($6t,"BasicEMap/3",1035),fBt(1036,28,QKt,ub),AKt.$b=function(){this.a.c.$b()},AKt.Hc=function(t){return XNt(this.a,t)},AKt.Kc=function(){return 0==this.a.f?(fN(),gBe.a):new $_(this.a)},AKt.gc=function(){return this.a.f},mW($6t,"BasicEMap/4",1036),fBt(1037,JKt,tYt,hb),AKt.$b=function(){this.a.c.$b()},AKt.Hc=function(t){var e,n,i,r,o,a,s,c,l;if(this.a.f>0&&iP(t,42)&&(this.a.qj(),r=null==(s=(c=jz(t,42)).cd())?0:Jct(s),o=tR(this.a,r),e=this.a.d[o]))for(n=jz(e.g,367),l=e.i,a=0;a<l;++a)if((i=n[a]).Sh()==r&&i.Fb(c))return!0;return!1},AKt.Kc=function(){return 0==this.a.f?(fN(),gBe.a):new pX(this.a)},AKt.Mc=function(t){return SBt(this,t)},AKt.gc=function(){return this.a.f},mW($6t,"BasicEMap/5",1037),fBt(613,1,YKt,pX),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return-1!=this.b},AKt.Pb=function(){var t;if(this.f.e!=this.c)throw $b(new mw);if(-1==this.b)throw $b(new ww);return this.d=this.a,this.e=this.b,a_t(this),t=jz(this.f.d[this.d].g[this.e],133),this.vj(t)},AKt.Qb=function(){if(this.f.e!=this.c)throw $b(new mw);if(-1==this.e)throw $b(new fw);this.f.c.Mc(Wet(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&-1!=this.b&&--this.b},AKt.vj=function(t){return t},AKt.a=0,AKt.b=-1,AKt.c=0,AKt.d=0,AKt.e=0,mW($6t,"BasicEMap/BasicEMapIterator",613),fBt(1031,613,YKt,j_),AKt.vj=function(t){return t.cd()},mW($6t,"BasicEMap/BasicEMapKeyIterator",1031),fBt(1032,613,YKt,$_),AKt.vj=function(t){return t.dd()},mW($6t,"BasicEMap/BasicEMapValueIterator",1032),fBt(1030,1,ZKt,db),AKt.wc=function(t){Jot(this,t)},AKt.yc=function(t,e,n){return Qdt(this,t,e,n)},AKt.$b=function(){this.a.c.$b()},AKt._b=function(t){return jD(this,t)},AKt.uc=function(t){return XNt(this.a,t)},AKt.vc=function(){return T7(this.a)},AKt.Fb=function(t){return MF(this.a,t)},AKt.xc=function(t){return rpt(this.a,t)},AKt.Hb=function(){return Ast(this.a.c)},AKt.dc=function(){return 0==this.a.f},AKt.ec=function(){return S7(this.a)},AKt.zc=function(t,e){return b_t(this.a,t,e)},AKt.Bc=function(t){return Wpt(this.a,t)},AKt.gc=function(){return this.a.f},AKt.Ib=function(){return Zft(this.a.c)},AKt.Cc=function(){return E7(this.a)},mW($6t,"BasicEMap/DelegatingMap",1030),fBt(612,1,{42:1,133:1,612:1},Az),AKt.Fb=function(t){var e;return!!iP(t,42)&&(e=jz(t,42),(null!=this.b?Pht(this.b,e.cd()):VD(this.b)===VD(e.cd()))&&(null!=this.c?Pht(this.c,e.dd()):VD(this.c)===VD(e.dd())))},AKt.Sh=function(){return this.a},AKt.cd=function(){return this.b},AKt.dd=function(){return this.c},AKt.Hb=function(){return this.a^(null==this.c?0:Jct(this.c))},AKt.Th=function(t){this.a=t},AKt.Uh=function(t){throw $b(new sw)},AKt.ed=function(t){var e;return e=this.c,this.c=t,e},AKt.Ib=function(){return this.b+"->"+this.c},AKt.a=0;var gBe,pBe=mW($6t,"BasicEMap/EntryImpl",612);fBt(536,1,{},lc),mW($6t,"BasicEMap/View",536),fBt(768,1,{}),AKt.Fb=function(t){return PBt((AX(),cne),t)},AKt.Hb=function(){return jct((AX(),cne))},AKt.Ib=function(){return Mxt((AX(),cne))},mW($6t,"ECollections/BasicEmptyUnmodifiableEList",768),fBt(1312,1,rYt,kc),AKt.Nb=function(t){lG(this,t)},AKt.Rb=function(t){throw $b(new pw)},AKt.Ob=function(){return!1},AKt.Sb=function(){return!1},AKt.Pb=function(){throw $b(new ww)},AKt.Tb=function(){return 0},AKt.Ub=function(){throw $b(new ww)},AKt.Vb=function(){return-1},AKt.Qb=function(){throw $b(new pw)},AKt.Wb=function(t){throw $b(new pw)},mW($6t,"ECollections/BasicEmptyUnmodifiableEList/1",1312),fBt(1310,768,{20:1,14:1,15:1,58:1},_k),AKt.Vc=function(t,e){MC()},AKt.Fc=function(t){return PC()},AKt.Wc=function(t,e){return LC()},AKt.Gc=function(t){return OC()},AKt.$b=function(){NC()},AKt.Hc=function(t){return!1},AKt.Ic=function(t){return!1},AKt.Jc=function(t){t4(this,t)},AKt.Xb=function(t){return wI((AX(),t)),null},AKt.Xc=function(t){return-1},AKt.dc=function(){return!0},AKt.Kc=function(){return this.a},AKt.Yc=function(){return this.a},AKt.Zc=function(t){return this.a},AKt.ii=function(t,e){return RC()},AKt.ji=function(t,e){FC()},AKt.Lc=function(){return new OH(null,new d1(this,16))},AKt.$c=function(t){return jC()},AKt.Mc=function(t){return $C()},AKt._c=function(t,e){return zC()},AKt.gc=function(){return 0},AKt.ad=function(t){Frt(this,t)},AKt.Nc=function(){return new d1(this,16)},AKt.Oc=function(){return new OH(null,new d1(this,16))},AKt.bd=function(t,e){return AX(),new s1(cne,t,e)},AKt.Pc=function(){return iU((AX(),cne))},AKt.Qc=function(t){return AX(),_kt(cne,t)},mW($6t,"ECollections/EmptyUnmodifiableEList",1310),fBt(1311,768,{20:1,14:1,15:1,58:1,589:1},Ck),AKt.Vc=function(t,e){MC()},AKt.Fc=function(t){return PC()},AKt.Wc=function(t,e){return LC()},AKt.Gc=function(t){return OC()},AKt.$b=function(){NC()},AKt.Hc=function(t){return!1},AKt.Ic=function(t){return!1},AKt.Jc=function(t){t4(this,t)},AKt.Xb=function(t){return wI((AX(),t)),null},AKt.Xc=function(t){return-1},AKt.dc=function(){return!0},AKt.Kc=function(){return this.a},AKt.Yc=function(){return this.a},AKt.Zc=function(t){return this.a},AKt.ii=function(t,e){return RC()},AKt.ji=function(t,e){FC()},AKt.Lc=function(){return new OH(null,new d1(this,16))},AKt.$c=function(t){return jC()},AKt.Mc=function(t){return $C()},AKt._c=function(t,e){return zC()},AKt.gc=function(){return 0},AKt.ad=function(t){Frt(this,t)},AKt.Nc=function(){return new d1(this,16)},AKt.Oc=function(){return new OH(null,new d1(this,16))},AKt.bd=function(t,e){return AX(),new s1(cne,t,e)},AKt.Pc=function(){return iU((AX(),cne))},AKt.Qc=function(t){return AX(),_kt(cne,t)},AKt.sj=function(){return AX(),AX(),lne},mW($6t,"ECollections/EmptyUnmodifiableEMap",1311);var mBe,bBe=hH($6t,"Enumerator");fBt(281,1,{281:1},iRt),AKt.Fb=function(t){var e;return this===t||!!iP(t,281)&&(e=jz(t,281),this.f==e.f&&mq(this.i,e.i)&&pq(this.a,256&this.f?256&e.f?e.a:null:256&e.f?null:e.a)&&pq(this.d,e.d)&&pq(this.g,e.g)&&pq(this.e,e.e)&&xbt(this,e))},AKt.Hb=function(){return this.f},AKt.Ib=function(){return Ajt(this)},AKt.f=0;var wBe,kBe,vBe,yBe=0,_Be=0,CBe=0,ABe=0,xBe=0,EBe=0,TBe=0,SBe=0,DBe=0,IBe=0,BBe=0,MBe=0,PBe=0;mW($6t,"URI",281),fBt(1091,43,tZt,Ak),AKt.zc=function(t,e){return jz(bJ(this,AN(t),jz(e,281)),281)},mW($6t,"URI/URICache",1091),fBt(497,63,l7t,dc,nq),AKt.hi=function(){return!0},mW($6t,"UniqueEList",497),fBt(581,60,$Yt,B9),mW($6t,"WrappedException",581);var LBe,OBe=hH(V4t,c8t),NBe=hH(V4t,l8t),RBe=hH(V4t,u8t),FBe=hH(V4t,h8t),jBe=hH(V4t,d8t),$Be=hH(V4t,"EClass"),zBe=hH(V4t,"EDataType");fBt(1183,43,tZt,xk),AKt.xc=function(t){return UD(t)?AQ(this,t):zD(DZ(this.f,t))},mW(V4t,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1183);var VBe,HBe,qBe=hH(V4t,"EEnum"),UBe=hH(V4t,f8t),GBe=hH(V4t,g8t),WBe=hH(V4t,p8t),KBe=hH(V4t,m8t),YBe=hH(V4t,b8t);fBt(1029,1,{},hc),AKt.Ib=function(){return"NIL"},mW(V4t,"EStructuralFeature/Internal/DynamicValueHolder/1",1029),fBt(1028,43,tZt,Ek),AKt.xc=function(t){return UD(t)?AQ(this,t):zD(DZ(this.f,t))},mW(V4t,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1028);var XBe,ZBe,QBe,JBe,tMe,eMe,nMe,iMe,rMe,oMe,aMe,sMe,cMe,lMe,uMe,hMe,dMe,fMe,gMe,pMe,mMe,bMe,wMe,kMe,vMe,yMe,_Me,CMe,AMe,xMe,EMe,TMe=hH(V4t,w8t),SMe=hH(V4t,"EValidator/PatternMatcher"),DMe=hH(k8t,"FeatureMap/Entry");fBt(535,1,{72:1},ED),AKt.ak=function(){return this.a},AKt.dd=function(){return this.b},mW(h6t,"BasicEObjectImpl/1",535),fBt(1027,1,v8t,TD),AKt.Wj=function(t){return W4(this.a,this.b,t)},AKt.fj=function(){return ZQ(this.a,this.b)},AKt.Wb=function(t){MQ(this.a,this.b,t)},AKt.Xj=function(){xK(this.a,this.b)},mW(h6t,"BasicEObjectImpl/4",1027),fBt(1983,1,{108:1}),AKt.bk=function(t){this.e=0==t?_Me:P7(Ite,zKt,1,t,5,1)},AKt.Ch=function(t){return this.e[t]},AKt.Dh=function(t,e){this.e[t]=e},AKt.Eh=function(t){this.e[t]=null},AKt.ck=function(){return this.c},AKt.dk=function(){throw $b(new pw)},AKt.ek=function(){throw $b(new pw)},AKt.fk=function(){return this.d},AKt.gk=function(){return null!=this.e},AKt.hk=function(t){this.c=t},AKt.ik=function(t){throw $b(new pw)},AKt.jk=function(t){throw $b(new pw)},AKt.kk=function(t){this.d=t},mW(h6t,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),fBt(185,1983,{108:1},Oh),AKt.dk=function(){return this.a},AKt.ek=function(){return this.b},AKt.ik=function(t){this.a=t},AKt.jk=function(t){this.b=t},mW(h6t,"BasicEObjectImpl/EPropertiesHolderImpl",185),fBt(506,97,u6t,vc),AKt.Kg=function(){return this.f},AKt.Pg=function(){return this.k},AKt.Rg=function(t,e){this.g=t,this.i=e},AKt.Tg=function(){return 2&this.j?this.ph().ck():this.zh()},AKt.Vg=function(){return this.i},AKt.Mg=function(){return!!(1&this.j)},AKt.eh=function(){return this.g},AKt.kh=function(){return!!(4&this.j)},AKt.ph=function(){return!this.k&&(this.k=new Oh),this.k},AKt.th=function(t){this.ph().hk(t),t?this.j|=2:this.j&=-3},AKt.vh=function(t){this.ph().jk(t),t?this.j|=4:this.j&=-5},AKt.zh=function(){return(KW(),QBe).S},AKt.i=0,AKt.j=1,mW(h6t,"EObjectImpl",506),fBt(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},vV),AKt.Ch=function(t){return this.e[t]},AKt.Dh=function(t,e){this.e[t]=e},AKt.Eh=function(t){this.e[t]=null},AKt.Tg=function(){return this.d},AKt.Yg=function(t){return Igt(this.d,t)},AKt.$g=function(){return this.d},AKt.dh=function(){return null!=this.e},AKt.ph=function(){return!this.k&&(this.k=new yc),this.k},AKt.th=function(t){this.d=t},AKt.yh=function(){var t;return null==this.e&&(t=hW(this.d),this.e=0==t?CMe:P7(Ite,zKt,1,t,5,1)),this},AKt.Ah=function(){return 0},mW(h6t,"DynamicEObjectImpl",780),fBt(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},lH),AKt.Fb=function(t){return this===t},AKt.Hb=function(){return xL(this)},AKt.th=function(t){this.d=t,this.b=PLt(t,"key"),this.c=PLt(t,_6t)},AKt.Sh=function(){var t;return-1==this.a&&(t=X9(this,this.b),this.a=null==t?0:Jct(t)),this.a},AKt.cd=function(){return X9(this,this.b)},AKt.dd=function(){return X9(this,this.c)},AKt.Th=function(t){this.a=t},AKt.Uh=function(t){MQ(this,this.b,t)},AKt.ed=function(t){var e;return e=X9(this,this.c),MQ(this,this.c,t),e},AKt.a=0,mW(h6t,"DynamicEObjectImpl/BasicEMapEntry",1376),fBt(1377,1,{108:1},yc),AKt.bk=function(t){throw $b(new pw)},AKt.Ch=function(t){throw $b(new pw)},AKt.Dh=function(t,e){throw $b(new pw)},AKt.Eh=function(t){throw $b(new pw)},AKt.ck=function(){throw $b(new pw)},AKt.dk=function(){return this.a},AKt.ek=function(){return this.b},AKt.fk=function(){return this.c},AKt.gk=function(){throw $b(new pw)},AKt.hk=function(t){throw $b(new pw)},AKt.ik=function(t){this.a=t},AKt.jk=function(t){this.b=t},AKt.kk=function(t){this.c=t},mW(h6t,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),fBt(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},_c),AKt.Qg=function(t){return dyt(this,t)},AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new XO((pKt(),wMe),qMe,this)),this.b):(!this.b&&(this.b=new XO((pKt(),wMe),qMe,this)),D7(this.b));case 3:return hJ(this);case 4:return!this.a&&(this.a=new IP(IIe,this,4)),this.a;case 5:return!this.c&&(this.c=new OP(IIe,this,5)),this.c}return q8(this,t-hW((pKt(),JBe)),eet(jz(kat(this,16),26)||JBe,t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 3:return this.Cb&&(n=(i=this.Db>>16)>=0?dyt(this,n):this.Cb.ih(this,-1-i,null,n)),Kq(this,jz(t,147),n)}return jz(eet(jz(kat(this,16),26)||(pKt(),JBe),e),66).Nj().Qj(this,umt(this),e-hW((pKt(),JBe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 2:return!this.b&&(this.b=new XO((pKt(),wMe),qMe,this)),jF(this.b,t,n);case 3:return Kq(this,null,n);case 4:return!this.a&&(this.a=new IP(IIe,this,4)),Fbt(this.a,t,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),JBe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),JBe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.d;case 2:return!!this.b&&0!=this.b.f;case 3:return!!hJ(this);case 4:return!!this.a&&0!=this.a.i;case 5:return!!this.c&&0!=this.c.i}return S3(this,t-hW((pKt(),JBe)),eet(jz(kat(this,16),26)||JBe,t))},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void pH(this,AN(e));case 2:return!this.b&&(this.b=new XO((pKt(),wMe),qMe,this)),void tat(this.b,e);case 3:return void DLt(this,jz(e,147));case 4:return!this.a&&(this.a=new IP(IIe,this,4)),cHt(this.a),!this.a&&(this.a=new IP(IIe,this,4)),void pW(this.a,jz(e,14));case 5:return!this.c&&(this.c=new OP(IIe,this,5)),cHt(this.c),!this.c&&(this.c=new OP(IIe,this,5)),void pW(this.c,jz(e,14))}Mft(this,t-hW((pKt(),JBe)),eet(jz(kat(this,16),26)||JBe,t),e)},AKt.zh=function(){return pKt(),JBe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return void $it(this,null);case 2:return!this.b&&(this.b=new XO((pKt(),wMe),qMe,this)),void this.b.c.$b();case 3:return void DLt(this,null);case 4:return!this.a&&(this.a=new IP(IIe,this,4)),void cHt(this.a);case 5:return!this.c&&(this.c=new OP(IIe,this,5)),void cHt(this.c)}Vht(this,t-hW((pKt(),JBe)),eet(jz(kat(this,16),26)||JBe,t))},AKt.Ib=function(){return Kht(this)},AKt.d=null,mW(h6t,"EAnnotationImpl",510),fBt(151,705,y8t,w8),AKt.Xh=function(t,e){QB(this,t,jz(e,42))},AKt.lk=function(t,e){return FF(this,jz(t,42),e)},AKt.pi=function(t){return jz(jz(this.c,69).pi(t),133)},AKt.Zh=function(){return jz(this.c,69).Zh()},AKt.$h=function(){return jz(this.c,69).$h()},AKt._h=function(t){return jz(this.c,69)._h(t)},AKt.mk=function(t,e){return jF(this,t,e)},AKt.Wj=function(t){return jz(this.c,76).Wj(t)},AKt.rj=function(){},AKt.fj=function(){return jz(this.c,76).fj()},AKt.tj=function(t,e,n){var i;return(i=jz(Uet(this.b).Nh().Jh(this.b),133)).Th(t),i.Uh(e),i.ed(n),i},AKt.uj=function(){return new Tb(this)},AKt.Wb=function(t){tat(this,t)},AKt.Xj=function(){jz(this.c,76).Xj()},mW(k8t,"EcoreEMap",151),fBt(158,151,y8t,XO),AKt.qj=function(){var t,e,n,i,r;if(null==this.d){for(r=P7(sBe,r8t,63,2*this.f+1,0,1),n=this.c.Kc();n.e!=n.i.gc();)!(t=r[i=((e=jz(n.nj(),133)).Sh()&OKt)%r.length])&&(t=r[i]=new Tb(this)),t.Fc(e);this.d=r}},mW(h6t,"EAnnotationImpl/1",158),fBt(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cL(),!!(256&this.Bb);case 3:return cL(),!!(512&this.Bb);case 4:return ndt(this.s);case 5:return ndt(this.t);case 6:return cL(),!!this.$j();case 7:return cL(),this.s>=1;case 8:return e?Syt(this):this.r;case 9:return this.q}return q8(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 9:return gW(this,n)}return jz(eet(jz(kat(this,16),26)||this.zh(),e),66).Nj().Rj(this,umt(this),e-hW(this.zh()),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.$j();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==wK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==wK(this.q).i)}return S3(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void this.Lh(AN(e));case 2:return void Xht(this,zv(_N(e)));case 3:return void Jht(this,zv(_N(e)));case 4:return void Mnt(this,jz(e,19).a);case 5:return void this.ok(jz(e,19).a);case 8:return void Sut(this,jz(e,138));case 9:return void((n=zAt(this,jz(e,87),null))&&n.Fi())}Mft(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e)},AKt.zh=function(){return pKt(),vMe},AKt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return void this.Lh(null);case 2:return void Xht(this,!0);case 3:return void Jht(this,!0);case 4:return void Mnt(this,0);case 5:return void this.ok(1);case 8:return void Sut(this,null);case 9:return void((e=zAt(this,null,null))&&e.Fi())}Vht(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.Gh=function(){Syt(this),this.Bb|=1},AKt.Yj=function(){return Syt(this)},AKt.Zj=function(){return this.t},AKt.$j=function(){var t;return(t=this.t)>1||-1==t},AKt.hi=function(){return!!(512&this.Bb)},AKt.nk=function(t,e){return Eht(this,t,e)},AKt.ok=function(t){Pnt(this,t)},AKt.Ib=function(){return RIt(this)},AKt.s=0,AKt.t=1,mW(h6t,"ETypedElementImpl",284),fBt(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),AKt.Qg=function(t){return Pvt(this,t)},AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cL(),!!(256&this.Bb);case 3:return cL(),!!(512&this.Bb);case 4:return ndt(this.s);case 5:return ndt(this.t);case 6:return cL(),!!this.$j();case 7:return cL(),this.s>=1;case 8:return e?Syt(this):this.r;case 9:return this.q;case 10:return cL(),!!(this.Bb&v6t);case 11:return cL(),!!(this.Bb&A8t);case 12:return cL(),!!(this.Bb&FXt);case 13:return this.j;case 14:return VPt(this);case 15:return cL(),!!(this.Bb&C8t);case 16:return cL(),!!(this.Bb&lYt);case 17:return fJ(this)}return q8(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 17:return this.Cb&&(n=(i=this.Db>>16)>=0?Pvt(this,n):this.Cb.ih(this,-1-i,null,n)),Cjt(this,t,17,n)}return jz(eet(jz(kat(this,16),26)||this.zh(),e),66).Nj().Qj(this,umt(this),e-hW(this.zh()),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 9:return gW(this,n);case 17:return Cjt(this,null,17,n)}return jz(eet(jz(kat(this,16),26)||this.zh(),e),66).Nj().Rj(this,umt(this),e-hW(this.zh()),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.$j();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==wK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==wK(this.q).i);case 10:return!(this.Bb&v6t);case 11:return!!(this.Bb&A8t);case 12:return!!(this.Bb&FXt);case 13:return null!=this.j;case 14:return null!=VPt(this);case 15:return!!(this.Bb&C8t);case 16:return!!(this.Bb&lYt);case 17:return!!fJ(this)}return S3(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void XJ(this,AN(e));case 2:return void Xht(this,zv(_N(e)));case 3:return void Jht(this,zv(_N(e)));case 4:return void Mnt(this,jz(e,19).a);case 5:return void this.ok(jz(e,19).a);case 8:return void Sut(this,jz(e,138));case 9:return void((n=zAt(this,jz(e,87),null))&&n.Fi());case 10:return void Idt(this,zv(_N(e)));case 11:return void Pdt(this,zv(_N(e)));case 12:return void Bdt(this,zv(_N(e)));case 13:return void RD(this,AN(e));case 15:return void Mdt(this,zv(_N(e)));case 16:return void Vdt(this,zv(_N(e)))}Mft(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e)},AKt.zh=function(){return pKt(),kMe},AKt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return iP(this.Cb,88)&&ISt(x4(jz(this.Cb,88)),4),void Prt(this,null);case 2:return void Xht(this,!0);case 3:return void Jht(this,!0);case 4:return void Mnt(this,0);case 5:return void this.ok(1);case 8:return void Sut(this,null);case 9:return void((e=zAt(this,null,null))&&e.Fi());case 10:return void Idt(this,!0);case 11:return void Pdt(this,!1);case 12:return void Bdt(this,!1);case 13:return this.i=null,void ort(this,null);case 15:return void Mdt(this,!1);case 16:return void Vdt(this,!1)}Vht(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.Gh=function(){kY(j9((STt(),XMe),this)),Syt(this),this.Bb|=1},AKt.Gj=function(){return this.f},AKt.zj=function(){return VPt(this)},AKt.Hj=function(){return fJ(this)},AKt.Lj=function(){return null},AKt.pk=function(){return this.k},AKt.aj=function(){return this.n},AKt.Mj=function(){return sCt(this)},AKt.Nj=function(){var t,e,n,i,r,o,a,s,c;return this.p||((null==(n=fJ(this)).i&&V$t(n),n.i).length,(i=this.Lj())&&hW(fJ(i)),t=(a=(r=Syt(this)).Bj())?1&a.i?a==DLe?vee:a==SLe?Iee:a==PLe?Tee:a==MLe?Eee:a==ILe?Nee:a==LLe?Fee:a==BLe?Cee:xee:a:null,e=VPt(this),s=r.zj(),dft(this),this.Bb&lYt&&((o=w_t((STt(),XMe),n))&&o!=this||(o=Z1(j9(XMe,this))))?this.p=new DD(this,o):this.$j()?this.rk()?i?this.Bb&C8t?t?this.sk()?this.p=new uX(47,t,this,i):this.p=new uX(5,t,this,i):this.sk()?this.p=new d5(46,this,i):this.p=new d5(4,this,i):t?this.sk()?this.p=new uX(49,t,this,i):this.p=new uX(7,t,this,i):this.sk()?this.p=new d5(48,this,i):this.p=new d5(6,this,i):this.Bb&C8t?t?t==zte?this.p=new xz(50,GIe,this):this.sk()?this.p=new xz(43,t,this):this.p=new xz(1,t,this):this.sk()?this.p=new OZ(42,this):this.p=new OZ(0,this):t?t==zte?this.p=new xz(41,GIe,this):this.sk()?this.p=new xz(45,t,this):this.p=new xz(3,t,this):this.sk()?this.p=new OZ(44,this):this.p=new OZ(2,this):iP(r,148)?t==DMe?this.p=new OZ(40,this):512&this.Bb?this.Bb&C8t?this.p=t?new xz(9,t,this):new OZ(8,this):this.p=t?new xz(11,t,this):new OZ(10,this):this.Bb&C8t?this.p=t?new xz(13,t,this):new OZ(12,this):this.p=t?new xz(15,t,this):new OZ(14,this):i?(c=i.t)>1||-1==c?this.sk()?this.Bb&C8t?this.p=t?new uX(25,t,this,i):new d5(24,this,i):this.p=t?new uX(27,t,this,i):new d5(26,this,i):this.Bb&C8t?this.p=t?new uX(29,t,this,i):new d5(28,this,i):this.p=t?new uX(31,t,this,i):new d5(30,this,i):this.sk()?this.Bb&C8t?this.p=t?new uX(33,t,this,i):new d5(32,this,i):this.p=t?new uX(35,t,this,i):new d5(34,this,i):this.Bb&C8t?this.p=t?new uX(37,t,this,i):new d5(36,this,i):this.p=t?new uX(39,t,this,i):new d5(38,this,i):this.sk()?this.Bb&C8t?this.p=t?new xz(17,t,this):new OZ(16,this):this.p=t?new xz(19,t,this):new OZ(18,this):this.Bb&C8t?this.p=t?new xz(21,t,this):new OZ(20,this):this.p=t?new xz(23,t,this):new OZ(22,this):this.qk()?this.sk()?this.p=new Ez(jz(r,26),this,i):this.p=new bQ(jz(r,26),this,i):iP(r,148)?t==DMe?this.p=new OZ(40,this):this.Bb&C8t?this.p=t?new Qq(e,s,this,($gt(),a==SLe?$Me:a==DLe?OMe:a==ILe?zMe:a==PLe?jMe:a==MLe?FMe:a==LLe?HMe:a==BLe?NMe:a==TLe?RMe:VMe)):new fX(jz(r,148),e,s,this):this.p=t?new Zq(e,s,this,($gt(),a==SLe?$Me:a==DLe?OMe:a==ILe?zMe:a==PLe?jMe:a==MLe?FMe:a==LLe?HMe:a==BLe?NMe:a==TLe?RMe:VMe)):new dX(jz(r,148),e,s,this):this.rk()?i?this.Bb&C8t?this.sk()?this.p=new Mz(jz(r,26),this,i):this.p=new Bz(jz(r,26),this,i):this.sk()?this.p=new Iz(jz(r,26),this,i):this.p=new Tz(jz(r,26),this,i):this.Bb&C8t?this.sk()?this.p=new tN(jz(r,26),this):this.p=new JO(jz(r,26),this):this.sk()?this.p=new QO(jz(r,26),this):this.p=new ZO(jz(r,26),this):this.sk()?i?this.Bb&C8t?this.p=new Pz(jz(r,26),this,i):this.p=new Sz(jz(r,26),this,i):this.Bb&C8t?this.p=new nN(jz(r,26),this):this.p=new eN(jz(r,26),this):i?this.Bb&C8t?this.p=new Lz(jz(r,26),this,i):this.p=new Dz(jz(r,26),this,i):this.Bb&C8t?this.p=new iN(jz(r,26),this):this.p=new iq(jz(r,26),this)),this.p},AKt.Ij=function(){return!!(this.Bb&v6t)},AKt.qk=function(){return!1},AKt.rk=function(){return!1},AKt.Jj=function(){return!!(this.Bb&lYt)},AKt.Oj=function(){return ctt(this)},AKt.sk=function(){return!1},AKt.Kj=function(){return!!(this.Bb&C8t)},AKt.tk=function(t){this.k=t},AKt.Lh=function(t){XJ(this,t)},AKt.Ib=function(){return _Rt(this)},AKt.e=!1,AKt.n=0,mW(h6t,"EStructuralFeatureImpl",449),fBt(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},Sk),AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cL(),!!(256&this.Bb);case 3:return cL(),!!(512&this.Bb);case 4:return ndt(this.s);case 5:return ndt(this.t);case 6:return cL(),!!PDt(this);case 7:return cL(),this.s>=1;case 8:return e?Syt(this):this.r;case 9:return this.q;case 10:return cL(),!!(this.Bb&v6t);case 11:return cL(),!!(this.Bb&A8t);case 12:return cL(),!!(this.Bb&FXt);case 13:return this.j;case 14:return VPt(this);case 15:return cL(),!!(this.Bb&C8t);case 16:return cL(),!!(this.Bb&lYt);case 17:return fJ(this);case 18:return cL(),!!(this.Bb&l6t);case 19:return e?ast(this):P6(this)}return q8(this,t-hW((pKt(),tMe)),eet(jz(kat(this,16),26)||tMe,t),e,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return PDt(this);case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==wK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==wK(this.q).i);case 10:return!(this.Bb&v6t);case 11:return!!(this.Bb&A8t);case 12:return!!(this.Bb&FXt);case 13:return null!=this.j;case 14:return null!=VPt(this);case 15:return!!(this.Bb&C8t);case 16:return!!(this.Bb&lYt);case 17:return!!fJ(this);case 18:return!!(this.Bb&l6t);case 19:return!!P6(this)}return S3(this,t-hW((pKt(),tMe)),eet(jz(kat(this,16),26)||tMe,t))},AKt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void XJ(this,AN(e));case 2:return void Xht(this,zv(_N(e)));case 3:return void Jht(this,zv(_N(e)));case 4:return void Mnt(this,jz(e,19).a);case 5:return void q_(this,jz(e,19).a);case 8:return void Sut(this,jz(e,138));case 9:return void((n=zAt(this,jz(e,87),null))&&n.Fi());case 10:return void Idt(this,zv(_N(e)));case 11:return void Pdt(this,zv(_N(e)));case 12:return void Bdt(this,zv(_N(e)));case 13:return void RD(this,AN(e));case 15:return void Mdt(this,zv(_N(e)));case 16:return void Vdt(this,zv(_N(e)));case 18:return void Hdt(this,zv(_N(e)))}Mft(this,t-hW((pKt(),tMe)),eet(jz(kat(this,16),26)||tMe,t),e)},AKt.zh=function(){return pKt(),tMe},AKt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return iP(this.Cb,88)&&ISt(x4(jz(this.Cb,88)),4),void Prt(this,null);case 2:return void Xht(this,!0);case 3:return void Jht(this,!0);case 4:return void Mnt(this,0);case 5:return this.b=0,void Pnt(this,1);case 8:return void Sut(this,null);case 9:return void((e=zAt(this,null,null))&&e.Fi());case 10:return void Idt(this,!0);case 11:return void Pdt(this,!1);case 12:return void Bdt(this,!1);case 13:return this.i=null,void ort(this,null);case 15:return void Mdt(this,!1);case 16:return void Vdt(this,!1);case 18:return void Hdt(this,!1)}Vht(this,t-hW((pKt(),tMe)),eet(jz(kat(this,16),26)||tMe,t))},AKt.Gh=function(){ast(this),kY(j9((STt(),XMe),this)),Syt(this),this.Bb|=1},AKt.$j=function(){return PDt(this)},AKt.nk=function(t,e){return this.b=0,this.a=null,Eht(this,t,e)},AKt.ok=function(t){q_(this,t)},AKt.Ib=function(){var t;return 64&this.Db?_Rt(this):((t=new lL(_Rt(this))).a+=" (iD: ",wC(t,!!(this.Bb&l6t)),t.a+=")",t.a)},AKt.b=0,mW(h6t,"EAttributeImpl",322),fBt(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),AKt.uk=function(t){return t.Tg()==this},AKt.Qg=function(t){return uvt(this,t)},AKt.Rg=function(t,e){this.w=null,this.Db=e<<16|255&this.Db,this.Cb=t},AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return nvt(this);case 4:return this.zj();case 5:return this.F;case 6:return e?Uet(this):dJ(this);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),this.A}return q8(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?uvt(this,n):this.Cb.ih(this,-1-i,null,n)),Cjt(this,t,6,n)}return jz(eet(jz(kat(this,16),26)||this.zh(),e),66).Nj().Qj(this,umt(this),e-hW(this.zh()),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 6:return Cjt(this,null,6,n);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),Fbt(this.A,t,n)}return jz(eet(jz(kat(this,16),26)||this.zh(),e),66).Nj().Rj(this,umt(this),e-hW(this.zh()),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!nvt(this);case 4:return null!=this.zj();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!dJ(this);case 7:return!!this.A&&0!=this.A.i}return S3(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void ZJ(this,AN(e));case 2:return void TB(this,AN(e));case 5:return void XHt(this,AN(e));case 7:return!this.A&&(this.A=new MP(TMe,this,7)),cHt(this.A),!this.A&&(this.A=new MP(TMe,this,7)),void pW(this.A,jz(e,14))}Mft(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e)},AKt.zh=function(){return pKt(),nMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return iP(this.Cb,179)&&(jz(this.Cb,179).tb=null),void Prt(this,null);case 2:return Olt(this,null),void Lnt(this,this.D);case 5:return void XHt(this,null);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),void cHt(this.A)}Vht(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.yj=function(){var t;return-1==this.G&&(this.G=(t=Uet(this))?awt(t.Mh(),this):-1),this.G},AKt.zj=function(){return null},AKt.Aj=function(){return Uet(this)},AKt.vk=function(){return this.v},AKt.Bj=function(){return nvt(this)},AKt.Cj=function(){return null!=this.D?this.D:this.B},AKt.Dj=function(){return this.F},AKt.wj=function(t){return x$t(this,t)},AKt.wk=function(t){this.v=t},AKt.xk=function(t){Urt(this,t)},AKt.yk=function(t){this.C=t},AKt.Lh=function(t){ZJ(this,t)},AKt.Ib=function(){return Tgt(this)},AKt.C=null,AKt.D=null,AKt.G=-1,mW(h6t,"EClassifierImpl",351),fBt(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},Nh),AKt.uk=function(t){return KR(this,t.Tg())},AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return nvt(this);case 4:return null;case 5:return this.F;case 6:return e?Uet(this):dJ(this);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),this.A;case 8:return cL(),!!(256&this.Bb);case 9:return cL(),!!(512&this.Bb);case 10:return kZ(this);case 11:return!this.q&&(this.q=new tG(WBe,this,11,10)),this.q;case 12:return Xzt(this);case 13:return Nzt(this);case 14:return Nzt(this),this.r;case 15:return Xzt(this),this.k;case 16:return WTt(this);case 17:return pzt(this);case 18:return V$t(this);case 19:return TPt(this);case 20:return Xzt(this),this.o;case 21:return!this.s&&(this.s=new tG(RBe,this,21,17)),this.s;case 22:return r5(this);case 23:return zNt(this)}return q8(this,t-hW((pKt(),eMe)),eet(jz(kat(this,16),26)||eMe,t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?uvt(this,n):this.Cb.ih(this,-1-i,null,n)),Cjt(this,t,6,n);case 11:return!this.q&&(this.q=new tG(WBe,this,11,10)),Xgt(this.q,t,n);case 21:return!this.s&&(this.s=new tG(RBe,this,21,17)),Xgt(this.s,t,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),eMe),e),66).Nj().Qj(this,umt(this),e-hW((pKt(),eMe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 6:return Cjt(this,null,6,n);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),Fbt(this.A,t,n);case 11:return!this.q&&(this.q=new tG(WBe,this,11,10)),Fbt(this.q,t,n);case 21:return!this.s&&(this.s=new tG(RBe,this,21,17)),Fbt(this.s,t,n);case 22:return Fbt(r5(this),t,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),eMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),eMe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!nvt(this);case 4:return!1;case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!dJ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!!(256&this.Bb);case 9:return!!(512&this.Bb);case 10:return!(!this.u||0==r5(this.u.a).i||this.n&&Nwt(this.n));case 11:return!!this.q&&0!=this.q.i;case 12:return 0!=Xzt(this).i;case 13:return 0!=Nzt(this).i;case 14:return Nzt(this),0!=this.r.i;case 15:return Xzt(this),0!=this.k.i;case 16:return 0!=WTt(this).i;case 17:return 0!=pzt(this).i;case 18:return 0!=V$t(this).i;case 19:return 0!=TPt(this).i;case 20:return Xzt(this),!!this.o;case 21:return!!this.s&&0!=this.s.i;case 22:return!!this.n&&Nwt(this.n);case 23:return 0!=zNt(this).i}return S3(this,t-hW((pKt(),eMe)),eet(jz(kat(this,16),26)||eMe,t))},AKt.oh=function(t){return(null==this.i||this.q&&0!=this.q.i?null:PLt(this,t))||lGt(this,t)},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void ZJ(this,AN(e));case 2:return void TB(this,AN(e));case 5:return void XHt(this,AN(e));case 7:return!this.A&&(this.A=new MP(TMe,this,7)),cHt(this.A),!this.A&&(this.A=new MP(TMe,this,7)),void pW(this.A,jz(e,14));case 8:return void Zht(this,zv(_N(e)));case 9:return void tdt(this,zv(_N(e)));case 10:return bHt(kZ(this)),void pW(kZ(this),jz(e,14));case 11:return!this.q&&(this.q=new tG(WBe,this,11,10)),cHt(this.q),!this.q&&(this.q=new tG(WBe,this,11,10)),void pW(this.q,jz(e,14));case 21:return!this.s&&(this.s=new tG(RBe,this,21,17)),cHt(this.s),!this.s&&(this.s=new tG(RBe,this,21,17)),void pW(this.s,jz(e,14));case 22:return cHt(r5(this)),void pW(r5(this),jz(e,14))}Mft(this,t-hW((pKt(),eMe)),eet(jz(kat(this,16),26)||eMe,t),e)},AKt.zh=function(){return pKt(),eMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return iP(this.Cb,179)&&(jz(this.Cb,179).tb=null),void Prt(this,null);case 2:return Olt(this,null),void Lnt(this,this.D);case 5:return void XHt(this,null);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),void cHt(this.A);case 8:return void Zht(this,!1);case 9:return void tdt(this,!1);case 10:return void(this.u&&bHt(this.u));case 11:return!this.q&&(this.q=new tG(WBe,this,11,10)),void cHt(this.q);case 21:return!this.s&&(this.s=new tG(RBe,this,21,17)),void cHt(this.s);case 22:return void(this.n&&cHt(this.n))}Vht(this,t-hW((pKt(),eMe)),eet(jz(kat(this,16),26)||eMe,t))},AKt.Gh=function(){var t,e;if(Xzt(this),Nzt(this),WTt(this),pzt(this),V$t(this),TPt(this),zNt(this),r6(Uz(x4(this))),this.s)for(t=0,e=this.s.i;t<e;++t)mO(Wet(this.s,t));if(this.q)for(t=0,e=this.q.i;t<e;++t)mO(Wet(this.q,t));Tht((STt(),XMe),this).ne(),this.Bb|=1},AKt.Ib=function(){return gCt(this)},AKt.k=null,AKt.r=null,mW(h6t,"EClassImpl",88),fBt(1994,1993,O8t),AKt.Vh=function(t,e){return M$t(this,t,e)},AKt.Wh=function(t){return M$t(this,this.i,t)},AKt.Xh=function(t,e){VIt(this,t,e)},AKt.Yh=function(t){tBt(this,t)},AKt.lk=function(t,e){return Xgt(this,t,e)},AKt.pi=function(t){return F8(this,t)},AKt.mk=function(t,e){return Fbt(this,t,e)},AKt.mi=function(t,e){return uzt(this,t,e)},AKt.Zh=function(){return new rO(this)},AKt.$h=function(){return new oO(this)},AKt._h=function(t){return cit(this,t)},mW(k8t,"NotifyingInternalEListImpl",1994),fBt(622,1994,N8t),AKt.Hc=function(t){return dHt(this,t)},AKt.Zi=function(t,e,n,i,r){return wJ(this,t,e,n,i,r)},AKt.$i=function(t){Bw(this,t)},AKt.Wj=function(t){return this},AKt.ak=function(){return eet(this.e.Tg(),this.aj())},AKt._i=function(){return this.ak()},AKt.aj=function(){return Igt(this.e.Tg(),this.ak())},AKt.zk=function(){return jz(this.ak().Yj(),26).Bj()},AKt.Ak=function(){return Twt(jz(this.ak(),18)).n},AKt.Ai=function(){return this.e},AKt.Bk=function(){return!0},AKt.Ck=function(){return!1},AKt.Dk=function(){return!1},AKt.Ek=function(){return!1},AKt.Xc=function(t){return awt(this,t)},AKt.cj=function(t,e){var n;return n=jz(t,49),this.Dk()?this.Bk()?n.gh(this.e,this.Ak(),this.zk(),e):n.gh(this.e,Igt(n.Tg(),Twt(jz(this.ak(),18))),null,e):n.gh(this.e,-1-this.aj(),null,e)},AKt.dj=function(t,e){var n;return n=jz(t,49),this.Dk()?this.Bk()?n.ih(this.e,this.Ak(),this.zk(),e):n.ih(this.e,Igt(n.Tg(),Twt(jz(this.ak(),18))),null,e):n.ih(this.e,-1-this.aj(),null,e)},AKt.rk=function(){return!1},AKt.Fk=function(){return!0},AKt.wj=function(t){return P3(this.d,t)},AKt.ej=function(){return bB(this.e)},AKt.fj=function(){return 0!=this.i},AKt.ri=function(t){return Ont(this.d,t)},AKt.li=function(t,e){return this.Fk()&&this.Ek()?HIt(this,t,jz(e,56)):e},AKt.Gk=function(t){return t.kh()?tht(this.e,jz(t,49)):t},AKt.Wb=function(t){XM(this,t)},AKt.Pc=function(){return $8(this)},AKt.Qc=function(t){var e;if(this.Ek())for(e=this.i-1;e>=0;--e)Wet(this,e);return Ygt(this,t)},AKt.Xj=function(){cHt(this)},AKt.oi=function(t,e){return Fnt(this,t,e)},mW(k8t,"EcoreEList",622),fBt(496,622,N8t,wV),AKt.ai=function(){return!1},AKt.aj=function(){return this.c},AKt.bj=function(){return!1},AKt.Fk=function(){return!0},AKt.hi=function(){return!0},AKt.li=function(t,e){return e},AKt.ni=function(){return!1},AKt.c=0,mW(k8t,"EObjectEList",496),fBt(85,496,N8t,IP),AKt.bj=function(){return!0},AKt.Dk=function(){return!1},AKt.rk=function(){return!0},mW(k8t,"EObjectContainmentEList",85),fBt(545,85,N8t,BP),AKt.ci=function(){this.b=!0},AKt.fj=function(){return this.b},AKt.Xj=function(){var t;cHt(this),bB(this.e)?(t=this.b,this.b=!1,dat(this.e,new J4(this.e,2,this.c,t,!1))):this.b=!1},AKt.b=!1,mW(k8t,"EObjectContainmentEList/Unsettable",545),fBt(1140,545,N8t,Yq),AKt.ii=function(t,e){var n,i;return n=jz(Sdt(this,t,e),87),bB(this.e)&&Bw(this,new v8(this.a,7,(pKt(),iMe),ndt(e),iP(i=n.c,88)?jz(i,26):dMe,t)),n},AKt.jj=function(t,e){return Qgt(this,jz(t,87),e)},AKt.kj=function(t,e){return Zgt(this,jz(t,87),e)},AKt.lj=function(t,e,n){return F_t(this,jz(t,87),jz(e,87),n)},AKt.Zi=function(t,e,n,i,r){switch(t){case 3:return wJ(this,t,e,n,i,this.i>1);case 5:return wJ(this,t,e,n,i,this.i-jz(n,15).gc()>0);default:return new M9(this.e,t,this.c,e,n,i,!0)}},AKt.ij=function(){return!0},AKt.fj=function(){return Nwt(this)},AKt.Xj=function(){cHt(this)},mW(h6t,"EClassImpl/1",1140),fBt(1154,1153,Q7t),AKt.ui=function(t){var e,n,i,r,o,a,s;if(8!=(n=t.xi())){if(0==(i=obt(t)))switch(n){case 1:case 9:null!=(s=t.Bi())&&(!(e=x4(jz(s,473))).c&&(e.c=new zc),stt(e.c,t.Ai())),null!=(a=t.zi())&&(1&(r=jz(a,473)).Bb||(!(e=x4(r)).c&&(e.c=new zc),l8(e.c,jz(t.Ai(),26))));break;case 3:null!=(a=t.zi())&&(1&(r=jz(a,473)).Bb||(!(e=x4(r)).c&&(e.c=new zc),l8(e.c,jz(t.Ai(),26))));break;case 5:if(null!=(a=t.zi()))for(o=jz(a,14).Kc();o.Ob();)1&(r=jz(o.Pb(),473)).Bb||(!(e=x4(r)).c&&(e.c=new zc),l8(e.c,jz(t.Ai(),26)));break;case 4:null!=(s=t.Bi())&&(1&(r=jz(s,473)).Bb||(!(e=x4(r)).c&&(e.c=new zc),stt(e.c,t.Ai())));break;case 6:if(null!=(s=t.Bi()))for(o=jz(s,14).Kc();o.Ob();)1&(r=jz(o.Pb(),473)).Bb||(!(e=x4(r)).c&&(e.c=new zc),stt(e.c,t.Ai()))}this.Hk(i)}},AKt.Hk=function(t){gRt(this,t)},AKt.b=63,mW(h6t,"ESuperAdapter",1154),fBt(1155,1154,Q7t,fb),AKt.Hk=function(t){ISt(this,t)},mW(h6t,"EClassImpl/10",1155),fBt(1144,696,N8t),AKt.Vh=function(t,e){return $At(this,t,e)},AKt.Wh=function(t){return dkt(this,t)},AKt.Xh=function(t,e){Sht(this,t,e)},AKt.Yh=function(t){i6(this,t)},AKt.pi=function(t){return F8(this,t)},AKt.mi=function(t,e){return att(this,t,e)},AKt.lk=function(t,e){throw $b(new pw)},AKt.Zh=function(){return new rO(this)},AKt.$h=function(){return new oO(this)},AKt._h=function(t){return cit(this,t)},AKt.mk=function(t,e){throw $b(new pw)},AKt.Wj=function(t){return this},AKt.fj=function(){return 0!=this.i},AKt.Wb=function(t){throw $b(new pw)},AKt.Xj=function(){throw $b(new pw)},mW(k8t,"EcoreEList/UnmodifiableEList",1144),fBt(319,1144,N8t,MI),AKt.ni=function(){return!1},mW(k8t,"EcoreEList/UnmodifiableEList/FastCompare",319),fBt(1147,319,N8t,gct),AKt.Xc=function(t){var e,n;if(iP(t,170)&&-1!=(e=jz(t,170).aj()))for(n=this.i;e<n;++e)if(VD(this.g[e])===VD(t))return e;return-1},mW(h6t,"EClassImpl/1EAllStructuralFeaturesList",1147),fBt(1141,497,l7t,Cc),AKt.ri=function(t){return P7(GBe,$8t,87,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"EClassImpl/1EGenericSuperTypeEList",1141),fBt(623,497,l7t,Ac),AKt.ri=function(t){return P7(RBe,P8t,170,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"EClassImpl/1EStructuralFeatureUniqueEList",623),fBt(741,497,l7t,xc),AKt.ri=function(t){return P7(YBe,P8t,18,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"EClassImpl/1ReferenceList",741),fBt(1142,497,l7t,gb),AKt.bi=function(t,e){Jq(this,jz(e,34))},AKt.ri=function(t){return P7(FBe,P8t,34,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"EClassImpl/2",1142),fBt(1143,497,l7t,Ec),AKt.ri=function(t){return P7(FBe,P8t,34,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"EClassImpl/3",1143),fBt(1145,319,N8t,yV),AKt.Fc=function(t){return bz(this,jz(t,34))},AKt.Yh=function(t){XC(this,jz(t,34))},mW(h6t,"EClassImpl/4",1145),fBt(1146,319,N8t,_V),AKt.Fc=function(t){return wz(this,jz(t,18))},AKt.Yh=function(t){ZC(this,jz(t,18))},mW(h6t,"EClassImpl/5",1146),fBt(1148,497,l7t,Tc),AKt.ri=function(t){return P7(WBe,L8t,59,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"EClassImpl/6",1148),fBt(1149,497,l7t,Sc),AKt.ri=function(t){return P7(YBe,P8t,18,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"EClassImpl/7",1149),fBt(1997,1996,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,69:1}),AKt.Vh=function(t,e){return a$t(this,t,e)},AKt.Wh=function(t){return a$t(this,this.Vi(),t)},AKt.Xh=function(t,e){eBt(this,t,e)},AKt.Yh=function(t){DIt(this,t)},AKt.lk=function(t,e){return fkt(this,t,e)},AKt.mk=function(t,e){return jbt(this,t,e)},AKt.mi=function(t,e){return s$t(this,t,e)},AKt.pi=function(t){return this.Oi(t)},AKt.Zh=function(){return new rO(this)},AKt.Gi=function(){return this.Ji()},AKt.$h=function(){return new oO(this)},AKt._h=function(t){return cit(this,t)},mW(k8t,"DelegatingNotifyingInternalEListImpl",1997),fBt(742,1997,z8t),AKt.ai=function(){var t;return iP(t=eet(vZ(this.b),this.aj()).Yj(),148)&&!iP(t,457)&&!(1&t.Bj().i)},AKt.Hc=function(t){var e,n,i,r,o,a,s;if(this.Fk()){if((s=this.Vi())>4){if(!this.wj(t))return!1;if(this.rk()){if(a=(e=(n=jz(t,49)).Ug())==this.b&&(this.Dk()?n.Og(n.Vg(),jz(eet(vZ(this.b),this.aj()).Yj(),26).Bj())==Twt(jz(eet(vZ(this.b),this.aj()),18)).n:-1-n.Vg()==this.aj()),this.Ek()&&!a&&!e&&n.Zg())for(i=0;i<s;++i)if(VD(VU(this,this.Oi(i)))===VD(t))return!0;return a}if(this.Dk()&&!this.Ck()){if(VD(r=jz(t,56).ah(Twt(jz(eet(vZ(this.b),this.aj()),18))))===VD(this.b))return!0;if(null==r||!jz(r,56).kh())return!1}}if(o=this.Li(t),this.Ek()&&!o)for(i=0;i<s;++i)if(VD(n=VU(this,this.Oi(i)))===VD(t))return!0;return o}return this.Li(t)},AKt.Zi=function(t,e,n,i,r){return new M9(this.b,t,this.aj(),e,n,i,r)},AKt.$i=function(t){dat(this.b,t)},AKt.Wj=function(t){return this},AKt._i=function(){return eet(vZ(this.b),this.aj())},AKt.aj=function(){return Igt(vZ(this.b),eet(vZ(this.b),this.aj()))},AKt.Ai=function(){return this.b},AKt.Bk=function(){return!!eet(vZ(this.b),this.aj()).Yj().Bj()},AKt.bj=function(){var t;return!(!iP(t=eet(vZ(this.b),this.aj()),99)||!(jz(t,18).Bb&l6t)&&!Twt(jz(t,18)))},AKt.Ck=function(){var t,e,n;return!!iP(t=eet(vZ(this.b),this.aj()),99)&&!!(e=Twt(jz(t,18)))&&((n=e.t)>1||-1==n)},AKt.Dk=function(){var t;return!!iP(t=eet(vZ(this.b),this.aj()),99)&&!!Twt(jz(t,18))},AKt.Ek=function(){var t;return!!iP(t=eet(vZ(this.b),this.aj()),99)&&!!(jz(t,18).Bb&$Xt)},AKt.Xc=function(t){var e,n,i;if((n=this.Qi(t))>=0)return n;if(this.Fk())for(e=0,i=this.Vi();e<i;++e)if(VD(VU(this,this.Oi(e)))===VD(t))return e;return-1},AKt.cj=function(t,e){var n;return n=jz(t,49),this.Dk()?this.Bk()?n.gh(this.b,Twt(jz(eet(vZ(this.b),this.aj()),18)).n,jz(eet(vZ(this.b),this.aj()).Yj(),26).Bj(),e):n.gh(this.b,Igt(n.Tg(),Twt(jz(eet(vZ(this.b),this.aj()),18))),null,e):n.gh(this.b,-1-this.aj(),null,e)},AKt.dj=function(t,e){var n;return n=jz(t,49),this.Dk()?this.Bk()?n.ih(this.b,Twt(jz(eet(vZ(this.b),this.aj()),18)).n,jz(eet(vZ(this.b),this.aj()).Yj(),26).Bj(),e):n.ih(this.b,Igt(n.Tg(),Twt(jz(eet(vZ(this.b),this.aj()),18))),null,e):n.ih(this.b,-1-this.aj(),null,e)},AKt.rk=function(){var t;return!!iP(t=eet(vZ(this.b),this.aj()),99)&&!!(jz(t,18).Bb&l6t)},AKt.Fk=function(){return iP(eet(vZ(this.b),this.aj()).Yj(),88)},AKt.wj=function(t){return eet(vZ(this.b),this.aj()).Yj().wj(t)},AKt.ej=function(){return bB(this.b)},AKt.fj=function(){return!this.Ri()},AKt.hi=function(){return eet(vZ(this.b),this.aj()).hi()},AKt.li=function(t,e){return eqt(this,t,e)},AKt.Wb=function(t){bHt(this),pW(this,jz(t,15))},AKt.Pc=function(){var t;if(this.Ek())for(t=this.Vi()-1;t>=0;--t)eqt(this,t,this.Oi(t));return this.Wi()},AKt.Qc=function(t){var e;if(this.Ek())for(e=this.Vi()-1;e>=0;--e)eqt(this,e,this.Oi(e));return this.Xi(t)},AKt.Xj=function(){bHt(this)},AKt.oi=function(t,e){return j8(this,t,e)},mW(k8t,"DelegatingEcoreEList",742),fBt(1150,742,z8t,oR),AKt.Hi=function(t,e){uN(this,t,jz(e,26))},AKt.Ii=function(t){tM(this,jz(t,26))},AKt.Oi=function(t){var e;return iP(e=jz(Wet(r5(this.a),t),87).c,88)?jz(e,26):(pKt(),dMe)},AKt.Ti=function(t){var e;return iP(e=jz(uNt(r5(this.a),t),87).c,88)?jz(e,26):(pKt(),dMe)},AKt.Ui=function(t,e){return gkt(this,t,jz(e,26))},AKt.ai=function(){return!1},AKt.Zi=function(t,e,n,i,r){return null},AKt.Ji=function(){return new pb(this)},AKt.Ki=function(){cHt(r5(this.a))},AKt.Li=function(t){return Uht(this,t)},AKt.Mi=function(t){var e;for(e=t.Kc();e.Ob();)if(!Uht(this,e.Pb()))return!1;return!0},AKt.Ni=function(t){var e,n,i;if(iP(t,15)&&(i=jz(t,15)).gc()==r5(this.a).i){for(e=i.Kc(),n=new DP(this);e.Ob();)if(VD(e.Pb())!==VD(vbt(n)))return!1;return!0}return!1},AKt.Pi=function(){var t,e,n,i;for(e=1,t=new DP(r5(this.a));t.e!=t.i.gc();)e=31*e+((n=iP(i=jz(vbt(t),87).c,88)?jz(i,26):(pKt(),dMe))?xL(n):0);return e},AKt.Qi=function(t){var e,n,i,r;for(i=0,n=new DP(r5(this.a));n.e!=n.i.gc();){if(e=jz(vbt(n),87),VD(t)===VD(iP(r=e.c,88)?jz(r,26):(pKt(),dMe)))return i;++i}return-1},AKt.Ri=function(){return 0==r5(this.a).i},AKt.Si=function(){return null},AKt.Vi=function(){return r5(this.a).i},AKt.Wi=function(){var t,e,n,i,r,o;for(o=r5(this.a).i,r=P7(Ite,zKt,1,o,5,1),n=0,e=new DP(r5(this.a));e.e!=e.i.gc();)t=jz(vbt(e),87),r[n++]=iP(i=t.c,88)?jz(i,26):(pKt(),dMe);return r},AKt.Xi=function(t){var e,n,i,r;for(r=r5(this.a).i,t.length<r&&(t=Ont(tlt(t).c,r)),t.length>r&&IW(t,r,null),n=0,e=new DP(r5(this.a));e.e!=e.i.gc();)IW(t,n++,iP(i=jz(vbt(e),87).c,88)?jz(i,26):(pKt(),dMe));return t},AKt.Yi=function(){var t,e,n,i,r;for((r=new Ay).a+="[",t=r5(this.a),e=0,i=r5(this.a).i;e<i;)iI(r,kL(iP(n=jz(Wet(t,e),87).c,88)?jz(n,26):(pKt(),dMe))),++e<i&&(r.a+=jKt);return r.a+="]",r.a},AKt.$i=function(t){},AKt.aj=function(){return 10},AKt.Bk=function(){return!0},AKt.bj=function(){return!1},AKt.Ck=function(){return!1},AKt.Dk=function(){return!1},AKt.Ek=function(){return!0},AKt.rk=function(){return!1},AKt.Fk=function(){return!0},AKt.wj=function(t){return iP(t,88)},AKt.fj=function(){return K0(this.a)},AKt.hi=function(){return!0},AKt.ni=function(){return!0},mW(h6t,"EClassImpl/8",1150),fBt(1151,1964,MYt,pb),AKt.Zc=function(t){return cit(this.a,t)},AKt.gc=function(){return r5(this.a.a).i},mW(h6t,"EClassImpl/8/1",1151),fBt(1152,497,l7t,Dc),AKt.ri=function(t){return P7(jBe,zKt,138,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"EClassImpl/9",1152),fBt(1139,53,eZt,Tk),mW(h6t,"EClassImpl/MyHashSet",1139),fBt(566,351,{105:1,92:1,90:1,138:1,148:1,834:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1},yw),AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return nvt(this);case 4:return this.zj();case 5:return this.F;case 6:return e?Uet(this):dJ(this);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),this.A;case 8:return cL(),!!(256&this.Bb)}return q8(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!nvt(this);case 4:return null!=this.zj();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!dJ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!(256&this.Bb)}return S3(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void ZJ(this,AN(e));case 2:return void TB(this,AN(e));case 5:return void XHt(this,AN(e));case 7:return!this.A&&(this.A=new MP(TMe,this,7)),cHt(this.A),!this.A&&(this.A=new MP(TMe,this,7)),void pW(this.A,jz(e,14));case 8:return void Qht(this,zv(_N(e)))}Mft(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t),e)},AKt.zh=function(){return pKt(),rMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return iP(this.Cb,179)&&(jz(this.Cb,179).tb=null),void Prt(this,null);case 2:return Olt(this,null),void Lnt(this,this.D);case 5:return void XHt(this,null);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),void cHt(this.A);case 8:return void Qht(this,!0)}Vht(this,t-hW(this.zh()),eet(jz(kat(this,16),26)||this.zh(),t))},AKt.Gh=function(){Tht((STt(),XMe),this).ne(),this.Bb|=1},AKt.Fj=function(){var t,e;if(!this.c&&!(t=HMt(Uet(this))).dc())for(e=t.Kc();e.Ob();)Pjt(this,AN(e.Pb()))&&Ndt(this);return this.b},AKt.zj=function(){var t;if(!this.e){t=null;try{t=nvt(this)}catch(t){if(!iP(t=hst(t),102))throw $b(t)}this.d=null,t&&1&t.i&&(this.d=t==DLe?(cL(),mee):t==SLe?ndt(0):t==PLe?new Mf(0):t==MLe?0:t==ILe?ymt(0):t==LLe?idt(0):t==BLe?xtt(0):ust(0)),this.e=!0}return this.d},AKt.Ej=function(){return!!(256&this.Bb)},AKt.Ik=function(t){t&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},AKt.xk=function(t){Urt(this,t),this.Ik(t)},AKt.yk=function(t){this.C=t,this.e=!1},AKt.Ib=function(){var t;return 64&this.Db?Tgt(this):((t=new lL(Tgt(this))).a+=" (serializable: ",wC(t,!!(256&this.Bb)),t.a+=")",t.a)},AKt.c=!1,AKt.d=null,AKt.e=!1,mW(h6t,"EDataTypeImpl",566),fBt(457,566,{105:1,92:1,90:1,138:1,148:1,834:1,671:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,457:1,150:1,114:1,115:1,676:1},Dk),AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return nvt(this);case 4:return Ylt(this);case 5:return this.F;case 6:return e?Uet(this):dJ(this);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),this.A;case 8:return cL(),!!(256&this.Bb);case 9:return!this.a&&(this.a=new tG(UBe,this,9,5)),this.a}return q8(this,t-hW((pKt(),oMe)),eet(jz(kat(this,16),26)||oMe,t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 6:return this.Cb&&(n=(i=this.Db>>16)>=0?uvt(this,n):this.Cb.ih(this,-1-i,null,n)),Cjt(this,t,6,n);case 9:return!this.a&&(this.a=new tG(UBe,this,9,5)),Xgt(this.a,t,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),oMe),e),66).Nj().Qj(this,umt(this),e-hW((pKt(),oMe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 6:return Cjt(this,null,6,n);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),Fbt(this.A,t,n);case 9:return!this.a&&(this.a=new tG(UBe,this,9,5)),Fbt(this.a,t,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),oMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),oMe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!nvt(this);case 4:return!!Ylt(this);case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!dJ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!(256&this.Bb);case 9:return!!this.a&&0!=this.a.i}return S3(this,t-hW((pKt(),oMe)),eet(jz(kat(this,16),26)||oMe,t))},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void ZJ(this,AN(e));case 2:return void TB(this,AN(e));case 5:return void XHt(this,AN(e));case 7:return!this.A&&(this.A=new MP(TMe,this,7)),cHt(this.A),!this.A&&(this.A=new MP(TMe,this,7)),void pW(this.A,jz(e,14));case 8:return void Qht(this,zv(_N(e)));case 9:return!this.a&&(this.a=new tG(UBe,this,9,5)),cHt(this.a),!this.a&&(this.a=new tG(UBe,this,9,5)),void pW(this.a,jz(e,14))}Mft(this,t-hW((pKt(),oMe)),eet(jz(kat(this,16),26)||oMe,t),e)},AKt.zh=function(){return pKt(),oMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return iP(this.Cb,179)&&(jz(this.Cb,179).tb=null),void Prt(this,null);case 2:return Olt(this,null),void Lnt(this,this.D);case 5:return void XHt(this,null);case 7:return!this.A&&(this.A=new MP(TMe,this,7)),void cHt(this.A);case 8:return void Qht(this,!0);case 9:return!this.a&&(this.a=new tG(UBe,this,9,5)),void cHt(this.a)}Vht(this,t-hW((pKt(),oMe)),eet(jz(kat(this,16),26)||oMe,t))},AKt.Gh=function(){var t,e;if(this.a)for(t=0,e=this.a.i;t<e;++t)mO(Wet(this.a,t));Tht((STt(),XMe),this).ne(),this.Bb|=1},AKt.zj=function(){return Ylt(this)},AKt.wj=function(t){return null!=t},AKt.Ik=function(t){},mW(h6t,"EEnumImpl",457),fBt(573,438,{105:1,92:1,90:1,1940:1,678:1,147:1,191:1,56:1,108:1,49:1,97:1,573:1,150:1,114:1,115:1},vw),AKt.ne=function(){return this.zb},AKt.Qg=function(t){return hyt(this,t)},AKt._g=function(t,e,n){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return ndt(this.d);case 3:return this.b?this.b:this.a;case 4:return null==(i=this.c)?this.zb:i;case 5:return this.Db>>16==5?jz(this.Cb,671):null}return q8(this,t-hW((pKt(),aMe)),eet(jz(kat(this,16),26)||aMe,t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 5:return this.Cb&&(n=(i=this.Db>>16)>=0?hyt(this,n):this.Cb.ih(this,-1-i,null,n)),Cjt(this,t,5,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),aMe),e),66).Nj().Qj(this,umt(this),e-hW((pKt(),aMe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 5:return Cjt(this,null,5,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),aMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),aMe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0!=this.d;case 3:return!!this.b;case 4:return null!=this.c;case 5:return!(this.Db>>16!=5||!jz(this.Cb,671))}return S3(this,t-hW((pKt(),aMe)),eet(jz(kat(this,16),26)||aMe,t))},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void Prt(this,AN(e));case 2:return void Bnt(this,jz(e,19).a);case 3:return void pIt(this,jz(e,1940));case 4:return void jit(this,AN(e))}Mft(this,t-hW((pKt(),aMe)),eet(jz(kat(this,16),26)||aMe,t),e)},AKt.zh=function(){return pKt(),aMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return void Prt(this,null);case 2:return void Bnt(this,0);case 3:return void pIt(this,null);case 4:return void jit(this,null)}Vht(this,t-hW((pKt(),aMe)),eet(jz(kat(this,16),26)||aMe,t))},AKt.Ib=function(){var t;return null==(t=this.c)?this.zb:t},AKt.b=null,AKt.c=null,AKt.d=0,mW(h6t,"EEnumLiteralImpl",573);var IMe,BMe,MMe,PMe=hH(h6t,"EFactoryImpl/InternalEDateTimeFormat");fBt(489,1,{2015:1},mb),mW(h6t,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),fBt(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},Nb),AKt.Sg=function(t,e,n){var i;return n=Cjt(this,t,e,n),this.e&&iP(t,170)&&(i=vPt(this,this.e))!=this.c&&(n=oUt(this,i,n)),n},AKt._g=function(t,e,n){switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new IP(GBe,this,1)),this.d;case 2:return e?h$t(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return e?Vwt(this):this.a}return q8(this,t-hW((pKt(),cMe)),eet(jz(kat(this,16),26)||cMe,t),e,n)},AKt.jh=function(t,e,n){switch(e){case 0:return Jut(this,null,n);case 1:return!this.d&&(this.d=new IP(GBe,this,1)),Fbt(this.d,t,n);case 3:return Qut(this,null,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),cMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),cMe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.f;case 1:return!!this.d&&0!=this.d.i;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return S3(this,t-hW((pKt(),cMe)),eet(jz(kat(this,16),26)||cMe,t))},AKt.sh=function(t,e){switch(t){case 0:return void yCt(this,jz(e,87));case 1:return!this.d&&(this.d=new IP(GBe,this,1)),cHt(this.d),!this.d&&(this.d=new IP(GBe,this,1)),void pW(this.d,jz(e,14));case 3:return void vCt(this,jz(e,87));case 4:return void Oxt(this,jz(e,836));case 5:return void rnt(this,jz(e,138))}Mft(this,t-hW((pKt(),cMe)),eet(jz(kat(this,16),26)||cMe,t),e)},AKt.zh=function(){return pKt(),cMe},AKt.Bh=function(t){switch(t){case 0:return void yCt(this,null);case 1:return!this.d&&(this.d=new IP(GBe,this,1)),void cHt(this.d);case 3:return void vCt(this,null);case 4:return void Oxt(this,null);case 5:return void rnt(this,null)}Vht(this,t-hW((pKt(),cMe)),eet(jz(kat(this,16),26)||cMe,t))},AKt.Ib=function(){var t;return(t=new uL(EMt(this))).a+=" (expression: ",dVt(this,t),t.a+=")",t.a},mW(h6t,"EGenericTypeImpl",241),fBt(1969,1964,V8t),AKt.Xh=function(t,e){QN(this,t,e)},AKt.lk=function(t,e){return QN(this,this.gc(),t),e},AKt.pi=function(t){return Obt(this.Gi(),t)},AKt.Zh=function(){return this.$h()},AKt.Gi=function(){return new xb(this)},AKt.$h=function(){return this._h(0)},AKt._h=function(t){return this.Gi().Zc(t)},AKt.mk=function(t,e){return kgt(this,t,!0),e},AKt.ii=function(t,e){var n;return n=tyt(this,e),this.Zc(t).Rb(n),n},AKt.ji=function(t,e){kgt(this,e,!0),this.Zc(t).Rb(e)},mW(k8t,"AbstractSequentialInternalEList",1969),fBt(486,1969,V8t,KL),AKt.pi=function(t){return Obt(this.Gi(),t)},AKt.Zh=function(){return null==this.b?(Yx(),Yx(),MMe):this.Jk()},AKt.Gi=function(){return new LI(this.a,this.b)},AKt.$h=function(){return null==this.b?(Yx(),Yx(),MMe):this.Jk()},AKt._h=function(t){var e,n;if(null==this.b){if(t<0||t>1)throw $b(new Dv(e8t+t+", size=0"));return Yx(),Yx(),MMe}for(n=this.Jk(),e=0;e<t;++e)Aat(n);return n},AKt.dc=function(){var t,e,n,i,r,o;if(null!=this.b)for(n=0;n<this.b.length;++n)if(t=this.b[n],!this.Mk()||this.a.mh(t))if(o=this.a.bh(t,!1),Zx(),jz(t,66).Oj()){for(i=0,r=(e=jz(o,153)).gc();i<r;++i)if(dW(e.il(i))&&null!=e.jl(i))return!1}else if(t.$j()){if(!jz(o,14).dc())return!1}else if(null!=o)return!1;return!0},AKt.Kc=function(){return _rt(this)},AKt.Zc=function(t){var e,n;if(null==this.b){if(0!=t)throw $b(new Dv(e8t+t+", size=0"));return Yx(),Yx(),MMe}for(n=this.Lk()?this.Kk():this.Jk(),e=0;e<t;++e)Aat(n);return n},AKt.ii=function(t,e){throw $b(new pw)},AKt.ji=function(t,e){throw $b(new pw)},AKt.Jk=function(){return new YL(this.a,this.b)},AKt.Kk=function(){return new WO(this.a,this.b)},AKt.Lk=function(){return!0},AKt.gc=function(){var t,e,n,i,r,o,a;if(r=0,null!=this.b)for(n=0;n<this.b.length;++n)if(t=this.b[n],!this.Mk()||this.a.mh(t))if(a=this.a.bh(t,!1),Zx(),jz(t,66).Oj())for(i=0,o=(e=jz(a,153)).gc();i<o;++i)dW(e.il(i))&&null!=e.jl(i)&&++r;else t.$j()?r+=jz(a,14).gc():null!=a&&++r;return r},AKt.Mk=function(){return!0},mW(k8t,"EContentsEList",486),fBt(1156,486,V8t,GO),AKt.Jk=function(){return new KO(this.a,this.b)},AKt.Kk=function(){return new YO(this.a,this.b)},AKt.Mk=function(){return!1},mW(h6t,"ENamedElementImpl/1",1156),fBt(279,1,H8t,YL),AKt.Nb=function(t){lG(this,t)},AKt.Rb=function(t){throw $b(new pw)},AKt.Nk=function(t){if(0!=this.g||this.e)throw $b(new Fv("Iterator already in use or already filtered"));this.e=t},AKt.Ob=function(){var t,e,n,i,r,o;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(this.k&&(this.p?vTt(this,this.p):mIt(this)))return r=this.p?this.p.Pb():this.j?this.j.pi(this.n++):this.k.Xb(this.n++),this.f?((t=jz(r,72)).ak(),n=t.dd(),this.i=n):(n=r,this.i=n),this.g=3,!0;for(;this.d<this.c.length;)if(e=this.c[this.d++],(!this.e||e.Gj()!=BIe||0!=e.aj())&&(!this.Mk()||this.b.mh(e)))if(o=this.b.bh(e,this.Lk()),this.f=(Zx(),jz(e,66).Oj()),this.f||e.$j()){if(this.Lk()?(i=jz(o,15),this.k=i):(i=jz(o,69),this.k=this.j=i),iP(this.k,54)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.$h():this.k.Yc(),this.p?vTt(this,this.p):mIt(this))return r=this.p?this.p.Pb():this.j?this.j.pi(this.n++):this.k.Xb(this.n++),this.f?((t=jz(r,72)).ak(),n=t.dd(),this.i=n):(n=r,this.i=n),this.g=3,!0}else if(null!=o)return this.k=null,this.p=null,n=o,this.i=n,this.g=2,!0;return this.k=null,this.p=null,this.f=!1,this.g=1,!1}},AKt.Sb=function(){var t,e,n,i,r,o;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(this.k&&(this.p?yTt(this,this.p):fSt(this)))return r=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?((t=jz(r,72)).ak(),n=t.dd(),this.i=n):(n=r,this.i=n),this.g=-3,!0;for(;this.d>0;)if(e=this.c[--this.d],(!this.e||e.Gj()!=BIe||0!=e.aj())&&(!this.Mk()||this.b.mh(e)))if(o=this.b.bh(e,this.Lk()),this.f=(Zx(),jz(e,66).Oj()),this.f||e.$j()){if(this.Lk()?(i=jz(o,15),this.k=i):(i=jz(o,69),this.k=this.j=i),iP(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?yTt(this,this.p):fSt(this))return r=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?((t=jz(r,72)).ak(),n=t.dd(),this.i=n):(n=r,this.i=n),this.g=-3,!0}else if(null!=o)return this.k=null,this.p=null,n=o,this.i=n,this.g=-2,!0;return this.k=null,this.p=null,this.g=-1,!1}},AKt.Pb=function(){return Aat(this)},AKt.Tb=function(){return this.a},AKt.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw $b(new ww)},AKt.Vb=function(){return this.a-1},AKt.Qb=function(){throw $b(new pw)},AKt.Lk=function(){return!1},AKt.Wb=function(t){throw $b(new pw)},AKt.Mk=function(){return!0},AKt.a=0,AKt.d=0,AKt.f=!1,AKt.g=0,AKt.n=0,AKt.o=0,mW(k8t,"EContentsEList/FeatureIteratorImpl",279),fBt(697,279,H8t,WO),AKt.Lk=function(){return!0},mW(k8t,"EContentsEList/ResolvingFeatureIteratorImpl",697),fBt(1157,697,H8t,YO),AKt.Mk=function(){return!1},mW(h6t,"ENamedElementImpl/1/1",1157),fBt(1158,279,H8t,KO),AKt.Mk=function(){return!1},mW(h6t,"ENamedElementImpl/1/2",1158),fBt(36,143,t8t,l5,u5,QU,k8,M9,J4,znt,A0,Vnt,x0,X4,E0,Unt,T0,Z4,S0,Hnt,D0,JU,v8,VX,qnt,I0,Q4,B0),AKt._i=function(){return c8(this)},AKt.gj=function(){var t;return(t=c8(this))?t.zj():null},AKt.yi=function(t){return-1==this.b&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,t)},AKt.Ai=function(){return this.c},AKt.hj=function(){var t;return!!(t=c8(this))&&t.Kj()},AKt.b=-1,mW(h6t,"ENotificationImpl",36),fBt(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},Ik),AKt.Qg=function(t){return Eyt(this,t)},AKt._g=function(t,e,n){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cL(),!!(256&this.Bb);case 3:return cL(),!!(512&this.Bb);case 4:return ndt(this.s);case 5:return ndt(this.t);case 6:return cL(),(i=this.t)>1||-1==i;case 7:return cL(),this.s>=1;case 8:return e?Syt(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?jz(this.Cb,26):null;case 11:return!this.d&&(this.d=new MP(TMe,this,11)),this.d;case 12:return!this.c&&(this.c=new tG(KBe,this,12,10)),this.c;case 13:return!this.a&&(this.a=new aR(this,this)),this.a;case 14:return $9(this)}return q8(this,t-hW((pKt(),fMe)),eet(jz(kat(this,16),26)||fMe,t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 10:return this.Cb&&(n=(i=this.Db>>16)>=0?Eyt(this,n):this.Cb.ih(this,-1-i,null,n)),Cjt(this,t,10,n);case 12:return!this.c&&(this.c=new tG(KBe,this,12,10)),Xgt(this.c,t,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),fMe),e),66).Nj().Qj(this,umt(this),e-hW((pKt(),fMe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 9:return gW(this,n);case 10:return Cjt(this,null,10,n);case 11:return!this.d&&(this.d=new MP(TMe,this,11)),Fbt(this.d,t,n);case 12:return!this.c&&(this.c=new tG(KBe,this,12,10)),Fbt(this.c,t,n);case 14:return Fbt($9(this),t,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),fMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),fMe)),t,n)},AKt.lh=function(t){var e;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(e=this.t)>1||-1==e;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==wK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==wK(this.q).i);case 10:return!(this.Db>>16!=10||!jz(this.Cb,26));case 11:return!!this.d&&0!=this.d.i;case 12:return!!this.c&&0!=this.c.i;case 13:return!(!this.a||0==$9(this.a.a).i||this.b&&Rwt(this.b));case 14:return!!this.b&&Rwt(this.b)}return S3(this,t-hW((pKt(),fMe)),eet(jz(kat(this,16),26)||fMe,t))},AKt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void Prt(this,AN(e));case 2:return void Xht(this,zv(_N(e)));case 3:return void Jht(this,zv(_N(e)));case 4:return void Mnt(this,jz(e,19).a);case 5:return void Pnt(this,jz(e,19).a);case 8:return void Sut(this,jz(e,138));case 9:return void((n=zAt(this,jz(e,87),null))&&n.Fi());case 11:return!this.d&&(this.d=new MP(TMe,this,11)),cHt(this.d),!this.d&&(this.d=new MP(TMe,this,11)),void pW(this.d,jz(e,14));case 12:return!this.c&&(this.c=new tG(KBe,this,12,10)),cHt(this.c),!this.c&&(this.c=new tG(KBe,this,12,10)),void pW(this.c,jz(e,14));case 13:return!this.a&&(this.a=new aR(this,this)),bHt(this.a),!this.a&&(this.a=new aR(this,this)),void pW(this.a,jz(e,14));case 14:return cHt($9(this)),void pW($9(this),jz(e,14))}Mft(this,t-hW((pKt(),fMe)),eet(jz(kat(this,16),26)||fMe,t),e)},AKt.zh=function(){return pKt(),fMe},AKt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return void Prt(this,null);case 2:return void Xht(this,!0);case 3:return void Jht(this,!0);case 4:return void Mnt(this,0);case 5:return void Pnt(this,1);case 8:return void Sut(this,null);case 9:return void((e=zAt(this,null,null))&&e.Fi());case 11:return!this.d&&(this.d=new MP(TMe,this,11)),void cHt(this.d);case 12:return!this.c&&(this.c=new tG(KBe,this,12,10)),void cHt(this.c);case 13:return void(this.a&&bHt(this.a));case 14:return void(this.b&&cHt(this.b))}Vht(this,t-hW((pKt(),fMe)),eet(jz(kat(this,16),26)||fMe,t))},AKt.Gh=function(){var t,e;if(this.c)for(t=0,e=this.c.i;t<e;++t)mO(Wet(this.c,t));Syt(this),this.Bb|=1},mW(h6t,"EOperationImpl",399),fBt(505,742,z8t,aR),AKt.Hi=function(t,e){lN(this,t,jz(e,138))},AKt.Ii=function(t){eM(this,jz(t,138))},AKt.Oi=function(t){return jz(Wet($9(this.a),t),87).c||(pKt(),lMe)},AKt.Ti=function(t){return jz(uNt($9(this.a),t),87).c||(pKt(),lMe)},AKt.Ui=function(t,e){return dmt(this,t,jz(e,138))},AKt.ai=function(){return!1},AKt.Zi=function(t,e,n,i,r){return null},AKt.Ji=function(){return new bb(this)},AKt.Ki=function(){cHt($9(this.a))},AKt.Li=function(t){return sdt(this,t)},AKt.Mi=function(t){var e;for(e=t.Kc();e.Ob();)if(!sdt(this,e.Pb()))return!1;return!0},AKt.Ni=function(t){var e,n,i;if(iP(t,15)&&(i=jz(t,15)).gc()==$9(this.a).i){for(e=i.Kc(),n=new DP(this);e.Ob();)if(VD(e.Pb())!==VD(vbt(n)))return!1;return!0}return!1},AKt.Pi=function(){var t,e,n;for(e=1,t=new DP($9(this.a));t.e!=t.i.gc();)e=31*e+((n=jz(vbt(t),87).c||(pKt(),lMe))?Jct(n):0);return e},AKt.Qi=function(t){var e,n,i;for(i=0,n=new DP($9(this.a));n.e!=n.i.gc();){if(e=jz(vbt(n),87),VD(t)===VD(e.c||(pKt(),lMe)))return i;++i}return-1},AKt.Ri=function(){return 0==$9(this.a).i},AKt.Si=function(){return null},AKt.Vi=function(){return $9(this.a).i},AKt.Wi=function(){var t,e,n,i,r;for(r=$9(this.a).i,i=P7(Ite,zKt,1,r,5,1),n=0,e=new DP($9(this.a));e.e!=e.i.gc();)t=jz(vbt(e),87),i[n++]=t.c||(pKt(),lMe);return i},AKt.Xi=function(t){var e,n,i;for(i=$9(this.a).i,t.length<i&&(t=Ont(tlt(t).c,i)),t.length>i&&IW(t,i,null),n=0,e=new DP($9(this.a));e.e!=e.i.gc();)IW(t,n++,jz(vbt(e),87).c||(pKt(),lMe));return t},AKt.Yi=function(){var t,e,n,i;for((i=new Ay).a+="[",t=$9(this.a),e=0,n=$9(this.a).i;e<n;)iI(i,kL(jz(Wet(t,e),87).c||(pKt(),lMe))),++e<n&&(i.a+=jKt);return i.a+="]",i.a},AKt.$i=function(t){},AKt.aj=function(){return 13},AKt.Bk=function(){return!0},AKt.bj=function(){return!1},AKt.Ck=function(){return!1},AKt.Dk=function(){return!1},AKt.Ek=function(){return!0},AKt.rk=function(){return!1},AKt.Fk=function(){return!0},AKt.wj=function(t){return iP(t,138)},AKt.fj=function(){return W0(this.a)},AKt.hi=function(){return!0},AKt.ni=function(){return!0},mW(h6t,"EOperationImpl/1",505),fBt(1340,1964,MYt,bb),AKt.Zc=function(t){return cit(this.a,t)},AKt.gc=function(){return $9(this.a.a).i},mW(h6t,"EOperationImpl/1/1",1340),fBt(1341,545,N8t,Xq),AKt.ii=function(t,e){var n;return n=jz(Sdt(this,t,e),87),bB(this.e)&&Bw(this,new v8(this.a,7,(pKt(),gMe),ndt(e),n.c||lMe,t)),n},AKt.jj=function(t,e){return Aht(this,jz(t,87),e)},AKt.kj=function(t,e){return xht(this,jz(t,87),e)},AKt.lj=function(t,e,n){return Wmt(this,jz(t,87),jz(e,87),n)},AKt.Zi=function(t,e,n,i,r){switch(t){case 3:return wJ(this,t,e,n,i,this.i>1);case 5:return wJ(this,t,e,n,i,this.i-jz(n,15).gc()>0);default:return new M9(this.e,t,this.c,e,n,i,!0)}},AKt.ij=function(){return!0},AKt.fj=function(){return Rwt(this)},AKt.Xj=function(){cHt(this)},mW(h6t,"EOperationImpl/2",1341),fBt(498,1,{1938:1,498:1},SD),mW(h6t,"EPackageImpl/1",498),fBt(16,85,N8t,tG),AKt.zk=function(){return this.d},AKt.Ak=function(){return this.b},AKt.Dk=function(){return!0},AKt.b=0,mW(k8t,"EObjectContainmentWithInverseEList",16),fBt(353,16,N8t,tF),AKt.Ek=function(){return!0},AKt.li=function(t,e){return HIt(this,t,jz(e,56))},mW(k8t,"EObjectContainmentWithInverseEList/Resolving",353),fBt(298,353,N8t,XU),AKt.ci=function(){this.a.tb=null},mW(h6t,"EPackageImpl/2",298),fBt(1228,1,{},Ic),mW(h6t,"EPackageImpl/3",1228),fBt(718,43,tZt,Mk),AKt._b=function(t){return UD(t)?tZ(this,t):!!DZ(this.f,t)},mW(h6t,"EPackageRegistryImpl",718),fBt(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},Bk),AKt.Qg=function(t){return Tyt(this,t)},AKt._g=function(t,e,n){var i;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cL(),!!(256&this.Bb);case 3:return cL(),!!(512&this.Bb);case 4:return ndt(this.s);case 5:return ndt(this.t);case 6:return cL(),(i=this.t)>1||-1==i;case 7:return cL(),this.s>=1;case 8:return e?Syt(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?jz(this.Cb,59):null}return q8(this,t-hW((pKt(),mMe)),eet(jz(kat(this,16),26)||mMe,t),e,n)},AKt.hh=function(t,e,n){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Xgt(this.Ab,t,n);case 10:return this.Cb&&(n=(i=this.Db>>16)>=0?Tyt(this,n):this.Cb.ih(this,-1-i,null,n)),Cjt(this,t,10,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),mMe),e),66).Nj().Qj(this,umt(this),e-hW((pKt(),mMe)),t,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 9:return gW(this,n);case 10:return Cjt(this,null,10,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),mMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),mMe)),t,n)},AKt.lh=function(t){var e;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(e=this.t)>1||-1==e;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==wK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==wK(this.q).i);case 10:return!(this.Db>>16!=10||!jz(this.Cb,59))}return S3(this,t-hW((pKt(),mMe)),eet(jz(kat(this,16),26)||mMe,t))},AKt.zh=function(){return pKt(),mMe},mW(h6t,"EParameterImpl",509),fBt(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},pN),AKt._g=function(t,e,n){var i,r;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cL(),!!(256&this.Bb);case 3:return cL(),!!(512&this.Bb);case 4:return ndt(this.s);case 5:return ndt(this.t);case 6:return cL(),(r=this.t)>1||-1==r;case 7:return cL(),this.s>=1;case 8:return e?Syt(this):this.r;case 9:return this.q;case 10:return cL(),!!(this.Bb&v6t);case 11:return cL(),!!(this.Bb&A8t);case 12:return cL(),!!(this.Bb&FXt);case 13:return this.j;case 14:return VPt(this);case 15:return cL(),!!(this.Bb&C8t);case 16:return cL(),!!(this.Bb&lYt);case 17:return fJ(this);case 18:return cL(),!!(this.Bb&l6t);case 19:return cL(),!!((i=Twt(this))&&i.Bb&l6t);case 20:return cL(),!!(this.Bb&$Xt);case 21:return e?Twt(this):this.b;case 22:return e?Sct(this):N4(this);case 23:return!this.a&&(this.a=new OP(FBe,this,23)),this.a}return q8(this,t-hW((pKt(),bMe)),eet(jz(kat(this,16),26)||bMe,t),e,n)},AKt.lh=function(t){var e,n;switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(n=this.t)>1||-1==n;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==wK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==wK(this.q).i);case 10:return!(this.Bb&v6t);case 11:return!!(this.Bb&A8t);case 12:return!!(this.Bb&FXt);case 13:return null!=this.j;case 14:return null!=VPt(this);case 15:return!!(this.Bb&C8t);case 16:return!!(this.Bb&lYt);case 17:return!!fJ(this);case 18:return!!(this.Bb&l6t);case 19:return!!(e=Twt(this))&&!!(e.Bb&l6t);case 20:return!(this.Bb&$Xt);case 21:return!!this.b;case 22:return!!N4(this);case 23:return!!this.a&&0!=this.a.i}return S3(this,t-hW((pKt(),bMe)),eet(jz(kat(this,16),26)||bMe,t))},AKt.sh=function(t,e){var n;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void XJ(this,AN(e));case 2:return void Xht(this,zv(_N(e)));case 3:return void Jht(this,zv(_N(e)));case 4:return void Mnt(this,jz(e,19).a);case 5:return void Pnt(this,jz(e,19).a);case 8:return void Sut(this,jz(e,138));case 9:return void((n=zAt(this,jz(e,87),null))&&n.Fi());case 10:return void Idt(this,zv(_N(e)));case 11:return void Pdt(this,zv(_N(e)));case 12:return void Bdt(this,zv(_N(e)));case 13:return void RD(this,AN(e));case 15:return void Mdt(this,zv(_N(e)));case 16:return void Vdt(this,zv(_N(e)));case 18:return void YJ(this,zv(_N(e)));case 20:return void Udt(this,zv(_N(e)));case 21:return void irt(this,jz(e,18));case 23:return!this.a&&(this.a=new OP(FBe,this,23)),cHt(this.a),!this.a&&(this.a=new OP(FBe,this,23)),void pW(this.a,jz(e,14))}Mft(this,t-hW((pKt(),bMe)),eet(jz(kat(this,16),26)||bMe,t),e)},AKt.zh=function(){return pKt(),bMe},AKt.Bh=function(t){var e;switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return iP(this.Cb,88)&&ISt(x4(jz(this.Cb,88)),4),void Prt(this,null);case 2:return void Xht(this,!0);case 3:return void Jht(this,!0);case 4:return void Mnt(this,0);case 5:return void Pnt(this,1);case 8:return void Sut(this,null);case 9:return void((e=zAt(this,null,null))&&e.Fi());case 10:return void Idt(this,!0);case 11:return void Pdt(this,!1);case 12:return void Bdt(this,!1);case 13:return this.i=null,void ort(this,null);case 15:return void Mdt(this,!1);case 16:return void Vdt(this,!1);case 18:return qdt(this,!1),void(iP(this.Cb,88)&&ISt(x4(jz(this.Cb,88)),2));case 20:return void Udt(this,!0);case 21:return void irt(this,null);case 23:return!this.a&&(this.a=new OP(FBe,this,23)),void cHt(this.a)}Vht(this,t-hW((pKt(),bMe)),eet(jz(kat(this,16),26)||bMe,t))},AKt.Gh=function(){Sct(this),kY(j9((STt(),XMe),this)),Syt(this),this.Bb|=1},AKt.Lj=function(){return Twt(this)},AKt.qk=function(){var t;return!!(t=Twt(this))&&!!(t.Bb&l6t)},AKt.rk=function(){return!!(this.Bb&l6t)},AKt.sk=function(){return!!(this.Bb&$Xt)},AKt.nk=function(t,e){return this.c=null,Eht(this,t,e)},AKt.Ib=function(){var t;return 64&this.Db?_Rt(this):((t=new lL(_Rt(this))).a+=" (containment: ",wC(t,!!(this.Bb&l6t)),t.a+=", resolveProxies: ",wC(t,!!(this.Bb&$Xt)),t.a+=")",t.a)},mW(h6t,"EReferenceImpl",99),fBt(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},Bc),AKt.Fb=function(t){return this===t},AKt.cd=function(){return this.b},AKt.dd=function(){return this.c},AKt.Hb=function(){return xL(this)},AKt.Uh=function(t){mH(this,AN(t))},AKt.ed=function(t){return IV(this,AN(t))},AKt._g=function(t,e,n){switch(t){case 0:return this.b;case 1:return this.c}return q8(this,t-hW((pKt(),wMe)),eet(jz(kat(this,16),26)||wMe,t),e,n)},AKt.lh=function(t){switch(t){case 0:return null!=this.b;case 1:return null!=this.c}return S3(this,t-hW((pKt(),wMe)),eet(jz(kat(this,16),26)||wMe,t))},AKt.sh=function(t,e){switch(t){case 0:return void bH(this,AN(e));case 1:return void Rit(this,AN(e))}Mft(this,t-hW((pKt(),wMe)),eet(jz(kat(this,16),26)||wMe,t),e)},AKt.zh=function(){return pKt(),wMe},AKt.Bh=function(t){switch(t){case 0:return void Nit(this,null);case 1:return void Rit(this,null)}Vht(this,t-hW((pKt(),wMe)),eet(jz(kat(this,16),26)||wMe,t))},AKt.Sh=function(){var t;return-1==this.a&&(t=this.b,this.a=null==t?0:bwt(t)),this.a},AKt.Th=function(t){this.a=t},AKt.Ib=function(){var t;return 64&this.Db?EMt(this):((t=new lL(EMt(this))).a+=" (key: ",iI(t,this.b),t.a+=", value: ",iI(t,this.c),t.a+=")",t.a)},AKt.a=-1,AKt.b=null,AKt.c=null;var LMe,OMe,NMe,RMe,FMe,jMe,$Me,zMe,VMe,HMe,qMe=mW(h6t,"EStringToStringMapEntryImpl",548),UMe=hH(k8t,"FeatureMap/Entry/Internal");fBt(565,1,q8t),AKt.Ok=function(t){return this.Pk(jz(t,49))},AKt.Pk=function(t){return this.Ok(t)},AKt.Fb=function(t){var e,n;return this===t||!!iP(t,72)&&(e=jz(t,72)).ak()==this.c&&(null==(n=this.dd())?null==e.dd():Pht(n,e.dd()))},AKt.ak=function(){return this.c},AKt.Hb=function(){var t;return t=this.dd(),Jct(this.c)^(null==t?0:Jct(t))},AKt.Ib=function(){var t,e;return e=Uet((t=this.c).Hj()).Ph(),t.ne(),(null!=e&&0!=e.length?e+":"+t.ne():t.ne())+"="+this.dd()},mW(h6t,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),fBt(776,565,q8t,nR),AKt.Pk=function(t){return new nR(this.c,t)},AKt.dd=function(){return this.a},AKt.Qk=function(t,e,n){return xot(this,t,this.a,e,n)},AKt.Rk=function(t,e,n){return Eot(this,t,this.a,e,n)},mW(h6t,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),fBt(1314,1,{},DD),AKt.Pj=function(t,e,n,i,r){return jz(A8(t,this.b),215).nl(this.a).Wj(i)},AKt.Qj=function(t,e,n,i,r){return jz(A8(t,this.b),215).el(this.a,i,r)},AKt.Rj=function(t,e,n,i,r){return jz(A8(t,this.b),215).fl(this.a,i,r)},AKt.Sj=function(t,e,n){return jz(A8(t,this.b),215).nl(this.a).fj()},AKt.Tj=function(t,e,n,i){jz(A8(t,this.b),215).nl(this.a).Wb(i)},AKt.Uj=function(t,e,n){return jz(A8(t,this.b),215).nl(this.a)},AKt.Vj=function(t,e,n){jz(A8(t,this.b),215).nl(this.a).Xj()},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),fBt(89,1,{},xz,uX,OZ,d5),AKt.Pj=function(t,e,n,i,r){var o;if(null==(o=e.Ch(n))&&e.Dh(n,o=nKt(this,t)),!r)switch(this.e){case 50:case 41:return jz(o,589).sj();case 40:return jz(o,215).kl()}return o},AKt.Qj=function(t,e,n,i,r){var o;return null==(o=e.Ch(n))&&e.Dh(n,o=nKt(this,t)),jz(o,69).lk(i,r)},AKt.Rj=function(t,e,n,i,r){var o;return null!=(o=e.Ch(n))&&(r=jz(o,69).mk(i,r)),r},AKt.Sj=function(t,e,n){var i;return null!=(i=e.Ch(n))&&jz(i,76).fj()},AKt.Tj=function(t,e,n,i){var r;!(r=jz(e.Ch(n),76))&&e.Dh(n,r=nKt(this,t)),r.Wb(i)},AKt.Uj=function(t,e,n){var i;return null==(i=e.Ch(n))&&e.Dh(n,i=nKt(this,t)),iP(i,76)?jz(i,76):new yb(jz(e.Ch(n),15))},AKt.Vj=function(t,e,n){var i;!(i=jz(e.Ch(n),76))&&e.Dh(n,i=nKt(this,t)),i.Xj()},AKt.b=0,AKt.e=0,mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),fBt(504,1,{}),AKt.Qj=function(t,e,n,i,r){throw $b(new pw)},AKt.Rj=function(t,e,n,i,r){throw $b(new pw)},AKt.Uj=function(t,e,n){return new hX(this,t,e,n)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),fBt(1331,1,v8t,hX),AKt.Wj=function(t){return this.a.Pj(this.c,this.d,this.b,t,!0)},AKt.fj=function(){return this.a.Sj(this.c,this.d,this.b)},AKt.Wb=function(t){this.a.Tj(this.c,this.d,this.b,t)},AKt.Xj=function(){this.a.Vj(this.c,this.d,this.b)},AKt.b=0,mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),fBt(769,504,{},bQ),AKt.Pj=function(t,e,n,i,r){return pFt(t,t.eh(),t.Vg())==this.b?this.sk()&&i?rBt(t):t.eh():null},AKt.Qj=function(t,e,n,i,r){var o,a;return t.eh()&&(r=(o=t.Vg())>=0?t.Qg(r):t.eh().ih(t,-1-o,null,r)),a=Igt(t.Tg(),this.e),t.Sg(i,a,r)},AKt.Rj=function(t,e,n,i,r){var o;return o=Igt(t.Tg(),this.e),t.Sg(null,o,r)},AKt.Sj=function(t,e,n){var i;return i=Igt(t.Tg(),this.e),!!t.eh()&&t.Vg()==i},AKt.Tj=function(t,e,n,i){var r,o,a,s,c;if(null!=i&&!x$t(this.a,i))throw $b(new Nv(U8t+(iP(i,56)?gCt(jz(i,56).Tg()):oet(tlt(i)))+G8t+this.a+"'"));if(r=t.eh(),a=Igt(t.Tg(),this.e),VD(i)!==VD(r)||t.Vg()!=a&&null!=i){if(byt(t,jz(i,56)))throw $b(new Rv(f6t+t.Ib()));c=null,r&&(c=(o=t.Vg())>=0?t.Qg(c):t.eh().ih(t,-1-o,null,c)),(s=jz(i,49))&&(c=s.gh(t,Igt(s.Tg(),this.b),null,c)),(c=t.Sg(s,a,c))&&c.Fi()}else t.Lg()&&t.Mg()&&dat(t,new QU(t,1,a,i,i))},AKt.Vj=function(t,e,n){var i,r,o;t.eh()?(o=(i=t.Vg())>=0?t.Qg(null):t.eh().ih(t,-1-i,null,null),r=Igt(t.Tg(),this.e),(o=t.Sg(null,r,o))&&o.Fi()):t.Lg()&&t.Mg()&&dat(t,new JU(t,1,this.e,null,null))},AKt.sk=function(){return!1},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),fBt(1315,769,{},Ez),AKt.sk=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),fBt(563,504,{}),AKt.Pj=function(t,e,n,i,r){var o;return null==(o=e.Ch(n))?this.b:VD(o)===VD(LMe)?null:o},AKt.Sj=function(t,e,n){var i;return null!=(i=e.Ch(n))&&(VD(i)===VD(LMe)||!Pht(i,this.b))},AKt.Tj=function(t,e,n,i){var r,o;t.Lg()&&t.Mg()?(r=null==(o=e.Ch(n))?this.b:VD(o)===VD(LMe)?null:o,null==i?null!=this.c?(e.Dh(n,null),i=this.b):null!=this.b?e.Dh(n,LMe):e.Dh(n,null):(this.Sk(i),e.Dh(n,i)),dat(t,this.d.Tk(t,1,this.e,r,i))):null==i?null!=this.c?e.Dh(n,null):null!=this.b?e.Dh(n,LMe):e.Dh(n,null):(this.Sk(i),e.Dh(n,i))},AKt.Vj=function(t,e,n){var i,r;t.Lg()&&t.Mg()?(i=null==(r=e.Ch(n))?this.b:VD(r)===VD(LMe)?null:r,e.Eh(n),dat(t,this.d.Tk(t,1,this.e,i,this.b))):e.Eh(n)},AKt.Sk=function(t){throw $b(new hw)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),fBt(W8t,1,{},Mc),AKt.Tk=function(t,e,n,i,r){return new JU(t,e,n,i,r)},AKt.Uk=function(t,e,n,i,r,o){return new VX(t,e,n,i,r,o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",W8t),fBt(1332,W8t,{},Pc),AKt.Tk=function(t,e,n,i,r){return new Q4(t,e,n,zv(_N(i)),zv(_N(r)))},AKt.Uk=function(t,e,n,i,r,o){return new B0(t,e,n,zv(_N(i)),zv(_N(r)),o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),fBt(1333,W8t,{},Lc),AKt.Tk=function(t,e,n,i,r){return new znt(t,e,n,jz(i,217).a,jz(r,217).a)},AKt.Uk=function(t,e,n,i,r,o){return new A0(t,e,n,jz(i,217).a,jz(r,217).a,o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),fBt(1334,W8t,{},Oc),AKt.Tk=function(t,e,n,i,r){return new Vnt(t,e,n,jz(i,172).a,jz(r,172).a)},AKt.Uk=function(t,e,n,i,r,o){return new x0(t,e,n,jz(i,172).a,jz(r,172).a,o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),fBt(1335,W8t,{},Nc),AKt.Tk=function(t,e,n,i,r){return new X4(t,e,n,Vv(CN(i)),Vv(CN(r)))},AKt.Uk=function(t,e,n,i,r,o){return new E0(t,e,n,Vv(CN(i)),Vv(CN(r)),o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),fBt(1336,W8t,{},Rc),AKt.Tk=function(t,e,n,i,r){return new Unt(t,e,n,jz(i,155).a,jz(r,155).a)},AKt.Uk=function(t,e,n,i,r,o){return new T0(t,e,n,jz(i,155).a,jz(r,155).a,o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),fBt(1337,W8t,{},Fc),AKt.Tk=function(t,e,n,i,r){return new Z4(t,e,n,jz(i,19).a,jz(r,19).a)},AKt.Uk=function(t,e,n,i,r,o){return new S0(t,e,n,jz(i,19).a,jz(r,19).a,o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),fBt(1338,W8t,{},jc),AKt.Tk=function(t,e,n,i,r){return new Hnt(t,e,n,jz(i,162).a,jz(r,162).a)},AKt.Uk=function(t,e,n,i,r,o){return new D0(t,e,n,jz(i,162).a,jz(r,162).a,o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),fBt(1339,W8t,{},$c),AKt.Tk=function(t,e,n,i,r){return new qnt(t,e,n,jz(i,184).a,jz(r,184).a)},AKt.Uk=function(t,e,n,i,r,o){return new I0(t,e,n,jz(i,184).a,jz(r,184).a,o)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),fBt(1317,563,{},dX),AKt.Sk=function(t){if(!this.a.wj(t))throw $b(new Nv(U8t+tlt(t)+G8t+this.a+"'"))},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),fBt(1318,563,{},Zq),AKt.Sk=function(t){},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),fBt(770,563,{}),AKt.Sj=function(t,e,n){return null!=e.Ch(n)},AKt.Tj=function(t,e,n,i){var r,o;t.Lg()&&t.Mg()?(r=!0,null==(o=e.Ch(n))?(r=!1,o=this.b):VD(o)===VD(LMe)&&(o=null),null==i?null!=this.c?(e.Dh(n,null),i=this.b):e.Dh(n,LMe):(this.Sk(i),e.Dh(n,i)),dat(t,this.d.Uk(t,1,this.e,o,i,!r))):null==i?null!=this.c?e.Dh(n,null):e.Dh(n,LMe):(this.Sk(i),e.Dh(n,i))},AKt.Vj=function(t,e,n){var i,r;t.Lg()&&t.Mg()?(i=!0,null==(r=e.Ch(n))?(i=!1,r=this.b):VD(r)===VD(LMe)&&(r=null),e.Eh(n),dat(t,this.d.Uk(t,2,this.e,r,this.b,i))):e.Eh(n)},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),fBt(1319,770,{},fX),AKt.Sk=function(t){if(!this.a.wj(t))throw $b(new Nv(U8t+tlt(t)+G8t+this.a+"'"))},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),fBt(1320,770,{},Qq),AKt.Sk=function(t){},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),fBt(398,504,{},iq),AKt.Pj=function(t,e,n,i,r){var o,a,s,c,l;if(l=e.Ch(n),this.Kj()&&VD(l)===VD(LMe))return null;if(this.sk()&&i&&null!=l){if((s=jz(l,49)).kh()&&s!=(c=tht(t,s))){if(!x$t(this.a,c))throw $b(new Nv(U8t+tlt(c)+G8t+this.a+"'"));e.Dh(n,l=c),this.rk()&&(o=jz(c,49),a=s.ih(t,this.b?Igt(s.Tg(),this.b):-1-Igt(t.Tg(),this.e),null,null),!o.eh()&&(a=o.gh(t,this.b?Igt(o.Tg(),this.b):-1-Igt(t.Tg(),this.e),null,a)),a&&a.Fi()),t.Lg()&&t.Mg()&&dat(t,new JU(t,9,this.e,s,c))}return l}return l},AKt.Qj=function(t,e,n,i,r){var o,a;return VD(a=e.Ch(n))===VD(LMe)&&(a=null),e.Dh(n,i),this.bj()?VD(a)!==VD(i)&&null!=a&&(r=(o=jz(a,49)).ih(t,Igt(o.Tg(),this.b),null,r)):this.rk()&&null!=a&&(r=jz(a,49).ih(t,-1-Igt(t.Tg(),this.e),null,r)),t.Lg()&&t.Mg()&&(!r&&(r=new F_(4)),r.Ei(new JU(t,1,this.e,a,i))),r},AKt.Rj=function(t,e,n,i,r){var o;return VD(o=e.Ch(n))===VD(LMe)&&(o=null),e.Eh(n),t.Lg()&&t.Mg()&&(!r&&(r=new F_(4)),this.Kj()?r.Ei(new JU(t,2,this.e,o,null)):r.Ei(new JU(t,1,this.e,o,null))),r},AKt.Sj=function(t,e,n){return null!=e.Ch(n)},AKt.Tj=function(t,e,n,i){var r,o,a,s,c;if(null!=i&&!x$t(this.a,i))throw $b(new Nv(U8t+(iP(i,56)?gCt(jz(i,56).Tg()):oet(tlt(i)))+G8t+this.a+"'"));s=null!=(c=e.Ch(n)),this.Kj()&&VD(c)===VD(LMe)&&(c=null),a=null,this.bj()?VD(c)!==VD(i)&&(null!=c&&(a=(r=jz(c,49)).ih(t,Igt(r.Tg(),this.b),null,a)),null!=i&&(a=(r=jz(i,49)).gh(t,Igt(r.Tg(),this.b),null,a))):this.rk()&&VD(c)!==VD(i)&&(null!=c&&(a=jz(c,49).ih(t,-1-Igt(t.Tg(),this.e),null,a)),null!=i&&(a=jz(i,49).gh(t,-1-Igt(t.Tg(),this.e),null,a))),null==i&&this.Kj()?e.Dh(n,LMe):e.Dh(n,i),t.Lg()&&t.Mg()?(o=new VX(t,1,this.e,c,i,this.Kj()&&!s),a?(a.Ei(o),a.Fi()):dat(t,o)):a&&a.Fi()},AKt.Vj=function(t,e,n){var i,r,o,a,s;a=null!=(s=e.Ch(n)),this.Kj()&&VD(s)===VD(LMe)&&(s=null),o=null,null!=s&&(this.bj()?o=(i=jz(s,49)).ih(t,Igt(i.Tg(),this.b),null,o):this.rk()&&(o=jz(s,49).ih(t,-1-Igt(t.Tg(),this.e),null,o))),e.Eh(n),t.Lg()&&t.Mg()?(r=new VX(t,this.Kj()?2:1,this.e,s,null,a),o?(o.Ei(r),o.Fi()):dat(t,r)):o&&o.Fi()},AKt.bj=function(){return!1},AKt.rk=function(){return!1},AKt.sk=function(){return!1},AKt.Kj=function(){return!1},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),fBt(564,398,{},ZO),AKt.rk=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),fBt(1323,564,{},QO),AKt.sk=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),fBt(772,564,{},JO),AKt.Kj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),fBt(1325,772,{},tN),AKt.sk=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),fBt(640,564,{},Tz),AKt.bj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),fBt(1324,640,{},Iz),AKt.sk=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),fBt(773,640,{},Bz),AKt.Kj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),fBt(1326,773,{},Mz),AKt.sk=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),fBt(641,398,{},eN),AKt.sk=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),fBt(1327,641,{},nN),AKt.Kj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),fBt(774,641,{},Sz),AKt.bj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),fBt(1328,774,{},Pz),AKt.Kj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),fBt(1321,398,{},iN),AKt.Kj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),fBt(771,398,{},Dz),AKt.bj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),fBt(1322,771,{},Lz),AKt.Kj=function(){return!0},mW(h6t,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),fBt(775,565,q8t,rK),AKt.Pk=function(t){return new rK(this.a,this.c,t)},AKt.dd=function(){return this.b},AKt.Qk=function(t,e,n){return L7(this,t,this.b,n)},AKt.Rk=function(t,e,n){return O7(this,t,this.b,n)},mW(h6t,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),fBt(1329,1,v8t,yb),AKt.Wj=function(t){return this.a},AKt.fj=function(){return iP(this.a,95)?jz(this.a,95).fj():!this.a.dc()},AKt.Wb=function(t){this.a.$b(),this.a.Gc(jz(t,15))},AKt.Xj=function(){iP(this.a,95)?jz(this.a,95).Xj():this.a.$b()},mW(h6t,"EStructuralFeatureImpl/SettingMany",1329),fBt(1330,565,q8t,g5),AKt.Ok=function(t){return new iR((UHt(),RPe),this.b.Ih(this.a,t))},AKt.dd=function(){return null},AKt.Qk=function(t,e,n){return n},AKt.Rk=function(t,e,n){return n},mW(h6t,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),fBt(642,565,q8t,iR),AKt.Ok=function(t){return new iR(this.c,t)},AKt.dd=function(){return this.a},AKt.Qk=function(t,e,n){return n},AKt.Rk=function(t,e,n){return n},mW(h6t,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),fBt(391,497,l7t,zc),AKt.ri=function(t){return P7($Be,zKt,26,t,0,1)},AKt.ni=function(){return!1},mW(h6t,"ESuperAdapter/1",391),fBt(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},Vc),AKt._g=function(t,e,n){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new rq(this,GBe,this)),this.a}return q8(this,t-hW((pKt(),yMe)),eet(jz(kat(this,16),26)||yMe,t),e,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),Fbt(this.Ab,t,n);case 2:return!this.a&&(this.a=new rq(this,GBe,this)),Fbt(this.a,t,n)}return jz(eet(jz(kat(this,16),26)||(pKt(),yMe),e),66).Nj().Rj(this,umt(this),e-hW((pKt(),yMe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!!this.a&&0!=this.a.i}return S3(this,t-hW((pKt(),yMe)),eet(jz(kat(this,16),26)||yMe,t))},AKt.sh=function(t,e){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),cHt(this.Ab),!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void pW(this.Ab,jz(e,14));case 1:return void Prt(this,AN(e));case 2:return!this.a&&(this.a=new rq(this,GBe,this)),cHt(this.a),!this.a&&(this.a=new rq(this,GBe,this)),void pW(this.a,jz(e,14))}Mft(this,t-hW((pKt(),yMe)),eet(jz(kat(this,16),26)||yMe,t),e)},AKt.zh=function(){return pKt(),yMe},AKt.Bh=function(t){switch(t){case 0:return!this.Ab&&(this.Ab=new tG(OBe,this,0,3)),void cHt(this.Ab);case 1:return void Prt(this,null);case 2:return!this.a&&(this.a=new rq(this,GBe,this)),void cHt(this.a)}Vht(this,t-hW((pKt(),yMe)),eet(jz(kat(this,16),26)||yMe,t))},mW(h6t,"ETypeParameterImpl",444),fBt(445,85,N8t,rq),AKt.cj=function(t,e){return MAt(this,jz(t,87),e)},AKt.dj=function(t,e){return PAt(this,jz(t,87),e)},mW(h6t,"ETypeParameterImpl/1",445),fBt(634,43,tZt,Pk),AKt.ec=function(){return new _b(this)},mW(h6t,"ETypeParameterImpl/2",634),fBt(556,JKt,tYt,_b),AKt.Fc=function(t){return YR(this,jz(t,87))},AKt.Gc=function(t){var e,n,i;for(i=!1,n=t.Kc();n.Ob();)e=jz(n.Pb(),87),null==WK(this.a,e,"")&&(i=!0);return i},AKt.$b=function(){IG(this.a)},AKt.Hc=function(t){return cG(this.a,t)},AKt.Kc=function(){return new Cb(new alt(new xf(this.a).a))},AKt.Mc=function(t){return R6(this,t)},AKt.gc=function(){return MA(this.a)},mW(h6t,"ETypeParameterImpl/2/1",556),fBt(557,1,YKt,Cb),AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return jz(tnt(this.a).cd(),87)},AKt.Ob=function(){return this.a.b},AKt.Qb=function(){a8(this.a)},mW(h6t,"ETypeParameterImpl/2/1/1",557),fBt(1276,43,tZt,Lk),AKt._b=function(t){return UD(t)?tZ(this,t):!!DZ(this.f,t)},AKt.xc=function(t){var e;return iP(e=UD(t)?AQ(this,t):zD(DZ(this.f,t)),837)?(e=jz(e,837)._j(),WK(this,jz(t,235),e),e):null!=e?e:null==t?(Xx(),ePe):null},mW(h6t,"EValidatorRegistryImpl",1276),fBt(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},Hc),AKt.Ih=function(t,e){switch(t.yj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return null==e?null:$ft(e);case 25:return Get(e);case 27:return U8(e);case 28:return G8(e);case 29:return null==e?null:$M(TIe[0],jz(e,199));case 41:return null==e?"":Q_(jz(e,290));case 42:return $ft(e);case 50:return AN(e);default:throw $b(new Rv(g6t+t.ne()+p6t))}},AKt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=Uet(t))?awt(e.Mh(),t):-1),t.G){case 0:return new Sk;case 1:return new _c;case 2:return new Nh;case 4:return new yw;case 5:return new Dk;case 6:return new vw;case 7:return new Lh;case 10:return new vc;case 11:return new Ik;case 12:return new mZ;case 13:return new Bk;case 14:return new pN;case 17:return new Bc;case 18:return new Nb;case 19:return new Vc;default:throw $b(new Rv(w6t+t.zb+p6t))}},AKt.Kh=function(t,e){switch(t.yj()){case 20:return null==e?null:new dC(e);case 21:return null==e?null:new IB(e);case 23:case 22:return null==e?null:Qpt(e);case 26:case 24:return null==e?null:xtt(hjt(e,-128,127)<<24>>24);case 25:return gMt(e);case 27:return xvt(e);case 28:return Evt(e);case 29:return pxt(e);case 32:case 31:return null==e?null:dEt(e);case 38:case 37:return null==e?null:new Lw(e);case 40:case 39:return null==e?null:ndt(hjt(e,FYt,OKt));case 41:case 42:return null;case 44:case 43:return null==e?null:ymt(iGt(e));case 49:case 48:return null==e?null:idt(hjt(e,Y8t,32767)<<16>>16);case 50:return e;default:throw $b(new Rv(g6t+t.ne()+p6t))}},mW(h6t,"EcoreFactoryImpl",1313),fBt(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},qK),AKt.gb=!1,AKt.hb=!1;var GMe,WMe=!1;mW(h6t,"EcorePackageImpl",547),fBt(1184,1,{837:1},qc),AKt._j=function(){return sL(),nPe},mW(h6t,"EcorePackageImpl/1",1184),fBt(1193,1,c9t,Uc),AKt.wj=function(t){return iP(t,147)},AKt.xj=function(t){return P7(FIe,zKt,147,t,0,1)},mW(h6t,"EcorePackageImpl/10",1193),fBt(1194,1,c9t,Gc),AKt.wj=function(t){return iP(t,191)},AKt.xj=function(t){return P7($Ie,zKt,191,t,0,1)},mW(h6t,"EcorePackageImpl/11",1194),fBt(1195,1,c9t,Wc),AKt.wj=function(t){return iP(t,56)},AKt.xj=function(t){return P7(IIe,zKt,56,t,0,1)},mW(h6t,"EcorePackageImpl/12",1195),fBt(1196,1,c9t,Kc),AKt.wj=function(t){return iP(t,399)},AKt.xj=function(t){return P7(WBe,L8t,59,t,0,1)},mW(h6t,"EcorePackageImpl/13",1196),fBt(1197,1,c9t,Yc),AKt.wj=function(t){return iP(t,235)},AKt.xj=function(t){return P7(zIe,zKt,235,t,0,1)},mW(h6t,"EcorePackageImpl/14",1197),fBt(1198,1,c9t,Xc),AKt.wj=function(t){return iP(t,509)},AKt.xj=function(t){return P7(KBe,zKt,2017,t,0,1)},mW(h6t,"EcorePackageImpl/15",1198),fBt(1199,1,c9t,Zc),AKt.wj=function(t){return iP(t,99)},AKt.xj=function(t){return P7(YBe,P8t,18,t,0,1)},mW(h6t,"EcorePackageImpl/16",1199),fBt(1200,1,c9t,Qc),AKt.wj=function(t){return iP(t,170)},AKt.xj=function(t){return P7(RBe,P8t,170,t,0,1)},mW(h6t,"EcorePackageImpl/17",1200),fBt(1201,1,c9t,Jc),AKt.wj=function(t){return iP(t,472)},AKt.xj=function(t){return P7(NBe,zKt,472,t,0,1)},mW(h6t,"EcorePackageImpl/18",1201),fBt(1202,1,c9t,tl),AKt.wj=function(t){return iP(t,548)},AKt.xj=function(t){return P7(qMe,o8t,548,t,0,1)},mW(h6t,"EcorePackageImpl/19",1202),fBt(1185,1,c9t,el),AKt.wj=function(t){return iP(t,322)},AKt.xj=function(t){return P7(FBe,P8t,34,t,0,1)},mW(h6t,"EcorePackageImpl/2",1185),fBt(1203,1,c9t,nl),AKt.wj=function(t){return iP(t,241)},AKt.xj=function(t){return P7(GBe,$8t,87,t,0,1)},mW(h6t,"EcorePackageImpl/20",1203),fBt(1204,1,c9t,il),AKt.wj=function(t){return iP(t,444)},AKt.xj=function(t){return P7(TMe,zKt,836,t,0,1)},mW(h6t,"EcorePackageImpl/21",1204),fBt(1205,1,c9t,rl),AKt.wj=function(t){return HD(t)},AKt.xj=function(t){return P7(vee,cYt,476,t,8,1)},mW(h6t,"EcorePackageImpl/22",1205),fBt(1206,1,c9t,ol),AKt.wj=function(t){return iP(t,190)},AKt.xj=function(t){return P7(BLe,cYt,190,t,0,2)},mW(h6t,"EcorePackageImpl/23",1206),fBt(1207,1,c9t,al),AKt.wj=function(t){return iP(t,217)},AKt.xj=function(t){return P7(Cee,cYt,217,t,0,1)},mW(h6t,"EcorePackageImpl/24",1207),fBt(1208,1,c9t,sl),AKt.wj=function(t){return iP(t,172)},AKt.xj=function(t){return P7(xee,cYt,172,t,0,1)},mW(h6t,"EcorePackageImpl/25",1208),fBt(1209,1,c9t,cl),AKt.wj=function(t){return iP(t,199)},AKt.xj=function(t){return P7(wee,cYt,199,t,0,1)},mW(h6t,"EcorePackageImpl/26",1209),fBt(1210,1,c9t,ll),AKt.wj=function(t){return!1},AKt.xj=function(t){return P7(NLe,zKt,2110,t,0,1)},mW(h6t,"EcorePackageImpl/27",1210),fBt(1211,1,c9t,ul),AKt.wj=function(t){return qD(t)},AKt.xj=function(t){return P7(Eee,cYt,333,t,7,1)},mW(h6t,"EcorePackageImpl/28",1211),fBt(1212,1,c9t,hl),AKt.wj=function(t){return iP(t,58)},AKt.xj=function(t){return P7(rBe,JQt,58,t,0,1)},mW(h6t,"EcorePackageImpl/29",1212),fBt(1186,1,c9t,dl),AKt.wj=function(t){return iP(t,510)},AKt.xj=function(t){return P7(OBe,{3:1,4:1,5:1,1934:1},590,t,0,1)},mW(h6t,"EcorePackageImpl/3",1186),fBt(1213,1,c9t,fl),AKt.wj=function(t){return iP(t,573)},AKt.xj=function(t){return P7(bBe,zKt,1940,t,0,1)},mW(h6t,"EcorePackageImpl/30",1213),fBt(1214,1,c9t,gl),AKt.wj=function(t){return iP(t,153)},AKt.xj=function(t){return P7(uPe,JQt,153,t,0,1)},mW(h6t,"EcorePackageImpl/31",1214),fBt(1215,1,c9t,pl),AKt.wj=function(t){return iP(t,72)},AKt.xj=function(t){return P7(DMe,l9t,72,t,0,1)},mW(h6t,"EcorePackageImpl/32",1215),fBt(1216,1,c9t,ml),AKt.wj=function(t){return iP(t,155)},AKt.xj=function(t){return P7(Tee,cYt,155,t,0,1)},mW(h6t,"EcorePackageImpl/33",1216),fBt(1217,1,c9t,bl),AKt.wj=function(t){return iP(t,19)},AKt.xj=function(t){return P7(Iee,cYt,19,t,0,1)},mW(h6t,"EcorePackageImpl/34",1217),fBt(1218,1,c9t,wl),AKt.wj=function(t){return iP(t,290)},AKt.xj=function(t){return P7(Bte,zKt,290,t,0,1)},mW(h6t,"EcorePackageImpl/35",1218),fBt(1219,1,c9t,kl),AKt.wj=function(t){return iP(t,162)},AKt.xj=function(t){return P7(Nee,cYt,162,t,0,1)},mW(h6t,"EcorePackageImpl/36",1219),fBt(1220,1,c9t,vl),AKt.wj=function(t){return iP(t,83)},AKt.xj=function(t){return P7(Pte,zKt,83,t,0,1)},mW(h6t,"EcorePackageImpl/37",1220),fBt(1221,1,c9t,yl),AKt.wj=function(t){return iP(t,591)},AKt.xj=function(t){return P7(tPe,zKt,591,t,0,1)},mW(h6t,"EcorePackageImpl/38",1221),fBt(1222,1,c9t,_l),AKt.wj=function(t){return!1},AKt.xj=function(t){return P7(RLe,zKt,2111,t,0,1)},mW(h6t,"EcorePackageImpl/39",1222),fBt(1187,1,c9t,Cl),AKt.wj=function(t){return iP(t,88)},AKt.xj=function(t){return P7($Be,zKt,26,t,0,1)},mW(h6t,"EcorePackageImpl/4",1187),fBt(1223,1,c9t,Al),AKt.wj=function(t){return iP(t,184)},AKt.xj=function(t){return P7(Fee,cYt,184,t,0,1)},mW(h6t,"EcorePackageImpl/40",1223),fBt(1224,1,c9t,xl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(h6t,"EcorePackageImpl/41",1224),fBt(1225,1,c9t,El),AKt.wj=function(t){return iP(t,588)},AKt.xj=function(t){return P7(cBe,zKt,588,t,0,1)},mW(h6t,"EcorePackageImpl/42",1225),fBt(1226,1,c9t,Tl),AKt.wj=function(t){return!1},AKt.xj=function(t){return P7(FLe,cYt,2112,t,0,1)},mW(h6t,"EcorePackageImpl/43",1226),fBt(1227,1,c9t,Sl),AKt.wj=function(t){return iP(t,42)},AKt.xj=function(t){return P7(zte,vYt,42,t,0,1)},mW(h6t,"EcorePackageImpl/44",1227),fBt(1188,1,c9t,Dl),AKt.wj=function(t){return iP(t,138)},AKt.xj=function(t){return P7(jBe,zKt,138,t,0,1)},mW(h6t,"EcorePackageImpl/5",1188),fBt(1189,1,c9t,Il),AKt.wj=function(t){return iP(t,148)},AKt.xj=function(t){return P7(zBe,zKt,148,t,0,1)},mW(h6t,"EcorePackageImpl/6",1189),fBt(1190,1,c9t,Bl),AKt.wj=function(t){return iP(t,457)},AKt.xj=function(t){return P7(qBe,zKt,671,t,0,1)},mW(h6t,"EcorePackageImpl/7",1190),fBt(1191,1,c9t,Ml),AKt.wj=function(t){return iP(t,573)},AKt.xj=function(t){return P7(UBe,zKt,678,t,0,1)},mW(h6t,"EcorePackageImpl/8",1191),fBt(1192,1,c9t,Pl),AKt.wj=function(t){return iP(t,471)},AKt.xj=function(t){return P7(jIe,zKt,471,t,0,1)},mW(h6t,"EcorePackageImpl/9",1192),fBt(1025,1982,i8t,Pv),AKt.bi=function(t,e){Iht(this,jz(e,415))},AKt.fi=function(t,e){eSt(this,t,jz(e,415))},mW(h6t,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1025),fBt(1026,143,t8t,oK),AKt.Ai=function(){return this.a.a},mW(h6t,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1026),fBt(1053,1052,{},aM),mW("org.eclipse.emf.ecore.plugin","EcorePlugin",1053);var KMe,YMe,XMe,ZMe,QMe,JMe,tPe=hH(u9t,"Resource");fBt(781,1378,h9t),AKt.Yk=function(t){},AKt.Zk=function(t){},AKt.Vk=function(){return!this.a&&(this.a=new Ab(this)),this.a},AKt.Wk=function(t){var e,n,i,r,o;if((i=t.length)>0){if(h1(0,t.length),47==t.charCodeAt(0)){for(o=new X6(4),r=1,e=1;e<i;++e)h1(e,t.length),47==t.charCodeAt(e)&&(Gz(o,r==e?"":t.substr(r,e-r)),r=e+1);return Gz(o,t.substr(r)),s_t(this,o)}h1(i-1,t.length),63==t.charCodeAt(i-1)&&(n=CF(t,XAt(63),i-2))>0&&(t=t.substr(0,n))}return yDt(this,t)},AKt.Xk=function(){return this.c},AKt.Ib=function(){return Q_(this.gm)+"@"+(Jct(this)>>>0).toString(16)+" uri='"+this.d+"'"},AKt.b=!1,mW(d9t,"ResourceImpl",781),fBt(1379,781,h9t,Eb),mW(d9t,"BinaryResourceImpl",1379),fBt(1169,694,u7t),AKt.si=function(t){return iP(t,56)?_Z(this,jz(t,56)):iP(t,591)?new DP(jz(t,591).Vk()):VD(t)===VD(this.f)?jz(t,14).Kc():(fN(),gBe.a)},AKt.Ob=function(){return dIt(this)},AKt.a=!1,mW(k8t,"EcoreUtil/ContentTreeIterator",1169),fBt(1380,1169,u7t,nG),AKt.si=function(t){return VD(t)===VD(this.f)?jz(t,15).Kc():new F2(jz(t,56))},mW(d9t,"ResourceImpl/5",1380),fBt(648,1994,O8t,Ab),AKt.Hc=function(t){return this.i<=4?x_t(this,t):iP(t,49)&&jz(t,49).Zg()==this.a},AKt.bi=function(t,e){t==this.i-1&&(this.a.b||(this.a.b=!0))},AKt.di=function(t,e){0==t?this.a.b||(this.a.b=!0):B7(this,t,e)},AKt.fi=function(t,e){},AKt.gi=function(t,e,n){},AKt.aj=function(){return 2},AKt.Ai=function(){return this.a},AKt.bj=function(){return!0},AKt.cj=function(t,e){return e=jz(t,49).wh(this.a,e)},AKt.dj=function(t,e){return jz(t,49).wh(null,e)},AKt.ej=function(){return!1},AKt.hi=function(){return!0},AKt.ri=function(t){return P7(IIe,zKt,56,t,0,1)},AKt.ni=function(){return!1},mW(d9t,"ResourceImpl/ContentsEList",648),fBt(957,1964,MYt,xb),AKt.Zc=function(t){return this.a._h(t)},AKt.gc=function(){return this.a.gc()},mW(k8t,"AbstractSequentialInternalEList/1",957),fBt(624,1,{},AV),mW(k8t,"BasicExtendedMetaData",624),fBt(1160,1,{},ID),AKt.$k=function(){return null},AKt._k=function(){return-2==this.a&&af(this,oxt(this.d,this.b)),this.a},AKt.al=function(){return null},AKt.bl=function(){return AX(),AX(),cne},AKt.ne=function(){return this.c==T9t&&cf(this,_mt(this.d,this.b)),this.c},AKt.cl=function(){return 0},AKt.a=-2,AKt.c=T9t,mW(k8t,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),fBt(1161,1,{},R0),AKt.$k=function(){return this.a==(O4(),QMe)&&sf(this,bLt(this.f,this.b)),this.a},AKt._k=function(){return 0},AKt.al=function(){return this.c==(O4(),QMe)&&lf(this,wLt(this.f,this.b)),this.c},AKt.bl=function(){return!this.d&&uf(this,xFt(this.f,this.b)),this.d},AKt.ne=function(){return this.e==T9t&&hf(this,_mt(this.f,this.b)),this.e},AKt.cl=function(){return-2==this.g&&df(this,XCt(this.f,this.b)),this.g},AKt.e=T9t,AKt.g=-2,mW(k8t,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1161),fBt(1159,1,{},OD),AKt.b=!1,AKt.c=!1,mW(k8t,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1159),fBt(1162,1,{},N0),AKt.c=-2,AKt.e=T9t,AKt.f=T9t,mW(k8t,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1162),fBt(585,622,N8t,CV),AKt.aj=function(){return this.c},AKt.Fk=function(){return!1},AKt.li=function(t,e){return e},AKt.c=0,mW(k8t,"EDataTypeEList",585);var ePe,nPe,iPe,rPe,oPe,aPe,sPe,cPe,lPe,uPe=hH(k8t,"FeatureMap");fBt(75,585,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},_ot),AKt.Vc=function(t,e){hLt(this,t,jz(e,72))},AKt.Fc=function(t){return aPt(this,jz(t,72))},AKt.Yh=function(t){fW(this,jz(t,72))},AKt.cj=function(t,e){return $F(this,jz(t,72),e)},AKt.dj=function(t,e){return zF(this,jz(t,72),e)},AKt.ii=function(t,e){return ojt(this,t,e)},AKt.li=function(t,e){return lqt(this,t,jz(e,72))},AKt._c=function(t,e){return EOt(this,t,jz(e,72))},AKt.jj=function(t,e){return VF(this,jz(t,72),e)},AKt.kj=function(t,e){return HF(this,jz(t,72),e)},AKt.lj=function(t,e,n){return pCt(this,jz(t,72),jz(e,72),n)},AKt.oi=function(t,e){return cAt(this,t,jz(e,72))},AKt.dl=function(t,e){return LFt(this,t,e)},AKt.Wc=function(t,e){var n,i,r,o,a,s,c,l,u;for(l=new pet(e.gc()),r=e.Kc();r.Ob();)if(o=(i=jz(r.Pb(),72)).ak(),BOt(this.e,o))(!o.hi()||!V3(this,o,i.dd())&&!x_t(l,i))&&l8(l,i);else{for(u=oOt(this.e.Tg(),o),n=jz(this.g,119),a=!0,s=0;s<this.i;++s)if(c=n[s],u.rl(c.ak())){jz(swt(this,s,i),72),a=!1;break}a&&l8(l,i)}return sct(this,t,l)},AKt.Gc=function(t){var e,n,i,r,o,a,s,c,l;for(c=new pet(t.gc()),i=t.Kc();i.Ob();)if(r=(n=jz(i.Pb(),72)).ak(),BOt(this.e,r))(!r.hi()||!V3(this,r,n.dd())&&!x_t(c,n))&&l8(c,n);else{for(l=oOt(this.e.Tg(),r),e=jz(this.g,119),o=!0,a=0;a<this.i;++a)if(s=e[a],l.rl(s.ak())){jz(swt(this,a,n),72),o=!1;break}o&&l8(c,n)}return pW(this,c)},AKt.Wh=function(t){return this.j=-1,M$t(this,this.i,t)},AKt.el=function(t,e,n){return ERt(this,t,e,n)},AKt.mk=function(t,e){return CFt(this,t,e)},AKt.fl=function(t,e,n){return Qzt(this,t,e,n)},AKt.gl=function(){return this},AKt.hl=function(t,e){return iVt(this,t,e)},AKt.il=function(t){return jz(Wet(this,t),72).ak()},AKt.jl=function(t){return jz(Wet(this,t),72).dd()},AKt.kl=function(){return this.b},AKt.bj=function(){return!0},AKt.ij=function(){return!0},AKt.ll=function(t){return!opt(this,t)},AKt.ri=function(t){return P7(UMe,l9t,332,t,0,1)},AKt.Gk=function(t){return cN(this,t)},AKt.Wb=function(t){JG(this,t)},AKt.ml=function(t,e){AVt(this,t,e)},AKt.nl=function(t){return qit(this,t)},AKt.ol=function(t){Rkt(this,t)},mW(k8t,"BasicFeatureMap",75),fBt(1851,1,rYt),AKt.Nb=function(t){lG(this,t)},AKt.Rb=function(t){if(-1==this.g)throw $b(new fw);bU(this);try{IOt(this.e,this.b,this.a,t),this.d=this.e.j,rwt(this)}catch(t){throw iP(t=hst(t),73)?$b(new mw):$b(t)}},AKt.Ob=function(){return Rlt(this)},AKt.Sb=function(){return Flt(this)},AKt.Pb=function(){return rwt(this)},AKt.Tb=function(){return this.a},AKt.Ub=function(){var t;if(Flt(this))return bU(this),this.g=--this.a,this.Lk()&&(t=jDt(this.e,this.b,this.c,this.a,this.j),this.j=t),this.i=0,this.j;throw $b(new ww)},AKt.Vb=function(){return this.a-1},AKt.Qb=function(){if(-1==this.g)throw $b(new fw);bU(this);try{oTt(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(t){throw iP(t=hst(t),73)?$b(new mw):$b(t)}},AKt.Lk=function(){return!1},AKt.Wb=function(t){if(-1==this.g)throw $b(new fw);bU(this);try{G$t(this.e,this.b,this.g,t),this.d=this.e.j}catch(t){throw iP(t=hst(t),73)?$b(new mw):$b(t)}},AKt.a=0,AKt.c=0,AKt.d=0,AKt.f=!1,AKt.g=0,AKt.i=0,mW(k8t,"FeatureMapUtil/BasicFeatureEIterator",1851),fBt(410,1851,rYt,Iat),AKt.pl=function(){var t,e,n;for(n=this.e.i,t=jz(this.e.g,119);this.c<n;){if(e=t[this.c],this.k.rl(e.ak()))return this.j=this.f?e:e.dd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},AKt.ql=function(){var t,e;for(t=jz(this.e.g,119);--this.c>=0;)if(e=t[this.c],this.k.rl(e.ak()))return this.j=this.f?e:e.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},mW(k8t,"BasicFeatureMap/FeatureEIterator",410),fBt(662,410,rYt,PI),AKt.Lk=function(){return!0},mW(k8t,"BasicFeatureMap/ResolvingFeatureEIterator",662),fBt(955,486,V8t,HM),AKt.Gi=function(){return this},mW(k8t,"EContentsEList/1",955),fBt(956,486,V8t,LI),AKt.Lk=function(){return!1},mW(k8t,"EContentsEList/2",956),fBt(954,279,H8t,qM),AKt.Nk=function(t){},AKt.Ob=function(){return!1},AKt.Sb=function(){return!1},mW(k8t,"EContentsEList/FeatureIteratorImpl/1",954),fBt(825,585,N8t,NP),AKt.ci=function(){this.a=!0},AKt.fj=function(){return this.a},AKt.Xj=function(){var t;cHt(this),bB(this.e)?(t=this.a,this.a=!1,dat(this.e,new J4(this.e,2,this.c,t,!1))):this.a=!1},AKt.a=!1,mW(k8t,"EDataTypeEList/Unsettable",825),fBt(1849,585,N8t,RP),AKt.hi=function(){return!0},mW(k8t,"EDataTypeUniqueEList",1849),fBt(1850,825,N8t,FP),AKt.hi=function(){return!0},mW(k8t,"EDataTypeUniqueEList/Unsettable",1850),fBt(139,85,N8t,MP),AKt.Ek=function(){return!0},AKt.li=function(t,e){return HIt(this,t,jz(e,56))},mW(k8t,"EObjectContainmentEList/Resolving",139),fBt(1163,545,N8t,PP),AKt.Ek=function(){return!0},AKt.li=function(t,e){return HIt(this,t,jz(e,56))},mW(k8t,"EObjectContainmentEList/Unsettable/Resolving",1163),fBt(748,16,N8t,eF),AKt.ci=function(){this.a=!0},AKt.fj=function(){return this.a},AKt.Xj=function(){var t;cHt(this),bB(this.e)?(t=this.a,this.a=!1,dat(this.e,new J4(this.e,2,this.c,t,!1))):this.a=!1},AKt.a=!1,mW(k8t,"EObjectContainmentWithInverseEList/Unsettable",748),fBt(1173,748,N8t,nF),AKt.Ek=function(){return!0},AKt.li=function(t,e){return HIt(this,t,jz(e,56))},mW(k8t,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),fBt(743,496,N8t,LP),AKt.ci=function(){this.a=!0},AKt.fj=function(){return this.a},AKt.Xj=function(){var t;cHt(this),bB(this.e)?(t=this.a,this.a=!1,dat(this.e,new J4(this.e,2,this.c,t,!1))):this.a=!1},AKt.a=!1,mW(k8t,"EObjectEList/Unsettable",743),fBt(328,496,N8t,OP),AKt.Ek=function(){return!0},AKt.li=function(t,e){return HIt(this,t,jz(e,56))},mW(k8t,"EObjectResolvingEList",328),fBt(1641,743,N8t,jP),AKt.Ek=function(){return!0},AKt.li=function(t,e){return HIt(this,t,jz(e,56))},mW(k8t,"EObjectResolvingEList/Unsettable",1641),fBt(1381,1,{},Ll),mW(k8t,"EObjectValidator",1381),fBt(546,496,N8t,eG),AKt.zk=function(){return this.d},AKt.Ak=function(){return this.b},AKt.bj=function(){return!0},AKt.Dk=function(){return!0},AKt.b=0,mW(k8t,"EObjectWithInverseEList",546),fBt(1176,546,N8t,iF),AKt.Ck=function(){return!0},mW(k8t,"EObjectWithInverseEList/ManyInverse",1176),fBt(625,546,N8t,rF),AKt.ci=function(){this.a=!0},AKt.fj=function(){return this.a},AKt.Xj=function(){var t;cHt(this),bB(this.e)?(t=this.a,this.a=!1,dat(this.e,new J4(this.e,2,this.c,t,!1))):this.a=!1},AKt.a=!1,mW(k8t,"EObjectWithInverseEList/Unsettable",625),fBt(1175,625,N8t,aF),AKt.Ck=function(){return!0},mW(k8t,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),fBt(749,546,N8t,oF),AKt.Ek=function(){return!0},AKt.li=function(t,e){return HIt(this,t,jz(e,56))},mW(k8t,"EObjectWithInverseResolvingEList",749),fBt(31,749,N8t,cF),AKt.Ck=function(){return!0},mW(k8t,"EObjectWithInverseResolvingEList/ManyInverse",31),fBt(750,625,N8t,sF),AKt.Ek=function(){return!0},AKt.li=function(t,e){return HIt(this,t,jz(e,56))},mW(k8t,"EObjectWithInverseResolvingEList/Unsettable",750),fBt(1174,750,N8t,lF),AKt.Ck=function(){return!0},mW(k8t,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),fBt(1164,622,N8t),AKt.ai=function(){return!(1792&this.b)},AKt.ci=function(){this.b|=1},AKt.Bk=function(){return!!(4&this.b)},AKt.bj=function(){return!!(40&this.b)},AKt.Ck=function(){return!!(16&this.b)},AKt.Dk=function(){return!!(8&this.b)},AKt.Ek=function(){return!!(this.b&A8t)},AKt.rk=function(){return!!(32&this.b)},AKt.Fk=function(){return!!(this.b&v6t)},AKt.wj=function(t){return this.d?P3(this.d,t):this.ak().Yj().wj(t)},AKt.fj=function(){return 2&this.b?!!(1&this.b):0!=this.i},AKt.hi=function(){return!!(128&this.b)},AKt.Xj=function(){var t;cHt(this),2&this.b&&(bB(this.e)?(t=!!(1&this.b),this.b&=-2,Bw(this,new J4(this.e,2,Igt(this.e.Tg(),this.ak()),t,!1))):this.b&=-2)},AKt.ni=function(){return!(1536&this.b)},AKt.b=0,mW(k8t,"EcoreEList/Generic",1164),fBt(1165,1164,N8t,HX),AKt.ak=function(){return this.a},mW(k8t,"EcoreEList/Dynamic",1165),fBt(747,63,l7t,Tb),AKt.ri=function(t){return Ont(this.a.a,t)},mW(k8t,"EcoreEMap/1",747),fBt(746,85,N8t,ZU),AKt.bi=function(t,e){Swt(this.b,jz(e,133))},AKt.di=function(t,e){oat(this.b)},AKt.ei=function(t,e,n){var i;++(i=this.b,jz(e,133),i).e},AKt.fi=function(t,e){Ddt(this.b,jz(e,133))},AKt.gi=function(t,e,n){Ddt(this.b,jz(n,133)),VD(n)===VD(e)&&jz(n,133).Th(iM(jz(e,133).cd())),Swt(this.b,jz(e,133))},mW(k8t,"EcoreEMap/DelegateEObjectContainmentEList",746),fBt(1171,151,y8t,kit),mW(k8t,"EcoreEMap/Unsettable",1171),fBt(1172,746,N8t,uF),AKt.ci=function(){this.a=!0},AKt.fj=function(){return this.a},AKt.Xj=function(){var t;cHt(this),bB(this.e)?(t=this.a,this.a=!1,dat(this.e,new J4(this.e,2,this.c,t,!1))):this.a=!1},AKt.a=!1,mW(k8t,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),fBt(1168,228,tZt,uW),AKt.a=!1,AKt.b=!1,mW(k8t,"EcoreUtil/Copier",1168),fBt(745,1,YKt,F2),AKt.Nb=function(t){lG(this,t)},AKt.Ob=function(){return apt(this)},AKt.Pb=function(){var t;return apt(this),t=this.b,this.b=null,t},AKt.Qb=function(){this.a.Qb()},mW(k8t,"EcoreUtil/ProperContentIterator",745),fBt(1382,1381,{},Rh),mW(k8t,"EcoreValidator",1382),hH(k8t,"FeatureMapUtil/Validator"),fBt(1260,1,{1942:1},Ol),AKt.rl=function(t){return!0},mW(k8t,"FeatureMapUtil/1",1260),fBt(757,1,{1942:1},rGt),AKt.rl=function(t){var e;return this.c==t||(null==(e=_N(OW(this.a,t)))?LRt(this,t)?(n6(this.a,t,(cL(),bee)),!0):(n6(this.a,t,(cL(),mee)),!1):e==(cL(),bee))},AKt.e=!1,mW(k8t,"FeatureMapUtil/BasicValidator",757),fBt(758,43,tZt,UM),mW(k8t,"FeatureMapUtil/BasicValidator/Cache",758),fBt(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},PD),AKt.Vc=function(t,e){IOt(this.c,this.b,t,e)},AKt.Fc=function(t){return LFt(this.c,this.b,t)},AKt.Wc=function(t,e){return yVt(this.c,this.b,t,e)},AKt.Gc=function(t){return ZM(this,t)},AKt.Xh=function(t,e){cet(this.c,this.b,t,e)},AKt.lk=function(t,e){return ERt(this.c,this.b,t,e)},AKt.pi=function(t){return nVt(this.c,this.b,t,!1)},AKt.Zh=function(){return vB(this.c,this.b)},AKt.$h=function(){return yB(this.c,this.b)},AKt._h=function(t){return I7(this.c,this.b,t)},AKt.mk=function(t,e){return JN(this,t,e)},AKt.$b=function(){Mw(this)},AKt.Hc=function(t){return V3(this.c,this.b,t)},AKt.Ic=function(t){return Aot(this.c,this.b,t)},AKt.Xb=function(t){return nVt(this.c,this.b,t,!0)},AKt.Wj=function(t){return this},AKt.Xc=function(t){return H3(this.c,this.b,t)},AKt.dc=function(){return $D(this)},AKt.fj=function(){return!opt(this.c,this.b)},AKt.Kc=function(){return itt(this.c,this.b)},AKt.Yc=function(){return rtt(this.c,this.b)},AKt.Zc=function(t){return hdt(this.c,this.b,t)},AKt.ii=function(t,e){return w$t(this.c,this.b,t,e)},AKt.ji=function(t,e){K6(this.c,this.b,t,e)},AKt.$c=function(t){return oTt(this.c,this.b,t)},AKt.Mc=function(t){return TFt(this.c,this.b,t)},AKt._c=function(t,e){return G$t(this.c,this.b,t,e)},AKt.Wb=function(t){IIt(this.c,this.b),ZM(this,jz(t,15))},AKt.gc=function(){return Rdt(this.c,this.b)},AKt.Pc=function(){return V1(this.c,this.b)},AKt.Qc=function(t){return q3(this.c,this.b,t)},AKt.Ib=function(){var t,e;for((e=new Ay).a+="[",t=vB(this.c,this.b);Rlt(t);)iI(e,kL(rwt(t))),Rlt(t)&&(e.a+=jKt);return e.a+="]",e.a},AKt.Xj=function(){IIt(this.c,this.b)},mW(k8t,"FeatureMapUtil/FeatureEList",501),fBt(627,36,t8t,h5),AKt.yi=function(t){return edt(this,t)},AKt.Di=function(t){var e,n,i,r;switch(this.d){case 1:case 2:if(VD(t.Ai())===VD(this.c)&&edt(this,null)==t.yi(null))return this.g=t.zi(),1==t.xi()&&(this.d=1),!0;break;case 3:if(3===t.xi()&&VD(t.Ai())===VD(this.c)&&edt(this,null)==t.yi(null))return this.d=5,l8(e=new pet(2),this.g),l8(e,t.zi()),this.g=e,!0;break;case 5:if(3===t.xi()&&VD(t.Ai())===VD(this.c)&&edt(this,null)==t.yi(null))return jz(this.g,14).Fc(t.zi()),!0;break;case 4:switch(t.xi()){case 3:if(VD(t.Ai())===VD(this.c)&&edt(this,null)==t.yi(null))return this.d=1,this.g=t.zi(),!0;break;case 4:if(VD(t.Ai())===VD(this.c)&&edt(this,null)==t.yi(null))return this.d=6,l8(r=new pet(2),this.n),l8(r,t.Bi()),this.n=r,i=Est(Vy(SLe,1),lXt,25,15,[this.o,t.Ci()]),this.g=i,!0}break;case 6:if(4===t.xi()&&VD(t.Ai())===VD(this.c)&&edt(this,null)==t.yi(null))return jz(this.n,14).Fc(t.Bi()),oVt(i=jz(this.g,48),0,n=P7(SLe,lXt,25,i.length+1,15,1),0,i.length),n[i.length]=t.Ci(),this.g=n,!0}return!1},mW(k8t,"FeatureMapUtil/FeatureENotificationImpl",627),fBt(552,501,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},uH),AKt.dl=function(t,e){return LFt(this.c,t,e)},AKt.el=function(t,e,n){return ERt(this.c,t,e,n)},AKt.fl=function(t,e,n){return Qzt(this.c,t,e,n)},AKt.gl=function(){return this},AKt.hl=function(t,e){return iVt(this.c,t,e)},AKt.il=function(t){return jz(nVt(this.c,this.b,t,!1),72).ak()},AKt.jl=function(t){return jz(nVt(this.c,this.b,t,!1),72).dd()},AKt.kl=function(){return this.a},AKt.ll=function(t){return!opt(this.c,t)},AKt.ml=function(t,e){AVt(this.c,t,e)},AKt.nl=function(t){return qit(this.c,t)},AKt.ol=function(t){Rkt(this.c,t)},mW(k8t,"FeatureMapUtil/FeatureFeatureMap",552),fBt(1259,1,v8t,ND),AKt.Wj=function(t){return nVt(this.b,this.a,-1,t)},AKt.fj=function(){return!opt(this.b,this.a)},AKt.Wb=function(t){AVt(this.b,this.a,t)},AKt.Xj=function(){IIt(this.b,this.a)},mW(k8t,"FeatureMapUtil/FeatureValue",1259);var hPe=hH(D9t,"AnyType");fBt(666,60,$Yt,ey),mW(D9t,"InvalidDatatypeValueException",666);var dPe,fPe,gPe,pPe,mPe,bPe,wPe,kPe,vPe,yPe,_Pe,CPe,APe,xPe,EPe,TPe,SPe,DPe,IPe,BPe,MPe,PPe,LPe,OPe,NPe,RPe,FPe,jPe,$Pe,zPe,VPe=hH(D9t,I9t),HPe=hH(D9t,B9t),qPe=hH(D9t,M9t);fBt(830,506,{105:1,92:1,90:1,56:1,49:1,97:1,843:1},Ok),AKt._g=function(t,e,n){switch(t){case 0:return n?(!this.c&&(this.c=new _ot(this,0)),this.c):(!this.c&&(this.c=new _ot(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new _ot(this,0)),jz(QJ(this.c,(UHt(),pPe)),153)):(!this.c&&(this.c=new _ot(this,0)),jz(jz(QJ(this.c,(UHt(),pPe)),153),215)).kl();case 2:return n?(!this.b&&(this.b=new _ot(this,2)),this.b):(!this.b&&(this.b=new _ot(this,2)),this.b.b)}return q8(this,t-hW(this.zh()),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():this.zh(),t),e,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.c&&(this.c=new _ot(this,0)),CFt(this.c,t,n);case 1:return(!this.c&&(this.c=new _ot(this,0)),jz(jz(QJ(this.c,(UHt(),pPe)),153),69)).mk(t,n);case 2:return!this.b&&(this.b=new _ot(this,2)),CFt(this.b,t,n)}return jz(eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():this.zh(),e),66).Nj().Rj(this,K9(this),e-hW(this.zh()),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.c&&0!=this.c.i;case 1:return!(!this.c&&(this.c=new _ot(this,0)),jz(QJ(this.c,(UHt(),pPe)),153)).dc();case 2:return!!this.b&&0!=this.b.i}return S3(this,t-hW(this.zh()),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():this.zh(),t))},AKt.sh=function(t,e){switch(t){case 0:return!this.c&&(this.c=new _ot(this,0)),void JG(this.c,e);case 1:return void(!this.c&&(this.c=new _ot(this,0)),jz(jz(QJ(this.c,(UHt(),pPe)),153),215)).Wb(e);case 2:return!this.b&&(this.b=new _ot(this,2)),void JG(this.b,e)}Mft(this,t-hW(this.zh()),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():this.zh(),t),e)},AKt.zh=function(){return UHt(),gPe},AKt.Bh=function(t){switch(t){case 0:return!this.c&&(this.c=new _ot(this,0)),void cHt(this.c);case 1:return void(!this.c&&(this.c=new _ot(this,0)),jz(QJ(this.c,(UHt(),pPe)),153)).$b();case 2:return!this.b&&(this.b=new _ot(this,2)),void cHt(this.b)}Vht(this,t-hW(this.zh()),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():this.zh(),t))},AKt.Ib=function(){var t;return 4&this.j?EMt(this):((t=new lL(EMt(this))).a+=" (mixed: ",nI(t,this.c),t.a+=", anyAttribute: ",nI(t,this.b),t.a+=")",t.a)},mW(P9t,"AnyTypeImpl",830),fBt(667,506,{105:1,92:1,90:1,56:1,49:1,97:1,2021:1,667:1},Rl),AKt._g=function(t,e,n){switch(t){case 0:return this.a;case 1:return this.b}return q8(this,t-hW((UHt(),TPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():TPe,t),e,n)},AKt.lh=function(t){switch(t){case 0:return null!=this.a;case 1:return null!=this.b}return S3(this,t-hW((UHt(),TPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():TPe,t))},AKt.sh=function(t,e){switch(t){case 0:return void kf(this,AN(e));case 1:return void vf(this,AN(e))}Mft(this,t-hW((UHt(),TPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():TPe,t),e)},AKt.zh=function(){return UHt(),TPe},AKt.Bh=function(t){switch(t){case 0:return void(this.a=null);case 1:return void(this.b=null)}Vht(this,t-hW((UHt(),TPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():TPe,t))},AKt.Ib=function(){var t;return 4&this.j?EMt(this):((t=new lL(EMt(this))).a+=" (data: ",iI(t,this.a),t.a+=", target: ",iI(t,this.b),t.a+=")",t.a)},AKt.a=null,AKt.b=null,mW(P9t,"ProcessingInstructionImpl",667),fBt(668,830,{105:1,92:1,90:1,56:1,49:1,97:1,843:1,2022:1,668:1},Rk),AKt._g=function(t,e,n){switch(t){case 0:return n?(!this.c&&(this.c=new _ot(this,0)),this.c):(!this.c&&(this.c=new _ot(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new _ot(this,0)),jz(QJ(this.c,(UHt(),pPe)),153)):(!this.c&&(this.c=new _ot(this,0)),jz(jz(QJ(this.c,(UHt(),pPe)),153),215)).kl();case 2:return n?(!this.b&&(this.b=new _ot(this,2)),this.b):(!this.b&&(this.b=new _ot(this,2)),this.b.b);case 3:return!this.c&&(this.c=new _ot(this,0)),AN(iVt(this.c,(UHt(),IPe),!0));case 4:return gF(this.a,(!this.c&&(this.c=new _ot(this,0)),AN(iVt(this.c,(UHt(),IPe),!0))));case 5:return this.a}return q8(this,t-hW((UHt(),DPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():DPe,t),e,n)},AKt.lh=function(t){switch(t){case 0:return!!this.c&&0!=this.c.i;case 1:return!(!this.c&&(this.c=new _ot(this,0)),jz(QJ(this.c,(UHt(),pPe)),153)).dc();case 2:return!!this.b&&0!=this.b.i;case 3:return!this.c&&(this.c=new _ot(this,0)),null!=AN(iVt(this.c,(UHt(),IPe),!0));case 4:return null!=gF(this.a,(!this.c&&(this.c=new _ot(this,0)),AN(iVt(this.c,(UHt(),IPe),!0))));case 5:return!!this.a}return S3(this,t-hW((UHt(),DPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():DPe,t))},AKt.sh=function(t,e){switch(t){case 0:return!this.c&&(this.c=new _ot(this,0)),void JG(this.c,e);case 1:return void(!this.c&&(this.c=new _ot(this,0)),jz(jz(QJ(this.c,(UHt(),pPe)),153),215)).Wb(e);case 2:return!this.b&&(this.b=new _ot(this,2)),void JG(this.b,e);case 3:return void F0(this,AN(e));case 4:return void F0(this,pF(this.a,e));case 5:return void yf(this,jz(e,148))}Mft(this,t-hW((UHt(),DPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():DPe,t),e)},AKt.zh=function(){return UHt(),DPe},AKt.Bh=function(t){switch(t){case 0:return!this.c&&(this.c=new _ot(this,0)),void cHt(this.c);case 1:return void(!this.c&&(this.c=new _ot(this,0)),jz(QJ(this.c,(UHt(),pPe)),153)).$b();case 2:return!this.b&&(this.b=new _ot(this,2)),void cHt(this.b);case 3:return!this.c&&(this.c=new _ot(this,0)),void AVt(this.c,(UHt(),IPe),null);case 4:return void F0(this,pF(this.a,null));case 5:return void(this.a=null)}Vht(this,t-hW((UHt(),DPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():DPe,t))},mW(P9t,"SimpleAnyTypeImpl",668),fBt(669,506,{105:1,92:1,90:1,56:1,49:1,97:1,2023:1,669:1},Nk),AKt._g=function(t,e,n){switch(t){case 0:return n?(!this.a&&(this.a=new _ot(this,0)),this.a):(!this.a&&(this.a=new _ot(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new w8((pKt(),wMe),qMe,this,1)),this.b):(!this.b&&(this.b=new w8((pKt(),wMe),qMe,this,1)),D7(this.b));case 2:return n?(!this.c&&(this.c=new w8((pKt(),wMe),qMe,this,2)),this.c):(!this.c&&(this.c=new w8((pKt(),wMe),qMe,this,2)),D7(this.c));case 3:return!this.a&&(this.a=new _ot(this,0)),QJ(this.a,(UHt(),PPe));case 4:return!this.a&&(this.a=new _ot(this,0)),QJ(this.a,(UHt(),LPe));case 5:return!this.a&&(this.a=new _ot(this,0)),QJ(this.a,(UHt(),NPe));case 6:return!this.a&&(this.a=new _ot(this,0)),QJ(this.a,(UHt(),RPe))}return q8(this,t-hW((UHt(),MPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():MPe,t),e,n)},AKt.jh=function(t,e,n){switch(e){case 0:return!this.a&&(this.a=new _ot(this,0)),CFt(this.a,t,n);case 1:return!this.b&&(this.b=new w8((pKt(),wMe),qMe,this,1)),jF(this.b,t,n);case 2:return!this.c&&(this.c=new w8((pKt(),wMe),qMe,this,2)),jF(this.c,t,n);case 5:return!this.a&&(this.a=new _ot(this,0)),JN(QJ(this.a,(UHt(),NPe)),t,n)}return jz(eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():(UHt(),MPe),e),66).Nj().Rj(this,K9(this),e-hW((UHt(),MPe)),t,n)},AKt.lh=function(t){switch(t){case 0:return!!this.a&&0!=this.a.i;case 1:return!!this.b&&0!=this.b.f;case 2:return!!this.c&&0!=this.c.f;case 3:return!this.a&&(this.a=new _ot(this,0)),!$D(QJ(this.a,(UHt(),PPe)));case 4:return!this.a&&(this.a=new _ot(this,0)),!$D(QJ(this.a,(UHt(),LPe)));case 5:return!this.a&&(this.a=new _ot(this,0)),!$D(QJ(this.a,(UHt(),NPe)));case 6:return!this.a&&(this.a=new _ot(this,0)),!$D(QJ(this.a,(UHt(),RPe)))}return S3(this,t-hW((UHt(),MPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():MPe,t))},AKt.sh=function(t,e){switch(t){case 0:return!this.a&&(this.a=new _ot(this,0)),void JG(this.a,e);case 1:return!this.b&&(this.b=new w8((pKt(),wMe),qMe,this,1)),void tat(this.b,e);case 2:return!this.c&&(this.c=new w8((pKt(),wMe),qMe,this,2)),void tat(this.c,e);case 3:return!this.a&&(this.a=new _ot(this,0)),Mw(QJ(this.a,(UHt(),PPe))),!this.a&&(this.a=new _ot(this,0)),void ZM(QJ(this.a,PPe),jz(e,14));case 4:return!this.a&&(this.a=new _ot(this,0)),Mw(QJ(this.a,(UHt(),LPe))),!this.a&&(this.a=new _ot(this,0)),void ZM(QJ(this.a,LPe),jz(e,14));case 5:return!this.a&&(this.a=new _ot(this,0)),Mw(QJ(this.a,(UHt(),NPe))),!this.a&&(this.a=new _ot(this,0)),void ZM(QJ(this.a,NPe),jz(e,14));case 6:return!this.a&&(this.a=new _ot(this,0)),Mw(QJ(this.a,(UHt(),RPe))),!this.a&&(this.a=new _ot(this,0)),void ZM(QJ(this.a,RPe),jz(e,14))}Mft(this,t-hW((UHt(),MPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():MPe,t),e)},AKt.zh=function(){return UHt(),MPe},AKt.Bh=function(t){switch(t){case 0:return!this.a&&(this.a=new _ot(this,0)),void cHt(this.a);case 1:return!this.b&&(this.b=new w8((pKt(),wMe),qMe,this,1)),void this.b.c.$b();case 2:return!this.c&&(this.c=new w8((pKt(),wMe),qMe,this,2)),void this.c.c.$b();case 3:return!this.a&&(this.a=new _ot(this,0)),void Mw(QJ(this.a,(UHt(),PPe)));case 4:return!this.a&&(this.a=new _ot(this,0)),void Mw(QJ(this.a,(UHt(),LPe)));case 5:return!this.a&&(this.a=new _ot(this,0)),void Mw(QJ(this.a,(UHt(),NPe)));case 6:return!this.a&&(this.a=new _ot(this,0)),void Mw(QJ(this.a,(UHt(),RPe)))}Vht(this,t-hW((UHt(),MPe)),eet(2&this.j?(!this.k&&(this.k=new Oh),this.k).ck():MPe,t))},AKt.Ib=function(){var t;return 4&this.j?EMt(this):((t=new lL(EMt(this))).a+=" (mixed: ",nI(t,this.a),t.a+=")",t.a)},mW(P9t,"XMLTypeDocumentRootImpl",669),fBt(1919,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1,2024:1},Nl),AKt.Ih=function(t,e){switch(t.yj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return null==e?null:$ft(e);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return AN(e);case 6:return bN(jz(e,190));case 12:case 47:case 49:case 11:return Vqt(this,t,e);case 13:return null==e?null:Hzt(jz(e,240));case 15:case 14:return null==e?null:OG(Vv(CN(e)));case 17:return _Ct((UHt(),e));case 18:return _Ct(e);case 21:case 20:return null==e?null:NG(jz(e,155).a);case 27:return wN(jz(e,190));case 30:return Fkt((UHt(),jz(e,15)));case 31:return Fkt(jz(e,15));case 40:return vN((UHt(),e));case 42:return CCt((UHt(),e));case 43:return CCt(e);case 59:case 48:return kN((UHt(),e));default:throw $b(new Rv(g6t+t.ne()+p6t))}},AKt.Jh=function(t){var e;switch(-1==t.G&&(t.G=(e=Uet(t))?awt(e.Mh(),t):-1),t.G){case 0:return new Ok;case 1:return new Rl;case 2:return new Rk;case 3:return new Nk;default:throw $b(new Rv(w6t+t.zb+p6t))}},AKt.Kh=function(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,g,p,m,b;switch(t.yj()){case 5:case 52:case 4:return e;case 6:return kbt(e);case 8:case 7:return null==e?null:FCt(e);case 9:return null==e?null:xtt(hjt((i=jzt(e,!0)).length>0&&(h1(0,i.length),43==i.charCodeAt(0))?i.substr(1):i,-128,127)<<24>>24);case 10:return null==e?null:xtt(hjt((r=jzt(e,!0)).length>0&&(h1(0,r.length),43==r.charCodeAt(0))?r.substr(1):r,-128,127)<<24>>24);case 11:return AN(LWt(this,(UHt(),wPe),e));case 12:return AN(LWt(this,(UHt(),kPe),e));case 13:return null==e?null:new dC(jzt(e,!0));case 15:case 14:return pPt(e);case 16:return AN(LWt(this,(UHt(),vPe),e));case 17:return zpt((UHt(),e));case 18:return zpt(e);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return jzt(e,!0);case 21:case 20:return SPt(e);case 22:return AN(LWt(this,(UHt(),yPe),e));case 23:return AN(LWt(this,(UHt(),_Pe),e));case 24:return AN(LWt(this,(UHt(),CPe),e));case 25:return AN(LWt(this,(UHt(),APe),e));case 26:return AN(LWt(this,(UHt(),xPe),e));case 27:return Qmt(e);case 30:return Vpt((UHt(),e));case 31:return Vpt(e);case 32:return null==e?null:ndt(hjt((u=jzt(e,!0)).length>0&&(h1(0,u.length),43==u.charCodeAt(0))?u.substr(1):u,FYt,OKt));case 33:return null==e?null:new IB((h=jzt(e,!0)).length>0&&(h1(0,h.length),43==h.charCodeAt(0))?h.substr(1):h);case 34:return null==e?null:ndt(hjt((d=jzt(e,!0)).length>0&&(h1(0,d.length),43==d.charCodeAt(0))?d.substr(1):d,FYt,OKt));case 36:return null==e?null:ymt(iGt((f=jzt(e,!0)).length>0&&(h1(0,f.length),43==f.charCodeAt(0))?f.substr(1):f));case 37:return null==e?null:ymt(iGt((g=jzt(e,!0)).length>0&&(h1(0,g.length),43==g.charCodeAt(0))?g.substr(1):g));case 40:return Kgt((UHt(),e));case 42:return Hpt((UHt(),e));case 43:return Hpt(e);case 44:return null==e?null:new IB((p=jzt(e,!0)).length>0&&(h1(0,p.length),43==p.charCodeAt(0))?p.substr(1):p);case 45:return null==e?null:new IB((m=jzt(e,!0)).length>0&&(h1(0,m.length),43==m.charCodeAt(0))?m.substr(1):m);case 46:return jzt(e,!1);case 47:return AN(LWt(this,(UHt(),EPe),e));case 59:case 48:return Wgt((UHt(),e));case 49:return AN(LWt(this,(UHt(),SPe),e));case 50:return null==e?null:idt(hjt((b=jzt(e,!0)).length>0&&(h1(0,b.length),43==b.charCodeAt(0))?b.substr(1):b,Y8t,32767)<<16>>16);case 51:return null==e?null:idt(hjt((o=jzt(e,!0)).length>0&&(h1(0,o.length),43==o.charCodeAt(0))?o.substr(1):o,Y8t,32767)<<16>>16);case 53:return AN(LWt(this,(UHt(),BPe),e));case 55:return null==e?null:idt(hjt((a=jzt(e,!0)).length>0&&(h1(0,a.length),43==a.charCodeAt(0))?a.substr(1):a,Y8t,32767)<<16>>16);case 56:return null==e?null:idt(hjt((s=jzt(e,!0)).length>0&&(h1(0,s.length),43==s.charCodeAt(0))?s.substr(1):s,Y8t,32767)<<16>>16);case 57:return null==e?null:ymt(iGt((c=jzt(e,!0)).length>0&&(h1(0,c.length),43==c.charCodeAt(0))?c.substr(1):c));case 58:return null==e?null:ymt(iGt((l=jzt(e,!0)).length>0&&(h1(0,l.length),43==l.charCodeAt(0))?l.substr(1):l));case 60:return null==e?null:ndt(hjt((n=jzt(e,!0)).length>0&&(h1(0,n.length),43==n.charCodeAt(0))?n.substr(1):n,FYt,OKt));case 61:return null==e?null:ndt(hjt(jzt(e,!0),FYt,OKt));default:throw $b(new Rv(g6t+t.ne()+p6t))}},mW(P9t,"XMLTypeFactoryImpl",1919),fBt(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},HK),AKt.N=!1,AKt.O=!1;var UPe,GPe,WPe,KPe,YPe,XPe=!1;mW(P9t,"XMLTypePackageImpl",586),fBt(1852,1,{837:1},Fl),AKt._j=function(){return u$t(),yLe},mW(P9t,"XMLTypePackageImpl/1",1852),fBt(1861,1,c9t,jl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/10",1861),fBt(1862,1,c9t,$l),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/11",1862),fBt(1863,1,c9t,zl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/12",1863),fBt(1864,1,c9t,Vl),AKt.wj=function(t){return qD(t)},AKt.xj=function(t){return P7(Eee,cYt,333,t,7,1)},mW(P9t,"XMLTypePackageImpl/13",1864),fBt(1865,1,c9t,Hl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/14",1865),fBt(1866,1,c9t,ql),AKt.wj=function(t){return iP(t,15)},AKt.xj=function(t){return P7(Nte,JQt,15,t,0,1)},mW(P9t,"XMLTypePackageImpl/15",1866),fBt(1867,1,c9t,Ul),AKt.wj=function(t){return iP(t,15)},AKt.xj=function(t){return P7(Nte,JQt,15,t,0,1)},mW(P9t,"XMLTypePackageImpl/16",1867),fBt(1868,1,c9t,Gl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/17",1868),fBt(1869,1,c9t,Wl),AKt.wj=function(t){return iP(t,155)},AKt.xj=function(t){return P7(Tee,cYt,155,t,0,1)},mW(P9t,"XMLTypePackageImpl/18",1869),fBt(1870,1,c9t,Kl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/19",1870),fBt(1853,1,c9t,Yl),AKt.wj=function(t){return iP(t,843)},AKt.xj=function(t){return P7(hPe,zKt,843,t,0,1)},mW(P9t,"XMLTypePackageImpl/2",1853),fBt(1871,1,c9t,Xl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/20",1871),fBt(1872,1,c9t,Zl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/21",1872),fBt(1873,1,c9t,Ql),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/22",1873),fBt(1874,1,c9t,Jl),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/23",1874),fBt(1875,1,c9t,tu),AKt.wj=function(t){return iP(t,190)},AKt.xj=function(t){return P7(BLe,cYt,190,t,0,2)},mW(P9t,"XMLTypePackageImpl/24",1875),fBt(1876,1,c9t,eu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/25",1876),fBt(1877,1,c9t,nu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/26",1877),fBt(1878,1,c9t,iu),AKt.wj=function(t){return iP(t,15)},AKt.xj=function(t){return P7(Nte,JQt,15,t,0,1)},mW(P9t,"XMLTypePackageImpl/27",1878),fBt(1879,1,c9t,ru),AKt.wj=function(t){return iP(t,15)},AKt.xj=function(t){return P7(Nte,JQt,15,t,0,1)},mW(P9t,"XMLTypePackageImpl/28",1879),fBt(1880,1,c9t,ou),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/29",1880),fBt(1854,1,c9t,au),AKt.wj=function(t){return iP(t,667)},AKt.xj=function(t){return P7(VPe,zKt,2021,t,0,1)},mW(P9t,"XMLTypePackageImpl/3",1854),fBt(1881,1,c9t,su),AKt.wj=function(t){return iP(t,19)},AKt.xj=function(t){return P7(Iee,cYt,19,t,0,1)},mW(P9t,"XMLTypePackageImpl/30",1881),fBt(1882,1,c9t,cu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/31",1882),fBt(1883,1,c9t,lu),AKt.wj=function(t){return iP(t,162)},AKt.xj=function(t){return P7(Nee,cYt,162,t,0,1)},mW(P9t,"XMLTypePackageImpl/32",1883),fBt(1884,1,c9t,uu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/33",1884),fBt(1885,1,c9t,hu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/34",1885),fBt(1886,1,c9t,du),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/35",1886),fBt(1887,1,c9t,fu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/36",1887),fBt(1888,1,c9t,gu),AKt.wj=function(t){return iP(t,15)},AKt.xj=function(t){return P7(Nte,JQt,15,t,0,1)},mW(P9t,"XMLTypePackageImpl/37",1888),fBt(1889,1,c9t,pu),AKt.wj=function(t){return iP(t,15)},AKt.xj=function(t){return P7(Nte,JQt,15,t,0,1)},mW(P9t,"XMLTypePackageImpl/38",1889),fBt(1890,1,c9t,mu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/39",1890),fBt(1855,1,c9t,bu),AKt.wj=function(t){return iP(t,668)},AKt.xj=function(t){return P7(HPe,zKt,2022,t,0,1)},mW(P9t,"XMLTypePackageImpl/4",1855),fBt(1891,1,c9t,wu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/40",1891),fBt(1892,1,c9t,ku),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/41",1892),fBt(1893,1,c9t,vu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/42",1893),fBt(1894,1,c9t,yu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/43",1894),fBt(1895,1,c9t,_u),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/44",1895),fBt(1896,1,c9t,Cu),AKt.wj=function(t){return iP(t,184)},AKt.xj=function(t){return P7(Fee,cYt,184,t,0,1)},mW(P9t,"XMLTypePackageImpl/45",1896),fBt(1897,1,c9t,Au),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/46",1897),fBt(1898,1,c9t,xu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/47",1898),fBt(1899,1,c9t,Eu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/48",1899),fBt(cXt,1,c9t,Tu),AKt.wj=function(t){return iP(t,184)},AKt.xj=function(t){return P7(Fee,cYt,184,t,0,1)},mW(P9t,"XMLTypePackageImpl/49",cXt),fBt(1856,1,c9t,Su),AKt.wj=function(t){return iP(t,669)},AKt.xj=function(t){return P7(qPe,zKt,2023,t,0,1)},mW(P9t,"XMLTypePackageImpl/5",1856),fBt(1901,1,c9t,Du),AKt.wj=function(t){return iP(t,162)},AKt.xj=function(t){return P7(Nee,cYt,162,t,0,1)},mW(P9t,"XMLTypePackageImpl/50",1901),fBt(1902,1,c9t,Iu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/51",1902),fBt(1903,1,c9t,Bu),AKt.wj=function(t){return iP(t,19)},AKt.xj=function(t){return P7(Iee,cYt,19,t,0,1)},mW(P9t,"XMLTypePackageImpl/52",1903),fBt(1857,1,c9t,Mu),AKt.wj=function(t){return UD(t)},AKt.xj=function(t){return P7(Yee,cYt,2,t,6,1)},mW(P9t,"XMLTypePackageImpl/6",1857),fBt(1858,1,c9t,Pu),AKt.wj=function(t){return iP(t,190)},AKt.xj=function(t){return P7(BLe,cYt,190,t,0,2)},mW(P9t,"XMLTypePackageImpl/7",1858),fBt(1859,1,c9t,Lu),AKt.wj=function(t){return HD(t)},AKt.xj=function(t){return P7(vee,cYt,476,t,8,1)},mW(P9t,"XMLTypePackageImpl/8",1859),fBt(1860,1,c9t,Ou),AKt.wj=function(t){return iP(t,217)},AKt.xj=function(t){return P7(Cee,cYt,217,t,0,1)},mW(P9t,"XMLTypePackageImpl/9",1860),fBt(50,60,$Yt,ry),mW(ote,"RegEx/ParseException",50),fBt(820,1,{},Nu),AKt.sl=function(t){return t<this.j&&63==lY(this.i,t)},AKt.tl=function(){var t,e,n,i,r;if(10!=this.c)throw $b(new ry(vKt((oM(),p7t))));switch(t=this.a){case 101:t=27;break;case 102:t=12;break;case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 120:if(YWt(this),0!=this.c)throw $b(new ry(vKt((oM(),$7t))));if(123==this.a){for(r=0,n=0;;){if(YWt(this),0!=this.c)throw $b(new ry(vKt((oM(),$7t))));if((r=Hwt(this.a))<0)break;if(n>16*n)throw $b(new ry(vKt((oM(),z7t))));n=16*n+r}if(125!=this.a)throw $b(new ry(vKt((oM(),V7t))));if(n>ate)throw $b(new ry(vKt((oM(),H7t))));t=n}else{if(r=0,0!=this.c||(r=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(n=r,YWt(this),0!=this.c||(r=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));t=n=16*n+r}break;case 117:if(i=0,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(e=i,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(e=16*e+i,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(e=16*e+i,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));t=e=16*e+i;break;case 118:if(YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(e=i,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(e=16*e+i,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(e=16*e+i,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(e=16*e+i,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if(e=16*e+i,YWt(this),0!=this.c||(i=Hwt(this.a))<0)throw $b(new ry(vKt((oM(),$7t))));if((e=16*e+i)>ate)throw $b(new ry(vKt((oM(),"parser.descappe.4"))));t=e;break;case 65:case 90:case 122:throw $b(new ry(vKt((oM(),q7t))))}return t},AKt.ul=function(t){var e;switch(t){case 100:e=32&~this.e?(fKt(),rLe):QGt("Nd",!0);break;case 68:e=32&~this.e?(fKt(),lLe):QGt("Nd",!1);break;case 119:e=32&~this.e?(fKt(),wLe):QGt("IsWord",!0);break;case 87:e=32&~this.e?(fKt(),hLe):QGt("IsWord",!1);break;case 115:e=32&~this.e?(fKt(),fLe):QGt("IsSpace",!0);break;case 83:e=32&~this.e?(fKt(),uLe):QGt("IsSpace",!1);break;default:throw $b(new fv(ste+t.toString(16)))}return e},AKt.vl=function(t){var e,n,i,r,o,a,s,c,l,u,h;for(this.b=1,YWt(this),e=null,0==this.c&&94==this.a?(YWt(this),t?(fKt(),fKt(),l=new C0(5)):(fKt(),fKt(),XOt(e=new C0(4),0,ate),l=new C0(4))):(fKt(),fKt(),l=new C0(4)),r=!0;1!=(h=this.c)&&(0!=h||93!=this.a||r);){if(r=!1,n=this.a,i=!1,10==h)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:cVt(l,this.ul(n)),i=!0;break;case 105:case 73:case 99:case 67:(n=this.Ll(l,n))<0&&(i=!0);break;case 112:case 80:if(!(u=ODt(this,n)))throw $b(new ry(vKt((oM(),D7t))));cVt(l,u),i=!0;break;default:n=this.tl()}else if(20==h){if((o=uO(this.i,58,this.d))<0)throw $b(new ry(vKt((oM(),I7t))));if(a=!0,94==lY(this.i,this.d)&&(++this.d,a=!1),!(s=h8(lO(this.i,this.d,o),a,!(512&~this.e))))throw $b(new ry(vKt((oM(),M7t))));if(cVt(l,s),i=!0,o+1>=this.j||93!=lY(this.i,o+1))throw $b(new ry(vKt((oM(),I7t))));this.d=o+2}if(YWt(this),!i)if(0!=this.c||45!=this.a)XOt(l,n,n);else{if(YWt(this),1==(h=this.c))throw $b(new ry(vKt((oM(),B7t))));0==h&&93==this.a?(XOt(l,n,n),XOt(l,45,45)):(c=this.a,10==h&&(c=this.tl()),YWt(this),XOt(l,n,c))}(this.e&v6t)==v6t&&0==this.c&&44==this.a&&YWt(this)}if(1==this.c)throw $b(new ry(vKt((oM(),B7t))));return e&&(Wqt(e,l),l=e),CMt(l),VVt(l),this.b=0,YWt(this),l},AKt.wl=function(){var t,e,n,i;for(n=this.vl(!1);7!=(i=this.c);){if(t=this.a,(0!=i||45!=t&&38!=t)&&4!=i)throw $b(new ry(vKt((oM(),F7t))));if(YWt(this),9!=this.c)throw $b(new ry(vKt((oM(),R7t))));if(e=this.vl(!1),4==i)cVt(n,e);else if(45==t)Wqt(n,e);else{if(38!=t)throw $b(new fv("ASSERT"));vqt(n,e)}}return YWt(this),n},AKt.xl=function(){var t,e;return t=this.a-48,fKt(),fKt(),e=new mQ(12,null,t),!this.g&&(this.g=new Rw),Ew(this.g,new Sb(t)),YWt(this),e},AKt.yl=function(){return YWt(this),fKt(),gLe},AKt.zl=function(){return YWt(this),fKt(),dLe},AKt.Al=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Bl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Cl=function(){return YWt(this),ult()},AKt.Dl=function(){return YWt(this),fKt(),mLe},AKt.El=function(){return YWt(this),fKt(),kLe},AKt.Fl=function(){var t;if(this.d>=this.j||64!=(65504&(t=lY(this.i,this.d++))))throw $b(new ry(vKt((oM(),x7t))));return YWt(this),fKt(),fKt(),new aq(0,t-64)},AKt.Gl=function(){return YWt(this),N$t()},AKt.Hl=function(){return YWt(this),fKt(),vLe},AKt.Il=function(){var t;return fKt(),fKt(),t=new aq(0,105),YWt(this),t},AKt.Jl=function(){return YWt(this),fKt(),bLe},AKt.Kl=function(){return YWt(this),fKt(),pLe},AKt.Ll=function(t,e){return this.tl()},AKt.Ml=function(){return YWt(this),fKt(),sLe},AKt.Nl=function(){var t,e,n,i,r;if(this.d+1>=this.j)throw $b(new ry(vKt((oM(),_7t))));if(i=-1,e=null,49<=(t=lY(this.i,this.d))&&t<=57){if(i=t-48,!this.g&&(this.g=new Rw),Ew(this.g,new Sb(i)),++this.d,41!=lY(this.i,this.d))throw $b(new ry(vKt((oM(),k7t))));++this.d}else switch(63==t&&--this.d,YWt(this),(e=DWt(this)).e){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.c)throw $b(new ry(vKt((oM(),k7t))));break;default:throw $b(new ry(vKt((oM(),C7t))))}if(YWt(this),n=null,2==(r=Kpt(this)).e){if(2!=r.em())throw $b(new ry(vKt((oM(),A7t))));n=r.am(1),r=r.am(0)}if(7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),fKt(),fKt(),new vtt(i,e,r,n)},AKt.Ol=function(){return YWt(this),fKt(),cLe},AKt.Pl=function(){var t;if(YWt(this),t=oG(24,Kpt(this)),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),t},AKt.Ql=function(){var t;if(YWt(this),t=oG(20,Kpt(this)),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),t},AKt.Rl=function(){var t;if(YWt(this),t=oG(22,Kpt(this)),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),t},AKt.Sl=function(){var t,e,n,i,r;for(t=0,n=0,e=-1;this.d<this.j&&0!=(r=YIt(e=lY(this.i,this.d)));)t|=r,++this.d;if(this.d>=this.j)throw $b(new ry(vKt((oM(),v7t))));if(45==e){for(++this.d;this.d<this.j&&0!=(r=YIt(e=lY(this.i,this.d)));)n|=r,++this.d;if(this.d>=this.j)throw $b(new ry(vKt((oM(),v7t))))}if(58==e){if(++this.d,YWt(this),i=DW(Kpt(this),t,n),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));YWt(this)}else{if(41!=e)throw $b(new ry(vKt((oM(),y7t))));++this.d,YWt(this),i=DW(Kpt(this),t,n)}return i},AKt.Tl=function(){var t;if(YWt(this),t=oG(21,Kpt(this)),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),t},AKt.Ul=function(){var t;if(YWt(this),t=oG(23,Kpt(this)),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),t},AKt.Vl=function(){var t,e;if(YWt(this),t=this.f++,e=aG(Kpt(this),t),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),e},AKt.Wl=function(){var t;if(YWt(this),t=aG(Kpt(this),0),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),t},AKt.Xl=function(t){return YWt(this),5==this.c?(YWt(this),gq(t,(fKt(),fKt(),new c5(9,t)))):gq(t,(fKt(),fKt(),new c5(3,t)))},AKt.Yl=function(t){var e;return YWt(this),fKt(),fKt(),e=new nM(2),5==this.c?(YWt(this),tHt(e,aLe),tHt(e,t)):(tHt(e,t),tHt(e,aLe)),e},AKt.Zl=function(t){return YWt(this),5==this.c?(YWt(this),fKt(),fKt(),new c5(9,t)):(fKt(),fKt(),new c5(3,t))},AKt.a=0,AKt.b=0,AKt.c=0,AKt.d=0,AKt.e=0,AKt.f=1,AKt.g=null,AKt.j=0,mW(ote,"RegEx/RegexParser",820),fBt(1824,820,{},Fk),AKt.sl=function(t){return!1},AKt.tl=function(){return VNt(this)},AKt.ul=function(t){return gjt(t)},AKt.vl=function(t){return QWt(this)},AKt.wl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.xl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.yl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.zl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Al=function(){return YWt(this),gjt(67)},AKt.Bl=function(){return YWt(this),gjt(73)},AKt.Cl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Dl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.El=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Fl=function(){return YWt(this),gjt(99)},AKt.Gl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Hl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Il=function(){return YWt(this),gjt(105)},AKt.Jl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Kl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Ll=function(t,e){return cVt(t,gjt(e)),-1},AKt.Ml=function(){return YWt(this),fKt(),fKt(),new aq(0,94)},AKt.Nl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Ol=function(){return YWt(this),fKt(),fKt(),new aq(0,36)},AKt.Pl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Ql=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Rl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Sl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Tl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Ul=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Vl=function(){var t;if(YWt(this),t=aG(Kpt(this),0),7!=this.c)throw $b(new ry(vKt((oM(),k7t))));return YWt(this),t},AKt.Wl=function(){throw $b(new ry(vKt((oM(),U7t))))},AKt.Xl=function(t){return YWt(this),gq(t,(fKt(),fKt(),new c5(3,t)))},AKt.Yl=function(t){var e;return YWt(this),fKt(),fKt(),tHt(e=new nM(2),t),tHt(e,aLe),e},AKt.Zl=function(t){return YWt(this),fKt(),fKt(),new c5(3,t)};var ZPe=null,QPe=null;mW(ote,"RegEx/ParserForXMLSchema",1824),fBt(117,1,kte,Db),AKt.$l=function(t){throw $b(new fv("Not supported."))},AKt._l=function(){return-1},AKt.am=function(t){return null},AKt.bm=function(){return null},AKt.cm=function(t){},AKt.dm=function(t){},AKt.em=function(){return 0},AKt.Ib=function(){return this.fm(0)},AKt.fm=function(t){return 11==this.e?".":""},AKt.e=0;var JPe,tLe,eLe,nLe,iLe,rLe,oLe,aLe,sLe,cLe,lLe,uLe,hLe,dLe,fLe,gLe,pLe,mLe,bLe,wLe,kLe,vLe,yLe,_Le,CLe=null,ALe=null,xLe=null,ELe=mW(ote,"RegEx/Token",117);fBt(136,117,{3:1,136:1,117:1},C0),AKt.fm=function(t){var e,n,i;if(4==this.e)if(this==oLe)n=".";else if(this==rLe)n="\\d";else if(this==wLe)n="\\w";else if(this==fLe)n="\\s";else{for((i=new Ay).a+="[",e=0;e<this.b.length;e+=2)t&v6t&&e>0&&(i.a+=","),this.b[e]===this.b[e+1]?iI(i,ozt(this.b[e])):(iI(i,ozt(this.b[e])),i.a+="-",iI(i,ozt(this.b[e+1])));i.a+="]",n=i.a}else if(this==lLe)n="\\D";else if(this==hLe)n="\\W";else if(this==uLe)n="\\S";else{for((i=new Ay).a+="[^",e=0;e<this.b.length;e+=2)t&v6t&&e>0&&(i.a+=","),this.b[e]===this.b[e+1]?iI(i,ozt(this.b[e])):(iI(i,ozt(this.b[e])),i.a+="-",iI(i,ozt(this.b[e+1])));i.a+="]",n=i.a}return n},AKt.a=!1,AKt.c=!1,mW(ote,"RegEx/RangeToken",136),fBt(584,1,{584:1},Sb),AKt.a=0,mW(ote,"RegEx/RegexParser/ReferencePosition",584),fBt(583,1,{3:1,583:1},UC),AKt.Fb=function(t){var e;return null!=t&&!!iP(t,583)&&(e=jz(t,583),bF(this.b,e.b)&&this.a==e.a)},AKt.Hb=function(){return bwt(this.b+"/"+tOt(this.a))},AKt.Ib=function(){return this.c.fm(this.a)},AKt.a=0,mW(ote,"RegEx/RegularExpression",583),fBt(223,117,kte,aq),AKt._l=function(){return this.a},AKt.fm=function(t){var e,n;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:n="\\"+xR(this.a&YYt);break;case 12:n="\\f";break;case 10:n="\\n";break;case 13:n="\\r";break;case 9:n="\\t";break;case 27:n="\\e";break;default:n=this.a>=$Xt?"\\v"+lO(e="0"+(this.a>>>0).toString(16),e.length-6,e.length):""+xR(this.a&YYt)}break;case 8:n=this==sLe||this==cLe?""+xR(this.a&YYt):"\\"+xR(this.a&YYt);break;default:n=null}return n},AKt.a=0,mW(ote,"RegEx/Token/CharToken",223),fBt(309,117,kte,c5),AKt.am=function(t){return this.a},AKt.cm=function(t){this.b=t},AKt.dm=function(t){this.c=t},AKt.em=function(){return 1},AKt.fm=function(t){var e;if(3==this.e)if(this.c<0&&this.b<0)e=this.a.fm(t)+"*";else if(this.c==this.b)e=this.a.fm(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)e=this.a.fm(t)+"{"+this.c+","+this.b+"}";else{if(!(this.c>=0&&this.b<0))throw $b(new fv("Token#toString(): CLOSURE "+this.c+jKt+this.b));e=this.a.fm(t)+"{"+this.c+",}"}else if(this.c<0&&this.b<0)e=this.a.fm(t)+"*?";else if(this.c==this.b)e=this.a.fm(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)e=this.a.fm(t)+"{"+this.c+","+this.b+"}?";else{if(!(this.c>=0&&this.b<0))throw $b(new fv("Token#toString(): NONGREEDYCLOSURE "+this.c+jKt+this.b));e=this.a.fm(t)+"{"+this.c+",}?"}return e},AKt.b=0,AKt.c=0,mW(ote,"RegEx/Token/ClosureToken",309),fBt(821,117,kte,qG),AKt.am=function(t){return 0==t?this.a:this.b},AKt.em=function(){return 2},AKt.fm=function(t){return 3==this.b.e&&this.b.am(0)==this.a?this.a.fm(t)+"+":9==this.b.e&&this.b.am(0)==this.a?this.a.fm(t)+"+?":this.a.fm(t)+""+this.b.fm(t)},mW(ote,"RegEx/Token/ConcatToken",821),fBt(1822,117,kte,vtt),AKt.am=function(t){if(0==t)return this.d;if(1==t)return this.b;throw $b(new fv("Internal Error: "+t))},AKt.em=function(){return this.b?2:1},AKt.fm=function(t){var e;return e=this.c>0?"(?("+this.c+")":8==this.a.e?"(?("+this.a+")":"(?"+this.a,this.b?e+=this.d+"|"+this.b+")":e+=this.d+")",e},AKt.c=0,mW(ote,"RegEx/Token/ConditionToken",1822),fBt(1823,117,kte,_0),AKt.am=function(t){return this.b},AKt.em=function(){return 1},AKt.fm=function(t){return"(?"+(0==this.a?"":tOt(this.a))+(0==this.c?"":tOt(this.c))+":"+this.b.fm(t)+")"},AKt.a=0,AKt.c=0,mW(ote,"RegEx/Token/ModifierToken",1823),fBt(822,117,kte,iK),AKt.am=function(t){return this.a},AKt.em=function(){return 1},AKt.fm=function(t){var e;switch(e=null,this.e){case 6:e=0==this.b?"(?:"+this.a.fm(t)+")":"("+this.a.fm(t)+")";break;case 20:e="(?="+this.a.fm(t)+")";break;case 21:e="(?!"+this.a.fm(t)+")";break;case 22:e="(?<="+this.a.fm(t)+")";break;case 23:e="(?<!"+this.a.fm(t)+")";break;case 24:e="(?>"+this.a.fm(t)+")"}return e},AKt.b=0,mW(ote,"RegEx/Token/ParenToken",822),fBt(521,117,{3:1,117:1,521:1},mQ),AKt.bm=function(){return this.b},AKt.fm=function(t){return 12==this.e?"\\"+this.a:nBt(this.b)},AKt.a=0,mW(ote,"RegEx/Token/StringToken",521),fBt(465,117,kte,nM),AKt.$l=function(t){tHt(this,t)},AKt.am=function(t){return jz(hK(this.a,t),117)},AKt.em=function(){return this.a?this.a.a.c.length:0},AKt.fm=function(t){var e,n,i,r,o;if(1==this.e){if(2==this.a.a.c.length)e=jz(hK(this.a,0),117),r=3==(n=jz(hK(this.a,1),117)).e&&n.am(0)==e?e.fm(t)+"+":9==n.e&&n.am(0)==e?e.fm(t)+"+?":e.fm(t)+""+n.fm(t);else{for(o=new Ay,i=0;i<this.a.a.c.length;i++)iI(o,jz(hK(this.a,i),117).fm(t));r=o.a}return r}if(2==this.a.a.c.length&&7==jz(hK(this.a,1),117).e)r=jz(hK(this.a,0),117).fm(t)+"?";else if(2==this.a.a.c.length&&7==jz(hK(this.a,0),117).e)r=jz(hK(this.a,1),117).fm(t)+"??";else{for(iI(o=new Ay,jz(hK(this.a,0),117).fm(t)),i=1;i<this.a.a.c.length;i++)o.a+="|",iI(o,jz(hK(this.a,i),117).fm(t));r=o.a}return r},mW(ote,"RegEx/Token/UnionToken",465),fBt(518,1,{592:1},qC),AKt.Ib=function(){return this.a.b},mW(vte,"XMLTypeUtil/PatternMatcherImpl",518),fBt(1622,1381,{},Ru),mW(vte,"XMLTypeValidator",1622),fBt(264,1,mYt,cU),AKt.Jc=function(t){t4(this,t)},AKt.Kc=function(){return(this.b-this.a)*this.c<0?_Le:new UP(this)},AKt.a=0,AKt.b=0,AKt.c=0,mW(_te,"ExclusiveRange",264),fBt(1068,1,rYt,Fu),AKt.Rb=function(t){jz(t,19),uM()},AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return VC()},AKt.Ub=function(){return HC()},AKt.Wb=function(t){jz(t,19),dM()},AKt.Ob=function(){return!1},AKt.Sb=function(){return!1},AKt.Tb=function(){return-1},AKt.Vb=function(){return-1},AKt.Qb=function(){throw $b(new Jv(xte))},mW(_te,"ExclusiveRange/1",1068),fBt(254,1,rYt,UP),AKt.Rb=function(t){jz(t,19),hM()},AKt.Nb=function(t){lG(this,t)},AKt.Pb=function(){return jut(this)},AKt.Ub=function(){return S8(this)},AKt.Wb=function(t){jz(t,19),fM()},AKt.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},AKt.Sb=function(){return this.b>0},AKt.Tb=function(){return this.b},AKt.Vb=function(){return this.b-1},AKt.Qb=function(){throw $b(new Jv(xte))},AKt.a=0,AKt.b=0,mW(_te,"ExclusiveRange/RangeIterator",254);var TLe=OK(E8t,"C"),SLe=OK(D8t,"I"),DLe=OK(BKt,"Z"),ILe=OK(I8t,"J"),BLe=OK(x8t,"B"),MLe=OK(T8t,"D"),PLe=OK(S8t,"F"),LLe=OK(B8t,"S"),OLe=hH("org.eclipse.elk.core.labels","ILabelManager"),NLe=hH($6t,"DiagnosticChain"),RLe=hH(u9t,"ResourceSet"),FLe=mW($6t,"InvocationTargetException",null),jLe=(Ly(),l4),$Le=$Le=lCt;Qnt(Kb),cot("permProps",[[[Ete,Tte],[Ste,"gecko1_8"]],[[Ete,Tte],[Ste,"ie10"]],[[Ete,Tte],[Ste,"ie8"]],[[Ete,Tte],[Ste,"ie9"]],[[Ete,Tte],[Ste,"safari"]]]),$Le(null,"elk",null)}).call(this)}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(e){function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,n);var o=Object.assign({},e),a=!1;try{t.resolve("web-worker"),a=!0}catch(t){}if(e.workerUrl)if(a){var s=t("web-worker");o.workerFactory=function(t){return new s(t)}}else console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.");if(!o.workerFactory){var c=t("./elk-worker.min.js").Worker;o.workerFactory=function(t){return new c(t)}}return r(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,o))}return o(n,e),n}(t("./elk-api.js").default);Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports=a,a.default=a},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(t,e,n){e.exports=Worker},{}]},{},[3])(3)},t.exports=e()}({get exports(){return OH},set exports(t){OH=t}});const NH=new(o(OH)),RH={},FH={};let jH={};const $H=function(t,e,n,i,r,o,a){const s=n.select(`[id="${e}"]`),c=s.insert("g").attr("class","nodes");return Object.keys(t).forEach((function(e){const n=t[e];let a="default";n.classes.length>0&&(a=n.classes.join(" "));const l=eb(n.styles);let u,h=void 0!==n.text?n.text:n.id;const d={width:0,height:0};if(Zh(_w().flowchart.htmlLabels)){const t={label:h.replace(/fa[blrs]?:fa-[\w-]+/g,(t=>`<i class='${t.replace(":"," ")}'></i>`))};u=kO(s,t).node();const e=u.getBBox();d.width=e.width,d.height=e.height,d.labelNode=u,u.parentNode.removeChild(u)}else{const t=i.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",l.labelStyle.replace("color:","fill:"));const e=h.split(Jh.lineBreakRegex);for(const n of e){const e=i.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","1"),e.textContent=n,t.appendChild(e)}u=t;const n=u.getBBox();d.width=n.width,d.height=n.height,d.labelNode=u}const f=[{id:n.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:n.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:n.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:n.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let g=0,p="",m={};switch(n.type){case"round":g=5,p="rect";break;case"square":case"group":default:p="rect";break;case"diamond":p="question",m={portConstraints:"FIXED_SIDE"};break;case"hexagon":p="hexagon";break;case"odd":case"odd_right":p="rect_left_inv_arrow";break;case"lean_right":p="lean_right";break;case"lean_left":p="lean_left";break;case"trapezoid":p="trapezoid";break;case"inv_trapezoid":p="inv_trapezoid";break;case"circle":p="circle";break;case"ellipse":p="ellipse";break;case"stadium":p="stadium";break;case"subroutine":p="subroutine";break;case"cylinder":p="cylinder";break;case"doublecircle":p="doublecircle"}const b={labelStyle:l.labelStyle,shape:p,labelText:h,rx:g,ry:g,class:a,style:l.style,id:n.id,link:n.link,linkTarget:n.linkTarget,tooltip:r.db.getTooltip(n.id)||"",domId:r.db.lookUpDomId(n.id),haveCallback:n.haveCallback,width:"group"===n.type?500:void 0,dir:n.dir,type:n.type,props:n.props,padding:_w().flowchart.padding};let w,k;"group"!==b.type&&(k=qM(c,b,n.dir),w=k.node().getBBox());const v={id:n.id,ports:"diamond"===n.type?f:[],layoutOptions:m,labelText:h,labelData:d,domId:r.db.lookUpDomId(n.id),width:null==w?void 0:w.width,height:null==w?void 0:w.height,type:n.type,el:k,parent:o.parentById[n.id]};jH[b.id]=v})),a},zH=(t,e,n)=>{const i={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return i.TD=i.TB,h.info("abc88",n,e,t),i[n][e][t]},VH=(t,e,n)=>{if(h.info("getNextPort abc88",{node:t,edgeDirection:e,graphDirection:n}),!RH[t])switch(n){case"TB":case"TD":RH[t]={inPosition:"north",outPosition:"south"};break;case"BT":RH[t]={inPosition:"south",outPosition:"north"};break;case"RL":RH[t]={inPosition:"east",outPosition:"west"};break;case"LR":RH[t]={inPosition:"west",outPosition:"east"}}const i="in"===e?RH[t].inPosition:RH[t].outPosition;return"in"===e?RH[t].inPosition=zH(RH[t].inPosition,e,n):RH[t].outPosition=zH(RH[t].outPosition,e,n),i},HH=(t,e)=>{let n=t.start,i=t.end;const r=jH[n],o=jH[i];return r&&o?("diamond"===r.type&&(n=`${n}-${VH(n,"out",e)}`),"diamond"===o.type&&(i=`${i}-${VH(i,"in",e)}`),{source:n,target:i}):{source:n,target:i}},qH=function(t,e,n,i){h.info("abc78 edges = ",t);const r=i.insert("g").attr("class","edgeLabels");let o,a,s={},c=e.db.getDirection();if(void 0!==t.defaultStyle){const e=eb(t.defaultStyle);o=e.style,a=e.labelStyle}return t.forEach((function(e){var i="L-"+e.start+"-"+e.end;void 0===s[i]?(s[i]=0,h.info("abc78 new entry",i,s[i])):(s[i]++,h.info("abc78 new entry",i,s[i]));let l=i+"-"+s[i];h.info("abc78 new link id to be used is",i,l,s[i]);var u="LS-"+e.start,d="LE-"+e.end;const f={style:"",labelStyle:""};switch(f.minlen=e.length||1,"arrow_open"===e.type?f.arrowhead="none":f.arrowhead="normal",f.arrowTypeStart="arrow_open",f.arrowTypeEnd="arrow_open",e.type){case"double_arrow_cross":f.arrowTypeStart="arrow_cross";case"arrow_cross":f.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":f.arrowTypeStart="arrow_point";case"arrow_point":f.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":f.arrowTypeStart="arrow_circle";case"arrow_circle":f.arrowTypeEnd="arrow_circle"}let g="",p="";switch(e.stroke){case"normal":g="fill:none;",void 0!==o&&(g=o),void 0!==a&&(p=a),f.thickness="normal",f.pattern="solid";break;case"dotted":f.thickness="normal",f.pattern="dotted",f.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f.thickness="thick",f.pattern="solid",f.style="stroke-width: 3.5px;fill:none;"}if(void 0!==e.style){const t=eb(e.style);g=t.style,p=t.labelStyle}f.style=f.style+=g,f.labelStyle=f.labelStyle+=p,void 0!==e.interpolate?f.curve=Wm(e.interpolate,Rl):void 0!==t.defaultInterpolate?f.curve=Wm(t.defaultInterpolate,Rl):f.curve=Wm(FH.curve,Rl),void 0===e.text?void 0!==e.style&&(f.arrowheadStyle="fill: #333"):(f.arrowheadStyle="fill: #333",f.labelpos="c"),f.labelType="text",f.label=e.text.replace(Jh.lineBreakRegex,"\n"),void 0===e.style&&(f.style=f.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),f.labelStyle=f.labelStyle.replace("color:","fill:"),f.id=l,f.classes="flowchart-link "+u+" "+d;const m=eP(r,f),{source:b,target:w}=HH(e,c);h.debug("abc78 source and target",b,w),n.edges.push({id:"e"+e.start+e.end,sources:[b],targets:[w],labelEl:m,labels:[{width:f.width,height:f.height,orgWidth:f.width,orgHeight:f.height,text:f.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:f})})),n},UH=function(t,e,n,i){let r="";switch(i&&(r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=r.replace(/\(/g,"\\("),r=r.replace(/\)/g,"\\)")),e.arrowTypeStart){case"arrow_cross":t.attr("marker-start","url("+r+"#"+n+"-crossStart)");break;case"arrow_point":t.attr("marker-start","url("+r+"#"+n+"-pointStart)");break;case"arrow_barb":t.attr("marker-start","url("+r+"#"+n+"-barbStart)");break;case"arrow_circle":t.attr("marker-start","url("+r+"#"+n+"-circleStart)");break;case"aggregation":t.attr("marker-start","url("+r+"#"+n+"-aggregationStart)");break;case"extension":t.attr("marker-start","url("+r+"#"+n+"-extensionStart)");break;case"composition":t.attr("marker-start","url("+r+"#"+n+"-compositionStart)");break;case"dependency":t.attr("marker-start","url("+r+"#"+n+"-dependencyStart)");break;case"lollipop":t.attr("marker-start","url("+r+"#"+n+"-lollipopStart)")}switch(e.arrowTypeEnd){case"arrow_cross":t.attr("marker-end","url("+r+"#"+n+"-crossEnd)");break;case"arrow_point":t.attr("marker-end","url("+r+"#"+n+"-pointEnd)");break;case"arrow_barb":t.attr("marker-end","url("+r+"#"+n+"-barbEnd)");break;case"arrow_circle":t.attr("marker-end","url("+r+"#"+n+"-circleEnd)");break;case"aggregation":t.attr("marker-end","url("+r+"#"+n+"-aggregationEnd)");break;case"extension":t.attr("marker-end","url("+r+"#"+n+"-extensionEnd)");break;case"composition":t.attr("marker-end","url("+r+"#"+n+"-compositionEnd)");break;case"dependency":t.attr("marker-end","url("+r+"#"+n+"-dependencyEnd)");break;case"lollipop":t.attr("marker-end","url("+r+"#"+n+"-lollipopEnd)")}},GH=function(t){const e={parentById:{},childrenById:{}},n=t.getSubGraphs();return h.info("Subgraphs - ",n),n.forEach((function(t){t.nodes.forEach((function(n){e.parentById[n]=t.id,void 0===e.childrenById[t.id]&&(e.childrenById[t.id]=[]),e.childrenById[t.id].push(n)}))})),n.forEach((function(t){t.id,void 0!==e.parentById[t.id]&&e.parentById[t.id]})),e},WH=function(t,e,n){const i=PH(t,e,n);if(void 0===i||"root"===i)return{x:0,y:0};const r=jH[i].offset;return{x:r.posX,y:r.posY}},KH=function(t,e,n,i,r){const o=WH(e.sources[0],e.targets[0],r),a=e.sections[0].startPoint,s=e.sections[0].endPoint,c=(e.sections[0].bendPoints?e.sections[0].bendPoints:[]).map((t=>[t.x+o.x,t.y+o.y])),l=[[a.x+o.x,a.y+o.y],...c,[s.x+o.x,s.y+o.y]],u=$l().curve(Rl),h=t.insert("path").attr("d",u(l)).attr("class","path").attr("fill","none"),d=t.insert("g").attr("class","edgeLabel"),f=un(d.node().appendChild(e.labelEl)),g=f.node().firstChild.getBoundingClientRect();f.attr("width",g.width),f.attr("height",g.height),d.attr("transform",`translate(${e.labels[0].x+o.x}, ${e.labels[0].y+o.y})`),UH(h,n,i.type,i.arrowMarkerAbsolute)},YH=(t,e)=>{t.forEach((t=>{t.children||(t.children=[]);const n=e.childrenById[t.id];n&&n.forEach((e=>{t.children.push(jH[e])})),YH(t.children,e)}))},XH=async function(t,e,n,i){var r;i.db.clear(),jH={},i.db.setGen("gen-2"),i.parser.parse(t);const o=un("body").append("div").attr("style","height:400px").attr("id","cy");let a={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(h.info("Drawing flowchart using v3 renderer",NH),i.db.getDirection()){case"BT":a.layoutOptions["elk.direction"]="UP";break;case"TB":a.layoutOptions["elk.direction"]="DOWN";break;case"LR":a.layoutOptions["elk.direction"]="RIGHT";break;case"RL":a.layoutOptions["elk.direction"]="LEFT"}const{securityLevel:s,flowchart:c}=_w();let l;"sandbox"===s&&(l=un("#i"+e));const u=un("sandbox"===s?l.nodes()[0].contentDocument.body:"body"),d="sandbox"===s?l.nodes()[0].contentDocument:document,f=u.select(`[id="${e}"]`);uM(f,["point","circle","cross"],i.type,i.arrowMarkerAbsolute);const g=i.db.getVertices();let p;const m=i.db.getSubGraphs();h.info("Subgraphs - ",m);for(let t=m.length-1;t>=0;t--)p=m[t],i.db.addVertex(p.id,p.title,"group",void 0,p.classes,p.dir);const b=f.insert("g").attr("class","subgraphs"),w=GH(i.db);a=$H(g,e,u,d,i,w,a);const k=f.insert("g").attr("class","edges edgePath"),v=i.db.getEdges();a=qH(v,i,a,f),Object.keys(jH).forEach((t=>{const e=jH[t];e.parent||a.children.push(e),void 0!==w.childrenById[t]&&(e.labels=[{text:e.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:e.labelData.width,height:e.labelData.height}],delete e.x,delete e.y,delete e.width,delete e.height)})),YH(a.children,w),h.info("after layout",JSON.stringify(a,null,2));const y=await NH.layout(a);ZH(0,0,y.children,f,b,i,0),h.info("after layout",y),null==(r=y.edges)||r.map((t=>{KH(k,t,t.edgeData,i,w)})),Pw({},f,c.diagramPadding,c.useMaxWidth),o.remove()},ZH=(t,e,n,i,r,o,a)=>{n.forEach((function(n){if(n)if(jH[n.id].offset={posX:n.x+t,posY:n.y+e,x:t,y:e,depth:a,width:n.width,height:n.height},"group"===n.type){const i=r.insert("g").attr("class","subgraph");i.insert("rect").attr("class","subgraph subgraph-lvl-"+a%5+" node").attr("x",n.x+t).attr("y",n.y+e).attr("width",n.width).attr("height",n.height);const o=i.insert("g").attr("class","label");o.attr("transform",`translate(${n.labels[0].x+t+n.x}, ${n.labels[0].y+e+n.y})`),o.node().appendChild(n.labelData.labelNode),h.info("Id (UGH)= ",n.type,n.labels)}else h.info("Id (UGH)= ",n.id),n.el.attr("transform",`translate(${n.x+t+n.width/2}, ${n.y+e+n.height/2})`)})),n.forEach((function(n){n&&"group"===n.type&&ZH(t+n.x,e+n.y,n.children,i,r,o,a+1)}))},QH=t=>{let e="";for(let n=0;n<5;n++)e+=`\n .subgraph-lvl-${n} {\n fill: ${t[`surface${n}`]};\n stroke: ${t[`surfacePeer${n}`]};\n }\n `;return e},JH={db:aO,renderer:{getClasses:function(t,e){h.info("Extracting classes"),e.db.clear("ver-2");try{return e.parse(t),e.db.getClasses()}catch(t){return{}}},draw:XH},parser:eL,styles:t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span {\n color: ${t.titleColor};\n }\n\n .label text,span {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ${t.clusterBkg};\n stroke: ${t.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n .subgraph {\n stroke-width:2;\n rx:3;\n }\n // .subgraph-lvl-1 {\n // fill:#ccc;\n // // stroke:black;\n // }\n ${QH(t)}\n`},tq=Object.freeze(Object.defineProperty({__proto__:null,diagram:JH},Symbol.toStringTag,{value:"Module"}));var eq=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,2],n=[1,5],i=[6,9,11,17,18,20,22,23,26,27,28],r=[1,15],o=[1,16],a=[1,17],s=[1,18],c=[1,19],l=[1,23],u=[1,24],h=[1,27],d=[4,6,9,11,17,18,20,22,23,26,27,28],f={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 1:return o[s-1];case 3:case 7:case 8:this.$=[];break;case 4:o[s-1].push(o[s]),this.$=o[s-1];break;case 5:case 6:this.$=o[s];break;case 11:i.getCommonDb().setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 12:this.$=o[s].trim(),i.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=o[s].trim(),i.getCommonDb().setAccDescription(this.$);break;case 15:i.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 19:i.addTask(o[s],0,""),this.$=o[s];break;case 20:i.addEvent(o[s].substr(2)),this.$=o[s];break;case 21:i.parseDirective("%%{","open_directive");break;case 22:i.parseDirective(o[s],"type_directive");break;case 23:o[s]=o[s].trim().replace(/'/g,'"'),i.parseDirective(o[s],"arg_directive");break;case 24:i.parseDirective("}%%","close_directive","timeline")}},table:[{3:1,4:e,7:3,12:4,28:n},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:e,7:3,12:4,28:n},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:r,18:o,20:a,22:s,23:c,24:20,25:21,26:l,27:u,28:n},{1:[2,2]},{14:25,15:[1,26],31:h},t([15,31],[2,22]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:22,10:28,12:4,17:r,18:o,20:a,22:s,23:c,24:20,25:21,26:l,27:u,28:n},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),{19:[1,29]},{21:[1,30]},t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},t(i,[2,5]),t(i,[2,12]),t(i,[2,13]),t(d,[2,9]),{14:34,31:h},{31:[2,23]},{11:[1,35]},t(d,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},g={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}};function p(){this.yy={}}return f.lexer=g,p.prototype=f,f.Parser=p,new p}();eq.parser=eq;const nq=eq;let iq="",rq=0;const oq=[],aq=[],sq=[],cq=()=>sk,lq=(t,e,n)=>{lk(globalThis,t,e,n)},uq=function(){oq.length=0,aq.length=0,iq="",sq.length=0,Jw()},hq=function(t){iq=t,oq.push(t)},dq=function(){return oq},fq=function(){let t=bq();const e=100;let n=0;for(;!t&&n<e;)t=bq(),n++;return aq.push(...sq),aq},gq=function(t,e,n){const i={id:rq++,section:iq,type:iq,task:t,score:e||0,events:n?[n]:[]};sq.push(i)},pq=function(t){sq.find((t=>t.id===rq-1)).events.push(t)},mq=function(t){const e={section:iq,type:iq,description:t,task:t,classes:[]};aq.push(e)},bq=function(){const t=function(t){return sq[t].processed};let e=!0;for(const[n,i]of sq.entries())t(n),e=e&&i.processed;return e},wq={clear:uq,getCommonDb:cq,addSection:hq,getSections:dq,getTasks:fq,addTask:gq,addTaskOrg:mq,addEvent:pq,parseDirective:lq},kq=Object.freeze(Object.defineProperty({__proto__:null,addEvent:pq,addSection:hq,addTask:gq,addTaskOrg:mq,clear:uq,default:wq,getCommonDb:cq,getSections:dq,getTasks:fq,parseDirective:lq},Symbol.toStringTag,{value:"Module"})),vq=12,yq=function(t,e){const n=t.append("rect");return n.attr("x",e.x),n.attr("y",e.y),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("width",e.width),n.attr("height",e.height),n.attr("rx",e.rx),n.attr("ry",e.ry),void 0!==e.class&&n.attr("class",e.class),n},_q=function(t,e){const n=15,i=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");function o(t){const i=Ll().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(n/2).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function a(t){const i=Ll().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(n/2).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function s(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return r.append("circle").attr("cx",e.cx-n/3).attr("cy",e.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+n/3).attr("cy",e.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),e.score>3?o(r):e.score<3?a(r):s(r),i},Cq=function(t,e){const n=t.append("circle");return n.attr("cx",e.cx),n.attr("cy",e.cy),n.attr("class","actor-"+e.pos),n.attr("fill",e.fill),n.attr("stroke",e.stroke),n.attr("r",e.r),void 0!==n.class&&n.attr("class",n.class),void 0!==e.title&&n.append("title").text(e.title),n},Aq=function(t,e){const n=e.text.replace(/<br\s*\/?>/gi," "),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.attr("class","legend"),i.style("text-anchor",e.anchor),void 0!==e.class&&i.attr("class",e.class);const r=i.append("tspan");return r.attr("x",e.x+2*e.textMargin),r.text(n),i},xq=function(t,e){function n(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-1.2*r)+","+(e+i)+" "+t+","+(e+i)}const i=t.append("polygon");i.attr("points",n(e.x,e.y,50,20,7)),i.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,Aq(t,e)},Eq=function(t,e,n){const i=t.append("g"),r=Bq();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=n.width,r.height=n.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,yq(i,r),Mq(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)};let Tq=-1;const Sq=function(t,e,n){const i=e.x+n.width/2,r=t.append("g");Tq++;const o=450;r.append("line").attr("id","task"+Tq).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",o).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),_q(r,{cx:i,cy:300+30*(5-e.score),score:e.score});const a=Bq();a.x=e.x,a.y=e.y,a.fill=e.fill,a.width=n.width,a.height=n.height,a.class="task task-type-"+e.num,a.rx=3,a.ry=3,yq(r,a),e.x,Mq(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)},Dq=function(t,e){yq(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"}).lower()},Iq=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},Bq=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},Mq=function(){function t(t,e,n,r,o,a,s,c){i(e.append("text").attr("x",n+o/2).attr("y",r+a/2+5).style("font-color",c).style("text-anchor","middle").text(t),s)}function e(t,e,n,r,o,a,s,c,l){const{taskFontSize:u,taskFontFamily:h}=c,d=t.split(/<br\s*\/?>/gi);for(let t=0;t<d.length;t++){const c=t*u-u*(d.length-1)/2,f=e.append("text").attr("x",n+o/2).attr("y",r).attr("fill",l).style("text-anchor","middle").style("font-size",u).style("font-family",h);f.append("tspan").attr("x",n+o/2).attr("dy",c).text(d[t]),f.attr("y",r+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),i(f,s)}}function n(t,n,r,o,a,s,c,l){const u=n.append("switch"),h=u.append("foreignObject").attr("x",r).attr("y",o).attr("width",a).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");h.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(t),e(t,u,r,o,a,s,c,l),i(h,c)}function i(t,e){for(const n in e)n in e&&t.attr(n,e[n])}return function(i){return"fo"===i.textPlacement?n:"old"===i.textPlacement?t:e}}();function Pq(t,e){t.each((function(){var t,n=un(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],o=1.1,a=n.attr("y"),s=parseFloat(n.attr("dy")),c=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),c.text(r.join(" ").trim()),(c.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),c.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],c=n.append("tspan").attr("x",0).attr("y",a).attr("dy",o+"em").text(t))}))}const Lq=function(t,e,n,i){const r=n%vq-1,o=t.append("g");e.section=r,o.attr("class",(e.class?e.class+" ":"")+"timeline-node section-"+r);const a=o.append("g"),s=o.append("g"),c=s.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Pq,e.width).node().getBBox(),l=i.fontSize&&i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;return e.height=c.height+1.1*l*.5+e.padding,e.height=Math.max(e.height,e.maxHeight),e.width=e.width+2*e.padding,s.attr("transform","translate("+e.width/2+", "+e.padding/2+")"),Oq(a,e,r),e},Oq=function(t,e,n){const i=5;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-i} v${-e.height+2*i} q0,-5 5,-5 h${e.width-2*i} q5,0 5,5 v${e.height-i} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},Nq={drawRect:yq,drawCircle:Cq,drawSection:Eq,drawText:Aq,drawLabel:xq,drawTask:Sq,drawBackgroundRect:Dq,getTextObj:Iq,getNoteRect:Bq,initGraphics:function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},drawNode:Lq,getVirtualNodeHeight:function(t,e,n){const i=t.append("g"),r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(Pq,e.width).node().getBBox(),o=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.fontSize;return i.remove(),r.height+1.1*o*.5+e.padding}},Rq=function(t,e,n,i){const r=_w(),o=r.leftMargin?r.leftMargin:50;i.db.clear(),i.parser.parse(t+"\n"),h.debug("timeline",i.db);const a=r.securityLevel;let s;"sandbox"===a&&(s=un("#i"+e));const c=un("sandbox"===a?s.nodes()[0].contentDocument.body:"body").select("#"+e);c.append("g");const l=i.db.getTasks(),u=i.db.getCommonDb().getDiagramTitle();h.debug("task",l),Nq.initGraphics(c);const d=i.db.getSections();h.debug("sections",d);let f=0,g=0,p=0,m=0,b=50+o,w=50;m=50;let k=0,v=!0;d.forEach((function(t){const e={number:k,descr:t,section:k,width:150,padding:20,maxHeight:f},n=Nq.getVirtualNodeHeight(c,e,r);h.debug("sectionHeight before draw",n),f=Math.max(f,n+20)}));let y=0,_=0;h.debug("tasks.length",l.length);for(const[t,e]of l.entries()){const n={number:t,descr:e,section:e.section,width:150,padding:20,maxHeight:g},i=Nq.getVirtualNodeHeight(c,n,r);h.debug("taskHeight before draw",i),g=Math.max(g,i+20),y=Math.max(y,e.events.length);let o=0;for(let t=0;t<e.events.length;t++){const n={descr:e.events[t],section:e.section,number:e.section,width:150,padding:20,maxHeight:50};o+=Nq.getVirtualNodeHeight(c,n,r)}_=Math.max(_,o)}h.debug("maxSectionHeight before draw",f),h.debug("maxTaskHeight before draw",g),d&&d.length>0?d.forEach((t=>{const e={number:k,descr:t,section:k,width:150,padding:20,maxHeight:f};h.debug("sectionNode",e);const n=c.append("g"),i=Nq.drawNode(n,e,k,r);h.debug("sectionNode output",i),n.attr("transform",`translate(${b}, ${m})`),w+=f+50;const o=l.filter((e=>e.section===t));o.length>0&&Fq(c,o,k,b,w,g,r,y,_,f,!1),b+=200*Math.max(o.length,1),w=m,k++})):(v=!1,Fq(c,l,k,b,w,g,r,y,_,f,!0));const C=c.node().getBBox();h.debug("bounds",C),u&&c.append("text").text(u).attr("x",C.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),p=v?f+g+150:g+100,c.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",p).attr("x2",C.width+3*o).attr("y2",p).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Pw(void 0,c,r.timeline.padding?r.timeline.padding:50,!!r.timeline.useMaxWidth&&r.timeline.useMaxWidth)},Fq=function(t,e,n,i,r,o,a,s,c,l,u){for(const s of e){const e={descr:s.task,section:n,number:n,width:150,padding:20,maxHeight:o};h.debug("taskNode",e);const d=t.append("g").attr("class","taskWrapper"),f=Nq.drawNode(d,e,n,a).height;if(h.debug("taskHeight after draw",f),d.attr("transform",`translate(${i}, ${r})`),o=Math.max(o,f),s.events){const e=t.append("g").attr("class","lineWrapper");let h=o;r+=100,h+=jq(t,s.events,n,i,r,a),r-=100,e.append("line").attr("x1",i+95).attr("y1",r+o).attr("x2",i+95).attr("y2",r+o+(u?o:l)+c+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}i+=200,u&&!_w().timeline.disableMulticolor&&n++}r-=10},jq=function(t,e,n,i,r,o){let a=0;const s=r;r+=100;for(const s of e){const e={descr:s,section:n,number:n,width:150,padding:20,maxHeight:50};h.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper"),l=Nq.drawNode(c,e,n,o).height;a+=l,c.attr("transform",`translate(${i}, ${r})`),r=r+10+l}return r=s,a},$q=t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],yd(t["lineColor"+e])?t["lineColor"+e]=Cd(t["lineColor"+e],20):t["lineColor"+e]=Ad(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .lineWrapper line{\n stroke: ${t["cScaleLabel"+n]} ;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return e},zq={db:kq,renderer:{setConf:function(t){Object.keys(t).forEach((function(e){conf[e]=t[e]}))},draw:Rq},parser:nq,styles:t=>`\n .edge {\n stroke-width: 3;\n }\n ${$q(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`},Vq=Object.freeze(Object.defineProperty({__proto__:null,diagram:zq},Symbol.toStringTag,{value:"Module"}));var Hq=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,4],n=[1,13],i=[1,12],r=[1,15],o=[1,16],a=[1,20],s=[1,19],c=[6,7,8],l=[1,26],u=[1,24],h=[1,25],d=[6,7,11],f=[1,6,13,15,16,19,22],g=[1,33],p=[1,34],m=[1,6,7,11,13,15,16,19,22],b={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 6:case 7:return i;case 8:i.getLogger().trace("Stop NL ");break;case 9:i.getLogger().trace("Stop EOF ");break;case 11:i.getLogger().trace("Stop NL2 ");break;case 12:i.getLogger().trace("Stop EOF2 ");break;case 15:i.getLogger().info("Node: ",o[s].id),i.addNode(o[s-1].length,o[s].id,o[s].descr,o[s].type);break;case 16:i.getLogger().trace("Icon: ",o[s]),i.decorateNode({icon:o[s]});break;case 17:case 21:i.decorateNode({class:o[s]});break;case 18:i.getLogger().trace("SPACELIST");break;case 19:i.getLogger().trace("Node: ",o[s].id),i.addNode(0,o[s].id,o[s].descr,o[s].type);break;case 20:i.decorateNode({icon:o[s]});break;case 25:i.getLogger().trace("node found ..",o[s-2]),this.$={id:o[s-1],descr:o[s-1],type:i.getType(o[s-2],o[s])};break;case 26:this.$={id:o[s],descr:o[s],type:i.nodeType.DEFAULT};break;case 27:i.getLogger().trace("node found ..",o[s-3]),this.$={id:o[s-3],descr:o[s-1],type:i.getType(o[s-2],o[s])}}},table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:r,16:o,17:17,18:18,19:a,22:s},t(c,[2,3]),{1:[2,2]},t(c,[2,4]),t(c,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:r,16:o,17:17,18:18,19:a,22:s},{6:n,9:22,12:11,13:i,14:14,15:r,16:o,17:17,18:18,19:a,22:s},{6:l,7:u,10:23,11:h},t(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:a,22:s}),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,23]),t(d,[2,24]),t(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:l,7:u,10:32,11:h},{1:[2,7],6:n,12:21,13:i,14:14,15:r,16:o,17:17,18:18,19:a,22:s},t(f,[2,14],{7:g,11:p}),t(m,[2,8]),t(m,[2,9]),t(m,[2,10]),t(d,[2,15]),t(d,[2,16]),t(d,[2,17]),{20:[1,35]},{21:[1,36]},t(f,[2,13],{7:g,11:p}),t(m,[2,11]),t(m,[2,12]),{21:[1,37]},t(d,[2,25]),t(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[],r=[null],o=[],a=this.table,s="",c=0,l=0,u=2,h=1,d=o.slice.call(arguments,1),f=Object.create(this.lexer),g={yy:{}};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(g.yy[p]=this.yy[p]);f.setInput(t,g.yy),g.yy.lexer=f,g.yy.parser=this,void 0===f.yylloc&&(f.yylloc={});var m=f.yylloc;o.push(m);var b=f.options&&f.options.ranges;function w(){var t;return"number"!=typeof(t=i.pop()||f.lex()||h)&&(t instanceof Array&&(t=(i=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var k,v,y,_,C,A,x,E,T={};;){if(v=n[n.length-1],this.defaultActions[v]?y=this.defaultActions[v]:(null==k&&(k=w()),y=a[v]&&a[v][k]),void 0===y||!y.length||!y[0]){var S="";for(C in E=[],a[v])this.terminals_[C]&&C>u&&E.push("'"+this.terminals_[C]+"'");S=f.showPosition?"Parse error on line "+(c+1)+":\n"+f.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(c+1)+": Unexpected "+(k==h?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:E})}if(y[0]instanceof Array&&y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+k);switch(y[0]){case 1:n.push(k),r.push(f.yytext),o.push(f.yylloc),n.push(y[1]),k=null,l=f.yyleng,s=f.yytext,c=f.yylineno,m=f.yylloc;break;case 2:if(A=this.productions_[y[1]][1],T.$=r[r.length-A],T._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column},b&&(T._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]),void 0!==(_=this.performAction.apply(T,[s,l,c,g.yy,y[1],r,o].concat(d))))return _;A&&(n=n.slice(0,-1*A*2),r=r.slice(0,-1*A),o=o.slice(0,-1*A)),n.push(this.productions_[y[1]][0]),r.push(T.$),o.push(T._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},w={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===i.length?this.yylloc.first_column:0)+i[i.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},test_match:function(t,e){var n,i,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in r)this[o]=r[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),o=0;o<r.length;o++)if((n=this._input.match(this.rules[r[o]]))&&(!e||n[0].length>e[0].length)){if(e=n,i=o,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,r[o])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,r[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,e,n,i){switch(n){case 0:t.getLogger().trace("Found comment",e.yytext);break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:this.popState();break;case 5:t.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return t.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:t.getLogger().trace("end icon"),this.popState();break;case 10:return t.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return t.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return t.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return t.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:t.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 22:return t.getLogger().trace("description:",e.yytext),"NODE_DESCR";case 24:return this.popState(),t.getLogger().trace("node end ))"),"NODE_DEND";case 25:return this.popState(),t.getLogger().trace("node end )"),"NODE_DEND";case 26:return this.popState(),t.getLogger().trace("node end ...",e.yytext),"NODE_DEND";case 27:case 30:case 31:return this.popState(),t.getLogger().trace("node end (("),"NODE_DEND";case 28:case 29:return this.popState(),t.getLogger().trace("node end (-"),"NODE_DEND";case 32:case 33:return t.getLogger().trace("Long description:",e.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\-\)\{\}]+)/i,/^(?:$)/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR:{rules:[22,23],inclusive:!1},NODE:{rules:[21,24,25,26,27,28,29,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};function k(){this.yy={}}return b.lexer=w,k.prototype=b,b.Parser=k,new k}();Hq.parser=Hq;const qq=Hq,Uq=t=>Gh(t,_w());let Gq=[],Wq=0,Kq={};const Yq=()=>{Gq=[],Wq=0,Kq={}},Xq=function(t){for(let e=Gq.length-1;e>=0;e--)if(Gq[e].level<t)return Gq[e];return null},Zq=()=>Gq.length>0?Gq[0]:null,Qq=(t,e,n,i)=>{h.info("addNode",t,e,n,i);const r=_w(),o={id:Wq++,nodeId:Uq(e),level:t,descr:Uq(n),type:i,children:[],width:_w().mindmap.maxNodeWidth};switch(o.type){case Jq.ROUNDED_RECT:case Jq.RECT:case Jq.HEXAGON:o.padding=2*r.mindmap.padding;break;default:o.padding=r.mindmap.padding}const a=Xq(t);if(a)a.children.push(o),Gq.push(o);else{if(0!==Gq.length){let t=new Error('There can be only one root. No parent could be found for ("'+o.descr+'")');throw t.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},t}Gq.push(o)}},Jq={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},tU=(t,e)=>{switch(h.debug("In get type",t,e),t){case"[":return Jq.RECT;case"(":return")"===e?Jq.ROUNDED_RECT:Jq.CLOUD;case"((":return Jq.CIRCLE;case")":return Jq.CLOUD;case"))":return Jq.BANG;case"{{":return Jq.HEXAGON;default:return Jq.DEFAULT}},eU=(t,e)=>{Kq[t]=e},nU=t=>{const e=Gq[Gq.length-1];t&&t.icon&&(e.icon=Uq(t.icon)),t&&t.class&&(e.class=Uq(t.class))},iU=t=>{switch(t){case Jq.DEFAULT:return"no-border";case Jq.RECT:return"rect";case Jq.ROUNDED_RECT:return"rounded-rect";case Jq.CIRCLE:return"circle";case Jq.CLOUD:return"cloud";case Jq.BANG:return"bang";case Jq.HEXAGON:return"hexgon";default:return"no-border"}};let rU;const oU=t=>{rU=t},aU=()=>h,sU=t=>Gq[t],cU=t=>Kq[t],lU=Object.freeze(Object.defineProperty({__proto__:null,addNode:Qq,clear:Yq,decorateNode:nU,getElementById:cU,getLogger:aU,getMindmap:Zq,getNodeById:sU,getType:tU,nodeType:Jq,get parseError(){return rU},sanitizeText:Uq,setElementForId:eU,setErrorHandler:oU,type2Str:iU},Symbol.toStringTag,{value:"Module"})),uU=12;function hU(t,e){t.each((function(){var t,n=un(this),i=n.text().split(/(\s+|<br>)/).reverse(),r=[],o=1.1,a=n.attr("y"),s=parseFloat(n.attr("dy")),c=n.text(null).append("tspan").attr("x",0).attr("y",a).attr("dy",s+"em");for(let s=0;s<i.length;s++)t=i[i.length-1-s],r.push(t),c.text(r.join(" ").trim()),(c.node().getComputedTextLength()>e||"<br>"===t)&&(r.pop(),c.text(r.join(" ").trim()),r="<br>"===t?[""]:[t],c=n.append("tspan").attr("x",0).attr("y",a).attr("dy",o+"em").text(t))}))}const dU=function(t,e,n){const i=5;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+iU(e.type)).attr("d",`M0 ${e.height-i} v${-e.height+2*i} q0,-5 5,-5 h${e.width-2*i} q5,0 5,5 v${e.height-i} H0 Z`),t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)},fU=function(t,e){t.append("rect").attr("id","node-"+e.id).attr("class","node-bkg node-"+iU(e.type)).attr("height",e.height).attr("width",e.width)},gU=function(t,e){const n=e.width,i=e.height,r=.15*n,o=.25*n,a=.35*n,s=.2*n;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+iU(e.type)).attr("d",`M0 0 a${r},${r} 0 0,1 ${.25*n},${-1*n*.1}\n a${a},${a} 1 0,1 ${.4*n},${-1*n*.1}\n a${o},${o} 1 0,1 ${.35*n},${1*n*.2}\n\n a${r},${r} 1 0,1 ${.15*n},${1*i*.35}\n a${s},${s} 1 0,1 ${-1*n*.15},${1*i*.65}\n\n a${o},${r} 1 0,1 ${-1*n*.25},${.15*n}\n a${a},${a} 1 0,1 ${-1*n*.5},0\n a${r},${r} 1 0,1 ${-1*n*.25},${-1*n*.15}\n\n a${r},${r} 1 0,1 ${-1*n*.1},${-1*i*.35}\n a${s},${s} 1 0,1 ${.1*n},${-1*i*.65}\n\n H0 V0 Z`)},pU=function(t,e){const n=e.width,i=e.height,r=.15*n;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+iU(e.type)).attr("d",`M0 0 a${r},${r} 1 0,0 ${.25*n},${-1*i*.1}\n a${r},${r} 1 0,0 ${.25*n},0\n a${r},${r} 1 0,0 ${.25*n},0\n a${r},${r} 1 0,0 ${.25*n},${1*i*.1}\n\n a${r},${r} 1 0,0 ${.15*n},${1*i*.33}\n a${.8*r},${.8*r} 1 0,0 0,${1*i*.34}\n a${r},${r} 1 0,0 ${-1*n*.15},${1*i*.33}\n\n a${r},${r} 1 0,0 ${-1*n*.25},${.15*i}\n a${r},${r} 1 0,0 ${-1*n*.25},0\n a${r},${r} 1 0,0 ${-1*n*.25},0\n a${r},${r} 1 0,0 ${-1*n*.25},${-1*i*.15}\n\n a${r},${r} 1 0,0 ${-1*n*.1},${-1*i*.33}\n a${.8*r},${.8*r} 1 0,0 0,${-1*i*.34}\n a${r},${r} 1 0,0 ${.1*n},${-1*i*.33}\n\n H0 V0 Z`)},mU=function(t,e){t.append("circle").attr("id","node-"+e.id).attr("class","node-bkg node-"+iU(e.type)).attr("r",e.width/2)};function bU(t,e,n,i,r){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("transform","translate("+(r.width-e)/2+", "+n+")")}const wU=function(t,e){const n=e.height,i=n/4,r=e.width-e.padding+2*i;bU(t,r,n,[{x:i,y:0},{x:r-i,y:0},{x:r,y:-n/2},{x:r-i,y:-n},{x:i,y:-n},{x:0,y:-n/2}],e)},kU=function(t,e){t.append("rect").attr("id","node-"+e.id).attr("class","node-bkg node-"+iU(e.type)).attr("height",e.height).attr("rx",e.padding).attr("ry",e.padding).attr("width",e.width)},vU={drawNode:function(t,e,n,i){const r=n%(uU-1),o=t.append("g");e.section=r;let a="section-"+r;r<0&&(a+=" section-root"),o.attr("class",(e.class?e.class+" ":"")+"mindmap-node "+a);const s=o.append("g"),c=o.append("g"),l=c.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(hU,e.width).node().getBBox(),u=i.fontSize.replace?i.fontSize.replace("px",""):i.fontSize;if(e.height=l.height+1.1*u*.5+e.padding,e.width=l.width+2*e.padding,e.icon)if(e.type===Jq.CIRCLE)e.height+=50,e.width+=50,o.append("foreignObject").attr("height","50px").attr("width",e.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+r+" "+e.icon),c.attr("transform","translate("+e.width/2+", "+(e.height/2-1.5*e.padding)+")");else{e.width+=50;const t=e.height;e.height=Math.max(t,60);const n=Math.abs(e.height-t);o.append("foreignObject").attr("width","60px").attr("height",e.height).attr("style","text-align: center;margin-top:"+n/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+r+" "+e.icon),c.attr("transform","translate("+(25+e.width/2)+", "+(n/2+e.padding/2)+")")}else c.attr("transform","translate("+e.width/2+", "+e.padding/2+")");switch(e.type){case Jq.DEFAULT:dU(s,e,r);break;case Jq.ROUNDED_RECT:kU(s,e);break;case Jq.RECT:fU(s,e);break;case Jq.CIRCLE:s.attr("transform","translate("+e.width/2+", "+ +e.height/2+")"),mU(s,e);break;case Jq.CLOUD:gU(s,e);break;case Jq.BANG:pU(s,e);break;case Jq.HEXAGON:wU(s,e)}return eU(e.id,o),e.height},positionNode:function(t){const e=cU(t.id),n=t.x||0,i=t.y||0;e.attr("transform","translate("+n+","+i+")")},drawEdge:function(t,e,n,i,r){const o=r%(uU-1),a=n.x+n.width/2,s=n.y+n.height/2,c=e.x+e.width/2,l=e.y+e.height/2,u=c>a?a+Math.abs(a-c)/2:a-Math.abs(a-c)/2,h=l>s?s+Math.abs(s-l)/2:s-Math.abs(s-l)/2,d=c>a?Math.abs(a-u)/2+a:-Math.abs(a-u)/2+a,f=l>s?Math.abs(s-h)/2+s:-Math.abs(s-h)/2+s;t.append("path").attr("d","TB"===n.direction||"BT"===n.direction?`M${a},${s} Q${a},${f} ${u},${h} T${c},${l}`:`M${a},${s} Q${d},${s} ${u},${h} T${c},${l}`).attr("class","edge section-edge-"+o+" edge-depth-"+i)}};var yU={};!function(t){!function(e,n){t.exports=n()}(0,(function(){function t(e){return(t="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})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(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)}}function i(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return s(t)||c(t,e)||l(t,e)||h()}function s(t){if(Array.isArray(t))return t}function c(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}function l(t,e){if(t){if("string"==typeof t)return u(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)?u(t,e):void 0}}function u(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 h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d="undefined"==typeof window?null:window,f=d?d.navigator:null;d&&d.document;var g=t(""),p=t({}),m=t((function(){})),b="undefined"==typeof HTMLElement?"undefined":t(HTMLElement),w=function(t){return t&&t.instanceString&&v(t.instanceString)?t.instanceString():null},k=function(e){return null!=e&&t(e)==g},v=function(e){return null!=e&&t(e)===m},y=function(t){return!T(t)&&(Array.isArray?Array.isArray(t):null!=t&&t instanceof Array)},_=function(e){return null!=e&&t(e)===p&&!y(e)&&e.constructor===Object},C=function(e){return null!=e&&t(e)===p},A=function(e){return null!=e&&t(e)===t(1)&&!isNaN(e)},x=function(t){return A(t)&&Math.floor(t)===t},E=function(t){return"undefined"===b?void 0:null!=t&&t instanceof HTMLElement},T=function(t){return S(t)||D(t)},S=function(t){return"collection"===w(t)&&t._private.single},D=function(t){return"collection"===w(t)&&!t._private.single},I=function(t){return"core"===w(t)},B=function(t){return"stylesheet"===w(t)},M=function(t){return"event"===w(t)},P=function(t){return null==t||!(""!==t&&!t.match(/^\s+$/))},L=function(t){return"undefined"!=typeof HTMLElement&&t instanceof HTMLElement},O=function(t){return _(t)&&A(t.x1)&&A(t.x2)&&A(t.y1)&&A(t.y2)},N=function(t){return C(t)&&v(t.then)},R=function(){return f&&f.userAgent.match(/msie|trident|edge/i)},F=function(t,e){e||(e=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);return t.join("$")});var n=function n(){var i,r=this,o=arguments,a=e.apply(r,o),s=n.cache;return(i=s[a])||(i=s[a]=t.apply(r,o)),i};return n.cache={},n},j=F((function(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))})),$=F((function(t){return t.replace(/(-\w)/g,(function(t){return t[1].toUpperCase()}))})),z=F((function(t,e){return t+e[0].toUpperCase()+e.substring(1)}),(function(t,e){return t+"$"+e})),V=function(t){return P(t)?t:t.charAt(0).toUpperCase()+t.substring(1)},H="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",q="rgb[a]?\\(("+H+"[%]?)\\s*,\\s*("+H+"[%]?)\\s*,\\s*("+H+"[%]?)(?:\\s*,\\s*("+H+"))?\\)",U="rgb[a]?\\((?:"+H+"[%]?)\\s*,\\s*(?:"+H+"[%]?)\\s*,\\s*(?:"+H+"[%]?)(?:\\s*,\\s*(?:"+H+"))?\\)",G="hsl[a]?\\(("+H+")\\s*,\\s*("+H+"[%])\\s*,\\s*("+H+"[%])(?:\\s*,\\s*("+H+"))?\\)",W="hsl[a]?\\((?:"+H+")\\s*,\\s*(?:"+H+"[%])\\s*,\\s*(?:"+H+"[%])(?:\\s*,\\s*(?:"+H+"))?\\)",K="\\#[0-9a-fA-F]{3}",Y="\\#[0-9a-fA-F]{6}",X=function(t,e){return t<e?-1:t>e?1:0},Z=function(t,e){return-1*X(t,e)},Q=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments,n=1;n<e.length;n++){var i=e[n];if(null!=i)for(var r=Object.keys(i),o=0;o<r.length;o++){var a=r[o];t[a]=i[a]}}return t},J=function(t){if((4===t.length||7===t.length)&&"#"===t[0]){var e,n,i,r=16;return 4===t.length?(e=parseInt(t[1]+t[1],r),n=parseInt(t[2]+t[2],r),i=parseInt(t[3]+t[3],r)):(e=parseInt(t[1]+t[2],r),n=parseInt(t[3]+t[4],r),i=parseInt(t[5]+t[6],r)),[e,n,i]}},tt=function(t){var e,n,i,r,o,a,s,c;function l(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var u=new RegExp("^"+G+"$").exec(t);if(u){if((n=parseInt(u[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(i=parseFloat(u[2]))<0||i>100)return;if(i/=100,(r=parseFloat(u[3]))<0||r>100)return;if(r/=100,void 0!==(o=u[4])&&((o=parseFloat(o))<0||o>1))return;if(0===i)a=s=c=Math.round(255*r);else{var h=r<.5?r*(1+i):r+i-r*i,d=2*r-h;a=Math.round(255*l(d,h,n+1/3)),s=Math.round(255*l(d,h,n)),c=Math.round(255*l(d,h,n-1/3))}e=[a,s,c,o]}return e},et=function(t){var e,n=new RegExp("^"+q+"$").exec(t);if(n){e=[];for(var i=[],r=1;r<=3;r++){var o=n[r];if("%"===o[o.length-1]&&(i[r]=!0),o=parseFloat(o),i[r]&&(o=o/100*255),o<0||o>255)return;e.push(Math.floor(o))}var a=i[1]||i[2]||i[3],s=i[1]&&i[2]&&i[3];if(a&&!s)return;var c=n[4];if(void 0!==c){if((c=parseFloat(c))<0||c>1)return;e.push(c)}}return e},nt=function(t){return rt[t.toLowerCase()]},it=function(t){return(y(t)?t:null)||nt(t)||J(t)||et(t)||tt(t)},rt={transparent:[0,0,0,0],aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ot=function(t){for(var e=t.map,n=t.keys,i=n.length,r=0;r<i;r++){var o=n[r];if(_(o))throw Error("Tried to set map with object key");r<n.length-1?(null==e[o]&&(e[o]={}),e=e[o]):e[o]=t.value}},at=function(t){for(var e=t.map,n=t.keys,i=n.length,r=0;r<i;r++){var o=n[r];if(_(o))throw Error("Tried to get map with object key");if(null==(e=e[o]))return e}return e};function st(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var ct=st,lt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{};function ut(t,e){return t(e={exports:{}},e.exports),e.exports}var ht="object"==typeof lt&&lt&&lt.Object===Object&&lt,dt="object"==typeof self&&self&&self.Object===Object&&self,ft=ht||dt||Function("return this")(),gt=function(){return ft.Date.now()},pt=/\s/;function mt(t){for(var e=t.length;e--&&pt.test(t.charAt(e)););return e}var bt=mt,wt=/^\s+/;function kt(t){return t?t.slice(0,bt(t)+1).replace(wt,""):t}var vt=kt,yt=ft.Symbol,_t=Object.prototype,Ct=_t.hasOwnProperty,At=_t.toString,xt=yt?yt.toStringTag:void 0;function Et(t){var e=Ct.call(t,xt),n=t[xt];try{t[xt]=void 0;var i=!0}catch(t){}var r=At.call(t);return i&&(e?t[xt]=n:delete t[xt]),r}var Tt=Et,St=Object.prototype.toString;function Dt(t){return St.call(t)}var It=Dt,Bt="[object Null]",Mt="[object Undefined]",Pt=yt?yt.toStringTag:void 0;function Lt(t){return null==t?void 0===t?Mt:Bt:Pt&&Pt in Object(t)?Tt(t):It(t)}var Ot=Lt;function Nt(t){return null!=t&&"object"==typeof t}var Rt=Nt,Ft="[object Symbol]";function jt(t){return"symbol"==typeof t||Rt(t)&&Ot(t)==Ft}var $t=jt,zt=NaN,Vt=/^[-+]0x[0-9a-f]+$/i,Ht=/^0b[01]+$/i,qt=/^0o[0-7]+$/i,Ut=parseInt;function Gt(t){if("number"==typeof t)return t;if($t(t))return zt;if(ct(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ct(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=vt(t);var n=Ht.test(t);return n||qt.test(t)?Ut(t.slice(2),n?2:8):Vt.test(t)?zt:+t}var Wt=Gt,Kt="Expected a function",Yt=Math.max,Xt=Math.min;function Zt(t,e,n){var i,r,o,a,s,c,l=0,u=!1,h=!1,d=!0;if("function"!=typeof t)throw new TypeError(Kt);function f(e){var n=i,o=r;return i=r=void 0,l=e,a=t.apply(o,n)}function g(t){return l=t,s=setTimeout(b,e),u?f(t):a}function p(t){var n=e-(t-c);return h?Xt(n,o-(t-l)):n}function m(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-l>=o}function b(){var t=gt();if(m(t))return w(t);s=setTimeout(b,p(t))}function w(t){return s=void 0,d&&i?f(t):(i=r=void 0,a)}function k(){void 0!==s&&clearTimeout(s),l=0,i=c=r=s=void 0}function v(){return void 0===s?a:w(gt())}function y(){var t=gt(),n=m(t);if(i=arguments,r=this,c=t,n){if(void 0===s)return g(c);if(h)return clearTimeout(s),s=setTimeout(b,e),f(c)}return void 0===s&&(s=setTimeout(b,e)),a}return e=Wt(e)||0,ct(n)&&(u=!!n.leading,o=(h="maxWait"in n)?Yt(Wt(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d),y.cancel=k,y.flush=v,y}var Qt=Zt,Jt=d?d.performance:null,te=Jt&&Jt.now?function(){return Jt.now()}:function(){return Date.now()},ee=function(){if(d){if(d.requestAnimationFrame)return function(t){d.requestAnimationFrame(t)};if(d.mozRequestAnimationFrame)return function(t){d.mozRequestAnimationFrame(t)};if(d.webkitRequestAnimationFrame)return function(t){d.webkitRequestAnimationFrame(t)};if(d.msRequestAnimationFrame)return function(t){d.msRequestAnimationFrame(t)}}return function(t){t&&setTimeout((function(){t(te())}),1e3/60)}}(),ne=function(t){return ee(t)},ie=te,re=9261,oe=65599,ae=5381,se=function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:re;!(e=t.next()).done;)n=n*oe+e.value|0;return n},ce=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:re)*oe+t|0},le=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae;return(e<<5)+e+t|0},ue=function(t,e){return 2097152*t+e},he=function(t){return 2097152*t[0]+t[1]},de=function(t,e){return[ce(t[0],e[0]),le(t[1],e[1])]},fe=function(t,e){var n={value:0,done:!1},i=0,r=t.length;return se({next:function(){return i<r?n.value=t[i++]:n.done=!0,n}},e)},ge=function(t,e){var n={value:0,done:!1},i=0,r=t.length;return se({next:function(){return i<r?n.value=t.charCodeAt(i++):n.done=!0,n}},e)},pe=function(){return me(arguments)},me=function(t){for(var e,n=0;n<t.length;n++){var i=t[n];e=0===n?ge(i):ge(i,e)}return e},be=!0,we=null!=console.warn,ke=null!=console.trace,ve=Number.MAX_SAFE_INTEGER||9007199254740991,ye=function(){return!0},_e=function(){return!1},Ce=function(){return 0},Ae=function(){},xe=function(t){throw new Error(t)},Ee=function(t){if(void 0===t)return be;be=!!t},Te=function(t){Ee()&&(we?console.warn(t):(console.log(t),ke&&console.trace()))},Se=function(t){return Q({},t)},De=function(t){return null==t?t:y(t)?t.slice():_(t)?Se(t):t},Ie=function(t){return t.slice()},Be=function(t,e){for(e=t="";t++<36;e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-");return e},Me={},Pe=function(){return Me},Le=function(t){var e=Object.keys(t);return function(n){for(var i={},r=0;r<e.length;r++){var o=e[r],a=null==n?void 0:n[o];i[o]=void 0===a?t[o]:a}return i}},Oe=function(t,e,n){for(var i=t.length-1;i>=0&&(t[i]!==e||(t.splice(i,1),!n));i--);},Ne=function(t){t.splice(0,t.length)},Re=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];t.push(i)}},Fe=function(t,e,n){return n&&(e=z(n,e)),t[e]},je=function(t,e,n,i){n&&(e=z(n,e)),t[e]=i},$e="undefined"!=typeof Map?Map:function(){function t(){e(this,t),this._obj={}}return i(t,[{key:"set",value:function(t,e){return this._obj[t]=e,this}},{key:"delete",value:function(t){return this._obj[t]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(t){return void 0!==this._obj[t]}},{key:"get",value:function(t){return this._obj[t]}}]),t}(),ze="undefined",Ve=function(){function t(n){if(e(this,t),this._obj=Object.create(null),this.size=0,null!=n){var i;i=null!=n.instanceString&&n.instanceString()===this.instanceString()?n.toArray():n;for(var r=0;r<i.length;r++)this.add(i[r])}}return i(t,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(t){var e=this._obj;1!==e[t]&&(e[t]=1,this.size++)}},{key:"delete",value:function(t){var e=this._obj;1===e[t]&&(e[t]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(t){return 1===this._obj[t]}},{key:"toArray",value:function(){var t=this;return Object.keys(this._obj).filter((function(e){return t.has(e)}))}},{key:"forEach",value:function(t,e){return this.toArray().forEach(t,e)}}]),t}(),He=("undefined"==typeof Set?"undefined":t(Set))!==ze?Set:Ve,qe=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==t&&void 0!==e&&I(t)){var i=e.group;if(null==i&&(i=e.data&&null!=e.data.source&&null!=e.data.target?"edges":"nodes"),"nodes"===i||"edges"===i){this.length=1,this[0]=this;var r=this._private={cy:t,single:!0,data:e.data||{},position:e.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:i,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!e.selected,selectable:void 0===e.selectable||!!e.selectable,locked:!!e.locked,grabbed:!1,grabbable:void 0===e.grabbable||!!e.grabbable,pannable:void 0===e.pannable?"edges"===i:!!e.pannable,active:!1,classes:new He,animation:{current:[],queue:[]},rscratch:{},scratch:e.scratch||{},edges:[],children:[],parent:e.parent&&e.parent.isNode()?e.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==r.position.x&&(r.position.x=0),null==r.position.y&&(r.position.y=0),e.renderedPosition){var o=e.renderedPosition,a=t.pan(),s=t.zoom();r.position={x:(o.x-a.x)/s,y:(o.y-a.y)/s}}var c=[];y(e.classes)?c=e.classes:k(e.classes)&&(c=e.classes.split(/\s+/));for(var l=0,u=c.length;l<u;l++){var h=c[l];h&&""!==h&&r.classes.add(h)}this.createEmitter();var d=e.style||e.css;d&&(Te("Setting a `style` bypass at element creation should be done only when absolutely necessary. Try to use the stylesheet instead."),this.style(d)),(void 0===n||n)&&this.restore()}else xe("An element must be of type `nodes` or `edges`; you specified `"+i+"`")}else xe("An element must have a core reference and parameters set")},Ue=function(t){return t={bfs:t.bfs||!t.dfs,dfs:t.dfs||!t.bfs},function(e,n,i){var r;_(e)&&!T(e)&&(e=(r=e).roots||r.root,n=r.visit,i=r.directed),i=2!==arguments.length||v(n)?i:n,n=v(n)?n:function(){};for(var o,a=this._private.cy,s=e=k(e)?this.filter(e):e,c=[],l=[],u={},h={},d={},f=0,g=this.byGroup(),p=g.nodes,m=g.edges,b=0;b<s.length;b++){var w=s[b],y=w.id();w.isNode()&&(c.unshift(w),t.bfs&&(d[y]=!0,l.push(w)),h[y]=0)}for(var C=function(){var e=t.bfs?c.shift():c.pop(),r=e.id();if(t.dfs){if(d[r])return"continue";d[r]=!0,l.push(e)}var a=h[r],s=u[r],g=null!=s?s.source():null,b=null!=s?s.target():null,w=null==s?void 0:e.same(g)?b[0]:g[0],k=void 0;if(!0===(k=n(e,s,w,f++,a)))return o=e,"break";if(!1===k)return"break";for(var v=e.connectedEdges().filter((function(t){return(!i||t.source().same(e))&&m.has(t)})),y=0;y<v.length;y++){var _=v[y],C=_.connectedNodes().filter((function(t){return!t.same(e)&&p.has(t)})),A=C.id();0===C.length||d[A]||(C=C[0],c.push(C),t.bfs&&(d[A]=!0,l.push(C)),u[A]=_,h[A]=h[r]+1)}};0!==c.length;){var A=C();if("continue"!==A&&"break"===A)break}for(var x=a.collection(),E=0;E<l.length;E++){var S=l[E],D=u[S.id()];null!=D&&x.push(D),x.push(S)}return{path:a.collection(x),found:a.collection(o)}}},Ge={breadthFirstSearch:Ue({bfs:!0}),depthFirstSearch:Ue({dfs:!0})};Ge.bfs=Ge.breadthFirstSearch,Ge.dfs=Ge.depthFirstSearch;var We=ut((function(t,e){(function(){var e,n,i,r,o,a,s,c,l,u,h,d,f,g,p;i=Math.floor,u=Math.min,n=function(t,e){return t<e?-1:t>e?1:0},l=function(t,e,r,o,a){var s;if(null==r&&(r=0),null==a&&(a=n),r<0)throw new Error("lo must be non-negative");for(null==o&&(o=t.length);r<o;)a(e,t[s=i((r+o)/2)])<0?o=s:r=s+1;return[].splice.apply(t,[r,r-r].concat(e)),e},a=function(t,e,i){return null==i&&(i=n),t.push(e),g(t,0,t.length-1,i)},o=function(t,e){var i,r;return null==e&&(e=n),i=t.pop(),t.length?(r=t[0],t[0]=i,p(t,0,e)):r=i,r},c=function(t,e,i){var r;return null==i&&(i=n),r=t[0],t[0]=e,p(t,0,i),r},s=function(t,e,i){var r;return null==i&&(i=n),t.length&&i(t[0],e)<0&&(e=(r=[t[0],e])[0],t[0]=r[1],p(t,0,i)),e},r=function(t,e){var r,o,a,s,c,l;for(null==e&&(e=n),c=[],o=0,a=(s=function(){l=[];for(var e=0,n=i(t.length/2);0<=n?e<n:e>n;0<=n?e++:e--)l.push(e);return l}.apply(this).reverse()).length;o<a;o++)r=s[o],c.push(p(t,r,e));return c},f=function(t,e,i){var r;if(null==i&&(i=n),-1!==(r=t.indexOf(e)))return g(t,0,r,i),p(t,r,i)},h=function(t,e,i){var o,a,c,l,u;if(null==i&&(i=n),!(a=t.slice(0,e)).length)return a;for(r(a,i),c=0,l=(u=t.slice(e)).length;c<l;c++)o=u[c],s(a,o,i);return a.sort(i).reverse()},d=function(t,e,i){var a,s,c,h,d,f,g,p,m;if(null==i&&(i=n),10*e<=t.length){if(!(c=t.slice(0,e).sort(i)).length)return c;for(s=c[c.length-1],h=0,f=(g=t.slice(e)).length;h<f;h++)i(a=g[h],s)<0&&(l(c,a,0,null,i),c.pop(),s=c[c.length-1]);return c}for(r(t,i),m=[],d=0,p=u(e,t.length);0<=p?d<p:d>p;0<=p?++d:--d)m.push(o(t,i));return m},g=function(t,e,i,r){var o,a,s;for(null==r&&(r=n),o=t[i];i>e&&r(o,a=t[s=i-1>>1])<0;)t[i]=a,i=s;return t[i]=o},p=function(t,e,i){var r,o,a,s,c;for(null==i&&(i=n),o=t.length,c=e,a=t[e],r=2*e+1;r<o;)(s=r+1)<o&&!(i(t[r],t[s])<0)&&(r=s),t[e]=t[r],r=2*(e=r)+1;return t[e]=a,g(t,c,e,i)},e=function(){function t(t){this.cmp=null!=t?t:n,this.nodes=[]}return t.push=a,t.pop=o,t.replace=c,t.pushpop=s,t.heapify=r,t.updateItem=f,t.nlargest=h,t.nsmallest=d,t.prototype.push=function(t){return a(this.nodes,t,this.cmp)},t.prototype.pop=function(){return o(this.nodes,this.cmp)},t.prototype.peek=function(){return this.nodes[0]},t.prototype.contains=function(t){return-1!==this.nodes.indexOf(t)},t.prototype.replace=function(t){return c(this.nodes,t,this.cmp)},t.prototype.pushpop=function(t){return s(this.nodes,t,this.cmp)},t.prototype.heapify=function(){return r(this.nodes,this.cmp)},t.prototype.updateItem=function(t){return f(this.nodes,t,this.cmp)},t.prototype.clear=function(){return this.nodes=[]},t.prototype.empty=function(){return 0===this.nodes.length},t.prototype.size=function(){return this.nodes.length},t.prototype.clone=function(){var e;return(e=new t).nodes=this.nodes.slice(0),e},t.prototype.toArray=function(){return this.nodes.slice(0)},t.prototype.insert=t.prototype.push,t.prototype.top=t.prototype.peek,t.prototype.front=t.prototype.peek,t.prototype.has=t.prototype.contains,t.prototype.copy=t.prototype.clone,t}(),function(e,n){t.exports=n()}(0,(function(){return e}))}).call(lt)})),Ke=We,Ye=Le({root:null,weight:function(t){return 1},directed:!1}),Xe={dijkstra:function(t){if(!_(t)){var e=arguments;t={root:e[0],weight:e[1],directed:e[2]}}var n=Ye(t),i=n.root,r=n.weight,o=n.directed,a=this,s=r,c=k(i)?this.filter(i)[0]:i[0],l={},u={},h={},d=this.byGroup(),f=d.nodes,g=d.edges;g.unmergeBy((function(t){return t.isLoop()}));for(var p=function(t){return l[t.id()]},m=function(t,e){l[t.id()]=e,b.updateItem(t)},b=new Ke((function(t,e){return p(t)-p(e)})),w=0;w<f.length;w++){var v=f[w];l[v.id()]=v.same(c)?0:1/0,b.push(v)}for(var y=function(t,e){for(var n,i=(o?t.edgesTo(e):t.edgesWith(e)).intersect(g),r=1/0,a=0;a<i.length;a++){var c=i[a],l=s(c);(l<r||!n)&&(r=l,n=c)}return{edge:n,dist:r}};b.size()>0;){var C=b.pop(),A=p(C),x=C.id();if(h[x]=A,A!==1/0)for(var E=C.neighborhood().intersect(f),T=0;T<E.length;T++){var S=E[T],D=S.id(),I=y(C,S),B=A+I.dist;B<p(S)&&(m(S,B),u[D]={node:C,edge:I.edge})}}return{distanceTo:function(t){var e=k(t)?f.filter(t)[0]:t[0];return h[e.id()]},pathTo:function(t){var e=k(t)?f.filter(t)[0]:t[0],n=[],i=e,r=i.id();if(e.length>0)for(n.unshift(e);u[r];){var o=u[r];n.unshift(o.edge),n.unshift(o.node),r=(i=o.node).id()}return a.spawn(n)}}}},Ze={kruskal:function(t){t=t||function(t){return 1};for(var e=this.byGroup(),n=e.nodes,i=e.edges,r=n.length,o=new Array(r),a=n,s=function(t){for(var e=0;e<o.length;e++)if(o[e].has(t))return e},c=0;c<r;c++)o[c]=this.spawn(n[c]);for(var l=i.sort((function(e,n){return t(e)-t(n)})),u=0;u<l.length;u++){var h=l[u],d=h.source()[0],f=h.target()[0],g=s(d),p=s(f),m=o[g],b=o[p];g!==p&&(a.merge(h),m.merge(b),o.splice(p,1))}return a}},Qe=Le({root:null,goal:null,weight:function(t){return 1},heuristic:function(t){return 0},directed:!1}),Je={aStar:function(t){var e=this.cy(),n=Qe(t),i=n.root,r=n.goal,o=n.heuristic,a=n.directed,s=n.weight;i=e.collection(i)[0],r=e.collection(r)[0];var c,l,u=i.id(),h=r.id(),d={},f={},g={},p=new Ke((function(t,e){return f[t.id()]-f[e.id()]})),m=new He,b={},w={},k=function(t,e){p.push(t),m.add(e)},v=function(){c=p.pop(),l=c.id(),m.delete(l)},y=function(t){return m.has(t)};k(i,u),d[u]=0,f[u]=o(i);for(var _=0;p.size()>0;){if(v(),_++,l===h){for(var C=[],A=r,x=h,E=w[x];C.unshift(A),null!=E&&C.unshift(E),null!=(A=b[x]);)E=w[x=A.id()];return{found:!0,distance:d[l],path:this.spawn(C),steps:_}}g[l]=!0;for(var T=c._private.edges,S=0;S<T.length;S++){var D=T[S];if(this.hasElementWithId(D.id())&&(!a||D.data("source")===l)){var I=D.source(),B=D.target(),M=I.id()!==l?I:B,P=M.id();if(this.hasElementWithId(P)&&!g[P]){var L=d[l]+s(D);y(P)?L<d[P]&&(d[P]=L,f[P]=L+o(M),b[P]=c,w[P]=D):(d[P]=L,f[P]=L+o(M),k(M,P),b[P]=c,w[P]=D)}}}}return{found:!1,distance:void 0,path:void 0,steps:_}}},tn=Le({weight:function(t){return 1},directed:!1}),en={floydWarshall:function(t){for(var e=this.cy(),n=tn(t),i=n.weight,r=n.directed,o=i,a=this.byGroup(),s=a.nodes,c=a.edges,l=s.length,u=l*l,h=function(t){return s.indexOf(t)},d=function(t){return s[t]},f=new Array(u),g=0;g<u;g++){var p=g%l,m=(g-p)/l;f[g]=m===p?0:1/0}for(var b=new Array(u),w=new Array(u),v=0;v<c.length;v++){var y=c[v],_=y.source()[0],C=y.target()[0];if(_!==C){var A=h(_),x=h(C),E=A*l+x,T=o(y);if(f[E]>T&&(f[E]=T,b[E]=x,w[E]=y),!r){var S=x*l+A;!r&&f[S]>T&&(f[S]=T,b[S]=A,w[S]=y)}}}for(var D=0;D<l;D++)for(var I=0;I<l;I++)for(var B=I*l+D,M=0;M<l;M++){var P=I*l+M,L=D*l+M;f[B]+f[L]<f[P]&&(f[P]=f[B]+f[L],b[P]=b[B])}var O=function(t){return(k(t)?e.filter(t):t)[0]},N=function(t){return h(O(t))};return{distance:function(t,e){var n=N(t),i=N(e);return f[n*l+i]},path:function(t,n){var i=N(t),r=N(n),o=d(i);if(i===r)return o.collection();if(null==b[i*l+r])return e.collection();var a,s=e.collection(),c=i;for(s.merge(o);i!==r;)c=i,i=b[i*l+r],a=w[c*l+i],s.merge(a),s.merge(d(i));return s}}}},nn=Le({weight:function(t){return 1},directed:!1,root:null}),rn={bellmanFord:function(t){var e=this,n=nn(t),i=n.weight,r=n.directed,o=n.root,a=i,s=this,c=this.cy(),l=this.byGroup(),u=l.edges,h=l.nodes,d=h.length,f=new $e,g=!1,p=[];o=c.collection(o)[0],u.unmergeBy((function(t){return t.isLoop()}));for(var m=u.length,b=function(t){var e=f.get(t.id());return e||(e={},f.set(t.id(),e)),e},w=function(t){return(k(t)?c.$(t):t)[0]},v=function(t){return b(w(t)).dist},y=function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,i=[],r=w(t);;){if(null==r)return e.spawn();var a=b(r),c=a.edge,l=a.pred;if(i.unshift(r[0]),r.same(n)&&i.length>0)break;null!=c&&i.unshift(c),r=l}return s.spawn(i)},_=0;_<d;_++){var C=h[_],A=b(C);C.same(o)?A.dist=0:A.dist=1/0,A.pred=null,A.edge=null}for(var x=!1,E=function(t,e,n,i,r,o){var a=i.dist+o;a<r.dist&&!n.same(i.edge)&&(r.dist=a,r.pred=t,r.edge=n,x=!0)},T=1;T<d;T++){x=!1;for(var S=0;S<m;S++){var D=u[S],I=D.source(),B=D.target(),M=a(D),P=b(I),L=b(B);E(I,B,D,P,L,M),r||E(B,I,D,L,P,M)}if(!x)break}if(x)for(var O=[],N=0;N<m;N++){var R=u[N],F=R.source(),j=R.target(),$=a(R),z=b(F).dist,V=b(j).dist;if(z+$<V||!r&&V+$<z){if(g||(Te("Graph contains a negative weight cycle for Bellman-Ford"),g=!0),!1===t.findNegativeWeightCycles)break;var H=[];z+$<V&&H.push(F),!r&&V+$<z&&H.push(j);for(var q=H.length,U=0;U<q;U++){var G=H[U],W=[G];W.push(b(G).edge);for(var K=b(G).pred;-1===W.indexOf(K);)W.push(K),W.push(b(K).edge),K=b(K).pred;for(var Y=(W=W.slice(W.indexOf(K)))[0].id(),X=0,Z=2;Z<W.length;Z+=2)W[Z].id()<Y&&(Y=W[Z].id(),X=Z);(W=W.slice(X).concat(W.slice(0,X))).push(W[0]);var Q=W.map((function(t){return t.id()})).join(",");-1===O.indexOf(Q)&&(p.push(s.spawn(W)),O.push(Q))}}}return{distanceTo:v,pathTo:y,hasNegativeWeightCycle:g,negativeWeightCycles:p}}},on=Math.sqrt(2),an=function(t,e,n){0===n.length&&xe("Karger-Stein must be run on a connected (sub)graph");for(var i=n[t],r=i[1],o=i[2],a=e[r],s=e[o],c=n,l=c.length-1;l>=0;l--){var u=c[l],h=u[1],d=u[2];(e[h]===a&&e[d]===s||e[h]===s&&e[d]===a)&&c.splice(l,1)}for(var f=0;f<c.length;f++){var g=c[f];g[1]===s?(c[f]=g.slice(),c[f][1]=a):g[2]===s&&(c[f]=g.slice(),c[f][2]=a)}for(var p=0;p<e.length;p++)e[p]===s&&(e[p]=a);return c},sn=function(t,e,n,i){for(;n>i;){var r=Math.floor(Math.random()*e.length);e=an(r,t,e),n--}return e},cn={kargerStein:function(){var t=this,e=this.byGroup(),n=e.nodes,i=e.edges;i.unmergeBy((function(t){return t.isLoop()}));var r=n.length,o=i.length,a=Math.ceil(Math.pow(Math.log(r)/Math.LN2,2)),s=Math.floor(r/on);if(!(r<2)){for(var c=[],l=0;l<o;l++){var u=i[l];c.push([l,n.indexOf(u.source()),n.indexOf(u.target())])}for(var h=1/0,d=[],f=new Array(r),g=new Array(r),p=new Array(r),m=function(t,e){for(var n=0;n<r;n++)e[n]=t[n]},b=0;b<=a;b++){for(var w=0;w<r;w++)g[w]=w;var k=sn(g,c.slice(),r,s),v=k.slice();m(g,p);var y=sn(g,k,s,2),_=sn(p,v,s,2);y.length<=_.length&&y.length<h?(h=y.length,d=y,m(g,f)):_.length<=y.length&&_.length<h&&(h=_.length,d=_,m(p,f))}for(var C=this.spawn(d.map((function(t){return i[t[0]]}))),A=this.spawn(),x=this.spawn(),E=f[0],T=0;T<f.length;T++){var S=f[T],D=n[T];S===E?A.merge(D):x.merge(D)}var I=function(e){var n=t.spawn();return e.forEach((function(e){n.merge(e),e.connectedEdges().forEach((function(e){t.contains(e)&&!C.contains(e)&&n.merge(e)}))})),n},B=[I(A),I(x)];return{cut:C,components:B,partition1:A,partition2:x}}xe("At least 2 nodes are required for Karger-Stein algorithm")}},ln=function(t){return{x:t.x,y:t.y}},un=function(t,e,n){return{x:t.x*e+n.x,y:t.y*e+n.y}},hn=function(t,e,n){return{x:(t.x-n.x)/e,y:(t.y-n.y)/e}},dn=function(t){return{x:t[0],y:t[1]}},fn=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=1/0,r=e;r<n;r++){var o=t[r];isFinite(o)&&(i=Math.min(o,i))}return i},gn=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=-1/0,r=e;r<n;r++){var o=t[r];isFinite(o)&&(i=Math.max(o,i))}return i},pn=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=0,r=0,o=e;o<n;o++){var a=t[o];isFinite(a)&&(i+=a,r++)}return i/r},mn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n<t.length&&t.splice(n,t.length-n),e>0&&t.splice(0,e)):t=t.slice(e,n);for(var o=0,a=t.length-1;a>=0;a--){var s=t[a];r?isFinite(s)||(t[a]=-1/0,o++):t.splice(a,1)}i&&t.sort((function(t,e){return t-e}));var c=t.length,l=Math.floor(c/2);return c%2!=0?t[l+1+o]:(t[l-1+o]+t[l+o])/2},bn=function(t){return Math.PI*t/180},wn=function(t,e){return Math.atan2(e,t)-Math.PI/2},kn=Math.log2||function(t){return Math.log(t)/Math.log(2)},vn=function(t){return t>0?1:t<0?-1:0},yn=function(t,e){return Math.sqrt(_n(t,e))},_n=function(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i},Cn=function(t){for(var e=t.length,n=0,i=0;i<e;i++)n+=t[i];for(var r=0;r<e;r++)t[r]=t[r]/n;return t},An=function(t,e,n,i){return(1-i)*(1-i)*t+2*(1-i)*i*e+i*i*n},xn=function(t,e,n,i){return{x:An(t.x,e.x,n.x,i),y:An(t.y,e.y,n.y,i)}},En=function(t,e,n,i){var r={x:e.x-t.x,y:e.y-t.y},o=yn(t,e),a={x:r.x/o,y:r.y/o};return n=null==n?0:n,i=null!=i?i:n*o,{x:t.x+a.x*i,y:t.y+a.y*i}},Tn=function(t,e,n){return Math.max(t,Math.min(n,e))},Sn=function(t){if(null==t)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(null!=t.x1&&null!=t.y1){if(null!=t.x2&&null!=t.y2&&t.x2>=t.x1&&t.y2>=t.y1)return{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,w:t.x2-t.x1,h:t.y2-t.y1};if(null!=t.w&&null!=t.h&&t.w>=0&&t.h>=0)return{x1:t.x1,y1:t.y1,x2:t.x1+t.w,y2:t.y1+t.h,w:t.w,h:t.h}}},Dn=function(t){return{x1:t.x1,x2:t.x2,w:t.w,y1:t.y1,y2:t.y2,h:t.h}},In=function(t){t.x1=1/0,t.y1=1/0,t.x2=-1/0,t.y2=-1/0,t.w=0,t.h=0},Bn=function(t,e){t.x1=Math.min(t.x1,e.x1),t.x2=Math.max(t.x2,e.x2),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,e.y1),t.y2=Math.max(t.y2,e.y2),t.h=t.y2-t.y1},Mn=function(t,e,n){t.x1=Math.min(t.x1,e),t.x2=Math.max(t.x2,e),t.w=t.x2-t.x1,t.y1=Math.min(t.y1,n),t.y2=Math.max(t.y2,n),t.h=t.y2-t.y1},Pn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.x1-=e,t.x2+=e,t.y1-=e,t.y2+=e,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},Ln=function(t){var e,n,i,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===o.length)e=n=i=r=o[0];else if(2===o.length)e=i=o[0],r=n=o[1];else if(4===o.length){var s=a(o,4);e=s[0],n=s[1],i=s[2],r=s[3]}return t.x1-=r,t.x2+=n,t.y1-=e,t.y2+=i,t.w=t.x2-t.x1,t.h=t.y2-t.y1,t},On=function(t,e){t.x1=e.x1,t.y1=e.y1,t.x2=e.x2,t.y2=e.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1},Nn=function(t,e){return!(t.x1>e.x2||e.x1>t.x2||t.x2<e.x1||e.x2<t.x1||t.y2<e.y1||e.y2<t.y1||t.y1>e.y2||e.y1>t.y2)},Rn=function(t,e,n){return t.x1<=e&&e<=t.x2&&t.y1<=n&&n<=t.y2},Fn=function(t,e){return Rn(t,e.x,e.y)},jn=function(t,e){return Rn(t,e.x1,e.y1)&&Rn(t,e.x2,e.y2)},$n=function(t,e,n,i,r,o,a){var s,c=li(r,o),l=r/2,u=o/2,h=i-u-a;if((s=ni(t,e,n,i,n-l+c-a,h,n+l-c+a,h,!1)).length>0)return s;var d=n+l+a;if((s=ni(t,e,n,i,d,i-u+c-a,d,i+u-c+a,!1)).length>0)return s;var f=i+u+a;if((s=ni(t,e,n,i,n-l+c-a,f,n+l-c+a,f,!1)).length>0)return s;var g,p=n-l-a;if((s=ni(t,e,n,i,p,i-u+c-a,p,i+u-c+a,!1)).length>0)return s;var m=n-l+c,b=i-u+c;if((g=ti(t,e,n,i,m,b,c+a)).length>0&&g[0]<=m&&g[1]<=b)return[g[0],g[1]];var w=n+l-c,k=i-u+c;if((g=ti(t,e,n,i,w,k,c+a)).length>0&&g[0]>=w&&g[1]<=k)return[g[0],g[1]];var v=n+l-c,y=i+u-c;if((g=ti(t,e,n,i,v,y,c+a)).length>0&&g[0]>=v&&g[1]>=y)return[g[0],g[1]];var _=n-l+c,C=i+u-c;return(g=ti(t,e,n,i,_,C,c+a)).length>0&&g[0]<=_&&g[1]>=C?[g[0],g[1]]:[]},zn=function(t,e,n,i,r,o,a){var s=a,c=Math.min(n,r),l=Math.max(n,r),u=Math.min(i,o),h=Math.max(i,o);return c-s<=t&&t<=l+s&&u-s<=e&&e<=h+s},Vn=function(t,e,n,i,r,o,a,s,c){var l={x1:Math.min(n,a,r)-c,x2:Math.max(n,a,r)+c,y1:Math.min(i,s,o)-c,y2:Math.max(i,s,o)+c};return!(t<l.x1||t>l.x2||e<l.y1||e>l.y2)},Hn=function(t,e,n,i){var r=e*e-4*t*(n-=i);if(r<0)return[];var o=Math.sqrt(r),a=2*t;return[(-e+o)/a,(-e-o)/a]},qn=function(t,e,n,i,r){var o,a,s,c,l,u,h,d;return 0===t&&(t=1e-5),s=-27*(i/=t)+(e/=t)*(9*(n/=t)-e*e*2),o=(a=(3*n-e*e)/9)*a*a+(s/=54)*s,r[1]=0,h=e/3,o>0?(l=(l=s+Math.sqrt(o))<0?-Math.pow(-l,1/3):Math.pow(l,1/3),u=(u=s-Math.sqrt(o))<0?-Math.pow(-u,1/3):Math.pow(u,1/3),r[0]=-h+l+u,h+=(l+u)/2,r[4]=r[2]=-h,h=Math.sqrt(3)*(-u+l)/2,r[3]=h,void(r[5]=-h)):(r[5]=r[3]=0,0===o?(d=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),r[0]=2*d-h,void(r[4]=r[2]=-(d+h))):(c=(a=-a)*a*a,c=Math.acos(s/Math.sqrt(c)),d=2*Math.sqrt(a),r[0]=-h+d*Math.cos(c/3),r[2]=-h+d*Math.cos((c+2*Math.PI)/3),void(r[4]=-h+d*Math.cos((c+4*Math.PI)/3))))},Un=function(t,e,n,i,r,o,a,s){var c=[];qn(1*n*n-4*n*r+2*n*a+4*r*r-4*r*a+a*a+i*i-4*i*o+2*i*s+4*o*o-4*o*s+s*s,9*n*r-3*n*n-3*n*a-6*r*r+3*r*a+9*i*o-3*i*i-3*i*s-6*o*o+3*o*s,3*n*n-6*n*r+n*a-n*t+2*r*r+2*r*t-a*t+3*i*i-6*i*o+i*s-i*e+2*o*o+2*o*e-s*e,1*n*r-n*n+n*t-r*t+i*o-i*i+i*e-o*e,c);for(var l=1e-7,u=[],h=0;h<6;h+=2)Math.abs(c[h+1])<l&&c[h]>=0&&c[h]<=1&&u.push(c[h]);u.push(1),u.push(0);for(var d,f,g,p=-1,m=0;m<u.length;m++)d=Math.pow(1-u[m],2)*n+2*(1-u[m])*u[m]*r+u[m]*u[m]*a,f=Math.pow(1-u[m],2)*i+2*(1-u[m])*u[m]*o+u[m]*u[m]*s,g=Math.pow(d-t,2)+Math.pow(f-e,2),p>=0?g<p&&(p=g):p=g;return p},Gn=function(t,e,n,i,r,o){var a=[t-n,e-i],s=[r-n,o-i],c=s[0]*s[0]+s[1]*s[1],l=a[0]*a[0]+a[1]*a[1],u=a[0]*s[0]+a[1]*s[1],h=u*u/c;return u<0?l:h>c?(t-r)*(t-r)+(e-o)*(e-o):l-h},Wn=function(t,e,n){for(var i,r,o,a,s=0,c=0;c<n.length/2;c++)if(i=n[2*c],r=n[2*c+1],c+1<n.length/2?(o=n[2*(c+1)],a=n[2*(c+1)+1]):(o=n[2*(c+1-n.length/2)],a=n[2*(c+1-n.length/2)+1]),i==t&&o==t);else{if(!(i>=t&&t>=o||i<=t&&t<=o))continue;(t-i)/(o-i)*(a-r)+r>e&&s++}return s%2!=0},Kn=function(t,e,n,i,r,o,a,s,c){var l,u=new Array(n.length);null!=s[0]?(l=Math.atan(s[1]/s[0]),s[0]<0?l+=Math.PI/2:l=-l-Math.PI/2):l=s;for(var h,d=Math.cos(-l),f=Math.sin(-l),g=0;g<u.length/2;g++)u[2*g]=o/2*(n[2*g]*d-n[2*g+1]*f),u[2*g+1]=a/2*(n[2*g+1]*d+n[2*g]*f),u[2*g]+=i,u[2*g+1]+=r;if(c>0){var p=Zn(u,-c);h=Xn(p)}else h=u;return Wn(t,e,h)},Yn=function(t,e,n,i,r,o,a){for(var s=new Array(n.length),c=o/2,l=a/2,u=ui(o,a),h=u*u,d=0;d<n.length/4;d++){var f=void 0,g=void 0;f=0===d?n.length-2:4*d-2,g=4*d+2;var p=i+c*n[4*d],m=r+l*n[4*d+1],b=-n[f]*n[g]-n[f+1]*n[g+1],w=u/Math.tan(Math.acos(b)/2),k=p-w*n[f],v=m-w*n[f+1],y=p+w*n[g],_=m+w*n[g+1];s[4*d]=k,s[4*d+1]=v,s[4*d+2]=y,s[4*d+3]=_;var C=n[f+1],A=-n[f];C*n[g]+A*n[g+1]<0&&(C*=-1,A*=-1);var x=k+C*u,E=v+A*u;if(Math.pow(x-t,2)+Math.pow(E-e,2)<=h)return!0}return Wn(t,e,s)},Xn=function(t){for(var e,n,i,r,o,a,s,c,l=new Array(t.length/2),u=0;u<t.length/4;u++){e=t[4*u],n=t[4*u+1],i=t[4*u+2],r=t[4*u+3],u<t.length/4-1?(o=t[4*(u+1)],a=t[4*(u+1)+1],s=t[4*(u+1)+2],c=t[4*(u+1)+3]):(o=t[0],a=t[1],s=t[2],c=t[3]);var h=ni(e,n,i,r,o,a,s,c,!0);l[2*u]=h[0],l[2*u+1]=h[1]}return l},Zn=function(t,e){for(var n,i,r,o,a=new Array(2*t.length),s=0;s<t.length/2;s++){n=t[2*s],i=t[2*s+1],s<t.length/2-1?(r=t[2*(s+1)],o=t[2*(s+1)+1]):(r=t[0],o=t[1]);var c=o-i,l=-(r-n),u=Math.sqrt(c*c+l*l),h=c/u,d=l/u;a[4*s]=n+h*e,a[4*s+1]=i+d*e,a[4*s+2]=r+h*e,a[4*s+3]=o+d*e}return a},Qn=function(t,e,n,i,r,o){var a=n-t,s=i-e;a/=r,s/=o;var c=Math.sqrt(a*a+s*s),l=c-1;if(l<0)return[];var u=l/c;return[(n-t)*u+t,(i-e)*u+e]},Jn=function(t,e,n,i,r,o,a){return t-=r,e-=o,(t/=n/2+a)*t+(e/=i/2+a)*e<=1},ti=function(t,e,n,i,r,o,a){var s=[n-t,i-e],c=[t-r,e-o],l=s[0]*s[0]+s[1]*s[1],u=2*(c[0]*s[0]+c[1]*s[1]),h=u*u-4*l*(c[0]*c[0]+c[1]*c[1]-a*a);if(h<0)return[];var d=(-u+Math.sqrt(h))/(2*l),f=(-u-Math.sqrt(h))/(2*l),g=Math.min(d,f),p=Math.max(d,f),m=[];if(g>=0&&g<=1&&m.push(g),p>=0&&p<=1&&m.push(p),0===m.length)return[];var b=m[0]*s[0]+t,w=m[0]*s[1]+e;return m.length>1?m[0]==m[1]?[b,w]:[b,w,m[1]*s[0]+t,m[1]*s[1]+e]:[b,w]},ei=function(t,e,n){return e<=t&&t<=n||n<=t&&t<=e?t:t<=e&&e<=n||n<=e&&e<=t?e:n},ni=function(t,e,n,i,r,o,a,s,c){var l=t-r,u=n-t,h=a-r,d=e-o,f=i-e,g=s-o,p=h*d-g*l,m=u*d-f*l,b=g*u-h*f;if(0!==b){var w=p/b,k=m/b,v=.001,y=0-v,_=1+v;return y<=w&&w<=_&&y<=k&&k<=_||c?[t+w*u,e+w*f]:[]}return 0===p||0===m?ei(t,n,a)===a?[a,s]:ei(t,n,r)===r?[r,o]:ei(r,a,n)===n?[n,i]:[]:[]},ii=function(t,e,n,i,r,o,a,s){var c,l,u,h,d,f,g=[],p=new Array(n.length),m=!0;if(null==o&&(m=!1),m){for(var b=0;b<p.length/2;b++)p[2*b]=n[2*b]*o+i,p[2*b+1]=n[2*b+1]*a+r;if(s>0){var w=Zn(p,-s);l=Xn(w)}else l=p}else l=n;for(var k=0;k<l.length/2;k++)u=l[2*k],h=l[2*k+1],k<l.length/2-1?(d=l[2*(k+1)],f=l[2*(k+1)+1]):(d=l[0],f=l[1]),0!==(c=ni(t,e,i,r,u,h,d,f)).length&&g.push(c[0],c[1]);return g},ri=function(t,e,n,i,r,o,a,s){for(var c,l=[],u=new Array(n.length),h=o/2,d=a/2,f=ui(o,a),g=0;g<n.length/4;g++){var p=void 0,m=void 0;p=0===g?n.length-2:4*g-2,m=4*g+2;var b=i+h*n[4*g],w=r+d*n[4*g+1],k=-n[p]*n[m]-n[p+1]*n[m+1],v=f/Math.tan(Math.acos(k)/2),y=b-v*n[p],_=w-v*n[p+1],C=b+v*n[m],A=w+v*n[m+1];0===g?(u[n.length-2]=y,u[n.length-1]=_):(u[4*g-2]=y,u[4*g-1]=_),u[4*g]=C,u[4*g+1]=A;var x=n[p+1],E=-n[p];x*n[m]+E*n[m+1]<0&&(x*=-1,E*=-1),0!==(c=ti(t,e,i,r,y+x*f,_+E*f,f)).length&&l.push(c[0],c[1])}for(var T=0;T<u.length/4;T++)0!==(c=ni(t,e,i,r,u[4*T],u[4*T+1],u[4*T+2],u[4*T+3],!1)).length&&l.push(c[0],c[1]);if(l.length>2){for(var S=[l[0],l[1]],D=Math.pow(S[0]-t,2)+Math.pow(S[1]-e,2),I=1;I<l.length/2;I++){var B=Math.pow(l[2*I]-t,2)+Math.pow(l[2*I+1]-e,2);B<=D&&(S[0]=l[2*I],S[1]=l[2*I+1],D=B)}return S}return l},oi=function(t,e,n){var i=[t[0]-e[0],t[1]-e[1]],r=Math.sqrt(i[0]*i[0]+i[1]*i[1]),o=(r-n)/r;return o<0&&(o=1e-5),[e[0]+o*i[0],e[1]+o*i[1]]},ai=function(t,e){var n=ci(t,e);return n=si(n)},si=function(t){for(var e,n,i=t.length/2,r=1/0,o=1/0,a=-1/0,s=-1/0,c=0;c<i;c++)e=t[2*c],n=t[2*c+1],r=Math.min(r,e),a=Math.max(a,e),o=Math.min(o,n),s=Math.max(s,n);for(var l=2/(a-r),u=2/(s-o),h=0;h<i;h++)e=t[2*h]=t[2*h]*l,n=t[2*h+1]=t[2*h+1]*u,r=Math.min(r,e),a=Math.max(a,e),o=Math.min(o,n),s=Math.max(s,n);if(o<-1)for(var d=0;d<i;d++)n=t[2*d+1]=t[2*d+1]+(-1-o);return t},ci=function(t,e){var n=1/t*2*Math.PI,i=t%2==0?Math.PI/2+n/2:Math.PI/2;i+=e;for(var r,o=new Array(2*t),a=0;a<t;a++)r=a*n+i,o[2*a]=Math.cos(r),o[2*a+1]=Math.sin(-r);return o},li=function(t,e){return Math.min(t/4,e/4,8)},ui=function(t,e){return Math.min(t/10,e/10,8)},hi=function(){return 8},di=function(t,e,n){return[t-2*e+n,2*(e-t),t]},fi=function(t,e){return{heightOffset:Math.min(15,.05*e),widthOffset:Math.min(100,.25*t),ctrlPtOffsetPct:.05}},gi=Le({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(t){return 1}}),pi={pageRank:function(t){for(var e=gi(t),n=e.dampingFactor,i=e.precision,r=e.iterations,o=e.weight,a=this._private.cy,s=this.byGroup(),c=s.nodes,l=s.edges,u=c.length,h=u*u,d=l.length,f=new Array(h),g=new Array(u),p=(1-n)/u,m=0;m<u;m++){for(var b=0;b<u;b++)f[m*u+b]=0;g[m]=0}for(var w=0;w<d;w++){var k=l[w],v=k.data("source"),y=k.data("target");if(v!==y){var _=c.indexOfId(v),C=c.indexOfId(y),A=o(k);f[C*u+_]+=A,g[_]+=A}}for(var x=1/u+p,E=0;E<u;E++)if(0===g[E])for(var T=0;T<u;T++)f[T*u+E]=x;else for(var S=0;S<u;S++){var D=S*u+E;f[D]=f[D]/g[E]+p}for(var I,B=new Array(u),M=new Array(u),P=0;P<u;P++)B[P]=1;for(var L=0;L<r;L++){for(var O=0;O<u;O++)M[O]=0;for(var N=0;N<u;N++)for(var R=0;R<u;R++){var F=N*u+R;M[N]+=f[F]*B[R]}Cn(M),I=B,B=M,M=I;for(var j=0,$=0;$<u;$++){var z=I[$]-B[$];j+=z*z}if(j<i)break}return{rank:function(t){return t=a.collection(t)[0],B[c.indexOf(t)]}}}},mi=Le({root:null,weight:function(t){return 1},directed:!1,alpha:0}),bi={degreeCentralityNormalized:function(t){t=mi(t);var e=this.cy(),n=this.nodes(),i=n.length;if(t.directed){for(var r={},o={},a=0,s=0,c=0;c<i;c++){var l=n[c],u=l.id();t.root=l;var h=this.degreeCentrality(t);a<h.indegree&&(a=h.indegree),s<h.outdegree&&(s=h.outdegree),r[u]=h.indegree,o[u]=h.outdegree}return{indegree:function(t){return 0==a?0:(k(t)&&(t=e.filter(t)),r[t.id()]/a)},outdegree:function(t){return 0===s?0:(k(t)&&(t=e.filter(t)),o[t.id()]/s)}}}for(var d={},f=0,g=0;g<i;g++){var p=n[g];t.root=p;var m=this.degreeCentrality(t);f<m.degree&&(f=m.degree),d[p.id()]=m.degree}return{degree:function(t){return 0===f?0:(k(t)&&(t=e.filter(t)),d[t.id()]/f)}}},degreeCentrality:function(t){t=mi(t);var e=this.cy(),n=this,i=t,r=i.root,o=i.weight,a=i.directed,s=i.alpha;if(r=e.collection(r)[0],a){for(var c=r.connectedEdges(),l=c.filter((function(t){return t.target().same(r)&&n.has(t)})),u=c.filter((function(t){return t.source().same(r)&&n.has(t)})),h=l.length,d=u.length,f=0,g=0,p=0;p<l.length;p++)f+=o(l[p]);for(var m=0;m<u.length;m++)g+=o(u[m]);return{indegree:Math.pow(h,1-s)*Math.pow(f,s),outdegree:Math.pow(d,1-s)*Math.pow(g,s)}}for(var b=r.connectedEdges().intersection(n),w=b.length,k=0,v=0;v<b.length;v++)k+=o(b[v]);return{degree:Math.pow(w,1-s)*Math.pow(k,s)}}};bi.dc=bi.degreeCentrality,bi.dcn=bi.degreeCentralityNormalised=bi.degreeCentralityNormalized;var wi=Le({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),ki={closenessCentralityNormalized:function(t){for(var e=wi(t),n=e.harmonic,i=e.weight,r=e.directed,o=this.cy(),a={},s=0,c=this.nodes(),l=this.floydWarshall({weight:i,directed:r}),u=0;u<c.length;u++){for(var h=0,d=c[u],f=0;f<c.length;f++)if(u!==f){var g=l.distance(d,c[f]);h+=n?1/g:g}n||(h=1/h),s<h&&(s=h),a[d.id()]=h}return{closeness:function(t){return 0==s?0:(t=k(t)?o.filter(t)[0].id():t.id(),a[t]/s)}}},closenessCentrality:function(t){var e=wi(t),n=e.root,i=e.weight,r=e.directed,o=e.harmonic;n=this.filter(n)[0];for(var a=this.dijkstra({root:n,weight:i,directed:r}),s=0,c=this.nodes(),l=0;l<c.length;l++){var u=c[l];if(!u.same(n)){var h=a.distanceTo(u);s+=o?1/h:h}}return o?s:1/s}};ki.cc=ki.closenessCentrality,ki.ccn=ki.closenessCentralityNormalised=ki.closenessCentralityNormalized;var vi=Le({weight:null,directed:!1}),yi={betweennessCentrality:function(t){for(var e=vi(t),n=e.directed,i=e.weight,r=null!=i,o=this.cy(),a=this.nodes(),s={},c={},l=0,u={set:function(t,e){c[t]=e,e>l&&(l=e)},get:function(t){return c[t]}},h=0;h<a.length;h++){var d=a[h],f=d.id();s[f]=n?d.outgoers().nodes():d.openNeighborhood().nodes(),u.set(f,0)}for(var g=function(t){for(var e=a[t].id(),n=[],c={},l={},h={},d=new Ke((function(t,e){return h[t]-h[e]})),f=0;f<a.length;f++){var g=a[f].id();c[g]=[],l[g]=0,h[g]=1/0}for(l[e]=1,h[e]=0,d.push(e);!d.empty();){var p=d.pop();if(n.push(p),r)for(var m=0;m<s[p].length;m++){var b=s[p][m],w=o.getElementById(p),k=void 0;k=w.edgesTo(b).length>0?w.edgesTo(b)[0]:b.edgesTo(w)[0];var v=i(k);b=b.id(),h[b]>h[p]+v&&(h[b]=h[p]+v,d.nodes.indexOf(b)<0?d.push(b):d.updateItem(b),l[b]=0,c[b]=[]),h[b]==h[p]+v&&(l[b]=l[b]+l[p],c[b].push(p))}else for(var y=0;y<s[p].length;y++){var _=s[p][y].id();h[_]==1/0&&(d.push(_),h[_]=h[p]+1),h[_]==h[p]+1&&(l[_]=l[_]+l[p],c[_].push(p))}}for(var C={},A=0;A<a.length;A++)C[a[A].id()]=0;for(;n.length>0;){for(var x=n.pop(),E=0;E<c[x].length;E++){var T=c[x][E];C[T]=C[T]+l[T]/l[x]*(1+C[x])}x!=a[t].id()&&u.set(x,u.get(x)+C[x])}},p=0;p<a.length;p++)g(p);var m={betweenness:function(t){var e=o.collection(t).id();return u.get(e)},betweennessNormalized:function(t){if(0==l)return 0;var e=o.collection(t).id();return u.get(e)/l}};return m.betweennessNormalised=m.betweennessNormalized,m}};yi.bc=yi.betweennessCentrality;var _i=Le({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(t){return 1}]}),Ci=function(t){return _i(t)},Ai=function(t,e){for(var n=0,i=0;i<e.length;i++)n+=e[i](t);return n},xi=function(t,e,n){for(var i=0;i<e;i++)t[i*e+i]=n},Ei=function(t,e){for(var n,i=0;i<e;i++){n=0;for(var r=0;r<e;r++)n+=t[r*e+i];for(var o=0;o<e;o++)t[o*e+i]=t[o*e+i]/n}},Ti=function(t,e,n){for(var i=new Array(n*n),r=0;r<n;r++){for(var o=0;o<n;o++)i[r*n+o]=0;for(var a=0;a<n;a++)for(var s=0;s<n;s++)i[r*n+s]+=t[r*n+a]*e[a*n+s]}return i},Si=function(t,e,n){for(var i=t.slice(0),r=1;r<n;r++)t=Ti(t,i,e);return t},Di=function(t,e,n){for(var i=new Array(e*e),r=0;r<e*e;r++)i[r]=Math.pow(t[r],n);return Ei(i,e),i},Ii=function(t,e,n,i){for(var r=0;r<n;r++)if(Math.round(t[r]*Math.pow(10,i))/Math.pow(10,i)!=Math.round(e[r]*Math.pow(10,i))/Math.pow(10,i))return!1;return!0},Bi=function(t,e,n,i){for(var r=[],o=0;o<e;o++){for(var a=[],s=0;s<e;s++)Math.round(1e3*t[o*e+s])/1e3>0&&a.push(n[s]);0!==a.length&&r.push(i.collection(a))}return r},Mi=function(t,e){for(var n=0;n<t.length;n++)if(!e[n]||t[n].id()!==e[n].id())return!1;return!0},Pi=function(t){for(var e=0;e<t.length;e++)for(var n=0;n<t.length;n++)e!=n&&Mi(t[e],t[n])&&t.splice(n,1);return t},Li=function(t){for(var e=this.nodes(),n=this.edges(),i=this.cy(),r=Ci(t),o={},a=0;a<e.length;a++)o[e[a].id()]=a;for(var s,c=e.length,l=c*c,u=new Array(l),h=0;h<l;h++)u[h]=0;for(var d=0;d<n.length;d++){var f=n[d],g=o[f.source().id()],p=o[f.target().id()],m=Ai(f,r.attributes);u[g*c+p]+=m,u[p*c+g]+=m}xi(u,c,r.multFactor),Ei(u,c);for(var b=!0,w=0;b&&w<r.maxIterations;)b=!1,s=Si(u,c,r.expandFactor),u=Di(s,c,r.inflateFactor),Ii(u,s,l,4)||(b=!0),w++;var k=Bi(u,c,e,i);return k=Pi(k)},Oi={markovClustering:Li,mcl:Li},Ni=function(t){return t},Ri=function(t,e){return Math.abs(e-t)},Fi=function(t,e,n){return t+Ri(e,n)},ji=function(t,e,n){return t+Math.pow(n-e,2)},$i=function(t){return Math.sqrt(t)},zi=function(t,e,n){return Math.max(t,Ri(e,n))},Vi=function(t,e,n,i,r){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Ni,a=i,s=0;s<t;s++)a=r(a,e(s),n(s));return o(a)},Hi={euclidean:function(t,e,n){return t>=2?Vi(t,e,n,0,ji,$i):Vi(t,e,n,0,Fi)},squaredEuclidean:function(t,e,n){return Vi(t,e,n,0,ji)},manhattan:function(t,e,n){return Vi(t,e,n,0,Fi)},max:function(t,e,n){return Vi(t,e,n,-1/0,zi)}};function qi(t,e,n,i,r,o){var a;return a=v(t)?t:Hi[t]||Hi.euclidean,0===e&&v(t)?a(r,o):a(e,n,i,r,o)}Hi["squared-euclidean"]=Hi.squaredEuclidean,Hi.squaredeuclidean=Hi.squaredEuclidean;var Ui=Le({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Gi=function(t){return Ui(t)},Wi=function(t,e,n,i,r){var o="kMedoids"!==r?function(t){return n[t]}:function(t){return i[t](n)},a=function(t){return i[t](e)},s=n,c=e;return qi(t,i.length,o,a,s,c)},Ki=function(t,e,n){for(var i=n.length,r=new Array(i),o=new Array(i),a=new Array(e),s=null,c=0;c<i;c++)r[c]=t.min(n[c]).value,o[c]=t.max(n[c]).value;for(var l=0;l<e;l++){s=[];for(var u=0;u<i;u++)s[u]=Math.random()*(o[u]-r[u])+r[u];a[l]=s}return a},Yi=function(t,e,n,i,r){for(var o=1/0,a=0,s=0;s<e.length;s++){var c=Wi(n,t,e[s],i,r);c<o&&(o=c,a=s)}return a},Xi=function(t,e,n){for(var i=[],r=null,o=0;o<e.length;o++)n[(r=e[o]).id()]===t&&i.push(r);return i},Zi=function(t,e,n){return Math.abs(e-t)<=n},Qi=function(t,e,n){for(var i=0;i<t.length;i++)for(var r=0;r<t[i].length;r++)if(Math.abs(t[i][r]-e[i][r])>n)return!1;return!0},Ji=function(t,e,n){for(var i=0;i<n;i++)if(t===e[i])return!0;return!1},tr=function(t,e){var n=new Array(e);if(t.length<50)for(var i=0;i<e;i++){for(var r=t[Math.floor(Math.random()*t.length)];Ji(r,n,i);)r=t[Math.floor(Math.random()*t.length)];n[i]=r}else for(var o=0;o<e;o++)n[o]=t[Math.floor(Math.random()*t.length)];return n},er=function(t,e,n){for(var i=0,r=0;r<e.length;r++)i+=Wi("manhattan",e[r],t,n,"kMedoids");return i},nr=function(t,e,n,i,r){for(var o,a,s=0;s<e.length;s++)for(var c=0;c<t.length;c++)i[s][c]=Math.pow(n[s][c],r.m);for(var l=0;l<t.length;l++)for(var u=0;u<r.attributes.length;u++){o=0,a=0;for(var h=0;h<e.length;h++)o+=i[h][l]*r.attributes[u](e[h]),a+=i[h][l];t[l][u]=o/a}},ir=function(t,e,n,i,r){for(var o=0;o<t.length;o++)e[o]=t[o].slice();for(var a,s,c,l=2/(r.m-1),u=0;u<n.length;u++)for(var h=0;h<i.length;h++){a=0;for(var d=0;d<n.length;d++)s=Wi(r.distance,i[h],n[u],r.attributes,"cmeans"),c=Wi(r.distance,i[h],n[d],r.attributes,"cmeans"),a+=Math.pow(s/c,l);t[h][u]=1/a}},rr=function(t,e,n,i){for(var r,o,a=new Array(n.k),s=0;s<a.length;s++)a[s]=[];for(var c=0;c<e.length;c++){r=-1/0,o=-1;for(var l=0;l<e[0].length;l++)e[c][l]>r&&(r=e[c][l],o=l);a[o].push(t[c])}for(var u=0;u<a.length;u++)a[u]=i.collection(a[u]);return a},or=function(t){var e,n,i,r,o=this.cy(),a=this.nodes(),s=Gi(t);i=new Array(a.length);for(var c=0;c<a.length;c++)i[c]=new Array(s.k);n=new Array(a.length);for(var l=0;l<a.length;l++)n[l]=new Array(s.k);for(var u=0;u<a.length;u++){for(var h=0,d=0;d<s.k;d++)n[u][d]=Math.random(),h+=n[u][d];for(var f=0;f<s.k;f++)n[u][f]=n[u][f]/h}e=new Array(s.k);for(var g=0;g<s.k;g++)e[g]=new Array(s.attributes.length);r=new Array(a.length);for(var p=0;p<a.length;p++)r[p]=new Array(s.k);for(var m=!0,b=0;m&&b<s.maxIterations;)m=!1,nr(e,a,n,r,s),ir(n,i,e,a,s),Qi(n,i,s.sensitivityThreshold)||(m=!0),b++;return{clusters:rr(a,n,s,o),degreeOfMembership:n}},ar={kMeans:function(e){var n,i=this.cy(),r=this.nodes(),o=null,a=Gi(e),s=new Array(a.k),c={};a.testMode?"number"==typeof a.testCentroids?(a.testCentroids,n=Ki(r,a.k,a.attributes)):n="object"===t(a.testCentroids)?a.testCentroids:Ki(r,a.k,a.attributes):n=Ki(r,a.k,a.attributes);for(var l=!0,u=0;l&&u<a.maxIterations;){for(var h=0;h<r.length;h++)c[(o=r[h]).id()]=Yi(o,n,a.distance,a.attributes,"kMeans");l=!1;for(var d=0;d<a.k;d++){var f=Xi(d,r,c);if(0!==f.length){for(var g=a.attributes.length,p=n[d],m=new Array(g),b=new Array(g),w=0;w<g;w++){b[w]=0;for(var k=0;k<f.length;k++)o=f[k],b[w]+=a.attributes[w](o);m[w]=b[w]/f.length,Zi(m[w],p[w],a.sensitivityThreshold)||(l=!0)}n[d]=m,s[d]=i.collection(f)}}u++}return s},kMedoids:function(e){var n,i,r=this.cy(),o=this.nodes(),a=null,s=Gi(e),c=new Array(s.k),l={},u=new Array(s.k);s.testMode?"number"==typeof s.testCentroids||(n="object"===t(s.testCentroids)?s.testCentroids:tr(o,s.k)):n=tr(o,s.k);for(var h=!0,d=0;h&&d<s.maxIterations;){for(var f=0;f<o.length;f++)l[(a=o[f]).id()]=Yi(a,n,s.distance,s.attributes,"kMedoids");h=!1;for(var g=0;g<n.length;g++){var p=Xi(g,o,l);if(0!==p.length){u[g]=er(n[g],p,s.attributes);for(var m=0;m<p.length;m++)(i=er(p[m],p,s.attributes))<u[g]&&(u[g]=i,n[g]=p[m],h=!0);c[g]=r.collection(p)}}d++}return c},fuzzyCMeans:or,fcm:or},sr=Le({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),cr={single:"min",complete:"max"},lr=function(t){var e=sr(t),n=cr[e.linkage];return null!=n&&(e.linkage=n),e},ur=function(t,e,n,i,r){for(var o,a=0,s=1/0,c=r.attributes,l=function(t,e){return qi(r.distance,c.length,(function(e){return c[e](t)}),(function(t){return c[t](e)}),t,e)},u=0;u<t.length;u++){var h=t[u].key,d=n[h][i[h]];d<s&&(a=h,s=d)}if("threshold"===r.mode&&s>=r.threshold||"dendrogram"===r.mode&&1===t.length)return!1;var f,g=e[a],p=e[i[a]];f="dendrogram"===r.mode?{left:g,right:p,key:g.key}:{value:g.value.concat(p.value),key:g.key},t[g.index]=f,t.splice(p.index,1),e[g.key]=f;for(var m=0;m<t.length;m++){var b=t[m];g.key===b.key?o=1/0:"min"===r.linkage?(o=n[g.key][b.key],n[g.key][b.key]>n[p.key][b.key]&&(o=n[p.key][b.key])):"max"===r.linkage?(o=n[g.key][b.key],n[g.key][b.key]<n[p.key][b.key]&&(o=n[p.key][b.key])):o="mean"===r.linkage?(n[g.key][b.key]*g.size+n[p.key][b.key]*p.size)/(g.size+p.size):"dendrogram"===r.mode?l(b.value,g.value):l(b.value[0],g.value[0]),n[g.key][b.key]=n[b.key][g.key]=o}for(var w=0;w<t.length;w++){var k=t[w].key;if(i[k]===g.key||i[k]===p.key){for(var v=k,y=0;y<t.length;y++){var _=t[y].key;n[k][_]<n[k][v]&&(v=_)}i[k]=v}t[w].index=w}return g.key=p.key=g.index=p.index=null,!0},hr=function t(e,n,i){e&&(e.value?n.push(e.value):(e.left&&t(e.left,n),e.right&&t(e.right,n)))},dr=function t(e,n){if(!e)return"";if(e.left&&e.right){var i=t(e.left,n),r=t(e.right,n),o=n.add({group:"nodes",data:{id:i+","+r}});return n.add({group:"edges",data:{source:i,target:o.id()}}),n.add({group:"edges",data:{source:r,target:o.id()}}),o.id()}return e.value?e.value.id():void 0},fr=function t(e,n,i){if(!e)return[];var r=[],o=[],a=[];return 0===n?(e.left&&hr(e.left,r),e.right&&hr(e.right,o),a=r.concat(o),[i.collection(a)]):1===n?e.value?[i.collection(e.value)]:(e.left&&hr(e.left,r),e.right&&hr(e.right,o),[i.collection(r),i.collection(o)]):e.value?[i.collection(e.value)]:(e.left&&(r=t(e.left,n-1,i)),e.right&&(o=t(e.right,n-1,i)),r.concat(o))},gr=function(t){for(var e=this.cy(),n=this.nodes(),i=lr(t),r=i.attributes,o=function(t,e){return qi(i.distance,r.length,(function(e){return r[e](t)}),(function(t){return r[t](e)}),t,e)},a=[],s=[],c=[],l=[],u=0;u<n.length;u++){var h={value:"dendrogram"===i.mode?n[u]:[n[u]],key:u,index:u};a[u]=h,l[u]=h,s[u]=[],c[u]=0}for(var d=0;d<a.length;d++)for(var f=0;f<=d;f++){var g=void 0;g="dendrogram"===i.mode?d===f?1/0:o(a[d].value,a[f].value):d===f?1/0:o(a[d].value[0],a[f].value[0]),s[d][f]=g,s[f][d]=g,g<s[d][c[d]]&&(c[d]=f)}for(var p,m=ur(a,l,s,c,i);m;)m=ur(a,l,s,c,i);return"dendrogram"===i.mode?(p=fr(a[0],i.dendrogramDepth,e),i.addDendrogram&&dr(a[0],e)):(p=new Array(a.length),a.forEach((function(t,n){t.key=t.index=null,p[n]=e.collection(t.value)}))),p},pr={hierarchicalClustering:gr,hca:gr},mr=Le({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),br=function(t){var e=t.damping,n=t.preference;.5<=e&&e<1||xe("Damping must range on [0.5, 1). Got: ".concat(e));var i=["median","mean","min","max"];return i.some((function(t){return t===n}))||A(n)||xe("Preference must be one of [".concat(i.map((function(t){return"'".concat(t,"'")})).join(", "),"] or a number. Got: ").concat(n)),mr(t)},wr=function(t,e,n,i){var r=function(t,e){return i[e](t)};return-qi(t,i.length,(function(t){return r(e,t)}),(function(t){return r(n,t)}),e,n)},kr=function(t,e){return"median"===e?mn(t):"mean"===e?pn(t):"min"===e?fn(t):"max"===e?gn(t):e},vr=function(t,e,n){for(var i=[],r=0;r<t;r++)e[r*t+r]+n[r*t+r]>0&&i.push(r);return i},yr=function(t,e,n){for(var i=[],r=0;r<t;r++){for(var o=-1,a=-1/0,s=0;s<n.length;s++){var c=n[s];e[r*t+c]>a&&(o=c,a=e[r*t+c])}o>0&&i.push(o)}for(var l=0;l<n.length;l++)i[n[l]]=n[l];return i},_r=function(t,e,n){for(var i=yr(t,e,n),r=0;r<n.length;r++){for(var o=[],a=0;a<i.length;a++)i[a]===n[r]&&o.push(a);for(var s=-1,c=-1/0,l=0;l<o.length;l++){for(var u=0,h=0;h<o.length;h++)u+=e[o[h]*t+o[l]];u>c&&(s=l,c=u)}n[r]=o[s]}return i=yr(t,e,n)},Cr=function(t){for(var e,n,i,r,o,a,s=this.cy(),c=this.nodes(),l=br(t),u={},h=0;h<c.length;h++)u[c[h].id()]=h;n=(e=c.length)*e,i=new Array(n);for(var d=0;d<n;d++)i[d]=-1/0;for(var f=0;f<e;f++)for(var g=0;g<e;g++)f!==g&&(i[f*e+g]=wr(l.distance,c[f],c[g],l.attributes));r=kr(i,l.preference);for(var p=0;p<e;p++)i[p*e+p]=r;o=new Array(n);for(var m=0;m<n;m++)o[m]=0;a=new Array(n);for(var b=0;b<n;b++)a[b]=0;for(var w=new Array(e),k=new Array(e),v=new Array(e),y=0;y<e;y++)w[y]=0,k[y]=0,v[y]=0;for(var _,C=new Array(e*l.minIterations),A=0;A<C.length;A++)C[A]=0;for(_=0;_<l.maxIterations;_++){for(var x=0;x<e;x++){for(var E=-1/0,T=-1/0,S=-1,D=0,I=0;I<e;I++)w[I]=o[x*e+I],(D=a[x*e+I]+i[x*e+I])>=E?(T=E,E=D,S=I):D>T&&(T=D);for(var B=0;B<e;B++)o[x*e+B]=(1-l.damping)*(i[x*e+B]-E)+l.damping*w[B];o[x*e+S]=(1-l.damping)*(i[x*e+S]-T)+l.damping*w[S]}for(var M=0;M<e;M++){for(var P=0,L=0;L<e;L++)w[L]=a[L*e+M],k[L]=Math.max(0,o[L*e+M]),P+=k[L];P-=k[M],k[M]=o[M*e+M],P+=k[M];for(var O=0;O<e;O++)a[O*e+M]=(1-l.damping)*Math.min(0,P-k[O])+l.damping*w[O];a[M*e+M]=(1-l.damping)*(P-k[M])+l.damping*w[M]}for(var N=0,R=0;R<e;R++){var F=a[R*e+R]+o[R*e+R]>0?1:0;C[_%l.minIterations*e+R]=F,N+=F}if(N>0&&(_>=l.minIterations-1||_==l.maxIterations-1)){for(var j=0,$=0;$<e;$++){v[$]=0;for(var z=0;z<l.minIterations;z++)v[$]+=C[z*e+$];0!==v[$]&&v[$]!==l.minIterations||j++}if(j===e)break}}for(var V=vr(e,o,a),H=_r(e,i,V),q={},U=0;U<V.length;U++)q[V[U]]=[];for(var G=0;G<c.length;G++){var W=H[u[c[G].id()]];null!=W&&q[W].push(c[G])}for(var K=new Array(V.length),Y=0;Y<V.length;Y++)K[Y]=s.collection(q[V[Y]]);return K},Ar={affinityPropagation:Cr,ap:Cr},xr=Le({root:void 0,directed:!1}),Er={hierholzer:function(t){if(!_(t)){var e=arguments;t={root:e[0],directed:e[1]}}var n,i,r,o=xr(t),a=o.root,s=o.directed,c=this,l=!1;a&&(r=k(a)?this.filter(a)[0].id():a[0].id());var u={},h={};s?c.forEach((function(t){var e=t.id();if(t.isNode()){var r=t.indegree(!0),o=t.outdegree(!0),a=r-o,s=o-r;1==a?n?l=!0:n=e:1==s?i?l=!0:i=e:(s>1||a>1)&&(l=!0),u[e]=[],t.outgoers().forEach((function(t){t.isEdge()&&u[e].push(t.id())}))}else h[e]=[void 0,t.target().id()]})):c.forEach((function(t){var e=t.id();t.isNode()?(t.degree(!0)%2&&(n?i?l=!0:i=e:n=e),u[e]=[],t.connectedEdges().forEach((function(t){return u[e].push(t.id())}))):h[e]=[t.source().id(),t.target().id()]}));var d={found:!1,trail:void 0};if(l)return d;if(i&&n)if(s){if(r&&i!=r)return d;r=i}else{if(r&&i!=r&&n!=r)return d;r||(r=i)}else r||(r=c[0].id());var f=function(t){for(var e,n,i,r=t,o=[t];u[r].length;)e=u[r].shift(),n=h[e][0],r!=(i=h[e][1])?(u[i]=u[i].filter((function(t){return t!=e})),r=i):s||r==n||(u[n]=u[n].filter((function(t){return t!=e})),r=n),o.unshift(e),o.unshift(r);return o},g=[],p=[];for(p=f(r);1!=p.length;)0==u[p[0]].length?(g.unshift(c.getElementById(p.shift())),g.unshift(c.getElementById(p.shift()))):p=f(p.shift()).concat(p);for(var m in g.unshift(c.getElementById(p.shift())),u)if(u[m].length)return d;return d.found=!0,d.trail=this.spawn(g,!0),d}},Tr=function(){var t=this,e={},n=0,i=0,r=[],o=[],a={},s=function(n,i){for(var a=o.length-1,s=[],c=t.spawn();o[a].x!=n||o[a].y!=i;)s.push(o.pop().edge),a--;s.push(o.pop().edge),s.forEach((function(n){var i=n.connectedNodes().intersection(t);c.merge(n),i.forEach((function(n){var i=n.id(),r=n.connectedEdges().intersection(t);c.merge(n),e[i].cutVertex?c.merge(r.filter((function(t){return t.isLoop()}))):c.merge(r)}))})),r.push(c)},c=function c(l,u,h){l===h&&(i+=1),e[u]={id:n,low:n++,cutVertex:!1};var d,f,g,p,m=t.getElementById(u).connectedEdges().intersection(t);0===m.size()?r.push(t.spawn(t.getElementById(u))):m.forEach((function(t){d=t.source().id(),f=t.target().id(),(g=d===u?f:d)!==h&&(p=t.id(),a[p]||(a[p]=!0,o.push({x:u,y:g,edge:t})),g in e?e[u].low=Math.min(e[u].low,e[g].id):(c(l,g,u),e[u].low=Math.min(e[u].low,e[g].low),e[u].id<=e[g].low&&(e[u].cutVertex=!0,s(u,g))))}))};t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||(i=0,c(n,n),e[n].cutVertex=i>1)}}));var l=Object.keys(e).filter((function(t){return e[t].cutVertex})).map((function(e){return t.getElementById(e)}));return{cut:t.spawn(l),components:r}},Sr=function(){var t=this,e={},n=0,i=[],r=[],o=t.spawn(t),a=function a(s){if(r.push(s),e[s]={index:n,low:n++,explored:!1},t.getElementById(s).connectedEdges().intersection(t).forEach((function(t){var n=t.target().id();n!==s&&(n in e||a(n),e[n].explored||(e[s].low=Math.min(e[s].low,e[n].low)))})),e[s].index===e[s].low){for(var c=t.spawn();;){var l=r.pop();if(c.merge(t.getElementById(l)),e[l].low=e[s].index,e[l].explored=!0,l===s)break}var u=c.edgesWith(c),h=c.merge(u);i.push(h),o=o.difference(h)}};return t.forEach((function(t){if(t.isNode()){var n=t.id();n in e||a(n)}})),{cut:o,components:i}},Dr={};[Ge,Xe,Ze,Je,en,rn,cn,pi,bi,ki,yi,Oi,ar,pr,Ar,Er,{hopcroftTarjanBiconnected:Tr,htbc:Tr,htb:Tr,hopcroftTarjanBiconnectedComponents:Tr},{tarjanStronglyConnected:Sr,tsc:Sr,tscc:Sr,tarjanStronglyConnectedComponents:Sr}].forEach((function(t){Q(Dr,t)}));
/*!
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((function(t,n){e.push((function(){t()}))}))}}),zr.complete=zr.completed,zr.run=zr.play,zr.running=zr.playing;var Vr={animated:function(){return function(){var t=this,e=void 0!==t.length?t:[t];if(!(this._private.cy||this).styleEnabled())return!1;var n=e[0];return n?n._private.animation.current.length>0:void 0}},clearQueue:function(){return function(){var t=this,e=void 0!==t.length?t:[t];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n<e.length;n++)e[n]._private.animation.queue=[];return this}},delay:function(){return function(t,e){return(this._private.cy||this).styleEnabled()?this.animate({delay:t,duration:t,complete:e}):this}},delayAnimation:function(){return function(t,e){return(this._private.cy||this).styleEnabled()?this.animation({delay:t,duration:t,complete:e}):this}},animation:function(){return function(t,e){var n=this,i=void 0!==n.length,r=i?n:[n],o=this._private.cy||this,a=!i,s=!a;if(!o.styleEnabled())return this;var c=o.style();if(t=Q({},t,e),0===Object.keys(t).length)return new $r(r[0],t);switch(void 0===t.duration&&(t.duration=400),t.duration){case"slow":t.duration=600;break;case"fast":t.duration=200}if(s&&(t.style=c.getPropsList(t.style||t.css),t.css=void 0),s&&null!=t.renderedPosition){var l=t.renderedPosition,u=o.pan(),h=o.zoom();t.position=hn(l,h,u)}if(a&&null!=t.panBy){var d=t.panBy,f=o.pan();t.pan={x:f.x+d.x,y:f.y+d.y}}var g=t.center||t.centre;if(a&&null!=g){var p=o.getCenterPan(g.eles,t.zoom);null!=p&&(t.pan=p)}if(a&&null!=t.fit){var m=t.fit,b=o.getFitViewport(m.eles||m.boundingBox,m.padding);null!=b&&(t.pan=b.pan,t.zoom=b.zoom)}if(a&&_(t.zoom)){var w=o.getZoomedViewport(t.zoom);null!=w?(w.zoomed&&(t.zoom=w.zoom),w.panned&&(t.pan=w.pan)):t.zoom=null}return new $r(r[0],t)}},animate:function(){return function(t,e){var n=this,i=void 0!==n.length?n:[n];if(!(this._private.cy||this).styleEnabled())return this;e&&(t=Q({},t,e));for(var r=0;r<i.length;r++){var o=i[r],a=o.animated()&&(void 0===t.queue||t.queue);o.animation(t,a?{queue:!0}:void 0).play()}return this}},stop:function(){return function(t,e){var n=this,i=void 0!==n.length?n:[n],r=this._private.cy||this;if(!r.styleEnabled())return this;for(var o=0;o<i.length;o++){for(var a=i[o]._private,s=a.animation.current,c=0;c<s.length;c++){var l=s[c]._private;e&&(l.duration=0)}t&&(a.animation.queue=[]),e||(a.animation.current=[])}return r.notify("draw"),this}}},Hr=Array.isArray,qr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ur=/^\w*$/;function Gr(t,e){if(Hr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!$t(t))||Ur.test(t)||!qr.test(t)||null!=e&&t in Object(e)}var Wr=Gr,Kr="[object AsyncFunction]",Yr="[object Function]",Xr="[object GeneratorFunction]",Zr="[object Proxy]";function Qr(t){if(!ct(t))return!1;var e=Ot(t);return e==Yr||e==Xr||e==Kr||e==Zr}var Jr=Qr,to=ft["__core-js_shared__"],eo=function(){var t=/[^.]+$/.exec(to&&to.keys&&to.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function no(t){return!!eo&&eo in t}var io=no,ro=Function.prototype.toString;function oo(t){if(null!=t){try{return ro.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var ao=oo,so=/[\\^$.*+?()[\]{}|]/g,co=/^\[object .+?Constructor\]$/,lo=Function.prototype,uo=Object.prototype,ho=lo.toString,fo=uo.hasOwnProperty,go=RegExp("^"+ho.call(fo).replace(so,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function po(t){return!(!ct(t)||io(t))&&(Jr(t)?go:co).test(ao(t))}var mo=po;function bo(t,e){return null==t?void 0:t[e]}var wo=bo;function ko(t,e){var n=wo(t,e);return mo(n)?n:void 0}var vo=ko,yo=vo(Object,"create");function _o(){this.__data__=yo?yo(null):{},this.size=0}var Co=_o;function Ao(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var xo=Ao,Eo="__lodash_hash_undefined__",To=Object.prototype.hasOwnProperty;function So(t){var e=this.__data__;if(yo){var n=e[t];return n===Eo?void 0:n}return To.call(e,t)?e[t]:void 0}var Do=So,Io=Object.prototype.hasOwnProperty;function Bo(t){var e=this.__data__;return yo?void 0!==e[t]:Io.call(e,t)}var Mo=Bo,Po="__lodash_hash_undefined__";function Lo(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yo&&void 0===e?Po:e,this}var Oo=Lo;function No(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}No.prototype.clear=Co,No.prototype.delete=xo,No.prototype.get=Do,No.prototype.has=Mo,No.prototype.set=Oo;var Ro=No;function Fo(){this.__data__=[],this.size=0}var jo=Fo;function $o(t,e){return t===e||t!=t&&e!=e}var zo=$o;function Vo(t,e){for(var n=t.length;n--;)if(zo(t[n][0],e))return n;return-1}var Ho=Vo,qo=Array.prototype.splice;function Uo(t){var e=this.__data__,n=Ho(e,t);return!(n<0||(n==e.length-1?e.pop():qo.call(e,n,1),--this.size,0))}var Go=Uo;function Wo(t){var e=this.__data__,n=Ho(e,t);return n<0?void 0:e[n][1]}var Ko=Wo;function Yo(t){return Ho(this.__data__,t)>-1}var Xo=Yo;function Zo(t,e){var n=this.__data__,i=Ho(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var Qo=Zo;function Jo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Jo.prototype.clear=jo,Jo.prototype.delete=Go,Jo.prototype.get=Ko,Jo.prototype.has=Xo,Jo.prototype.set=Qo;var ta=Jo,ea=vo(ft,"Map");function na(){this.size=0,this.__data__={hash:new Ro,map:new(ea||ta),string:new Ro}}var ia=na;function ra(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var oa=ra;function aa(t,e){var n=t.__data__;return oa(e)?n["string"==typeof e?"string":"hash"]:n.map}var sa=aa;function ca(t){var e=sa(this,t).delete(t);return this.size-=e?1:0,e}var la=ca;function ua(t){return sa(this,t).get(t)}var ha=ua;function da(t){return sa(this,t).has(t)}var fa=da;function ga(t,e){var n=sa(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var pa=ga;function ma(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}ma.prototype.clear=ia,ma.prototype.delete=la,ma.prototype.get=ha,ma.prototype.has=fa,ma.prototype.set=pa;var ba=ma,wa="Expected a function";function ka(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(wa);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(ka.Cache||ba),n}ka.Cache=ba;var va=ka,ya=500;function _a(t){var e=va(t,(function(t){return n.size===ya&&n.clear(),t})),n=e.cache;return e}var Ca=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aa=/\\(\\)?/g,xa=_a((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ca,(function(t,n,i,r){e.push(i?r.replace(Aa,"$1"):n||t)})),e}));function Ea(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}var Ta=Ea,Sa=1/0,Da=yt?yt.prototype:void 0,Ia=Da?Da.toString:void 0;function Ba(t){if("string"==typeof t)return t;if(Hr(t))return Ta(t,Ba)+"";if($t(t))return Ia?Ia.call(t):"";var e=t+"";return"0"==e&&1/t==-Sa?"-0":e}var Ma=Ba;function Pa(t){return null==t?"":Ma(t)}var La=Pa;function Oa(t,e){return Hr(t)?t:Wr(t,e)?[t]:xa(La(t))}var Na=Oa,Ra=1/0;function Fa(t){if("string"==typeof t||$t(t))return t;var e=t+"";return"0"==e&&1/t==-Ra?"-0":e}var ja=Fa;function $a(t,e){for(var n=0,i=(e=Na(e,t)).length;null!=t&&n<i;)t=t[ja(e[n++])];return n&&n==i?t:void 0}var za=$a;function Va(t,e,n){var i=null==t?void 0:za(t,e);return void 0===i?n:i}var Ha=Va,qa=function(){try{var t=vo(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function Ua(t,e,n){"__proto__"==e&&qa?qa(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Ga=Ua,Wa=Object.prototype.hasOwnProperty;function Ka(t,e,n){var i=t[e];Wa.call(t,e)&&zo(i,n)&&(void 0!==n||e in t)||Ga(t,e,n)}var Ya=Ka,Xa=9007199254740991,Za=/^(?:0|[1-9]\d*)$/;function Qa(t,e){var n=typeof t;return!!(e=null==e?Xa:e)&&("number"==n||"symbol"!=n&&Za.test(t))&&t>-1&&t%1==0&&t<e}var Ja=Qa;function ts(t,e,n,i){if(!ct(t))return t;for(var r=-1,o=(e=Na(e,t)).length,a=o-1,s=t;null!=s&&++r<o;){var c=ja(e[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(r!=a){var u=s[c];void 0===(l=i?i(u,c,s):void 0)&&(l=ct(u)?u:Ja(e[r+1])?[]:{})}Ya(s,c,l),s=s[c]}return t}var es=ts;function ns(t,e,n){return null==t?t:es(t,e,n)}var is=ns;function rs(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var os=rs;function as(t){return Hr(t)?Ta(t,ja):$t(t)?[t]:os(xa(La(t)))}var ss=as,cs={eventAliasesOn:function(t){var e=t;e.addListener=e.listen=e.bind=e.on,e.unlisten=e.unbind=e.off=e.removeListener,e.trigger=e.emit,e.pon=e.promiseOn=function(t,e){var n=this,i=Array.prototype.slice.call(arguments,0);return new jr((function(t,e){var r=function(e){n.off.apply(n,a),t(e)},o=i.concat([r]),a=o.concat([]);n.on.apply(n,o)}))}}},ls={};[Vr,{data:function(t){return t=Q({},{field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(t){},beforeSet:function(t,e){},onSet:function(t){},canSet:function(t){return!0}},t),function(e,n){var i=t,r=this,a=void 0!==r.length,s=a?r:[r],c=a?r[0]:r;if(k(e)){var l,u=-1!==e.indexOf(".")&&ss(e);if(i.allowGetting&&void 0===n)return c&&(i.beforeGet(c),l=u&&void 0===c._private[i.field][e]?Ha(c._private[i.field],u):c._private[i.field][e]),l;if(i.allowSetting&&void 0!==n&&!i.immutableKeys[e]){var h=o({},e,n);i.beforeSet(r,h);for(var d=0,f=s.length;d<f;d++){var g=s[d];i.canSet(g)&&(u&&void 0===c._private[i.field][e]?is(g._private[i.field],u,n):g._private[i.field][e]=n)}i.updateStyle&&r.updateStyle(),i.onSet(r),i.settingTriggersEvent&&r[i.triggerFnName](i.settingEvent)}}else if(i.allowSetting&&_(e)){var p,m,b=e,w=Object.keys(b);i.beforeSet(r,b);for(var y=0;y<w.length;y++)if(m=b[p=w[y]],!i.immutableKeys[p])for(var C=0;C<s.length;C++){var A=s[C];i.canSet(A)&&(A._private[i.field][p]=m)}i.updateStyle&&r.updateStyle(),i.onSet(r),i.settingTriggersEvent&&r[i.triggerFnName](i.settingEvent)}else if(i.allowBinding&&v(e)){var x=e;r.on(i.bindingEvent,x)}else if(i.allowGetting&&void 0===e){var E;return c&&(i.beforeGet(c),E=c._private[i.field]),E}return r}},removeData:function(t){return t=Q({},{field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}},t),function(e){var n=t,i=this,r=void 0!==i.length?i:[i];if(k(e)){for(var o=e.split(/\s+/),a=o.length,s=0;s<a;s++){var c=o[s];if(!P(c)&&!n.immutableKeys[c])for(var l=0,u=r.length;l<u;l++)r[l]._private[n.field][c]=void 0}n.triggerEvent&&i[n.triggerFnName](n.event)}else if(void 0===e){for(var h=0,d=r.length;h<d;h++)for(var f=r[h]._private[n.field],g=Object.keys(f),p=0;p<g.length;p++){var m=g[p];!n.immutableKeys[m]&&(f[m]=void 0)}n.triggerEvent&&i[n.triggerFnName](n.event)}return i}}},cs].forEach((function(t){Q(ls,t)}));var us={animate:ls.animate(),animation:ls.animation(),animated:ls.animated(),clearQueue:ls.clearQueue(),delay:ls.delay(),delayAnimation:ls.delayAnimation(),stop:ls.stop()},hs={classes:function(t){var e=this;if(void 0===t){var n=[];return e[0]._private.classes.forEach((function(t){return n.push(t)})),n}y(t)||(t=(t||"").match(/\S+/g)||[]);for(var i=[],r=new He(t),o=0;o<e.length;o++){for(var a=e[o],s=a._private,c=s.classes,l=!1,u=0;u<t.length;u++){var h=t[u];if(!c.has(h)){l=!0;break}}l||(l=c.size!==t.length),l&&(s.classes=r,i.push(a))}return i.length>0&&this.spawn(i).updateStyle().emit("class"),e},addClass:function(t){return this.toggleClass(t,!0)},hasClass:function(t){var e=this[0];return null!=e&&e._private.classes.has(t)},toggleClass:function(t,e){y(t)||(t=t.match(/\S+/g)||[]);for(var n=this,i=void 0===e,r=[],o=0,a=n.length;o<a;o++)for(var s=n[o],c=s._private.classes,l=!1,u=0;u<t.length;u++){var h=t[u],d=c.has(h),f=!1;e||i&&!d?(c.add(h),f=!0):(!e||i&&d)&&(c.delete(h),f=!0),!l&&f&&(r.push(s),l=!0)}return r.length>0&&this.spawn(r).updateStyle().emit("class"),n},removeClass:function(t){return this.toggleClass(t,!1)},flashClass:function(t,e){var n=this;if(null==e)e=250;else if(0===e)return n;return n.addClass(t),setTimeout((function(){n.removeClass(t)}),e),n}};hs.className=hs.classNames=hs.classes;var ds={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:H,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};ds.variable="(?:[\\w-.]|(?:\\\\"+ds.metaChar+"))+",ds.className="(?:[\\w-]|(?:\\\\"+ds.metaChar+"))+",ds.value=ds.string+"|"+ds.number,ds.id=ds.variable,function(){var t,e,n;for(t=ds.comparatorOp.split("|"),n=0;n<t.length;n++)e=t[n],ds.comparatorOp+="|@"+e;for(t=ds.comparatorOp.split("|"),n=0;n<t.length;n++)(e=t[n]).indexOf("!")>=0||"="!==e&&(ds.comparatorOp+="|\\!"+e)}();var fs=function(){return{checks:[]}},gs={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},ps=[{selector:":selected",matches:function(t){return t.selected()}},{selector:":unselected",matches:function(t){return!t.selected()}},{selector:":selectable",matches:function(t){return t.selectable()}},{selector:":unselectable",matches:function(t){return!t.selectable()}},{selector:":locked",matches:function(t){return t.locked()}},{selector:":unlocked",matches:function(t){return!t.locked()}},{selector:":visible",matches:function(t){return t.visible()}},{selector:":hidden",matches:function(t){return!t.visible()}},{selector:":transparent",matches:function(t){return t.transparent()}},{selector:":grabbed",matches:function(t){return t.grabbed()}},{selector:":free",matches:function(t){return!t.grabbed()}},{selector:":removed",matches:function(t){return t.removed()}},{selector:":inside",matches:function(t){return!t.removed()}},{selector:":grabbable",matches:function(t){return t.grabbable()}},{selector:":ungrabbable",matches:function(t){return!t.grabbable()}},{selector:":animated",matches:function(t){return t.animated()}},{selector:":unanimated",matches:function(t){return!t.animated()}},{selector:":parent",matches:function(t){return t.isParent()}},{selector:":childless",matches:function(t){return t.isChildless()}},{selector:":child",matches:function(t){return t.isChild()}},{selector:":orphan",matches:function(t){return t.isOrphan()}},{selector:":nonorphan",matches:function(t){return t.isChild()}},{selector:":compound",matches:function(t){return t.isNode()?t.isParent():t.source().isParent()||t.target().isParent()}},{selector:":loop",matches:function(t){return t.isLoop()}},{selector:":simple",matches:function(t){return t.isSimple()}},{selector:":active",matches:function(t){return t.active()}},{selector:":inactive",matches:function(t){return!t.active()}},{selector:":backgrounding",matches:function(t){return t.backgrounding()}},{selector:":nonbackgrounding",matches:function(t){return!t.backgrounding()}}].sort((function(t,e){return Z(t.selector,e.selector)})),ms=function(){for(var t,e={},n=0;n<ps.length;n++)e[(t=ps[n]).selector]=t.matches;return e}(),bs=function(t,e){return ms[t](e)},ws="("+ps.map((function(t){return t.selector})).join("|")+")",ks=function(t){return t.replace(new RegExp("\\\\("+ds.metaChar+")","g"),(function(t,e){return e}))},vs=function(t,e,n){t[t.length-1]=n},ys=[{name:"group",query:!0,regex:"("+ds.group+")",populate:function(t,e,n){var i=a(n,1)[0];e.checks.push({type:gs.GROUP,value:"*"===i?i:i+"s"})}},{name:"state",query:!0,regex:ws,populate:function(t,e,n){var i=a(n,1)[0];e.checks.push({type:gs.STATE,value:i})}},{name:"id",query:!0,regex:"\\#("+ds.id+")",populate:function(t,e,n){var i=a(n,1)[0];e.checks.push({type:gs.ID,value:ks(i)})}},{name:"className",query:!0,regex:"\\.("+ds.className+")",populate:function(t,e,n){var i=a(n,1)[0];e.checks.push({type:gs.CLASS,value:ks(i)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+ds.variable+")\\s*\\]",populate:function(t,e,n){var i=a(n,1)[0];e.checks.push({type:gs.DATA_EXIST,field:ks(i)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+ds.variable+")\\s*("+ds.comparatorOp+")\\s*("+ds.value+")\\s*\\]",populate:function(t,e,n){var i=a(n,3),r=i[0],o=i[1],s=i[2];s=null!=new RegExp("^"+ds.string+"$").exec(s)?s.substring(1,s.length-1):parseFloat(s),e.checks.push({type:gs.DATA_COMPARE,field:ks(r),operator:o,value:s})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+ds.boolOp+")\\s*("+ds.variable+")\\s*\\]",populate:function(t,e,n){var i=a(n,2),r=i[0],o=i[1];e.checks.push({type:gs.DATA_BOOL,field:ks(o),operator:r})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+ds.meta+")\\s*("+ds.comparatorOp+")\\s*("+ds.number+")\\s*\\]\\]",populate:function(t,e,n){var i=a(n,3),r=i[0],o=i[1],s=i[2];e.checks.push({type:gs.META_COMPARE,field:ks(r),operator:o,value:parseFloat(s)})}},{name:"nextQuery",separator:!0,regex:ds.separator,populate:function(t,e){var n=t.currentSubject,i=t.edgeCount,r=t.compoundCount,o=t[t.length-1];return null!=n&&(o.subject=n,t.currentSubject=null),o.edgeCount=i,o.compoundCount=r,t.edgeCount=0,t.compoundCount=0,t[t.length++]=fs()}},{name:"directedEdge",separator:!0,regex:ds.directedEdge,populate:function(t,e){if(null==t.currentSubject){var n=fs(),i=e,r=fs();return n.checks.push({type:gs.DIRECTED_EDGE,source:i,target:r}),vs(t,e,n),t.edgeCount++,r}var o=fs(),a=e,s=fs();return o.checks.push({type:gs.NODE_SOURCE,source:a,target:s}),vs(t,e,o),t.edgeCount++,s}},{name:"undirectedEdge",separator:!0,regex:ds.undirectedEdge,populate:function(t,e){if(null==t.currentSubject){var n=fs(),i=e,r=fs();return n.checks.push({type:gs.UNDIRECTED_EDGE,nodes:[i,r]}),vs(t,e,n),t.edgeCount++,r}var o=fs(),a=e,s=fs();return o.checks.push({type:gs.NODE_NEIGHBOR,node:a,neighbor:s}),vs(t,e,o),s}},{name:"child",separator:!0,regex:ds.child,populate:function(t,e){if(null==t.currentSubject){var n=fs(),i=fs(),r=t[t.length-1];return n.checks.push({type:gs.CHILD,parent:r,child:i}),vs(t,e,n),t.compoundCount++,i}if(t.currentSubject===e){var o=fs(),a=t[t.length-1],s=fs(),c=fs(),l=fs(),u=fs();return o.checks.push({type:gs.COMPOUND_SPLIT,left:a,right:s,subject:c}),c.checks=e.checks,e.checks=[{type:gs.TRUE}],u.checks.push({type:gs.TRUE}),s.checks.push({type:gs.PARENT,parent:u,child:l}),vs(t,a,o),t.currentSubject=c,t.compoundCount++,l}var h=fs(),d=fs(),f=[{type:gs.PARENT,parent:h,child:d}];return h.checks=e.checks,e.checks=f,t.compoundCount++,d}},{name:"descendant",separator:!0,regex:ds.descendant,populate:function(t,e){if(null==t.currentSubject){var n=fs(),i=fs(),r=t[t.length-1];return n.checks.push({type:gs.DESCENDANT,ancestor:r,descendant:i}),vs(t,e,n),t.compoundCount++,i}if(t.currentSubject===e){var o=fs(),a=t[t.length-1],s=fs(),c=fs(),l=fs(),u=fs();return o.checks.push({type:gs.COMPOUND_SPLIT,left:a,right:s,subject:c}),c.checks=e.checks,e.checks=[{type:gs.TRUE}],u.checks.push({type:gs.TRUE}),s.checks.push({type:gs.ANCESTOR,ancestor:u,descendant:l}),vs(t,a,o),t.currentSubject=c,t.compoundCount++,l}var h=fs(),d=fs(),f=[{type:gs.ANCESTOR,ancestor:h,descendant:d}];return h.checks=e.checks,e.checks=f,t.compoundCount++,d}},{name:"subject",modifier:!0,regex:ds.subject,populate:function(t,e){if(null!=t.currentSubject&&t.currentSubject!==e)return Te("Redefinition of subject in selector `"+t.toString()+"`"),!1;t.currentSubject=e;var n=t[t.length-1].checks[0],i=null==n?null:n.type;i===gs.DIRECTED_EDGE?n.type=gs.NODE_TARGET:i===gs.UNDIRECTED_EDGE&&(n.type=gs.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];ys.forEach((function(t){return t.regexObj=new RegExp("^"+t.regex)}));var _s=function(t){for(var e,n,i,r=0;r<ys.length;r++){var o=ys[r],a=o.name,s=t.match(o.regexObj);if(null!=s){n=s,e=o,i=a;var c=s[0];t=t.substring(c.length);break}}return{expr:e,match:n,name:i,remaining:t}},Cs=function(t){var e=t.match(/^\s+/);if(e){var n=e[0];t=t.substring(n.length)}return t},As={parse:function(t){var e=this,n=e.inputText=t,i=e[0]=fs();for(e.length=1,n=Cs(n);;){var r=_s(n);if(null==r.expr)return Te("The selector `"+t+"`is invalid"),!1;var o=r.match.slice(1),a=r.expr.populate(e,i,o);if(!1===a)return!1;if(null!=a&&(i=a),(n=r.remaining).match(/^\s*$/))break}var s=e[e.length-1];null!=e.currentSubject&&(s.subject=e.currentSubject),s.edgeCount=e.edgeCount,s.compoundCount=e.compoundCount;for(var c=0;c<e.length;c++){var l=e[c];if(l.compoundCount>0&&l.edgeCount>0)return Te("The selector `"+t+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(l.edgeCount>1)return Te("The selector `"+t+"` is invalid because it uses multiple edge selectors"),!1;1===l.edgeCount&&Te("The selector `"+t+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},toString:function(){if(null!=this.toStringCache)return this.toStringCache;for(var t=function(t){return null==t?"":t},e=function(e){return k(e)?'"'+e+'"':t(e)},n=function(t){return" "+t+" "},i=function(i,o){var a=i.type,s=i.value;switch(a){case gs.GROUP:var c=t(s);return c.substring(0,c.length-1);case gs.DATA_COMPARE:var l=i.field,u=i.operator;return"["+l+n(t(u))+e(s)+"]";case gs.DATA_BOOL:var h=i.operator,d=i.field;return"["+t(h)+d+"]";case gs.DATA_EXIST:return"["+i.field+"]";case gs.META_COMPARE:var f=i.operator;return"[["+i.field+n(t(f))+e(s)+"]]";case gs.STATE:return s;case gs.ID:return"#"+s;case gs.CLASS:return"."+s;case gs.PARENT:case gs.CHILD:return r(i.parent,o)+n(">")+r(i.child,o);case gs.ANCESTOR:case gs.DESCENDANT:return r(i.ancestor,o)+" "+r(i.descendant,o);case gs.COMPOUND_SPLIT:var g=r(i.left,o),p=r(i.subject,o),m=r(i.right,o);return g+(g.length>0?" ":"")+p+m;case gs.TRUE:return""}},r=function(t,e){return t.checks.reduce((function(n,r,o){return n+(e===t&&0===o?"$":"")+i(r,e)}),"")},o="",a=0;a<this.length;a++){var s=this[a];o+=r(s,s.subject),this.length>1&&a<this.length-1&&(o+=", ")}return this.toStringCache=o,o}},xs=function(t,e,n){var i,r,o,a=k(t),s=A(t),c=k(n),l=!1,u=!1,h=!1;switch(e.indexOf("!")>=0&&(e=e.replace("!",""),u=!0),e.indexOf("@")>=0&&(e=e.replace("@",""),l=!0),(a||c||l)&&(r=a||s?""+t:"",o=""+n),l&&(t=r=r.toLowerCase(),n=o=o.toLowerCase()),e){case"*=":i=r.indexOf(o)>=0;break;case"$=":i=r.indexOf(o,r.length-o.length)>=0;break;case"^=":i=0===r.indexOf(o);break;case"=":i=t===n;break;case">":h=!0,i=t>n;break;case">=":h=!0,i=t>=n;break;case"<":h=!0,i=t<n;break;case"<=":h=!0,i=t<=n;break;default:i=!1}return!u||null==t&&h||(i=!i),i},Es=function(t,e){switch(e){case"?":return!!t;case"!":return!t;case"^":return void 0===t}},Ts=function(t){return void 0!==t},Ss=function(t,e){return t.data(e)},Ds=function(t,e){return t[e]()},Is=[],Bs=function(t,e){return t.checks.every((function(t){return Is[t.type](t,e)}))};Is[gs.GROUP]=function(t,e){var n=t.value;return"*"===n||n===e.group()},Is[gs.STATE]=function(t,e){var n=t.value;return bs(n,e)},Is[gs.ID]=function(t,e){var n=t.value;return e.id()===n},Is[gs.CLASS]=function(t,e){var n=t.value;return e.hasClass(n)},Is[gs.META_COMPARE]=function(t,e){var n=t.field,i=t.operator,r=t.value;return xs(Ds(e,n),i,r)},Is[gs.DATA_COMPARE]=function(t,e){var n=t.field,i=t.operator,r=t.value;return xs(Ss(e,n),i,r)},Is[gs.DATA_BOOL]=function(t,e){var n=t.field,i=t.operator;return Es(Ss(e,n),i)},Is[gs.DATA_EXIST]=function(t,e){var n=t.field;return t.operator,Ts(Ss(e,n))},Is[gs.UNDIRECTED_EDGE]=function(t,e){var n=t.nodes[0],i=t.nodes[1],r=e.source(),o=e.target();return Bs(n,r)&&Bs(i,o)||Bs(i,r)&&Bs(n,o)},Is[gs.NODE_NEIGHBOR]=function(t,e){return Bs(t.node,e)&&e.neighborhood().some((function(e){return e.isNode()&&Bs(t.neighbor,e)}))},Is[gs.DIRECTED_EDGE]=function(t,e){return Bs(t.source,e.source())&&Bs(t.target,e.target())},Is[gs.NODE_SOURCE]=function(t,e){return Bs(t.source,e)&&e.outgoers().some((function(e){return e.isNode()&&Bs(t.target,e)}))},Is[gs.NODE_TARGET]=function(t,e){return Bs(t.target,e)&&e.incomers().some((function(e){return e.isNode()&&Bs(t.source,e)}))},Is[gs.CHILD]=function(t,e){return Bs(t.child,e)&&Bs(t.parent,e.parent())},Is[gs.PARENT]=function(t,e){return Bs(t.parent,e)&&e.children().some((function(e){return Bs(t.child,e)}))},Is[gs.DESCENDANT]=function(t,e){return Bs(t.descendant,e)&&e.ancestors().some((function(e){return Bs(t.ancestor,e)}))},Is[gs.ANCESTOR]=function(t,e){return Bs(t.ancestor,e)&&e.descendants().some((function(e){return Bs(t.descendant,e)}))},Is[gs.COMPOUND_SPLIT]=function(t,e){return Bs(t.subject,e)&&Bs(t.left,e)&&Bs(t.right,e)},Is[gs.TRUE]=function(){return!0},Is[gs.COLLECTION]=function(t,e){return t.value.has(e)},Is[gs.FILTER]=function(t,e){return(0,t.value)(e)};var Ms={matches:function(t){for(var e=this,n=0;n<e.length;n++){var i=e[n];if(Bs(i,t))return!0}return!1},filter:function(t){var e=this;if(1===e.length&&1===e[0].checks.length&&e[0].checks[0].type===gs.ID)return t.getElementById(e[0].checks[0].value).collection();var n=function(t){for(var n=0;n<e.length;n++){var i=e[n];if(Bs(i,t))return!0}return!1};return null==e.text()&&(n=function(){return!0}),t.filter(n)}},Ps=function(t){this.inputText=t,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,null==t||k(t)&&t.match(/^\s*$/)||(T(t)?this.addQuery({checks:[{type:gs.COLLECTION,value:t.collection()}]}):v(t)?this.addQuery({checks:[{type:gs.FILTER,value:t}]}):k(t)?this.parse(t)||(this.invalid=!0):xe("A selector must be created from a string; found "))},Ls=Ps.prototype;[As,Ms].forEach((function(t){return Q(Ls,t)})),Ls.text=function(){return this.inputText},Ls.size=function(){return this.length},Ls.eq=function(t){return this[t]},Ls.sameText=function(t){return!this.invalid&&!t.invalid&&this.text()===t.text()},Ls.addQuery=function(t){this[this.length++]=t},Ls.selector=Ls.toString;var Os={allAre:function(t){var e=new Ps(t);return this.every((function(t){return e.matches(t)}))},is:function(t){var e=new Ps(t);return this.some((function(t){return e.matches(t)}))},some:function(t,e){for(var n=0;n<this.length;n++)if(e?t.apply(e,[this[n],n,this]):t(this[n],n,this))return!0;return!1},every:function(t,e){for(var n=0;n<this.length;n++)if(!(e?t.apply(e,[this[n],n,this]):t(this[n],n,this)))return!1;return!0},same:function(t){if(this===t)return!0;t=this.cy().collection(t);var e=this.length;return e===t.length&&(1===e?this[0]===t[0]:this.every((function(e){return t.hasElementWithId(e.id())})))},anySame:function(t){return t=this.cy().collection(t),this.some((function(e){return t.hasElementWithId(e.id())}))},allAreNeighbors:function(t){t=this.cy().collection(t);var e=this.neighborhood();return t.every((function(t){return e.hasElementWithId(t.id())}))},contains:function(t){t=this.cy().collection(t);var e=this;return t.every((function(t){return e.hasElementWithId(t.id())}))}};Os.allAreNeighbours=Os.allAreNeighbors,Os.has=Os.contains,Os.equal=Os.equals=Os.same;var Ns,Rs,Fs=function(t,e){return function(n,i,r,o){var a,s=n,c=this;if(null==s?a="":T(s)&&1===s.length&&(a=s.id()),1===c.length&&a){var l=c[0]._private,u=l.traversalCache=l.traversalCache||{},h=u[e]=u[e]||[],d=ge(a),f=h[d];return f||(h[d]=t.call(c,n,i,r,o))}return t.call(c,n,i,r,o)}},js={parent:function(t){var e=[];if(1===this.length){var n=this[0]._private.parent;if(n)return n}for(var i=0;i<this.length;i++){var r=this[i]._private.parent;r&&e.push(r)}return this.spawn(e,!0).filter(t)},parents:function(t){for(var e=[],n=this.parent();n.nonempty();){for(var i=0;i<n.length;i++){var r=n[i];e.push(r)}n=n.parent()}return this.spawn(e,!0).filter(t)},commonAncestors:function(t){for(var e,n=0;n<this.length;n++){var i=this[n].parents();e=(e=e||i).intersect(i)}return e.filter(t)},orphans:function(t){return this.stdFilter((function(t){return t.isOrphan()})).filter(t)},nonorphans:function(t){return this.stdFilter((function(t){return t.isChild()})).filter(t)},children:Fs((function(t){for(var e=[],n=0;n<this.length;n++)for(var i=this[n]._private.children,r=0;r<i.length;r++)e.push(i[r]);return this.spawn(e,!0).filter(t)}),"children"),siblings:function(t){return this.parent().children().not(this).filter(t)},isParent:function(){var t=this[0];if(t)return t.isNode()&&0!==t._private.children.length},isChildless:function(){var t=this[0];if(t)return t.isNode()&&0===t._private.children.length},isChild:function(){var t=this[0];if(t)return t.isNode()&&null!=t._private.parent},isOrphan:function(){var t=this[0];if(t)return t.isNode()&&null==t._private.parent},descendants:function(t){var e=[];function n(t){for(var i=0;i<t.length;i++){var r=t[i];e.push(r),r.children().nonempty()&&n(r.children())}}return n(this.children()),this.spawn(e,!0).filter(t)}};function $s(t,e,n,i){for(var r=[],o=new He,a=t.cy().hasCompoundNodes(),s=0;s<t.length;s++){var c=t[s];n?r.push(c):a&&i(r,o,c)}for(;r.length>0;){var l=r.shift();e(l),o.add(l.id()),a&&i(r,o,l)}return t}function zs(t,e,n){if(n.isParent())for(var i=n._private.children,r=0;r<i.length;r++){var o=i[r];e.has(o.id())||t.push(o)}}function Vs(t,e,n){if(n.isChild()){var i=n._private.parent;e.has(i.id())||t.push(i)}}function Hs(t,e,n){Vs(t,e,n),zs(t,e,n)}js.forEachDown=function(t){return $s(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],zs)},js.forEachUp=function(t){return $s(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Vs)},js.forEachUpAndDown=function(t){return $s(this,t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Hs)},js.ancestors=js.parents,(Ns=Rs={data:ls.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ls.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ls.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ls.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ls.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ls.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var t=this[0];if(t)return t._private.data.id}}).attr=Ns.data,Ns.removeAttr=Ns.removeData;var qs,Us,Gs=Rs,Ws={};function Ks(t){return function(e){var n=this;if(void 0===e&&(e=!0),0!==n.length&&n.isNode()&&!n.removed()){for(var i=0,r=n[0],o=r._private.edges,a=0;a<o.length;a++){var s=o[a];!e&&s.isLoop()||(i+=t(r,s))}return i}}}function Ys(t,e){return function(n){for(var i,r=this.nodes(),o=0;o<r.length;o++){var a=r[o][t](n);void 0===a||void 0!==i&&!e(a,i)||(i=a)}return i}}Q(Ws,{degree:Ks((function(t,e){return e.source().same(e.target())?2:1})),indegree:Ks((function(t,e){return e.target().same(t)?1:0})),outdegree:Ks((function(t,e){return e.source().same(t)?1:0}))}),Q(Ws,{minDegree:Ys("degree",(function(t,e){return t<e})),maxDegree:Ys("degree",(function(t,e){return t>e})),minIndegree:Ys("indegree",(function(t,e){return t<e})),maxIndegree:Ys("indegree",(function(t,e){return t>e})),minOutdegree:Ys("outdegree",(function(t,e){return t<e})),maxOutdegree:Ys("outdegree",(function(t,e){return t>e}))}),Q(Ws,{totalDegree:function(t){for(var e=0,n=this.nodes(),i=0;i<n.length;i++)e+=n[i].degree(t);return e}});var Xs=function(t,e,n){for(var i=0;i<t.length;i++){var r=t[i];if(!r.locked()){var o=r._private.position,a={x:null!=e.x?e.x-o.x:0,y:null!=e.y?e.y-o.y:0};!r.isParent()||0===a.x&&0===a.y||r.children().shift(a,n),r.dirtyBoundingBoxCache()}}},Zs={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(t){t.updateCompoundBounds()},beforeSet:function(t,e){Xs(t,e,!1)},onSet:function(t){t.dirtyCompoundBoundsCache()},canSet:function(t){return!t.locked()}};(qs=Us={position:ls.data(Zs),silentPosition:ls.data(Q({},Zs,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(t,e){Xs(t,e,!0)},onSet:function(t){t.dirtyCompoundBoundsCache()}})),positions:function(t,e){if(_(t))e?this.silentPosition(t):this.position(t);else if(v(t)){var n=t,i=this.cy();i.startBatch();for(var r=0;r<this.length;r++){var o=this[r],a=void 0;(a=n(o,r))&&(e?o.silentPosition(a):o.position(a))}i.endBatch()}return this},silentPositions:function(t){return this.positions(t,!0)},shift:function(t,e,n){var i;if(_(t)?(i={x:A(t.x)?t.x:0,y:A(t.y)?t.y:0},n=e):k(t)&&A(e)&&((i={x:0,y:0})[t]=e),null!=i){var r=this.cy();r.startBatch();for(var o=0;o<this.length;o++){var a=this[o];if(!(r.hasCompoundNodes()&&a.isChild()&&a.ancestors().anySame(this))){var s=a.position(),c={x:s.x+i.x,y:s.y+i.y};n?a.silentPosition(c):a.position(c)}}r.endBatch()}return this},silentShift:function(t,e){return _(t)?this.shift(t,!0):k(t)&&A(e)&&this.shift(t,e,!0),this},renderedPosition:function(t,e){var n=this[0],i=this.cy(),r=i.zoom(),o=i.pan(),a=_(t)?t:void 0,s=void 0!==a||void 0!==e&&k(t);if(n&&n.isNode()){if(!s){var c=n.position();return a=un(c,r,o),void 0===t?a:a[t]}for(var l=0;l<this.length;l++){var u=this[l];void 0!==e?u.position(t,(e-o[t])/r):void 0!==a&&u.position(hn(a,r,o))}}else if(!s)return;return this},relativePosition:function(t,e){var n=this[0],i=this.cy(),r=_(t)?t:void 0,o=void 0!==r||void 0!==e&&k(t),a=i.hasCompoundNodes();if(n&&n.isNode()){if(!o){var s=n.position(),c=a?n.parent():null,l=c&&c.length>0,u=l;l&&(c=c[0]);var h=u?c.position():{x:0,y:0};return r={x:s.x-h.x,y:s.y-h.y},void 0===t?r:r[t]}for(var d=0;d<this.length;d++){var f=this[d],g=a?f.parent():null,p=g&&g.length>0,m=p;p&&(g=g[0]);var b=m?g.position():{x:0,y:0};void 0!==e?f.position(t,e+b[t]):void 0!==r&&f.position({x:r.x+b.x,y:r.y+b.y})}}else if(!o)return;return this}}).modelPosition=qs.point=qs.position,qs.modelPositions=qs.points=qs.positions,qs.renderedPoint=qs.renderedPosition,qs.relativePoint=qs.relativePosition;var Qs,Js,tc=Us;Qs=Js={},Js.renderedBoundingBox=function(t){var e=this.boundingBox(t),n=this.cy(),i=n.zoom(),r=n.pan(),o=e.x1*i+r.x,a=e.x2*i+r.x,s=e.y1*i+r.y,c=e.y2*i+r.y;return{x1:o,x2:a,y1:s,y2:c,w:a-o,h:c-s}},Js.dirtyCompoundBoundsCache=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();return e.styleEnabled()&&e.hasCompoundNodes()?(this.forEachUp((function(e){if(e.isParent()){var n=e._private;n.compoundBoundsClean=!1,n.bbCache=null,t||e.emitAndNotify("bounds")}})),this):this},Js.updateCompoundBounds=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.cy();if(!e.styleEnabled()||!e.hasCompoundNodes())return this;if(!t&&e.batching())return this;function n(t){if(t.isParent()){var e=t._private,n=t.children(),i="include"===t.pstyle("compound-sizing-wrt-labels").value,r={width:{val:t.pstyle("min-width").pfValue,left:t.pstyle("min-width-bias-left"),right:t.pstyle("min-width-bias-right")},height:{val:t.pstyle("min-height").pfValue,top:t.pstyle("min-height-bias-top"),bottom:t.pstyle("min-height-bias-bottom")}},o=n.boundingBox({includeLabels:i,includeOverlays:!1,useCache:!1}),a=e.position;0!==o.w&&0!==o.h||((o={w:t.pstyle("width").pfValue,h:t.pstyle("height").pfValue}).x1=a.x-o.w/2,o.x2=a.x+o.w/2,o.y1=a.y-o.h/2,o.y2=a.y+o.h/2);var s=r.width.left.value;"px"===r.width.left.units&&r.width.val>0&&(s=100*s/r.width.val);var c=r.width.right.value;"px"===r.width.right.units&&r.width.val>0&&(c=100*c/r.width.val);var l=r.height.top.value;"px"===r.height.top.units&&r.height.val>0&&(l=100*l/r.height.val);var u=r.height.bottom.value;"px"===r.height.bottom.units&&r.height.val>0&&(u=100*u/r.height.val);var h=b(r.width.val-o.w,s,c),d=h.biasDiff,f=h.biasComplementDiff,g=b(r.height.val-o.h,l,u),p=g.biasDiff,m=g.biasComplementDiff;e.autoPadding=w(o.w,o.h,t.pstyle("padding"),t.pstyle("padding-relative-to").value),e.autoWidth=Math.max(o.w,r.width.val),a.x=(-d+o.x1+o.x2+f)/2,e.autoHeight=Math.max(o.h,r.height.val),a.y=(-p+o.y1+o.y2+m)/2}function b(t,e,n){var i=0,r=0,o=e+n;return t>0&&o>0&&(i=e/o*t,r=n/o*t),{biasDiff:i,biasComplementDiff:r}}function w(t,e,n,i){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(i){case"width":return t>0?n.pfValue*t:0;case"height":return e>0?n.pfValue*e:0;case"average":return t>0&&e>0?n.pfValue*(t+e)/2:0;case"min":return t>0&&e>0?t>e?n.pfValue*e:n.pfValue*t:0;case"max":return t>0&&e>0?t>e?n.pfValue*t:n.pfValue*e:0;default:return 0}}}for(var i=0;i<this.length;i++){var r=this[i],o=r._private;o.compoundBoundsClean&&!t||(n(r),e.batching()||(o.compoundBoundsClean=!0))}return this};var ec=function(t){return t===1/0||t===-1/0?0:t},nc=function(t,e,n,i,r){i-e!=0&&r-n!=0&&null!=e&&null!=n&&null!=i&&null!=r&&(t.x1=e<t.x1?e:t.x1,t.x2=i>t.x2?i:t.x2,t.y1=n<t.y1?n:t.y1,t.y2=r>t.y2?r:t.y2,t.w=t.x2-t.x1,t.h=t.y2-t.y1)},ic=function(t,e){return null==e?t:nc(t,e.x1,e.y1,e.x2,e.y2)},rc=function(t,e,n){return Fe(t,e,n)},oc=function(t,e,n){if(!e.cy().headless()){var i,r,o=e._private,a=o.rstyle,s=a.arrowWidth/2;if("none"!==e.pstyle(n+"-arrow-shape").value){"source"===n?(i=a.srcX,r=a.srcY):"target"===n?(i=a.tgtX,r=a.tgtY):(i=a.midX,r=a.midY);var c=o.arrowBounds=o.arrowBounds||{},l=c[n]=c[n]||{};l.x1=i-s,l.y1=r-s,l.x2=i+s,l.y2=r+s,l.w=l.x2-l.x1,l.h=l.y2-l.y1,Pn(l,1),nc(t,l.x1,l.y1,l.x2,l.y2)}}},ac=function(t,e,n){if(!e.cy().headless()){var i;i=n?n+"-":"";var r=e._private,o=r.rstyle;if(e.pstyle(i+"label").strValue){var a,s,c,l,u=e.pstyle("text-halign"),h=e.pstyle("text-valign"),d=rc(o,"labelWidth",n),f=rc(o,"labelHeight",n),g=rc(o,"labelX",n),p=rc(o,"labelY",n),m=e.pstyle(i+"text-margin-x").pfValue,b=e.pstyle(i+"text-margin-y").pfValue,w=e.isEdge(),k=e.pstyle(i+"text-rotation"),v=e.pstyle("text-outline-width").pfValue,y=e.pstyle("text-border-width").pfValue/2,_=e.pstyle("text-background-padding").pfValue,C=2,A=f,x=d,E=x/2,T=A/2;if(w)a=g-E,s=g+E,c=p-T,l=p+T;else{switch(u.value){case"left":a=g-x,s=g;break;case"center":a=g-E,s=g+E;break;case"right":a=g,s=g+x}switch(h.value){case"top":c=p-A,l=p;break;case"center":c=p-T,l=p+T;break;case"bottom":c=p,l=p+A}}a+=m-Math.max(v,y)-_-C,s+=m+Math.max(v,y)+_+C,c+=b-Math.max(v,y)-_-C,l+=b+Math.max(v,y)+_+C;var S=n||"main",D=r.labelBounds,I=D[S]=D[S]||{};I.x1=a,I.y1=c,I.x2=s,I.y2=l,I.w=s-a,I.h=l-c;var B=w&&"autorotate"===k.strValue,M=null!=k.pfValue&&0!==k.pfValue;if(B||M){var P=B?rc(r.rstyle,"labelAngle",n):k.pfValue,L=Math.cos(P),O=Math.sin(P),N=(a+s)/2,R=(c+l)/2;if(!w){switch(u.value){case"left":N=s;break;case"right":N=a}switch(h.value){case"top":R=l;break;case"bottom":R=c}}var F=function(t,e){return{x:(t-=N)*L-(e-=R)*O+N,y:t*O+e*L+R}},j=F(a,c),$=F(a,l),z=F(s,c),V=F(s,l);a=Math.min(j.x,$.x,z.x,V.x),s=Math.max(j.x,$.x,z.x,V.x),c=Math.min(j.y,$.y,z.y,V.y),l=Math.max(j.y,$.y,z.y,V.y)}var H=S+"Rot",q=D[H]=D[H]||{};q.x1=a,q.y1=c,q.x2=s,q.y2=l,q.w=s-a,q.h=l-c,nc(t,a,c,s,l),nc(r.labelBounds.all,a,c,s,l)}return t}},sc=function(t,e){var n,i,r,o,a,s,c=t._private.cy,l=c.styleEnabled(),u=c.headless(),h=Sn(),d=t._private,f=t.isNode(),g=t.isEdge(),p=d.rstyle,m=f&&l?t.pstyle("bounds-expansion").pfValue:[0],b=function(t){return"none"!==t.pstyle("display").value},w=!l||b(t)&&(!g||b(t.source())&&b(t.target()));if(w){var k=0;l&&e.includeOverlays&&0!==t.pstyle("overlay-opacity").value&&(k=t.pstyle("overlay-padding").value);var v=0;l&&e.includeUnderlays&&0!==t.pstyle("underlay-opacity").value&&(v=t.pstyle("underlay-padding").value);var y=Math.max(k,v),_=0;if(l&&(_=t.pstyle("width").pfValue/2),f&&e.includeNodes){var C=t.position();a=C.x,s=C.y;var A=t.outerWidth()/2,x=t.outerHeight()/2;nc(h,n=a-A,r=s-x,i=a+A,o=s+x)}else if(g&&e.includeEdges)if(l&&!u){var E=t.pstyle("curve-style").strValue;if(n=Math.min(p.srcX,p.midX,p.tgtX),i=Math.max(p.srcX,p.midX,p.tgtX),r=Math.min(p.srcY,p.midY,p.tgtY),o=Math.max(p.srcY,p.midY,p.tgtY),nc(h,n-=_,r-=_,i+=_,o+=_),"haystack"===E){var T=p.haystackPts;if(T&&2===T.length){if(n=T[0].x,r=T[0].y,n>(i=T[1].x)){var S=n;n=i,i=S}if(r>(o=T[1].y)){var D=r;r=o,o=D}nc(h,n-_,r-_,i+_,o+_)}}else if("bezier"===E||"unbundled-bezier"===E||"segments"===E||"taxi"===E){var I;switch(E){case"bezier":case"unbundled-bezier":I=p.bezierPts;break;case"segments":case"taxi":I=p.linePts}if(null!=I)for(var B=0;B<I.length;B++){var M=I[B];n=M.x-_,i=M.x+_,r=M.y-_,o=M.y+_,nc(h,n,r,i,o)}}}else{var P=t.source().position(),L=t.target().position();if((n=P.x)>(i=L.x)){var O=n;n=i,i=O}if((r=P.y)>(o=L.y)){var N=r;r=o,o=N}nc(h,n-=_,r-=_,i+=_,o+=_)}if(l&&e.includeEdges&&g&&(oc(h,t,"mid-source"),oc(h,t,"mid-target"),oc(h,t,"source"),oc(h,t,"target")),l&&"yes"===t.pstyle("ghost").value){var R=t.pstyle("ghost-offset-x").pfValue,F=t.pstyle("ghost-offset-y").pfValue;nc(h,h.x1+R,h.y1+F,h.x2+R,h.y2+F)}var j=d.bodyBounds=d.bodyBounds||{};On(j,h),Ln(j,m),Pn(j,1),l&&(n=h.x1,i=h.x2,r=h.y1,o=h.y2,nc(h,n-y,r-y,i+y,o+y));var $=d.overlayBounds=d.overlayBounds||{};On($,h),Ln($,m),Pn($,1);var z=d.labelBounds=d.labelBounds||{};null!=z.all?In(z.all):z.all=Sn(),l&&e.includeLabels&&(e.includeMainLabels&&ac(h,t,null),g&&(e.includeSourceLabels&&ac(h,t,"source"),e.includeTargetLabels&&ac(h,t,"target")))}return h.x1=ec(h.x1),h.y1=ec(h.y1),h.x2=ec(h.x2),h.y2=ec(h.y2),h.w=ec(h.x2-h.x1),h.h=ec(h.y2-h.y1),h.w>0&&h.h>0&&w&&(Ln(h,m),Pn(h,1)),h},cc=function(t){var e=0,n=function(t){return(t?1:0)<<e++},i=0;return i+=n(t.incudeNodes),i+=n(t.includeEdges),i+=n(t.includeLabels),i+=n(t.includeMainLabels),i+=n(t.includeSourceLabels),i+=n(t.includeTargetLabels),i+=n(t.includeOverlays)},lc=function(t){if(t.isEdge()){var e=t.source().position(),n=t.target().position(),i=function(t){return Math.round(t)};return fe([i(e.x),i(e.y),i(n.x),i(n.y)])}return 0},uc=function(t,e){var n,i=t._private,r=t.isEdge(),o=(null==e?dc:cc(e))===dc,a=lc(t),s=i.bbCachePosKey===a,c=e.useCache&&s,l=function(t){return null==t._private.bbCache||t._private.styleDirty};if(!c||l(t)||r&&l(t.source())||l(t.target())?(s||t.recalculateRenderedStyle(c),n=sc(t,hc),i.bbCache=n,i.bbCachePosKey=a):n=i.bbCache,!o){var u=t.isNode();n=Sn(),(e.includeNodes&&u||e.includeEdges&&!u)&&(e.includeOverlays?ic(n,i.overlayBounds):ic(n,i.bodyBounds)),e.includeLabels&&(e.includeMainLabels&&(!r||e.includeSourceLabels&&e.includeTargetLabels)?ic(n,i.labelBounds.all):(e.includeMainLabels&&ic(n,i.labelBounds.mainRot),e.includeSourceLabels&&ic(n,i.labelBounds.sourceRot),e.includeTargetLabels&&ic(n,i.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},hc={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,useCache:!0},dc=cc(hc),fc=Le(hc);Js.boundingBox=function(t){var e;if(1!==this.length||null==this[0]._private.bbCache||this[0]._private.styleDirty||void 0!==t&&void 0!==t.useCache&&!0!==t.useCache){e=Sn();var n=fc(t=t||hc),i=this;if(i.cy().styleEnabled())for(var r=0;r<i.length;r++){var o=i[r],a=o._private,s=lc(o),c=a.bbCachePosKey===s,l=n.useCache&&c&&!a.styleDirty;o.recalculateRenderedStyle(l)}this.updateCompoundBounds(!t.useCache);for(var u=0;u<i.length;u++){var h=i[u];ic(e,uc(h,n))}}else t=void 0===t?hc:fc(t),e=uc(this[0],t);return e.x1=ec(e.x1),e.y1=ec(e.y1),e.x2=ec(e.x2),e.y2=ec(e.y2),e.w=ec(e.x2-e.x1),e.h=ec(e.y2-e.y1),e},Js.dirtyBoundingBoxCache=function(){for(var t=0;t<this.length;t++){var e=this[t]._private;e.bbCache=null,e.bbCachePosKey=null,e.bodyBounds=null,e.overlayBounds=null,e.labelBounds.all=null,e.labelBounds.source=null,e.labelBounds.target=null,e.labelBounds.main=null,e.labelBounds.sourceRot=null,e.labelBounds.targetRot=null,e.labelBounds.mainRot=null,e.arrowBounds.source=null,e.arrowBounds.target=null,e.arrowBounds["mid-source"]=null,e.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},Js.boundingBoxAt=function(t){var e=this.nodes(),n=this.cy(),i=n.hasCompoundNodes(),r=n.collection();if(i&&(r=e.filter((function(t){return t.isParent()})),e=e.not(r)),_(t)){var o=t;t=function(){return o}}var a=function(e,n){return e._private.bbAtOldPos=t(e,n)},s=function(t){return t._private.bbAtOldPos};n.startBatch(),e.forEach(a).silentPositions(t),i&&(r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),r.updateCompoundBounds(!0));var c=Dn(this.boundingBox({useCache:!1}));return e.silentPositions(s),i&&(r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),r.updateCompoundBounds(!0)),n.endBatch(),c},Qs.boundingbox=Qs.bb=Qs.boundingBox,Qs.renderedBoundingbox=Qs.renderedBoundingBox;var gc,pc,mc=Js;gc=pc={};var bc=function(t){t.uppercaseName=V(t.name),t.autoName="auto"+t.uppercaseName,t.labelName="label"+t.uppercaseName,t.outerName="outer"+t.uppercaseName,t.uppercaseOuterName=V(t.outerName),gc[t.name]=function(){var e=this[0],n=e._private,i=n.cy._private.styleEnabled;if(e){if(i){if(e.isParent())return e.updateCompoundBounds(),n[t.autoName]||0;var r=e.pstyle(t.name);return"label"===r.strValue?(e.recalculateRenderedStyle(),n.rstyle[t.labelName]||0):r.pfValue}return 1}},gc["outer"+t.uppercaseName]=function(){var e=this[0],n=e._private.cy._private.styleEnabled;if(e)return n?e[t.name]()+e.pstyle("border-width").pfValue+2*e.padding():1},gc["rendered"+t.uppercaseName]=function(){var e=this[0];if(e)return e[t.name]()*this.cy().zoom()},gc["rendered"+t.uppercaseOuterName]=function(){var e=this[0];if(e)return e[t.outerName]()*this.cy().zoom()}};bc({name:"width"}),bc({name:"height"}),pc.padding=function(){var t=this[0],e=t._private;return t.isParent()?(t.updateCompoundBounds(),void 0!==e.autoPadding?e.autoPadding:t.pstyle("padding").pfValue):t.pstyle("padding").pfValue},pc.paddedHeight=function(){var t=this[0];return t.height()+2*t.padding()},pc.paddedWidth=function(){var t=this[0];return t.width()+2*t.padding()};var wc=pc,kc=function(t,e){if(t.isEdge())return e(t)},vc=function(t,e){if(t.isEdge()){var n=t.cy();return un(e(t),n.zoom(),n.pan())}},yc=function(t,e){if(t.isEdge()){var n=t.cy(),i=n.pan(),r=n.zoom();return e(t).map((function(t){return un(t,r,i)}))}},_c={controlPoints:{get:function(t){return t.renderer().getControlPoints(t)},mult:!0},segmentPoints:{get:function(t){return t.renderer().getSegmentPoints(t)},mult:!0},sourceEndpoint:{get:function(t){return t.renderer().getSourceEndpoint(t)}},targetEndpoint:{get:function(t){return t.renderer().getTargetEndpoint(t)}},midpoint:{get:function(t){return t.renderer().getEdgeMidpoint(t)}}},Cc=function(t){return"rendered"+t[0].toUpperCase()+t.substr(1)},Ac=Object.keys(_c).reduce((function(t,e){var n=_c[e],i=Cc(e);return t[e]=function(){return kc(this,n.get)},n.mult?t[i]=function(){return yc(this,n.get)}:t[i]=function(){return vc(this,n.get)},t}),{}),xc=Q({},tc,mc,wc,Ac),Ec=function(t,e){this.recycle(t,e)};function Tc(){return!1}function Sc(){return!0}Ec.prototype={instanceString:function(){return"event"},recycle:function(t,e){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Tc,null!=t&&t.preventDefault?(this.type=t.type,this.isDefaultPrevented=t.defaultPrevented?Sc:Tc):null!=t&&t.type?e=t:this.type=t,null!=e&&(this.originalEvent=e.originalEvent,this.type=null!=e.type?e.type:this.type,this.cy=e.cy,this.target=e.target,this.position=e.position,this.renderedPosition=e.renderedPosition,this.namespace=e.namespace,this.layout=e.layout),null!=this.cy&&null!=this.position&&null==this.renderedPosition){var n=this.position,i=this.cy.zoom(),r=this.cy.pan();this.renderedPosition={x:n.x*i+r.x,y:n.y*i+r.y}}this.timeStamp=t&&t.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Sc;var t=this.originalEvent;t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Sc;var t=this.originalEvent;t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Sc,this.stopPropagation()},isDefaultPrevented:Tc,isPropagationStopped:Tc,isImmediatePropagationStopped:Tc};var Dc=/^([^.]+)(\.(?:[^.]+))?$/,Ic=".*",Bc={qualifierCompare:function(t,e){return t===e},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(t){return t},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},Mc=Object.keys(Bc),Pc={};function Lc(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pc,e=arguments.length>1?arguments[1]:void 0,n=0;n<Mc.length;n++){var i=Mc[n];this[i]=t[i]||Bc[i]}this.context=e||this.context,this.listeners=[],this.emitting=0}var Oc=Lc.prototype,Nc=function(t,e,n,i,r,o,a){v(i)&&(r=i,i=null),a&&(o=null==o?a:Q({},o,a));for(var s=y(n)?n:n.split(/\s+/),c=0;c<s.length;c++){var l=s[c];if(!P(l)){var u=l.match(Dc);if(u&&!1===e(t,l,u[1],u[2]?u[2]:null,i,r,o))break}}},Rc=function(t,e){return t.addEventFields(t.context,e),new Ec(e.type,e)},Fc=function(t,e,n){if(M(n))e(t,n);else if(_(n))e(t,Rc(t,n));else for(var i=y(n)?n:n.split(/\s+/),r=0;r<i.length;r++){var o=i[r];if(!P(o)){var a=o.match(Dc);if(a){var s=a[1],c=a[2]?a[2]:null;e(t,Rc(t,{type:s,namespace:c,target:t.context}))}}}};Oc.on=Oc.addListener=function(t,e,n,i,r){return Nc(this,(function(t,e,n,i,r,o,a){v(o)&&t.listeners.push({event:e,callback:o,type:n,namespace:i,qualifier:r,conf:a})}),t,e,n,i,r),this},Oc.one=function(t,e,n,i){return this.on(t,e,n,i,{one:!0})},Oc.removeListener=Oc.off=function(t,e,n,i){var r=this;0!==this.emitting&&(this.listeners=Ie(this.listeners));for(var o=this.listeners,a=function(a){var s=o[a];Nc(r,(function(e,n,i,r,c,l){if((s.type===i||"*"===t)&&(!r&&".*"!==s.namespace||s.namespace===r)&&(!c||e.qualifierCompare(s.qualifier,c))&&(!l||s.callback===l))return o.splice(a,1),!1}),t,e,n,i)},s=o.length-1;s>=0;s--)a(s);return this},Oc.removeAllListeners=function(){return this.removeListener("*")},Oc.emit=Oc.trigger=function(t,e,n){var i=this.listeners,r=i.length;return this.emitting++,y(e)||(e=[e]),Fc(this,(function(t,o){null!=n&&(i=[{event:o.event,type:o.type,namespace:o.namespace,callback:n}],r=i.length);for(var a=function(n){var r=i[n];if(r.type===o.type&&(!r.namespace||r.namespace===o.namespace||r.namespace===Ic)&&t.eventMatches(t.context,r,o)){var a=[o];null!=e&&Re(a,e),t.beforeEmit(t.context,r,o),r.conf&&r.conf.one&&(t.listeners=t.listeners.filter((function(t){return t!==r})));var s=t.callbackContext(t.context,r,o),c=r.callback.apply(s,a);t.afterEmit(t.context,r,o),!1===c&&(o.stopPropagation(),o.preventDefault())}},s=0;s<r;s++)a(s);t.bubble(t.context)&&!o.isPropagationStopped()&&t.parent(t.context).emit(o,e)}),t),this.emitting--,this};var jc={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var i=e.qualifier;return null==i||t!==n.target&&S(n.target)&&i.matches(n.target)},addEventFields:function(t,e){e.cy=t.cy(),e.target=t},callbackContext:function(t,e,n){return null!=e.qualifier?n.target:t},beforeEmit:function(t,e){e.conf&&e.conf.once&&e.conf.onceCollection.removeListener(e.event,e.qualifier,e.callback)},bubble:function(){return!0},parent:function(t){return t.isChild()?t.parent():t.cy()}},$c=function(t){return k(t)?new Ps(t):t},zc={createEmitter:function(){for(var t=0;t<this.length;t++){var e=this[t],n=e._private;n.emitter||(n.emitter=new Lc(jc,e))}return this},emitter:function(){return this._private.emitter},on:function(t,e,n){for(var i=$c(e),r=0;r<this.length;r++)this[r].emitter().on(t,i,n);return this},removeListener:function(t,e,n){for(var i=$c(e),r=0;r<this.length;r++)this[r].emitter().removeListener(t,i,n);return this},removeAllListeners:function(){for(var t=0;t<this.length;t++)this[t].emitter().removeAllListeners();return this},one:function(t,e,n){for(var i=$c(e),r=0;r<this.length;r++)this[r].emitter().one(t,i,n);return this},once:function(t,e,n){for(var i=$c(e),r=0;r<this.length;r++)this[r].emitter().on(t,i,n,{once:!0,onceCollection:this})},emit:function(t,e){for(var n=0;n<this.length;n++)this[n].emitter().emit(t,e);return this},emitAndNotify:function(t,e){if(0!==this.length)return this.cy().notify(t,this),this.emit(t,e),this}};ls.eventAliasesOn(zc);var Vc={nodes:function(t){return this.filter((function(t){return t.isNode()})).filter(t)},edges:function(t){return this.filter((function(t){return t.isEdge()})).filter(t)},byGroup:function(){for(var t=this.spawn(),e=this.spawn(),n=0;n<this.length;n++){var i=this[n];i.isNode()?t.push(i):e.push(i)}return{nodes:t,edges:e}},filter:function(t,e){if(void 0===t)return this;if(k(t)||T(t))return new Ps(t).filter(this);if(v(t)){for(var n=this.spawn(),i=this,r=0;r<i.length;r++){var o=i[r];(e?t.apply(e,[o,r,i]):t(o,r,i))&&n.push(o)}return n}return this.spawn()},not:function(t){if(t){k(t)&&(t=this.filter(t));for(var e=this.spawn(),n=0;n<this.length;n++){var i=this[n];t.has(i)||e.push(i)}return e}return this},absoluteComplement:function(){return this.cy().mutableElements().not(this)},intersect:function(t){if(k(t)){var e=t;return this.filter(e)}for(var n=this.spawn(),i=this,r=t,o=this.length<t.length,a=o?i:r,s=o?r:i,c=0;c<a.length;c++){var l=a[c];s.has(l)&&n.push(l)}return n},xor:function(t){var e=this._private.cy;k(t)&&(t=e.$(t));var n=this.spawn(),i=this,r=t,o=function(t,e){for(var i=0;i<t.length;i++){var r=t[i],o=r._private.data.id;e.hasElementWithId(o)||n.push(r)}};return o(i,r),o(r,i),n},diff:function(t){var e=this._private.cy;k(t)&&(t=e.$(t));var n=this.spawn(),i=this.spawn(),r=this.spawn(),o=this,a=t,s=function(t,e,n){for(var i=0;i<t.length;i++){var o=t[i],a=o._private.data.id;e.hasElementWithId(a)?r.merge(o):n.push(o)}};return s(o,a,n),s(a,o,i),{left:n,right:i,both:r}},add:function(t){var e=this._private.cy;if(!t)return this;if(k(t)){var n=t;t=e.mutableElements().filter(n)}for(var i=this.spawnSelf(),r=0;r<t.length;r++){var o=t[r];!this.has(o)&&i.push(o)}return i},merge:function(t){var e=this._private,n=e.cy;if(!t)return this;if(t&&k(t)){var i=t;t=n.mutableElements().filter(i)}for(var r=e.map,o=0;o<t.length;o++){var a=t[o],s=a._private.data.id;if(!r.has(s)){var c=this.length++;this[c]=a,r.set(s,{ele:a,index:c})}}return this},unmergeAt:function(t){var e=this[t].id(),n=this._private.map;this[t]=void 0,n.delete(e);var i=t===this.length-1;if(this.length>1&&!i){var r=this.length-1,o=this[r],a=o._private.data.id;this[r]=void 0,this[t]=o,n.set(a,{ele:o,index:t})}return this.length--,this},unmergeOne:function(t){t=t[0];var e=this._private,n=t._private.data.id,i=e.map.get(n);if(!i)return this;var r=i.index;return this.unmergeAt(r),this},unmerge:function(t){var e=this._private.cy;if(!t)return this;if(t&&k(t)){var n=t;t=e.mutableElements().filter(n)}for(var i=0;i<t.length;i++)this.unmergeOne(t[i]);return this},unmergeBy:function(t){for(var e=this.length-1;e>=0;e--)t(this[e])&&this.unmergeAt(e);return this},map:function(t,e){for(var n=[],i=this,r=0;r<i.length;r++){var o=i[r],a=e?t.apply(e,[o,r,i]):t(o,r,i);n.push(a)}return n},reduce:function(t,e){for(var n=e,i=this,r=0;r<i.length;r++)n=t(n,i[r],r,i);return n},max:function(t,e){for(var n,i=-1/0,r=this,o=0;o<r.length;o++){var a=r[o],s=e?t.apply(e,[a,o,r]):t(a,o,r);s>i&&(i=s,n=a)}return{value:i,ele:n}},min:function(t,e){for(var n,i=1/0,r=this,o=0;o<r.length;o++){var a=r[o],s=e?t.apply(e,[a,o,r]):t(a,o,r);s<i&&(i=s,n=a)}return{value:i,ele:n}}},Hc=Vc;Hc.u=Hc["|"]=Hc["+"]=Hc.union=Hc.or=Hc.add,Hc["\\"]=Hc["!"]=Hc["-"]=Hc.difference=Hc.relativeComplement=Hc.subtract=Hc.not,Hc.n=Hc["&"]=Hc["."]=Hc.and=Hc.intersection=Hc.intersect,Hc["^"]=Hc["(+)"]=Hc["(-)"]=Hc.symmetricDifference=Hc.symdiff=Hc.xor,Hc.fnFilter=Hc.filterFn=Hc.stdFilter=Hc.filter,Hc.complement=Hc.abscomp=Hc.absoluteComplement;var qc,Uc={isNode:function(){return"nodes"===this.group()},isEdge:function(){return"edges"===this.group()},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var t=this[0];if(t)return t._private.group}},Gc=function(t,e){var n=t.cy().hasCompoundNodes();function i(t){var e=t.pstyle("z-compound-depth");return"auto"===e.value?n?t.zDepth():0:"bottom"===e.value?-1:"top"===e.value?ve:0}var r=i(t)-i(e);if(0!==r)return r;function o(t){return"auto"===t.pstyle("z-index-compare").value&&t.isNode()?1:0}var a=o(t)-o(e);if(0!==a)return a;var s=t.pstyle("z-index").value-e.pstyle("z-index").value;return 0!==s?s:t.poolIndex()-e.poolIndex()},Wc={forEach:function(t,e){if(v(t))for(var n=this.length,i=0;i<n;i++){var r=this[i];if(!1===(e?t.apply(e,[r,i,this]):t(r,i,this)))break}return this},toArray:function(){for(var t=[],e=0;e<this.length;e++)t.push(this[e]);return t},slice:function(t,e){var n=[],i=this.length;null==e&&(e=i),null==t&&(t=0),t<0&&(t=i+t),e<0&&(e=i+e);for(var r=t;r>=0&&r<e&&r<i;r++)n.push(this[r]);return this.spawn(n)},size:function(){return this.length},eq:function(t){return this[t]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return 0===this.length},nonempty:function(){return!this.empty()},sort:function(t){if(!v(t))return this;var e=this.toArray().sort(t);return this.spawn(e)},sortByZIndex:function(){return this.sort(Gc)},zDepth:function(){var t=this[0];if(t){var e=t._private;if("nodes"===e.group){var n=e.data.parent?t.parents().size():0;return t.isParent()?n:ve-1}var i=e.source,r=e.target,o=i.zDepth(),a=r.zDepth();return Math.max(o,a,0)}}};Wc.each=Wc.forEach,qc="undefined",("undefined"==typeof Symbol?"undefined":t(Symbol))!=qc&&t(Symbol.iterator)!=qc&&(Wc[Symbol.iterator]=function(){var t=this,e={value:void 0,done:!1},n=0,i=this.length;return o({next:function(){return n<i?e.value=t[n++]:(e.value=void 0,e.done=!0),e}},Symbol.iterator,(function(){return this}))});var Kc=Le({nodeDimensionsIncludeLabels:!1}),Yc={layoutDimensions:function(t){var e;if(t=Kc(t),this.takesUpSpace())if(t.nodeDimensionsIncludeLabels){var n=this.boundingBox();e={w:n.w,h:n.h}}else e={w:this.outerWidth(),h:this.outerHeight()};else e={w:0,h:0};return 0!==e.w&&0!==e.h||(e.w=e.h=1),e},layoutPositions:function(t,e,n){var i=this.nodes().filter((function(t){return!t.isParent()})),r=this.cy(),o=e.eles,a=function(t){return t.id()},s=F(n,a);t.emit({type:"layoutstart",layout:t}),t.animations=[];var c=function(t,e,n){var i={x:e.x1+e.w/2,y:e.y1+e.h/2},r={x:(n.x-i.x)*t,y:(n.y-i.y)*t};return{x:i.x+r.x,y:i.y+r.y}},l=e.spacingFactor&&1!==e.spacingFactor,u=function(){if(!l)return null;for(var t=Sn(),e=0;e<i.length;e++){var n=i[e],r=s(n,e);Mn(t,r.x,r.y)}return t}(),h=F((function(t,n){var i=s(t,n);if(l){var r=Math.abs(e.spacingFactor);i=c(r,u,i)}return null!=e.transform&&(i=e.transform(t,i)),i}),a);if(e.animate){for(var d=0;d<i.length;d++){var f=i[d],g=h(f,d);if(null==e.animateFilter||e.animateFilter(f,d)){var p=f.animation({position:g,duration:e.animationDuration,easing:e.animationEasing});t.animations.push(p)}else f.position(g)}if(e.fit){var m=r.animation({fit:{boundingBox:o.boundingBoxAt(h),padding:e.padding},duration:e.animationDuration,easing:e.animationEasing});t.animations.push(m)}else if(void 0!==e.zoom&&void 0!==e.pan){var b=r.animation({zoom:e.zoom,pan:e.pan,duration:e.animationDuration,easing:e.animationEasing});t.animations.push(b)}t.animations.forEach((function(t){return t.play()})),t.one("layoutready",e.ready),t.emit({type:"layoutready",layout:t}),jr.all(t.animations.map((function(t){return t.promise()}))).then((function(){t.one("layoutstop",e.stop),t.emit({type:"layoutstop",layout:t})}))}else i.positions(h),e.fit&&r.fit(e.eles,e.padding),null!=e.zoom&&r.zoom(e.zoom),e.pan&&r.pan(e.pan),t.one("layoutready",e.ready),t.emit({type:"layoutready",layout:t}),t.one("layoutstop",e.stop),t.emit({type:"layoutstop",layout:t});return this},layout:function(t){return this.cy().makeLayout(Q({},t,{eles:this}))}};function Xc(t,e,n){var i,r=n._private,o=r.styleCache=r.styleCache||[];return null!=(i=o[t])?i:i=o[t]=e(n)}function Zc(t,e){return t=ge(t),function(n){return Xc(t,e,n)}}function Qc(t,e){t=ge(t);var n=function(t){return e.call(t)};return function(){var e=this[0];if(e)return Xc(t,n,e)}}Yc.createLayout=Yc.makeLayout=Yc.layout;var Jc={recalculateRenderedStyle:function(t){var e=this.cy(),n=e.renderer(),i=e.styleEnabled();return n&&i&&n.recalculateRenderedStyle(this,t),this},dirtyStyleCache:function(){var t,e=this.cy(),n=function(t){return t._private.styleCache=null};return e.hasCompoundNodes()?((t=this.spawnSelf().merge(this.descendants()).merge(this.parents())).merge(t.connectedEdges()),t.forEach(n)):this.forEach((function(t){n(t),t.connectedEdges().forEach(n)})),this},updateStyle:function(t){var e=this._private.cy;if(!e.styleEnabled())return this;if(e.batching())return e._private.batchStyleEles.merge(this),this;var n=this;t=!(!t&&void 0!==t),e.hasCompoundNodes()&&(n=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var i=n;return t?i.emitAndNotify("style"):i.emit("style"),n.forEach((function(t){return t._private.styleDirty=!0})),this},cleanStyle:function(){var t=this.cy();if(t.styleEnabled())for(var e=0;e<this.length;e++){var n=this[e];n._private.styleDirty&&(n._private.styleDirty=!1,t.style().apply(n))}},parsedStyle:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this[0],i=n.cy();if(i.styleEnabled()&&n){this.cleanStyle();var r=n._private.style[t];return null!=r?r:e?i.style().getDefaultProperty(t):null}},numericStyle:function(t){var e=this[0];if(e.cy().styleEnabled()&&e){var n=e.pstyle(t);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(t){var e=this[0];if(e.cy().styleEnabled())return e?e.pstyle(t).units:void 0},renderedStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=this[0];return n?e.style().getRenderedStyle(n,t):void 0},style:function(t,e){var n=this.cy();if(!n.styleEnabled())return this;var i=!1,r=n.style();if(_(t)){var o=t;r.applyBypass(this,o,i),this.emitAndNotify("style")}else if(k(t)){if(void 0===e){var a=this[0];return a?r.getStylePropertyValue(a,t):void 0}r.applyBypass(this,t,e,i),this.emitAndNotify("style")}else if(void 0===t){var s=this[0];return s?r.getRawStyle(s):void 0}return this},removeStyle:function(t){var e=this.cy();if(!e.styleEnabled())return this;var n=!1,i=e.style(),r=this;if(void 0===t)for(var o=0;o<r.length;o++){var a=r[o];i.removeAllBypasses(a,n)}else{t=t.split(/\s+/);for(var s=0;s<r.length;s++){var c=r[s];i.removeBypasses(c,t,n)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var t=this.cy();if(!t.styleEnabled())return 1;var e=t.hasCompoundNodes(),n=this[0];if(n){var i=n._private,r=n.pstyle("opacity").value;if(!e)return r;var o=i.data.parent?n.parents():null;if(o)for(var a=0;a<o.length;a++)r*=o[a].pstyle("opacity").value;return r}},transparent:function(){if(!this.cy().styleEnabled())return!1;var t=this[0],e=t.cy().hasCompoundNodes();return t?e?0===t.effectiveOpacity():0===t.pstyle("opacity").value:void 0},backgrounding:function(){return!!this.cy().styleEnabled()&&!!this[0]._private.backgrounding}};function tl(t,e){var n=t._private.data.parent?t.parents():null;if(n)for(var i=0;i<n.length;i++)if(!e(n[i]))return!1;return!0}function el(t){var e=t.ok,n=t.edgeOkViaNode||t.ok,i=t.parentOk||t.ok;return function(){var t=this.cy();if(!t.styleEnabled())return!0;var r=this[0],o=t.hasCompoundNodes();if(r){var a=r._private;if(!e(r))return!1;if(r.isNode())return!o||tl(r,i);var s=a.source,c=a.target;return n(s)&&(!o||tl(s,n))&&(s===c||n(c)&&(!o||tl(c,n)))}}}var nl=Zc("eleTakesUpSpace",(function(t){return"element"===t.pstyle("display").value&&0!==t.width()&&(!t.isNode()||0!==t.height())}));Jc.takesUpSpace=Qc("takesUpSpace",el({ok:nl}));var il=Zc("eleInteractive",(function(t){return"yes"===t.pstyle("events").value&&"visible"===t.pstyle("visibility").value&&nl(t)})),rl=Zc("parentInteractive",(function(t){return"visible"===t.pstyle("visibility").value&&nl(t)}));Jc.interactive=Qc("interactive",el({ok:il,parentOk:rl,edgeOkViaNode:nl})),Jc.noninteractive=function(){var t=this[0];if(t)return!t.interactive()};var ol=Zc("eleVisible",(function(t){return"visible"===t.pstyle("visibility").value&&0!==t.pstyle("opacity").pfValue&&nl(t)})),al=nl;Jc.visible=Qc("visible",el({ok:ol,edgeOkViaNode:al})),Jc.hidden=function(){var t=this[0];if(t)return!t.visible()},Jc.isBundledBezier=Qc("isBundledBezier",(function(){return!!this.cy().styleEnabled()&&!this.removed()&&"bezier"===this.pstyle("curve-style").value&&this.takesUpSpace()})),Jc.bypass=Jc.css=Jc.style,Jc.renderedCss=Jc.renderedStyle,Jc.removeBypass=Jc.removeCss=Jc.removeStyle,Jc.pstyle=Jc.parsedStyle;var sl={};function cl(t){return function(){var e=arguments,n=[];if(2===e.length){var i=e[0],r=e[1];this.on(t.event,i,r)}else if(1===e.length&&v(e[0])){var o=e[0];this.on(t.event,o)}else if(0===e.length||1===e.length&&y(e[0])){for(var a=1===e.length?e[0]:null,s=0;s<this.length;s++){var c=this[s],l=!t.ableField||c._private[t.ableField],u=c._private[t.field]!=t.value;if(t.overrideAble){var h=t.overrideAble(c);if(void 0!==h&&(l=h,!h))return this}l&&(c._private[t.field]=t.value,u&&n.push(c))}var d=this.spawn(n);d.updateStyle(),d.emit(t.event),a&&d.emit(a)}return this}}function ll(t){sl[t.field]=function(){var e=this[0];if(e){if(t.overrideField){var n=t.overrideField(e);if(void 0!==n)return n}return e._private[t.field]}},sl[t.on]=cl({event:t.on,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!0}),sl[t.off]=cl({event:t.off,field:t.field,ableField:t.ableField,overrideAble:t.overrideAble,value:!1})}ll({field:"locked",overrideField:function(t){return!!t.cy().autolock()||void 0},on:"lock",off:"unlock"}),ll({field:"grabbable",overrideField:function(t){return!t.cy().autoungrabify()&&!t.pannable()&&void 0},on:"grabify",off:"ungrabify"}),ll({field:"selected",ableField:"selectable",overrideAble:function(t){return!t.cy().autounselectify()&&void 0},on:"select",off:"unselect"}),ll({field:"selectable",overrideField:function(t){return!t.cy().autounselectify()&&void 0},on:"selectify",off:"unselectify"}),sl.deselect=sl.unselect,sl.grabbed=function(){var t=this[0];if(t)return t._private.grabbed},ll({field:"active",on:"activate",off:"unactivate"}),ll({field:"pannable",on:"panify",off:"unpanify"}),sl.inactive=function(){var t=this[0];if(t)return!t._private.active};var ul={},hl=function(t){return function(e){for(var n=this,i=[],r=0;r<n.length;r++){var o=n[r];if(o.isNode()){for(var a=!1,s=o.connectedEdges(),c=0;c<s.length;c++){var l=s[c],u=l.source(),h=l.target();if(t.noIncomingEdges&&h===o&&u!==o||t.noOutgoingEdges&&u===o&&h!==o){a=!0;break}}a||i.push(o)}}return this.spawn(i,!0).filter(e)}},dl=function(t){return function(e){for(var n=this,i=[],r=0;r<n.length;r++){var o=n[r];if(o.isNode())for(var a=o.connectedEdges(),s=0;s<a.length;s++){var c=a[s],l=c.source(),u=c.target();t.outgoing&&l===o?(i.push(c),i.push(u)):t.incoming&&u===o&&(i.push(c),i.push(l))}}return this.spawn(i,!0).filter(e)}},fl=function(t){return function(e){for(var n=this,i=[],r={};;){var o=t.outgoing?n.outgoers():n.incomers();if(0===o.length)break;for(var a=!1,s=0;s<o.length;s++){var c=o[s],l=c.id();r[l]||(r[l]=!0,i.push(c),a=!0)}if(!a)break;n=o}return this.spawn(i,!0).filter(e)}};function gl(t){return function(e){for(var n=[],i=0;i<this.length;i++){var r=this[i]._private[t.attr];r&&n.push(r)}return this.spawn(n,!0).filter(e)}}function pl(t){return function(e){var n=[],i=this._private.cy,r=t||{};k(e)&&(e=i.$(e));for(var o=0;o<e.length;o++)for(var a=e[o]._private.edges,s=0;s<a.length;s++){var c=a[s],l=c._private.data,u=this.hasElementWithId(l.source)&&e.hasElementWithId(l.target),h=e.hasElementWithId(l.source)&&this.hasElementWithId(l.target);if(u||h){if(r.thisIsSrc||r.thisIsTgt){if(r.thisIsSrc&&!u)continue;if(r.thisIsTgt&&!h)continue}n.push(c)}}return this.spawn(n,!0)}}function ml(t){return t=Q({},{codirected:!1},t),function(e){for(var n=[],i=this.edges(),r=t,o=0;o<i.length;o++)for(var a=i[o]._private,s=a.source,c=s._private.data.id,l=a.data.target,u=s._private.edges,h=0;h<u.length;h++){var d=u[h],f=d._private.data,g=f.target,p=f.source,m=g===l&&p===c,b=c===g&&l===p;(r.codirected&&m||!r.codirected&&(m||b))&&n.push(d)}return this.spawn(n,!0).filter(e)}}ul.clearTraversalCache=function(){for(var t=0;t<this.length;t++)this[t]._private.traversalCache=null},Q(ul,{roots:hl({noIncomingEdges:!0}),leaves:hl({noOutgoingEdges:!0}),outgoers:Fs(dl({outgoing:!0}),"outgoers"),successors:fl({outgoing:!0}),incomers:Fs(dl({incoming:!0}),"incomers"),predecessors:fl({incoming:!0})}),Q(ul,{neighborhood:Fs((function(t){for(var e=[],n=this.nodes(),i=0;i<n.length;i++)for(var r=n[i],o=r.connectedEdges(),a=0;a<o.length;a++){var s=o[a],c=s.source(),l=s.target(),u=r===c?l:c;u.length>0&&e.push(u[0]),e.push(s[0])}return this.spawn(e,!0).filter(t)}),"neighborhood"),closedNeighborhood:function(t){return this.neighborhood().add(this).filter(t)},openNeighborhood:function(t){return this.neighborhood(t)}}),ul.neighbourhood=ul.neighborhood,ul.closedNeighbourhood=ul.closedNeighborhood,ul.openNeighbourhood=ul.openNeighborhood,Q(ul,{source:Fs((function(t){var e,n=this[0];return n&&(e=n._private.source||n.cy().collection()),e&&t?e.filter(t):e}),"source"),target:Fs((function(t){var e,n=this[0];return n&&(e=n._private.target||n.cy().collection()),e&&t?e.filter(t):e}),"target"),sources:gl({attr:"source"}),targets:gl({attr:"target"})}),Q(ul,{edgesWith:Fs(pl(),"edgesWith"),edgesTo:Fs(pl({thisIsSrc:!0}),"edgesTo")}),Q(ul,{connectedEdges:Fs((function(t){for(var e=[],n=this,i=0;i<n.length;i++){var r=n[i];if(r.isNode())for(var o=r._private.edges,a=0;a<o.length;a++){var s=o[a];e.push(s)}}return this.spawn(e,!0).filter(t)}),"connectedEdges"),connectedNodes:Fs((function(t){for(var e=[],n=this,i=0;i<n.length;i++){var r=n[i];r.isEdge()&&(e.push(r.source()[0]),e.push(r.target()[0]))}return this.spawn(e,!0).filter(t)}),"connectedNodes"),parallelEdges:Fs(ml(),"parallelEdges"),codirectedEdges:Fs(ml({codirected:!0}),"codirectedEdges")}),Q(ul,{components:function(t){var e=this,n=e.cy(),i=n.collection(),r=null==t?e.nodes():t.nodes(),o=[];null!=t&&r.empty()&&(r=t.sources());var a=function(t,e){i.merge(t),r.unmerge(t),e.merge(t)};if(r.empty())return e.spawn();var s=function(){var t=n.collection();o.push(t);var i=r[0];a(i,t),e.bfs({directed:!1,roots:i,visit:function(e){return a(e,t)}}),t.forEach((function(n){n.connectedEdges().forEach((function(n){e.has(n)&&t.has(n.source())&&t.has(n.target())&&t.merge(n)}))}))};do{s()}while(r.length>0);return o},component:function(){var t=this[0];return t.cy().mutableElements().components(t)[0]}}),ul.componentsOf=ul.components;var bl=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==t){var r=new $e,o=!1;if(e){if(e.length>0&&_(e[0])&&!S(e[0])){o=!0;for(var a=[],s=new He,c=0,l=e.length;c<l;c++){var u=e[c];null==u.data&&(u.data={});var h=u.data;if(null==h.id)h.id=Be();else if(t.hasElementWithId(h.id)||s.has(h.id))continue;var d=new qe(t,u,!1);a.push(d),s.add(h.id)}e=a}}else e=[];this.length=0;for(var f=0,g=e.length;f<g;f++){var p=e[f][0];if(null!=p){var m=p._private.data.id;n&&r.has(m)||(n&&r.set(m,{index:this.length,ele:p}),this[this.length]=p,this.length++)}}this._private={eles:this,cy:t,get map(){return null==this.lazyMap&&this.rebuildMap(),this.lazyMap},set map(t){this.lazyMap=t},rebuildMap:function(){for(var t=this.lazyMap=new $e,e=this.eles,n=0;n<e.length;n++){var i=e[n];t.set(i.id(),{index:n,ele:i})}}},n&&(this._private.map=r),o&&!i&&this.restore()}else xe("A collection must have a reference to the core")},wl=qe.prototype=bl.prototype=Object.create(Array.prototype);wl.instanceString=function(){return"collection"},wl.spawn=function(t,e){return new bl(this.cy(),t,e)},wl.spawnSelf=function(){return this.spawn(this)},wl.cy=function(){return this._private.cy},wl.renderer=function(){return this._private.cy.renderer()},wl.element=function(){return this[0]},wl.collection=function(){return D(this)?this:new bl(this._private.cy,[this])},wl.unique=function(){return new bl(this._private.cy,this,!0)},wl.hasElementWithId=function(t){return t=""+t,this._private.map.has(t)},wl.getElementById=function(t){t=""+t;var e=this._private.cy,n=this._private.map.get(t);return n?n.ele:new bl(e)},wl.$id=wl.getElementById,wl.poolIndex=function(){var t=this._private.cy._private.elements,e=this[0]._private.data.id;return t._private.map.get(e).index},wl.indexOf=function(t){var e=t[0]._private.data.id;return this._private.map.get(e).index},wl.indexOfId=function(t){return t=""+t,this._private.map.get(t).index},wl.json=function(t){var e=this.element(),n=this.cy();if(null==e&&t)return this;if(null!=e){var i=e._private;if(_(t)){if(n.startBatch(),t.data){e.data(t.data);var r=i.data;if(e.isEdge()){var o=!1,a={},s=t.data.source,c=t.data.target;null!=s&&s!=r.source&&(a.source=""+s,o=!0),null!=c&&c!=r.target&&(a.target=""+c,o=!0),o&&(e=e.move(a))}else{var l="parent"in t.data,u=t.data.parent;!l||null==u&&null==r.parent||u==r.parent||(void 0===u&&(u=null),null!=u&&(u=""+u),e=e.move({parent:u}))}}t.position&&e.position(t.position);var h=function(n,r,o){var a=t[n];null!=a&&a!==i[n]&&(a?e[r]():e[o]())};return h("removed","remove","restore"),h("selected","select","unselect"),h("selectable","selectify","unselectify"),h("locked","lock","unlock"),h("grabbable","grabify","ungrabify"),h("pannable","panify","unpanify"),null!=t.classes&&e.classes(t.classes),n.endBatch(),this}if(void 0===t){var d={data:De(i.data),position:De(i.position),group:i.group,removed:i.removed,selected:i.selected,selectable:i.selectable,locked:i.locked,grabbable:i.grabbable,pannable:i.pannable,classes:""},f=0;return i.classes.forEach((function(t){return d.classes+=0==f++?t:" "+t})),d}}},wl.jsons=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e].json();t.push(n)}return t},wl.clone=function(){for(var t=this.cy(),e=[],n=0;n<this.length;n++){var i=this[n].json(),r=new qe(t,i,!1);e.push(r)}return new bl(t,e)},wl.copy=wl.clone,wl.restore=function(){for(var t,e,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this,o=r.cy(),a=o._private,s=[],c=[],l=0,u=r.length;l<u;l++){var h=r[l];i&&!h.removed()||(h.isNode()?s.push(h):c.push(h))}t=s.concat(c);var d=function(){t.splice(e,1),e--};for(e=0;e<t.length;e++){var f=t[e],g=f._private,p=g.data;if(f.clearTraversalCache(),i||g.removed)if(void 0===p.id)p.id=Be();else if(A(p.id))p.id=""+p.id;else{if(P(p.id)||!k(p.id)){xe("Can not create element with invalid string ID `"+p.id+"`"),d();continue}if(o.hasElementWithId(p.id)){xe("Can not create second element with ID `"+p.id+"`"),d();continue}}var m=p.id;if(f.isNode()){var b=g.position;null==b.x&&(b.x=0),null==b.y&&(b.y=0)}if(f.isEdge()){for(var w=f,v=["source","target"],y=v.length,_=!1,C=0;C<y;C++){var x=v[C],E=p[x];A(E)&&(E=p[x]=""+p[x]),null==E||""===E?(xe("Can not create edge `"+m+"` with unspecified "+x),_=!0):o.hasElementWithId(E)||(xe("Can not create edge `"+m+"` with nonexistant "+x+" `"+E+"`"),_=!0)}if(_){d();continue}var T=o.getElementById(p.source),S=o.getElementById(p.target);T.same(S)?T._private.edges.push(w):(T._private.edges.push(w),S._private.edges.push(w)),w._private.source=T,w._private.target=S}g.map=new $e,g.map.set(m,{ele:f,index:0}),g.removed=!1,i&&o.addToPool(f)}for(var D=0;D<s.length;D++){var I=s[D],B=I._private.data;A(B.parent)&&(B.parent=""+B.parent);var M=B.parent;if(null!=M||I._private.parent){var L=I._private.parent?o.collection().merge(I._private.parent):o.getElementById(M);if(L.empty())B.parent=void 0;else if(L[0].removed())Te("Node added with missing parent, reference to parent removed"),B.parent=void 0,I._private.parent=null;else{for(var O=!1,N=L;!N.empty();){if(I.same(N)){O=!0,B.parent=void 0;break}N=N.parent()}O||(L[0]._private.children.push(I),I._private.parent=L[0],a.hasCompoundNodes=!0)}}}if(t.length>0){for(var R=t.length===r.length?r:new bl(o,t),F=0;F<R.length;F++){var j=R[F];j.isNode()||(j.parallelEdges().clearTraversalCache(),j.source().clearTraversalCache(),j.target().clearTraversalCache())}(a.hasCompoundNodes?o.collection().merge(R).merge(R.connectedNodes()).merge(R.parent()):R).dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(n),n?R.emitAndNotify("add"):i&&R.emit("add")}return r},wl.removed=function(){var t=this[0];return t&&t._private.removed},wl.inside=function(){var t=this[0];return t&&!t._private.removed},wl.remove=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,i=[],r={},o=n._private.cy;function a(t){for(var e=t._private.edges,n=0;n<e.length;n++)c(e[n])}function s(t){for(var e=t._private.children,n=0;n<e.length;n++)c(e[n])}function c(t){var n=r[t.id()];e&&t.removed()||n||(r[t.id()]=!0,t.isNode()?(i.push(t),a(t),s(t)):i.unshift(t))}for(var l=0,u=n.length;l<u;l++)c(n[l]);function h(t,e){var n=t._private.edges;Oe(n,e),t.clearTraversalCache()}function d(t){t.clearTraversalCache()}var f=[];function g(t,e){e=e[0];var n=(t=t[0])._private.children,i=t.id();Oe(n,e),e._private.parent=null,f.ids[i]||(f.ids[i]=!0,f.push(t))}f.ids={},n.dirtyCompoundBoundsCache(),e&&o.removeFromPool(i);for(var p=0;p<i.length;p++){var m=i[p];if(m.isEdge()){var b=m.source()[0],w=m.target()[0];h(b,m),h(w,m);for(var k=m.parallelEdges(),v=0;v<k.length;v++){var y=k[v];d(y),y.isBundledBezier()&&y.dirtyBoundingBoxCache()}}else{var _=m.parent();0!==_.length&&g(_,m)}e&&(m._private.removed=!0)}var C=o._private.elements;o._private.hasCompoundNodes=!1;for(var A=0;A<C.length;A++)if(C[A].isParent()){o._private.hasCompoundNodes=!0;break}var x=new bl(this.cy(),i);x.size()>0&&(t?x.emitAndNotify("remove"):e&&x.emit("remove"));for(var E=0;E<f.length;E++){var T=f[E];e&&T.removed()||T.updateStyle()}return x},wl.move=function(t){var e=this._private.cy,n=this,i=!1,r=!1,o=function(t){return null==t?t:""+t};if(void 0!==t.source||void 0!==t.target){var a=o(t.source),s=o(t.target),c=null!=a&&e.hasElementWithId(a),l=null!=s&&e.hasElementWithId(s);(c||l)&&(e.batch((function(){n.remove(i,r),n.emitAndNotify("moveout");for(var t=0;t<n.length;t++){var e=n[t],o=e._private.data;e.isEdge()&&(c&&(o.source=a),l&&(o.target=s))}n.restore(i,r)})),n.emitAndNotify("move"))}else if(void 0!==t.parent){var u=o(t.parent);if(null===u||e.hasElementWithId(u)){var h=null===u?void 0:u;e.batch((function(){var t=n.remove(i,r);t.emitAndNotify("moveout");for(var e=0;e<n.length;e++){var o=n[e],a=o._private.data;o.isNode()&&(a.parent=h)}t.restore(i,r)})),n.emitAndNotify("move")}}return this},[Dr,us,hs,Os,js,Gs,Ws,xc,zc,Vc,Uc,Wc,Yc,Jc,sl,ul].forEach((function(t){Q(wl,t)}));var kl={add:function(t){var e,n=this;if(T(t)){var i=t;if(i._private.cy===n)e=i.restore();else{for(var r=[],o=0;o<i.length;o++){var a=i[o];r.push(a.json())}e=new bl(n,r)}}else if(y(t))e=new bl(n,t);else if(_(t)&&(y(t.nodes)||y(t.edges))){for(var s=t,c=[],l=["nodes","edges"],u=0,h=l.length;u<h;u++){var d=l[u],f=s[d];if(y(f))for(var g=0,p=f.length;g<p;g++){var m=Q({group:d},f[g]);c.push(m)}}e=new bl(n,c)}else e=new qe(n,t).collection();return e},remove:function(t){if(T(t));else if(k(t)){var e=t;t=this.$(e)}return t.remove()}};
/*! 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])();t.splice(0,t.length)},u=o.length-1;u>=0;u--){var h=o[u],d=h._private;d.stopped?(o.splice(u,1),d.hooked=!1,d.playing=!1,d.started=!1,l(d.frames)):(d.playing||d.applying)&&(d.playing&&d.applying&&(d.applying=!1),d.started||Dl(e,h,t),Tl(e,h,t,n),d.applying&&(d.applying=!1),l(d.frames),null!=d.step&&d.step(t),h.completed()&&(o.splice(u,1),d.hooked=!1,d.playing=!1,d.started=!1,l(d.completes)),s=!0)}return n||0!==o.length||0!==a.length||i.push(e),s}for(var o=!1,a=0;a<n.length;a++){var s=r(n[a]);o=o||s}var c=r(e,!0);(o||c)&&(n.length>0?e.notify("draw",n):e.notify("draw")),n.unmerge(i),e.emit("step")}var Bl={animate:ls.animate(),animation:ls.animation(),animated:ls.animated(),clearQueue:ls.clearQueue(),delay:ls.delay(),delayAnimation:ls.delayAnimation(),stop:ls.stop(),addToAnimationPool:function(t){var e=this;e.styleEnabled()&&e._private.aniEles.merge(t)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var t=this;if(t._private.animationsRunning=!0,t.styleEnabled()){var e=t.renderer();e&&e.beforeRender?e.beforeRender((function(e,n){Il(n,t)}),e.beforeRenderPriorities.animations):n()}function n(){t._private.animationsRunning&&ne((function(e){Il(e,t),n()}))}}},Ml={qualifierCompare:function(t,e){return null==t||null==e?null==t&&null==e:t.sameText(e)},eventMatches:function(t,e,n){var i=e.qualifier;return null==i||t!==n.target&&S(n.target)&&i.matches(n.target)},addEventFields:function(t,e){e.cy=t,e.target=t},callbackContext:function(t,e,n){return null!=e.qualifier?n.target:t}},Pl=function(t){return k(t)?new Ps(t):t},Ll={createEmitter:function(){var t=this._private;return t.emitter||(t.emitter=new Lc(Ml,this)),this},emitter:function(){return this._private.emitter},on:function(t,e,n){return this.emitter().on(t,Pl(e),n),this},removeListener:function(t,e,n){return this.emitter().removeListener(t,Pl(e),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(t,e,n){return this.emitter().one(t,Pl(e),n),this},once:function(t,e,n){return this.emitter().one(t,Pl(e),n),this},emit:function(t,e){return this.emitter().emit(t,e),this},emitAndNotify:function(t,e){return this.emit(t),this.notify(t,e),this}};ls.eventAliasesOn(Ll);var Ol={png:function(t){return t=t||{},this._private.renderer.png(t)},jpg:function(t){var e=this._private.renderer;return(t=t||{}).bg=t.bg||"#fff",e.jpg(t)}};Ol.jpeg=Ol.jpg;var Nl={layout:function(t){var e=this;if(null!=t)if(null!=t.name){var n,i=t.name,r=e.extension("layout",i);if(null!=r)return n=k(t.eles)?e.$(t.eles):null!=t.eles?t.eles:e.$(),new r(Q({},t,{cy:e,eles:n}));xe("No such layout `"+i+"` found. Did you forget to import it and `cytoscape.use()` it?")}else xe("A `name` must be specified to make a layout");else xe("Layout options must be specified to make a layout")}};Nl.createLayout=Nl.makeLayout=Nl.layout;var Rl={notify:function(t,e){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var i=n.batchNotifications[t]=n.batchNotifications[t]||this.collection();null!=e&&i.merge(e)}else if(n.notificationsEnabled){var r=this.renderer();!this.destroyed()&&r&&r.notify(t,e)}},notifications:function(t){var e=this._private;return void 0===t?e.notificationsEnabled:(e.notificationsEnabled=!!t,this)},noNotifications:function(t){this.notifications(!1),t(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var t=this._private;return null==t.batchCount&&(t.batchCount=0),0===t.batchCount&&(t.batchStyleEles=this.collection(),t.batchNotifications={}),t.batchCount++,this},endBatch:function(){var t=this._private;if(0===t.batchCount)return this;if(t.batchCount--,0===t.batchCount){t.batchStyleEles.updateStyle();var e=this.renderer();Object.keys(t.batchNotifications).forEach((function(n){var i=t.batchNotifications[n];i.empty()?e.notify(n):e.notify(n,i)}))}return this},batch:function(t){return this.startBatch(),t(),this.endBatch(),this},batchData:function(t){var e=this;return this.batch((function(){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i],o=t[r];e.getElementById(r).data(o)}}))}},Fl=Le({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1}),jl={renderTo:function(t,e,n,i){return this._private.renderer.renderTo(t,e,n,i),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(t){var e=this,n=e.extension("renderer",t.name);if(null!=n){void 0!==t.wheelSensitivity&&Te("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var i=Fl(t);i.cy=e,e._private.renderer=new n(i),this.notify("init")}else xe("Can not initialise: No such renderer `".concat(t.name,"` found. Did you forget to import it and `cytoscape.use()` it?"))},destroyRenderer:function(){var t=this;t.notify("destroy");var e=t.container();if(e)for(e._cyreg=null;e.childNodes.length>0;)e.removeChild(e.childNodes[0]);t._private.renderer=null,t.mutableElements().forEach((function(t){var e=t._private;e.rscratch={},e.rstyle={},e.animation.current=[],e.animation.queue=[]}))},onRender:function(t){return this.on("render",t)},offRender:function(t){return this.off("render",t)}};jl.invalidateDimensions=jl.resize;var $l={collection:function(t,e){return k(t)?this.$(t):T(t)?t.collection():y(t)?(e||(e={}),new bl(this,t,e.unique,e.removed)):new bl(this)},nodes:function(t){var e=this.$((function(t){return t.isNode()}));return t?e.filter(t):e},edges:function(t){var e=this.$((function(t){return t.isEdge()}));return t?e.filter(t):e},$:function(t){var e=this._private.elements;return t?e.filter(t):e.spawnSelf()},mutableElements:function(){return this._private.elements}};$l.elements=$l.filter=$l.$;var zl={},Vl="t",Hl="f";zl.apply=function(t){for(var e=this,n=e._private.cy.collection(),i=0;i<t.length;i++){var r=t[i],o=e.getContextMeta(r);if(!o.empty){var a=e.getContextStyle(o),s=e.applyContextStyle(o,a,r);r._private.appliedInitStyle?e.updateTransitions(r,s.diffProps):r._private.appliedInitStyle=!0,e.updateStyleHints(r)&&n.push(r)}}return n},zl.getPropertiesDiff=function(t,e){var n=this,i=n._private.propDiffs=n._private.propDiffs||{},r=t+"-"+e,o=i[r];if(o)return o;for(var a=[],s={},c=0;c<n.length;c++){var l=n[c],u=t[c]===Vl,h=e[c]===Vl,d=u!==h,f=l.mappedProperties.length>0;if(d||h&&f){var g=void 0;d&&f||d?g=l.properties:f&&(g=l.mappedProperties);for(var p=0;p<g.length;p++){for(var m=g[p],b=m.name,w=!1,k=c+1;k<n.length;k++){var v=n[k];if(e[k]===Vl&&(w=null!=v.properties[m.name]))break}s[b]||w||(s[b]=!0,a.push(b))}}}return i[r]=a,a},zl.getContextMeta=function(t){for(var e,n=this,i="",r=t._private.styleCxtKey||"",o=0;o<n.length;o++){var a=n[o];i+=a.selector&&a.selector.matches(t)?Vl:Hl}return e=n.getPropertiesDiff(r,i),t._private.styleCxtKey=i,{key:i,diffPropNames:e,empty:0===e.length}},zl.getContextStyle=function(t){var e=t.key,n=this,i=this._private.contextStyles=this._private.contextStyles||{};if(i[e])return i[e];for(var r={_private:{key:e}},o=0;o<n.length;o++){var a=n[o];if(e[o]===Vl)for(var s=0;s<a.properties.length;s++){var c=a.properties[s];r[c.name]=c}}return i[e]=r,r},zl.applyContextStyle=function(t,e,n){for(var i=this,r=t.diffPropNames,o={},a=i.types,s=0;s<r.length;s++){var c=r[s],l=e[c],u=n.pstyle(c);if(!l){if(!u)continue;l=u.bypass?{name:c,deleteBypassed:!0}:{name:c,delete:!0}}if(u!==l){if(l.mapped===a.fn&&null!=u&&null!=u.mapping&&u.mapping.value===l.value){var h=u.mapping;if((h.fnValue=l.value(n))===h.prevFnValue)continue}var d=o[c]={prev:u};i.applyParsedProperty(n,l),d.next=n.pstyle(c),d.next&&d.next.bypass&&(d.next=d.next.bypassed)}}return{diffProps:o}},zl.updateStyleHints=function(t){var e=t._private,n=this,i=n.propertyGroupNames,r=n.propertyGroupKeys,o=function(t,e,i){return n.getPropertiesHash(t,e,i)},a=e.styleKey;if(t.removed())return!1;var s="nodes"===e.group,c=t._private.style;i=Object.keys(c);for(var l=0;l<r.length;l++){var u=r[l];e.styleKeys[u]=[re,ae]}for(var h=function(t,n){return e.styleKeys[n][0]=ce(t,e.styleKeys[n][0])},d=function(t,n){return e.styleKeys[n][1]=le(t,e.styleKeys[n][1])},f=function(t,e){h(t,e),d(t,e)},g=function(t,e){for(var n=0;n<t.length;n++){var i=t.charCodeAt(n);h(i,e),d(i,e)}},p=2e9,m=function(t){return-128<t&&t<128&&Math.floor(t)!==t?p-(1024*t|0):t},b=0;b<i.length;b++){var w=i[b],k=c[w];if(null!=k){var v=this.properties[w],y=v.type,_=v.groupKey,C=void 0;null!=v.hashOverride?C=v.hashOverride(t,k):null!=k.pfValue&&(C=k.pfValue);var A=null==v.enums?k.value:null,x=null!=C,E=x||null!=A,T=k.units;y.number&&E&&!y.multiple?(f(m(x?C:A),_),x||null==T||g(T,_)):g(k.strValue,_)}}for(var S=[re,ae],D=0;D<r.length;D++){var I=r[D],B=e.styleKeys[I];S[0]=ce(B[0],S[0]),S[1]=le(B[1],S[1])}e.styleKey=ue(S[0],S[1]);var M=e.styleKeys;e.labelDimsKey=he(M.labelDimensions);var P=o(t,["label"],M.labelDimensions);if(e.labelKey=he(P),e.labelStyleKey=he(de(M.commonLabel,P)),!s){var L=o(t,["source-label"],M.labelDimensions);e.sourceLabelKey=he(L),e.sourceLabelStyleKey=he(de(M.commonLabel,L));var O=o(t,["target-label"],M.labelDimensions);e.targetLabelKey=he(O),e.targetLabelStyleKey=he(de(M.commonLabel,O))}if(s){var N=e.styleKeys,R=N.nodeBody,F=N.nodeBorder,j=N.backgroundImage,$=N.compound,z=N.pie,V=[R,F,j,$,z].filter((function(t){return null!=t})).reduce(de,[re,ae]);e.nodeKey=he(V),e.hasPie=null!=z&&z[0]!==re&&z[1]!==ae}return a!==e.styleKey},zl.clearStyleHints=function(t){var e=t._private;e.styleCxtKey="",e.styleKeys={},e.styleKey=null,e.labelKey=null,e.labelStyleKey=null,e.sourceLabelKey=null,e.sourceLabelStyleKey=null,e.targetLabelKey=null,e.targetLabelStyleKey=null,e.nodeKey=null,e.hasPie=null},zl.applyParsedProperty=function(t,e){var n,i=this,r=e,o=t._private.style,a=i.types,s=i.properties[r.name].type,c=r.bypass,l=o[r.name],u=l&&l.bypass,h=t._private,d="mapping",f=function(t){return null==t?null:null!=t.pfValue?t.pfValue:t.value},g=function(){var e=f(l),n=f(r);i.checkTriggers(t,r.name,e,n)};if(r&&"pie"===r.name.substr(0,3)&&Te("The pie style properties are deprecated. Create charts using background images instead."),"curve-style"===e.name&&t.isEdge()&&("bezier"!==e.value&&t.isLoop()||"haystack"===e.value&&(t.source().isParent()||t.target().isParent()))&&(r=e=this.parse(e.name,"bezier",c)),r.delete)return o[r.name]=void 0,g(),!0;if(r.deleteBypassed)return l?!!l.bypass&&(l.bypassed=void 0,g(),!0):(g(),!0);if(r.deleteBypass)return l?!!l.bypass&&(o[r.name]=l.bypassed,g(),!0):(g(),!0);var p=function(){Te("Do not assign mappings to elements without corresponding data (i.e. ele `"+t.id()+"` has no mapping for property `"+r.name+"` with data field `"+r.field+"`); try a `["+r.field+"]` selector to limit scope to elements with `"+r.field+"` defined")};switch(r.mapped){case a.mapData:for(var m,b=r.field.split("."),w=h.data,k=0;k<b.length&&w;k++)w=w[b[k]];if(null==w)return p(),!1;if(!A(w))return Te("Do not use continuous mappers without specifying numeric data (i.e. `"+r.field+": "+w+"` for `"+t.id()+"` is non-numeric)"),!1;var v=r.fieldMax-r.fieldMin;if((m=0===v?0:(w-r.fieldMin)/v)<0?m=0:m>1&&(m=1),s.color){var y=r.valueMin[0],_=r.valueMax[0],C=r.valueMin[1],x=r.valueMax[1],E=r.valueMin[2],T=r.valueMax[2],S=null==r.valueMin[3]?1:r.valueMin[3],D=null==r.valueMax[3]?1:r.valueMax[3],I=[Math.round(y+(_-y)*m),Math.round(C+(x-C)*m),Math.round(E+(T-E)*m),Math.round(S+(D-S)*m)];n={bypass:r.bypass,name:r.name,value:I,strValue:"rgb("+I[0]+", "+I[1]+", "+I[2]+")"}}else{if(!s.number)return!1;var B=r.valueMin+(r.valueMax-r.valueMin)*m;n=this.parse(r.name,B,r.bypass,d)}if(!n)return p(),!1;n.mapping=r,r=n;break;case a.data:for(var M=r.field.split("."),P=h.data,L=0;L<M.length&&P;L++)P=P[M[L]];if(null!=P&&(n=this.parse(r.name,P,r.bypass,d)),!n)return p(),!1;n.mapping=r,r=n;break;case a.fn:var O=r.value,N=null!=r.fnValue?r.fnValue:O(t);if(r.prevFnValue=N,null==N)return Te("Custom function mappers may not return null (i.e. `"+r.name+"` for ele `"+t.id()+"` is null)"),!1;if(!(n=this.parse(r.name,N,r.bypass,d)))return Te("Custom function mappers may not return invalid values for the property type (i.e. `"+r.name+"` for ele `"+t.id()+"` is invalid)"),!1;n.mapping=De(r),r=n;break;case void 0:break;default:return!1}return c?(r.bypassed=u?l.bypassed:l,o[r.name]=r):u?l.bypassed=r:o[r.name]=r,g(),!0},zl.cleanElements=function(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(this.clearStyleHints(i),i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),e)for(var r=i._private.style,o=Object.keys(r),a=0;a<o.length;a++){var s=o[a],c=r[s];null!=c&&(c.bypass?c.bypassed=null:r[s]=null)}else i._private.style={}}},zl.update=function(){this._private.cy.mutableElements().updateStyle()},zl.updateTransitions=function(t,e){var n=this,i=t._private,r=t.pstyle("transition-property").value,o=t.pstyle("transition-duration").pfValue,a=t.pstyle("transition-delay").pfValue;if(r.length>0&&o>0){for(var s={},c=!1,l=0;l<r.length;l++){var u=r[l],h=t.pstyle(u),d=e[u];if(d){var f=d.prev,g=null!=d.next?d.next:h,p=!1,m=void 0,b=1e-6;f&&(A(f.pfValue)&&A(g.pfValue)?(p=g.pfValue-f.pfValue,m=f.pfValue+b*p):A(f.value)&&A(g.value)?(p=g.value-f.value,m=f.value+b*p):y(f.value)&&y(g.value)&&(p=f.value[0]!==g.value[0]||f.value[1]!==g.value[1]||f.value[2]!==g.value[2],m=f.strValue),p&&(s[u]=g.strValue,this.applyBypass(t,u,m),c=!0))}}if(!c)return;i.transitioning=!0,new jr((function(e){a>0?t.delayAnimation(a).play().promise().then(e):e()})).then((function(){return t.animation({style:s,duration:o,easing:t.pstyle("transition-timing-function").value,queue:!1}).play().promise()})).then((function(){n.removeBypasses(t,r),t.emitAndNotify("style"),i.transitioning=!1}))}else i.transitioning&&(this.removeBypasses(t,r),t.emitAndNotify("style"),i.transitioning=!1)},zl.checkTrigger=function(t,e,n,i,r,o){var a=this.properties[e],s=r(a);null!=s&&s(n,i)&&o(a)},zl.checkZOrderTrigger=function(t,e,n,i){var r=this;this.checkTrigger(t,e,n,i,(function(t){return t.triggersZOrder}),(function(){r._private.cy.notify("zorder",t)}))},zl.checkBoundsTrigger=function(t,e,n,i){this.checkTrigger(t,e,n,i,(function(t){return t.triggersBounds}),(function(r){t.dirtyCompoundBoundsCache(),t.dirtyBoundingBoxCache(),!r.triggersBoundsOfParallelBeziers||("curve-style"!==e||"bezier"!==n&&"bezier"!==i)&&("display"!==e||"none"!==n&&"none"!==i)||t.parallelEdges().forEach((function(t){t.isBundledBezier()&&t.dirtyBoundingBoxCache()}))}))},zl.checkTriggers=function(t,e,n,i){t.dirtyStyleCache(),this.checkZOrderTrigger(t,e,n,i),this.checkBoundsTrigger(t,e,n,i)};var ql={applyBypass:function(t,e,n,i){var r=this,o=[],a=!0;if("*"===e||"**"===e){if(void 0!==n)for(var s=0;s<r.properties.length;s++){var c=r.properties[s].name,l=this.parse(c,n,!0);l&&o.push(l)}}else if(k(e)){var u=this.parse(e,n,!0);u&&o.push(u)}else{if(!_(e))return!1;var h=e;i=n;for(var d=Object.keys(h),f=0;f<d.length;f++){var g=d[f],p=h[g];if(void 0===p&&(p=h[$(g)]),void 0!==p){var m=this.parse(g,p,!0);m&&o.push(m)}}}if(0===o.length)return!1;for(var b=!1,w=0;w<t.length;w++){for(var v=t[w],y={},C=void 0,A=0;A<o.length;A++){var x=o[A];if(i){var E=v.pstyle(x.name);C=y[x.name]={prev:E}}b=this.applyParsedProperty(v,De(x))||b,i&&(C.next=v.pstyle(x.name))}b&&this.updateStyleHints(v),i&&this.updateTransitions(v,y,a)}return b},overrideBypass:function(t,e,n){e=j(e);for(var i=0;i<t.length;i++){var r=t[i],o=r._private.style[e],a=this.properties[e].type,s=a.color,c=a.mutiple,l=o?null!=o.pfValue?o.pfValue:o.value:null;o&&o.bypass?(o.value=n,null!=o.pfValue&&(o.pfValue=n),o.strValue=s?"rgb("+n.join(",")+")":c?n.join(" "):""+n,this.updateStyleHints(r)):this.applyBypass(r,e,n),this.checkTriggers(r,e,l,n)}},removeAllBypasses:function(t,e){return this.removeBypasses(t,this.propertyNames,e)},removeBypasses:function(t,e,n){for(var i=!0,r=0;r<t.length;r++){for(var o=t[r],a={},s=0;s<e.length;s++){var c=e[s],l=this.properties[c],u=o.pstyle(l.name);if(u&&u.bypass){var h="",d=this.parse(c,h,!0),f=a[l.name]={prev:u};this.applyParsedProperty(o,d),f.next=o.pstyle(l.name)}}this.updateStyleHints(o),n&&this.updateTransitions(o,a,i)}}},Ul={getEmSizeInPixels:function(){var t=this.containerCss("font-size");return null!=t?parseFloat(t):1},containerCss:function(t){var e=this._private.cy.container();if(d&&e&&d.getComputedStyle)return d.getComputedStyle(e).getPropertyValue(t)}},Gl={getRenderedStyle:function(t,e){return e?this.getStylePropertyValue(t,e,!0):this.getRawStyle(t,!0)},getRawStyle:function(t,e){var n=this;if(t=t[0]){for(var i={},r=0;r<n.properties.length;r++){var o=n.properties[r],a=n.getStylePropertyValue(t,o.name,e);null!=a&&(i[o.name]=a,i[$(o.name)]=a)}return i}},getIndexedStyle:function(t,e,n,i){var r=t.pstyle(e)[n][i];return null!=r?r:t.cy().style().getDefaultProperty(e)[n][0]},getStylePropertyValue:function(t,e,n){var i=this;if(t=t[0]){var r=i.properties[e];r.alias&&(r=r.pointsTo);var o=r.type,a=t.pstyle(r.name);if(a){var s=a.value,c=a.units,l=a.strValue;if(n&&o.number&&null!=s&&A(s)){var u=t.cy().zoom(),h=function(t){return t*u},d=function(t,e){return h(t)+e},f=y(s);return(f?c.every((function(t){return null!=t})):null!=c)?f?s.map((function(t,e){return d(t,c[e])})).join(" "):d(s,c):f?s.map((function(t){return k(t)?t:""+h(t)})).join(" "):""+h(s)}if(null!=l)return l}return null}},getAnimationStartStyle:function(t,e){for(var n={},i=0;i<e.length;i++){var r=e[i].name,o=t.pstyle(r);void 0!==o&&(o=_(o)?this.parse(r,o.strValue):this.parse(r,o)),o&&(n[r]=o)}return n},getPropsList:function(t){var e=[],n=t,i=this.properties;if(n)for(var r=Object.keys(n),o=0;o<r.length;o++){var a=r[o],s=n[a],c=i[a]||i[j(a)],l=this.parse(c.name,s);l&&e.push(l)}return e},getNonDefaultPropertiesHash:function(t,e,n){var i,r,o,a,s,c,l=n.slice();for(s=0;s<e.length;s++)if(i=e[s],null!=(r=t.pstyle(i,!1)))if(null!=r.pfValue)l[0]=ce(a,l[0]),l[1]=le(a,l[1]);else for(o=r.strValue,c=0;c<o.length;c++)a=o.charCodeAt(c),l[0]=ce(a,l[0]),l[1]=le(a,l[1]);return l}};Gl.getPropertiesHash=Gl.getNonDefaultPropertiesHash;var Wl={appendFromJson:function(t){for(var e=this,n=0;n<t.length;n++){var i=t[n],r=i.selector,o=i.style||i.css,a=Object.keys(o);e.selector(r);for(var s=0;s<a.length;s++){var c=a[s],l=o[c];e.css(c,l)}}return e},fromJson:function(t){var e=this;return e.resetToDefault(),e.appendFromJson(t),e},json:function(){for(var t=[],e=this.defaultLength;e<this.length;e++){for(var n=this[e],i=n.selector,r=n.properties,o={},a=0;a<r.length;a++){var s=r[a];o[s.name]=s.strValue}t.push({selector:i?i.toString():"core",style:o})}return t}},Kl={appendFromString:function(t){var e,n,i,r=this,o=this,a=""+t;function s(){a=a.length>e.length?a.substr(e.length):""}function c(){n=n.length>i.length?n.substr(i.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");!a.match(/^\s*$/);){var l=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!l){Te("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}e=l[0];var u=l[1];if("core"!==u&&new Ps(u).invalid)Te("Skipping parsing of block: Invalid selector found in string stylesheet: "+u),s();else{var h=l[2],d=!1;n=h;for(var f=[];!n.match(/^\s*$/);){var g=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!g){Te("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+h),d=!0;break}i=g[0];var p=g[1],m=g[2];r.properties[p]?o.parse(p,m)?(f.push({name:p,val:m}),c()):(Te("Skipping property: Invalid property definition in: "+i),c()):(Te("Skipping property: Invalid property name in: "+i),c())}if(d){s();break}o.selector(u);for(var b=0;b<f.length;b++){var w=f[b];o.css(w.name,w.val)}s()}}return o},fromString:function(t){var e=this;return e.resetToDefault(),e.appendFromString(t),e}},Yl={};!function(){var t=H,e=U,n=W,i=K,r=Y,o=function(t){return"^"+t+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},a=function(o){var a=t+"|\\w+|"+e+"|"+n+"|"+i+"|"+r;return"^"+o+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+t+")\\s*\\,\\s*("+t+")\\s*,\\s*("+a+")\\s*\\,\\s*("+a+")\\)$"},s=["^url\\s*\\(\\s*['\"]?(.+?)['\"]?\\s*\\)$","^(none)$","^(.+)$"];Yl.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi"]},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:o("data")},layoutData:{mapping:!0,regex:o("layoutData")},scratch:{mapping:!0,regex:o("scratch")},mapData:{mapping:!0,regex:a("mapData")},mapLayoutData:{mapping:!0,regex:a("mapLayoutData")},mapScratch:{mapping:!0,regex:a("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:s,singleRegexMatchValue:!0},urls:{regexes:s,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(t,e){switch(t.length){case 2:return"deg"!==e[0]&&"rad"!==e[0]&&"deg"!==e[1]&&"rad"!==e[1];case 1:return k(t[0])||"deg"===e[0]||"rad"===e[0];default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*,\\s*("+t+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(t){var e=t.length;return 1===e||2===e||4===e}}};var c={zeroNonZero:function(t,e){return(null==t||null==e)&&t!==e||0==t&&0!=e||0!=t&&0==e},any:function(t,e){return t!=e},emptyNonEmpty:function(t,e){var n=P(t),i=P(e);return n&&!i||!n&&i}},l=Yl.types,u=[{name:"label",type:l.text,triggersBounds:c.any,triggersZOrder:c.emptyNonEmpty},{name:"text-rotation",type:l.textRotation,triggersBounds:c.any},{name:"text-margin-x",type:l.bidirectionalSize,triggersBounds:c.any},{name:"text-margin-y",type:l.bidirectionalSize,triggersBounds:c.any}],h=[{name:"source-label",type:l.text,triggersBounds:c.any},{name:"source-text-rotation",type:l.textRotation,triggersBounds:c.any},{name:"source-text-margin-x",type:l.bidirectionalSize,triggersBounds:c.any},{name:"source-text-margin-y",type:l.bidirectionalSize,triggersBounds:c.any},{name:"source-text-offset",type:l.size,triggersBounds:c.any}],d=[{name:"target-label",type:l.text,triggersBounds:c.any},{name:"target-text-rotation",type:l.textRotation,triggersBounds:c.any},{name:"target-text-margin-x",type:l.bidirectionalSize,triggersBounds:c.any},{name:"target-text-margin-y",type:l.bidirectionalSize,triggersBounds:c.any},{name:"target-text-offset",type:l.size,triggersBounds:c.any}],f=[{name:"font-family",type:l.fontFamily,triggersBounds:c.any},{name:"font-style",type:l.fontStyle,triggersBounds:c.any},{name:"font-weight",type:l.fontWeight,triggersBounds:c.any},{name:"font-size",type:l.size,triggersBounds:c.any},{name:"text-transform",type:l.textTransform,triggersBounds:c.any},{name:"text-wrap",type:l.textWrap,triggersBounds:c.any},{name:"text-overflow-wrap",type:l.textOverflowWrap,triggersBounds:c.any},{name:"text-max-width",type:l.size,triggersBounds:c.any},{name:"text-outline-width",type:l.size,triggersBounds:c.any},{name:"line-height",type:l.positiveNumber,triggersBounds:c.any}],g=[{name:"text-valign",type:l.valign,triggersBounds:c.any},{name:"text-halign",type:l.halign,triggersBounds:c.any},{name:"color",type:l.color},{name:"text-outline-color",type:l.color},{name:"text-outline-opacity",type:l.zeroOneNumber},{name:"text-background-color",type:l.color},{name:"text-background-opacity",type:l.zeroOneNumber},{name:"text-background-padding",type:l.size,triggersBounds:c.any},{name:"text-border-opacity",type:l.zeroOneNumber},{name:"text-border-color",type:l.color},{name:"text-border-width",type:l.size,triggersBounds:c.any},{name:"text-border-style",type:l.borderStyle,triggersBounds:c.any},{name:"text-background-shape",type:l.textBackgroundShape,triggersBounds:c.any},{name:"text-justification",type:l.justification}],p=[{name:"events",type:l.bool},{name:"text-events",type:l.bool}],m=[{name:"display",type:l.display,triggersZOrder:c.any,triggersBounds:c.any,triggersBoundsOfParallelBeziers:!0},{name:"visibility",type:l.visibility,triggersZOrder:c.any},{name:"opacity",type:l.zeroOneNumber,triggersZOrder:c.zeroNonZero},{name:"text-opacity",type:l.zeroOneNumber},{name:"min-zoomed-font-size",type:l.size},{name:"z-compound-depth",type:l.zCompoundDepth,triggersZOrder:c.any},{name:"z-index-compare",type:l.zIndexCompare,triggersZOrder:c.any},{name:"z-index",type:l.nonNegativeInt,triggersZOrder:c.any}],b=[{name:"overlay-padding",type:l.size,triggersBounds:c.any},{name:"overlay-color",type:l.color},{name:"overlay-opacity",type:l.zeroOneNumber,triggersBounds:c.zeroNonZero},{name:"overlay-shape",type:l.overlayShape,triggersBounds:c.any}],w=[{name:"underlay-padding",type:l.size,triggersBounds:c.any},{name:"underlay-color",type:l.color},{name:"underlay-opacity",type:l.zeroOneNumber,triggersBounds:c.zeroNonZero},{name:"underlay-shape",type:l.overlayShape,triggersBounds:c.any}],v=[{name:"transition-property",type:l.propList},{name:"transition-duration",type:l.time},{name:"transition-delay",type:l.time},{name:"transition-timing-function",type:l.easing}],y=function(t,e){return"label"===e.value?-t.poolIndex():e.pfValue},_=[{name:"height",type:l.nodeSize,triggersBounds:c.any,hashOverride:y},{name:"width",type:l.nodeSize,triggersBounds:c.any,hashOverride:y},{name:"shape",type:l.nodeShape,triggersBounds:c.any},{name:"shape-polygon-points",type:l.polygonPointList,triggersBounds:c.any},{name:"background-color",type:l.color},{name:"background-fill",type:l.fill},{name:"background-opacity",type:l.zeroOneNumber},{name:"background-blacken",type:l.nOneOneNumber},{name:"background-gradient-stop-colors",type:l.colors},{name:"background-gradient-stop-positions",type:l.percentages},{name:"background-gradient-direction",type:l.gradientDirection},{name:"padding",type:l.sizeMaybePercent,triggersBounds:c.any},{name:"padding-relative-to",type:l.paddingRelativeTo,triggersBounds:c.any},{name:"bounds-expansion",type:l.boundsExpansion,triggersBounds:c.any}],C=[{name:"border-color",type:l.color},{name:"border-opacity",type:l.zeroOneNumber},{name:"border-width",type:l.size,triggersBounds:c.any},{name:"border-style",type:l.borderStyle}],A=[{name:"background-image",type:l.urls},{name:"background-image-crossorigin",type:l.bgCrossOrigin},{name:"background-image-opacity",type:l.zeroOneNumbers},{name:"background-image-containment",type:l.bgContainment},{name:"background-image-smoothing",type:l.bools},{name:"background-position-x",type:l.bgPos},{name:"background-position-y",type:l.bgPos},{name:"background-width-relative-to",type:l.bgRelativeTo},{name:"background-height-relative-to",type:l.bgRelativeTo},{name:"background-repeat",type:l.bgRepeat},{name:"background-fit",type:l.bgFit},{name:"background-clip",type:l.bgClip},{name:"background-width",type:l.bgWH},{name:"background-height",type:l.bgWH},{name:"background-offset-x",type:l.bgPos},{name:"background-offset-y",type:l.bgPos}],x=[{name:"position",type:l.position,triggersBounds:c.any},{name:"compound-sizing-wrt-labels",type:l.compoundIncludeLabels,triggersBounds:c.any},{name:"min-width",type:l.size,triggersBounds:c.any},{name:"min-width-bias-left",type:l.sizeMaybePercent,triggersBounds:c.any},{name:"min-width-bias-right",type:l.sizeMaybePercent,triggersBounds:c.any},{name:"min-height",type:l.size,triggersBounds:c.any},{name:"min-height-bias-top",type:l.sizeMaybePercent,triggersBounds:c.any},{name:"min-height-bias-bottom",type:l.sizeMaybePercent,triggersBounds:c.any}],E=[{name:"line-style",type:l.lineStyle},{name:"line-color",type:l.color},{name:"line-fill",type:l.fill},{name:"line-cap",type:l.lineCap},{name:"line-opacity",type:l.zeroOneNumber},{name:"line-dash-pattern",type:l.numbers},{name:"line-dash-offset",type:l.number},{name:"line-gradient-stop-colors",type:l.colors},{name:"line-gradient-stop-positions",type:l.percentages},{name:"curve-style",type:l.curveStyle,triggersBounds:c.any,triggersBoundsOfParallelBeziers:!0},{name:"haystack-radius",type:l.zeroOneNumber,triggersBounds:c.any},{name:"source-endpoint",type:l.edgeEndpoint,triggersBounds:c.any},{name:"target-endpoint",type:l.edgeEndpoint,triggersBounds:c.any},{name:"control-point-step-size",type:l.size,triggersBounds:c.any},{name:"control-point-distances",type:l.bidirectionalSizes,triggersBounds:c.any},{name:"control-point-weights",type:l.numbers,triggersBounds:c.any},{name:"segment-distances",type:l.bidirectionalSizes,triggersBounds:c.any},{name:"segment-weights",type:l.numbers,triggersBounds:c.any},{name:"taxi-turn",type:l.bidirectionalSizeMaybePercent,triggersBounds:c.any},{name:"taxi-turn-min-distance",type:l.size,triggersBounds:c.any},{name:"taxi-direction",type:l.axisDirection,triggersBounds:c.any},{name:"edge-distances",type:l.edgeDistances,triggersBounds:c.any},{name:"arrow-scale",type:l.positiveNumber,triggersBounds:c.any},{name:"loop-direction",type:l.angle,triggersBounds:c.any},{name:"loop-sweep",type:l.angle,triggersBounds:c.any},{name:"source-distance-from-node",type:l.size,triggersBounds:c.any},{name:"target-distance-from-node",type:l.size,triggersBounds:c.any}],T=[{name:"ghost",type:l.bool,triggersBounds:c.any},{name:"ghost-offset-x",type:l.bidirectionalSize,triggersBounds:c.any},{name:"ghost-offset-y",type:l.bidirectionalSize,triggersBounds:c.any},{name:"ghost-opacity",type:l.zeroOneNumber}],S=[{name:"selection-box-color",type:l.color},{name:"selection-box-opacity",type:l.zeroOneNumber},{name:"selection-box-border-color",type:l.color},{name:"selection-box-border-width",type:l.size},{name:"active-bg-color",type:l.color},{name:"active-bg-opacity",type:l.zeroOneNumber},{name:"active-bg-size",type:l.size},{name:"outside-texture-bg-color",type:l.color},{name:"outside-texture-bg-opacity",type:l.zeroOneNumber}],D=[];Yl.pieBackgroundN=16,D.push({name:"pie-size",type:l.sizeMaybePercent});for(var I=1;I<=Yl.pieBackgroundN;I++)D.push({name:"pie-"+I+"-background-color",type:l.color}),D.push({name:"pie-"+I+"-background-size",type:l.percent}),D.push({name:"pie-"+I+"-background-opacity",type:l.zeroOneNumber});var B=[],M=Yl.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:l.arrowShape,triggersBounds:c.any},{name:"arrow-color",type:l.color},{name:"arrow-fill",type:l.arrowFill}].forEach((function(t){M.forEach((function(e){var n=e+"-"+t.name,i=t.type,r=t.triggersBounds;B.push({name:n,type:i,triggersBounds:r})}))}),{});var L=Yl.properties=[].concat(p,v,m,b,w,T,g,f,u,h,d,_,C,A,D,x,E,B,S),O=Yl.propertyGroups={behavior:p,transition:v,visibility:m,overlay:b,underlay:w,ghost:T,commonLabel:g,labelDimensions:f,mainLabel:u,sourceLabel:h,targetLabel:d,nodeBody:_,nodeBorder:C,backgroundImage:A,pie:D,compound:x,edgeLine:E,edgeArrow:B,core:S},N=Yl.propertyGroupNames={};(Yl.propertyGroupKeys=Object.keys(O)).forEach((function(t){N[t]=O[t].map((function(t){return t.name})),O[t].forEach((function(e){return e.groupKey=t}))}));var R=Yl.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];Yl.propertyNames=L.map((function(t){return t.name}));for(var F=0;F<L.length;F++){var j=L[F];L[j.name]=j}for(var $=0;$<R.length;$++){var z=R[$],V=L[z.pointsTo],q={name:z.name,alias:!0,pointsTo:V};L.push(q),L[z.name]=q}}(),Yl.getDefaultProperty=function(t){return this.getDefaultProperties()[t]},Yl.getDefaultProperties=function(){var t=this._private;if(null!=t.defaultProperties)return t.defaultProperties;for(var e=Q({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1, 1, -1, 1, 1, -1, 1","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce((function(t,e){for(var n=1;n<=Yl.pieBackgroundN;n++){var i=e.name.replace("{{i}}",n),r=e.value;t[i]=r}return t}),{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"taxi-turn":"50%","taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"}].reduce((function(t,e){return Yl.arrowPrefixes.forEach((function(n){var i=n+"-"+e.name,r=e.value;t[i]=r})),t}),{})),n={},i=0;i<this.properties.length;i++){var r=this.properties[i];if(!r.pointsTo){var o=r.name,a=e[o],s=this.parse(o,a);n[o]=s}}return t.defaultProperties=n,t.defaultProperties},Yl.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var Xl={parse:function(t,e,n,i){var r=this;if(v(e))return r.parseImplWarn(t,e,n,i);var o,a=pe(t,""+e,n?"t":"f","mapping"===i||!0===i||!1===i||null==i?"dontcare":i),s=r.propCache=r.propCache||[];return(o=s[a])||(o=s[a]=r.parseImplWarn(t,e,n,i)),(n||"mapping"===i)&&(o=De(o))&&(o.value=De(o.value)),o},parseImplWarn:function(t,e,n,i){var r=this.parseImpl(t,e,n,i);return r||null==e||Te("The style property `".concat(t,": ").concat(e,"` is invalid")),!r||"width"!==r.name&&"height"!==r.name||"label"!==e||Te("The style value of `label` is deprecated for `"+r.name+"`"),r},parseImpl:function(t,e,n,i){var r=this;t=j(t);var o=r.properties[t],a=e,s=r.types;if(!o)return null;if(void 0===e)return null;o.alias&&(o=o.pointsTo,t=o.name);var c=k(e);c&&(e=e.trim());var l,u,h=o.type;if(!h)return null;if(n&&(""===e||null===e))return{name:t,value:e,bypass:!0,deleteBypass:!0};if(v(e))return{name:t,value:e,strValue:"fn",mapped:s.fn,bypass:n};if(!c||i||e.length<7||"a"!==e[1]);else{if(e.length>=7&&"d"===e[0]&&(l=new RegExp(s.data.regex).exec(e))){if(n)return!1;var d=s.data;return{name:t,value:l,strValue:""+e,mapped:d,field:l[1],bypass:n}}if(e.length>=10&&"m"===e[0]&&(u=new RegExp(s.mapData.regex).exec(e))){if(n)return!1;if(h.multiple)return!1;var f=s.mapData;if(!h.color&&!h.number)return!1;var g=this.parse(t,u[4]);if(!g||g.mapped)return!1;var p=this.parse(t,u[5]);if(!p||p.mapped)return!1;if(g.pfValue===p.pfValue||g.strValue===p.strValue)return Te("`"+t+": "+e+"` is not a valid mapper because the output range is zero; converting to `"+t+": "+g.strValue+"`"),this.parse(t,g.strValue);if(h.color){var m=g.value,b=p.value;if(!(m[0]!==b[0]||m[1]!==b[1]||m[2]!==b[2]||m[3]!==b[3]&&(null!=m[3]&&1!==m[3]||null!=b[3]&&1!==b[3])))return!1}return{name:t,value:u,strValue:""+e,mapped:f,field:u[1],fieldMin:parseFloat(u[2]),fieldMax:parseFloat(u[3]),valueMin:g.value,valueMax:p.value,bypass:n}}}if(h.multiple&&"multiple"!==i){var w;if(w=c?e.split(/\s+/):y(e)?e:[e],h.evenMultiple&&w.length%2!=0)return null;for(var _=[],C=[],A=[],E="",T=!1,S=0;S<w.length;S++){var D=r.parse(t,w[S],n,"multiple");T=T||k(D.value),_.push(D.value),A.push(null!=D.pfValue?D.pfValue:D.value),C.push(D.units),E+=(S>0?" ":"")+D.strValue}return h.validate&&!h.validate(_,C)?null:h.singleEnum&&T?1===_.length&&k(_[0])?{name:t,value:_[0],strValue:_[0],bypass:n}:null:{name:t,value:_,pfValue:A,strValue:E,bypass:n,units:C}}var I=function(){for(var i=0;i<h.enums.length;i++)if(h.enums[i]===e)return{name:t,value:e,strValue:""+e,bypass:n};return null};if(h.number){var B,M="px";if(h.units&&(B=h.units),h.implicitUnits&&(M=h.implicitUnits),!h.unitless)if(c){var P="px|em"+(h.allowPercent?"|\\%":"");B&&(P=B);var L=e.match("^("+H+")("+P+")?$");L&&(e=L[1],B=L[2]||M)}else B&&!h.implicitUnits||(B=M);if(e=parseFloat(e),isNaN(e)&&void 0===h.enums)return null;if(isNaN(e)&&void 0!==h.enums)return e=a,I();if(h.integer&&!x(e))return null;if(void 0!==h.min&&(e<h.min||h.strictMin&&e===h.min)||void 0!==h.max&&(e>h.max||h.strictMax&&e===h.max))return null;var O={name:t,value:e,strValue:""+e+(B||""),units:B,bypass:n};return h.unitless||"px"!==B&&"em"!==B?O.pfValue=e:O.pfValue="px"!==B&&B?this.getEmSizeInPixels()*e:e,"ms"!==B&&"s"!==B||(O.pfValue="ms"===B?e:1e3*e),"deg"!==B&&"rad"!==B||(O.pfValue="rad"===B?e:bn(e)),"%"===B&&(O.pfValue=e/100),O}if(h.propList){var N=[],R=""+e;if("none"===R);else{for(var F=R.split(/\s*,\s*|\s+/),$=0;$<F.length;$++){var z=F[$].trim();r.properties[z]?N.push(z):Te("`"+z+"` is not a valid property name")}if(0===N.length)return null}return{name:t,value:N,strValue:0===N.length?"none":N.join(" "),bypass:n}}if(h.color){var V=it(e);return V?{name:t,value:V,pfValue:V,strValue:"rgb("+V[0]+","+V[1]+","+V[2]+")",bypass:n}:null}if(h.regex||h.regexes){if(h.enums){var q=I();if(q)return q}for(var U=h.regexes?h.regexes:[h.regex],G=0;G<U.length;G++){var W=new RegExp(U[G]).exec(e);if(W)return{name:t,value:h.singleRegexMatchValue?W[1]:W,strValue:""+e,bypass:n}}return null}return h.string?{name:t,value:""+e,strValue:""+e,bypass:n}:h.enums?I():null}},Zl=function t(e){if(!(this instanceof t))return new t(e);I(e)?(this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()):xe("A style must have a core reference")},Ql=Zl.prototype;Ql.instanceString=function(){return"style"},Ql.clear=function(){for(var t=this._private,e=t.cy.elements(),n=0;n<this.length;n++)this[n]=void 0;return this.length=0,t.contextStyles={},t.propDiffs={},this.cleanElements(e,!0),e.forEach((function(t){var e=t[0]._private;e.styleDirty=!0,e.appliedInitStyle=!1})),this},Ql.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},Ql.core=function(t){return this._private.coreStyle[t]||this.getDefaultProperty(t)},Ql.selector=function(t){var e="core"===t?null:new Ps(t),n=this.length++;return this[n]={selector:e,properties:[],mappedProperties:[],index:n},this},Ql.css=function(){var t=this,e=arguments;if(1===e.length)for(var n=e[0],i=0;i<t.properties.length;i++){var r=t.properties[i],o=n[r.name];void 0===o&&(o=n[$(r.name)]),void 0!==o&&this.cssRule(r.name,o)}else 2===e.length&&this.cssRule(e[0],e[1]);return this},Ql.style=Ql.css,Ql.cssRule=function(t,e){var n=this.parse(t,e);if(n){var i=this.length-1;this[i].properties.push(n),this[i].properties[n.name]=n,n.name.match(/pie-(\d+)-background-size/)&&n.value&&(this._private.hasPie=!0),n.mapped&&this[i].mappedProperties.push(n),!this[i].selector&&(this._private.coreStyle[n.name]=n)}return this},Ql.append=function(t){return B(t)?t.appendToStyle(this):y(t)?this.appendFromJson(t):k(t)&&this.appendFromString(t),this},Zl.fromJson=function(t,e){var n=new Zl(t);return n.fromJson(e),n},Zl.fromString=function(t,e){return new Zl(t).fromString(e)},[zl,ql,Ul,Gl,Wl,Kl,Yl,Xl].forEach((function(t){Q(Ql,t)})),Zl.types=Ql.types,Zl.properties=Ql.properties,Zl.propertyGroups=Ql.propertyGroups,Zl.propertyGroupNames=Ql.propertyGroupNames,Zl.propertyGroupKeys=Ql.propertyGroupKeys;var Jl={style:function(t){return t&&this.setStyle(t).update(),this._private.style},setStyle:function(t){var e=this._private;return B(t)?e.style=t.generateStyle(this):y(t)?e.style=Zl.fromJson(this,t):k(t)?e.style=Zl.fromString(this,t):e.style=Zl(this),e.style},updateStyle:function(){this.mutableElements().updateStyle()}},tu="single",eu={autolock:function(t){return void 0===t?this._private.autolock:(this._private.autolock=!!t,this)},autoungrabify:function(t){return void 0===t?this._private.autoungrabify:(this._private.autoungrabify=!!t,this)},autounselectify:function(t){return void 0===t?this._private.autounselectify:(this._private.autounselectify=!!t,this)},selectionType:function(t){var e=this._private;return null==e.selectionType&&(e.selectionType=tu),void 0===t?e.selectionType:("additive"!==t&&"single"!==t||(e.selectionType=t),this)},panningEnabled:function(t){return void 0===t?this._private.panningEnabled:(this._private.panningEnabled=!!t,this)},userPanningEnabled:function(t){return void 0===t?this._private.userPanningEnabled:(this._private.userPanningEnabled=!!t,this)},zoomingEnabled:function(t){return void 0===t?this._private.zoomingEnabled:(this._private.zoomingEnabled=!!t,this)},userZoomingEnabled:function(t){return void 0===t?this._private.userZoomingEnabled:(this._private.userZoomingEnabled=!!t,this)},boxSelectionEnabled:function(t){return void 0===t?this._private.boxSelectionEnabled:(this._private.boxSelectionEnabled=!!t,this)},pan:function(){var t,e,n,i,r,o=arguments,a=this._private.pan;switch(o.length){case 0:return a;case 1:if(k(o[0]))return a[t=o[0]];if(_(o[0])){if(!this._private.panningEnabled)return this;i=(n=o[0]).x,r=n.y,A(i)&&(a.x=i),A(r)&&(a.y=r),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;t=o[0],e=o[1],"x"!==t&&"y"!==t||!A(e)||(a[t]=e),this.emit("pan viewport")}return this.notify("viewport"),this},panBy:function(t,e){var n,i,r,o,a,s=arguments,c=this._private.pan;if(!this._private.panningEnabled)return this;switch(s.length){case 1:_(t)&&(o=(r=s[0]).x,a=r.y,A(o)&&(c.x+=o),A(a)&&(c.y+=a),this.emit("pan viewport"));break;case 2:i=e,"x"!==(n=t)&&"y"!==n||!A(i)||(c[n]+=i),this.emit("pan viewport")}return this.notify("viewport"),this},fit:function(t,e){var n=this.getFitViewport(t,e);if(n){var i=this._private;i.zoom=n.zoom,i.pan=n.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(t,e){if(A(t)&&void 0===e&&(e=t,t=void 0),this._private.panningEnabled&&this._private.zoomingEnabled){var n;if(k(t)){var i=t;t=this.$(i)}else if(O(t)){var r=t;(n={x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}).w=n.x2-n.x1,n.h=n.y2-n.y1}else T(t)||(t=this.mutableElements());if(!T(t)||!t.empty()){n=n||t.boundingBox();var o,a=this.width(),s=this.height();if(e=A(e)?e:0,!isNaN(a)&&!isNaN(s)&&a>0&&s>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:o=(o=(o=Math.min((a-2*e)/n.w,(s-2*e)/n.h))>this._private.maxZoom?this._private.maxZoom:o)<this._private.minZoom?this._private.minZoom:o,pan:{x:(a-o*(n.x1+n.x2))/2,y:(s-o*(n.y1+n.y2))/2}}}}},zoomRange:function(t,e){var n=this._private;if(null==e){var i=t;t=i.min,e=i.max}return A(t)&&A(e)&&t<=e?(n.minZoom=t,n.maxZoom=e):A(t)&&void 0===e&&t<=n.maxZoom?n.minZoom=t:A(e)&&void 0===t&&e>=n.minZoom&&(n.maxZoom=e),this},minZoom:function(t){return void 0===t?this._private.minZoom:this.zoomRange({min:t})},maxZoom:function(t){return void 0===t?this._private.maxZoom:this.zoomRange({max:t})},getZoomedViewport:function(t){var e,n,i=this._private,r=i.pan,o=i.zoom,a=!1;if(i.zoomingEnabled||(a=!0),A(t)?n=t:_(t)&&(n=t.level,null!=t.position?e=un(t.position,o,r):null!=t.renderedPosition&&(e=t.renderedPosition),null==e||i.panningEnabled||(a=!0)),n=(n=n>i.maxZoom?i.maxZoom:n)<i.minZoom?i.minZoom:n,a||!A(n)||n===o||null!=e&&(!A(e.x)||!A(e.y)))return null;if(null!=e){var s=r,c=o,l=n;return{zoomed:!0,panned:!0,zoom:l,pan:{x:-l/c*(e.x-s.x)+e.x,y:-l/c*(e.y-s.y)+e.y}}}return{zoomed:!0,panned:!1,zoom:n,pan:r}},zoom:function(t){if(void 0===t)return this._private.zoom;var e=this.getZoomedViewport(t),n=this._private;return null!=e&&e.zoomed?(n.zoom=e.zoom,e.panned&&(n.pan.x=e.pan.x,n.pan.y=e.pan.y),this.emit("zoom"+(e.panned?" pan":"")+" viewport"),this.notify("viewport"),this):this},viewport:function(t){var e=this._private,n=!0,i=!0,r=[],o=!1,a=!1;if(!t)return this;if(A(t.zoom)||(n=!1),_(t.pan)||(i=!1),!n&&!i)return this;if(n){var s=t.zoom;s<e.minZoom||s>e.maxZoom||!e.zoomingEnabled?o=!0:(e.zoom=s,r.push("zoom"))}if(i&&(!o||!t.cancelOnFailedZoom)&&e.panningEnabled){var c=t.pan;A(c.x)&&(e.pan.x=c.x,a=!1),A(c.y)&&(e.pan.y=c.y,a=!1),a||r.push("pan")}return r.length>0&&(r.push("viewport"),this.emit(r.join(" ")),this.notify("viewport")),this},center:function(t){var e=this.getCenterPan(t);return e&&(this._private.pan=e,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(t,e){if(this._private.panningEnabled){if(k(t)){var n=t;t=this.mutableElements().filter(n)}else T(t)||(t=this.mutableElements());if(0!==t.length){var i=t.boundingBox(),r=this.width(),o=this.height();return{x:(r-(e=void 0===e?this._private.zoom:e)*(i.x1+i.x2))/2,y:(o-e*(i.y1+i.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var t,e,n=this._private,i=n.container;return n.sizeCache=n.sizeCache||(i?(t=d.getComputedStyle(i),e=function(e){return parseFloat(t.getPropertyValue(e))},{width:i.clientWidth-e("padding-left")-e("padding-right"),height:i.clientHeight-e("padding-top")-e("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var t=this._private.pan,e=this._private.zoom,n=this.renderedExtent(),i={x1:(n.x1-t.x)/e,x2:(n.x2-t.x)/e,y1:(n.y1-t.y)/e,y2:(n.y2-t.y)/e};return i.w=i.x2-i.x1,i.h=i.y2-i.y1,i},renderedExtent:function(){var t=this.width(),e=this.height();return{x1:0,y1:0,x2:t,y2:e,w:t,h:e}},multiClickDebounceTime:function(t){return t?(this._private.multiClickDebounceTime=t,this):this._private.multiClickDebounceTime}};eu.centre=eu.center,eu.autolockNodes=eu.autolock,eu.autoungrabifyNodes=eu.autoungrabify;var nu={data:ls.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ls.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ls.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ls.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};nu.attr=nu.data,nu.removeAttr=nu.removeData;var iu=function(t){var e=this,n=(t=Q({},t)).container;n&&!E(n)&&E(n[0])&&(n=n[0]);var i=n?n._cyreg:null;(i=i||{})&&i.cy&&(i.cy.destroy(),i={});var r=i.readies=i.readies||[];n&&(n._cyreg=i),i.cy=e;var o=void 0!==d&&void 0!==n&&!t.headless,a=t;a.layout=Q({name:o?"grid":"null"},a.layout),a.renderer=Q({name:o?"canvas":"null"},a.renderer);var s=function(t,e,n){return void 0!==e?e:void 0!==n?n:t},c=this._private={container:n,ready:!1,options:a,elements:new bl(this),listeners:[],aniEles:new bl(this),data:a.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,a.zoomingEnabled),userZoomingEnabled:s(!0,a.userZoomingEnabled),panningEnabled:s(!0,a.panningEnabled),userPanningEnabled:s(!0,a.userPanningEnabled),boxSelectionEnabled:s(!0,a.boxSelectionEnabled),autolock:s(!1,a.autolock,a.autolockNodes),autoungrabify:s(!1,a.autoungrabify,a.autoungrabifyNodes),autounselectify:s(!1,a.autounselectify),styleEnabled:void 0===a.styleEnabled?o:a.styleEnabled,zoom:A(a.zoom)?a.zoom:1,pan:{x:_(a.pan)&&A(a.pan.x)?a.pan.x:0,y:_(a.pan)&&A(a.pan.y)?a.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,a.multiClickDebounceTime)};this.createEmitter(),this.selectionType(a.selectionType),this.zoomRange({min:a.minZoom,max:a.maxZoom});var l=function(t,e){if(t.some(N))return jr.all(t).then(e);e(t)};c.styleEnabled&&e.setStyle([]);var u=Q({},a,a.renderer);e.initRenderer(u);var h=function(t,n,i){e.notifications(!1);var r=e.mutableElements();r.length>0&&r.remove(),null!=t&&(_(t)||y(t))&&e.add(t),e.one("layoutready",(function(t){e.notifications(!0),e.emit(t),e.one("load",n),e.emitAndNotify("load")})).one("layoutstop",(function(){e.one("done",i),e.emit("done")}));var o=Q({},e._private.options.layout);o.eles=e.elements(),e.layout(o).run()};l([a.style,a.elements],(function(t){var n=t[0],o=t[1];c.styleEnabled&&e.style().append(n),h(o,(function(){e.startAnimationLoop(),c.ready=!0,v(a.ready)&&e.on("ready",a.ready);for(var t=0;t<r.length;t++){var n=r[t];e.on("ready",n)}i&&(i.readies=[]),e.emit("ready")}),a.done)}))},ru=iu.prototype;Q(ru,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(t){return this.isReady()?this.emitter().emit("ready",[],t):this.on("ready",t),this},destroy:function(){var t=this;if(!t.destroyed())return t.stopAnimationLoop(),t.destroyRenderer(),this.emit("destroy"),t._private.destroyed=!0,t},hasElementWithId:function(t){return this._private.elements.hasElementWithId(t)},getElementById:function(t){return this._private.elements.getElementById(t)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(t){return this._private.elements.merge(t),this},removeFromPool:function(t){return this._private.elements.unmerge(t),this},container:function(){return this._private.container||null},mount:function(t){if(null!=t){var e=this,n=e._private,i=n.options;return!E(t)&&E(t[0])&&(t=t[0]),e.stopAnimationLoop(),e.destroyRenderer(),n.container=t,n.styleEnabled=!0,e.invalidateSize(),e.initRenderer(Q({},i,i.renderer,{name:"null"===i.renderer.name?"canvas":i.renderer.name})),e.startAnimationLoop(),e.style(i.style),e.emit("mount"),e}},unmount:function(){var t=this;return t.stopAnimationLoop(),t.destroyRenderer(),t.initRenderer({name:"null"}),t.emit("unmount"),t},options:function(){return De(this._private.options)},json:function(t){var e=this,n=e._private,i=e.mutableElements(),r=function(t){return e.getElementById(t.id())};if(_(t)){if(e.startBatch(),t.elements){var o={},a=function(t,n){for(var i=[],r=[],a=0;a<t.length;a++){var s=t[a];if(s.data.id){var c=""+s.data.id,l=e.getElementById(c);o[c]=!0,0!==l.length?r.push({ele:l,json:s}):n?(s.group=n,i.push(s)):i.push(s)}else Te("cy.json() cannot handle elements without an ID attribute")}e.add(i);for(var u=0;u<r.length;u++){var h=r[u],d=h.ele,f=h.json;d.json(f)}};if(y(t.elements))a(t.elements);else for(var s=["nodes","edges"],c=0;c<s.length;c++){var l=s[c],u=t.elements[l];y(u)&&a(u,l)}var h=e.collection();i.filter((function(t){return!o[t.id()]})).forEach((function(t){t.isParent()?h.merge(t):t.remove()})),h.forEach((function(t){return t.children().move({parent:null})})),h.forEach((function(t){return r(t).remove()}))}t.style&&e.style(t.style),null!=t.zoom&&t.zoom!==n.zoom&&e.zoom(t.zoom),t.pan&&(t.pan.x===n.pan.x&&t.pan.y===n.pan.y||e.pan(t.pan)),t.data&&e.data(t.data);for(var d=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],f=0;f<d.length;f++){var g=d[f];null!=t[g]&&e[g](t[g])}return e.endBatch(),this}var p={};t?p.elements=this.elements().map((function(t){return t.json()})):(p.elements={},i.forEach((function(t){var e=t.group();p.elements[e]||(p.elements[e]=[]),p.elements[e].push(t.json())}))),this._private.styleEnabled&&(p.style=e.style().json()),p.data=De(e.data());var m=n.options;return p.zoomingEnabled=n.zoomingEnabled,p.userZoomingEnabled=n.userZoomingEnabled,p.zoom=n.zoom,p.minZoom=n.minZoom,p.maxZoom=n.maxZoom,p.panningEnabled=n.panningEnabled,p.userPanningEnabled=n.userPanningEnabled,p.pan=De(n.pan),p.boxSelectionEnabled=n.boxSelectionEnabled,p.renderer=De(m.renderer),p.hideEdgesOnViewport=m.hideEdgesOnViewport,p.textureOnViewport=m.textureOnViewport,p.wheelSensitivity=m.wheelSensitivity,p.motionBlur=m.motionBlur,p.multiClickDebounceTime=m.multiClickDebounceTime,p}}),ru.$id=ru.getElementById,[kl,Bl,Ll,Ol,Nl,Rl,jl,$l,Jl,eu,nu].forEach((function(t){Q(ru,t)}));var ou={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,maximal:!1,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}},au=function(t){return t.scratch("breadthfirst")},su=function(t,e){return t.scratch("breadthfirst",e)};function cu(t){this.options=Q({},ou,t)}cu.prototype.run=function(){var t,e=this.options,n=e,i=e.cy,r=n.eles,o=r.nodes().filter((function(t){return!t.isParent()})),a=r,s=n.directed,c=n.maximal||n.maximalAdjustments>0,l=Sn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()});if(T(n.roots))t=n.roots;else if(y(n.roots)){for(var u=[],h=0;h<n.roots.length;h++){var d=n.roots[h],f=i.getElementById(d);u.push(f)}t=i.collection(u)}else if(k(n.roots))t=i.$(n.roots);else if(s)t=o.roots();else{var g=r.components();t=i.collection();for(var p=function(e){var n=g[e],i=n.maxDegree(!1),r=n.filter((function(t){return t.degree(!1)===i}));t=t.add(r)},m=0;m<g.length;m++)p(m)}var b=[],w={},v=function(t,e){null==b[e]&&(b[e]=[]);var n=b[e].length;b[e].push(t),su(t,{index:n,depth:e})},_=function(t,e){var n=au(t),i=n.depth,r=n.index;b[i][r]=null,v(t,e)};a.bfs({roots:t,directed:n.directed,visit:function(t,e,n,i,r){var o=t[0],a=o.id();v(o,r),w[a]=!0}});for(var C=[],A=0;A<o.length;A++){var x=o[A];w[x.id()]||C.push(x)}var E=function(t){for(var e=b[t],n=0;n<e.length;n++){var i=e[n];null!=i?su(i,{depth:t,index:n}):(e.splice(n,1),n--)}},S=function(){for(var t=0;t<b.length;t++)E(t)},D=function(t,e){for(var n=au(t),i=t.incomers().filter((function(t){return t.isNode()&&r.has(t)})),o=-1,a=t.id(),s=0;s<i.length;s++){var c=i[s],l=au(c);o=Math.max(o,l.depth)}return n.depth<=o&&(e[a]?null:(_(t,o+1),e[a]=!0,!0))};if(s&&c){var I=[],B={},M=function(t){return I.push(t)},P=function(){return I.shift()};for(o.forEach((function(t){return I.push(t)}));I.length>0;){var L=P(),O=D(L,B);if(O)L.outgoers().filter((function(t){return t.isNode()&&r.has(t)})).forEach(M);else if(null===O){Te("Detected double maximal shift for node `"+L.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}S();var N=0;if(n.avoidOverlap)for(var R=0;R<o.length;R++){var F=o[R].layoutDimensions(n),j=F.w,$=F.h;N=Math.max(N,j,$)}var z={},V=function(t){if(z[t.id()])return z[t.id()];for(var e=au(t).depth,n=t.neighborhood(),i=0,r=0,a=0;a<n.length;a++){var s=n[a];if(!s.isEdge()&&!s.isParent()&&o.has(s)){var c=au(s);if(null!=c){var l=c.index,u=c.depth;if(null!=l&&null!=u){var h=b[u].length;u<e&&(i+=l/h,r++)}}}}return i/=r=Math.max(1,r),0===r&&(i=0),z[t.id()]=i,i},H=function(t,e){var n=V(t)-V(e);return 0===n?X(t.id(),e.id()):n};void 0!==n.depthSort&&(H=n.depthSort);for(var q=0;q<b.length;q++)b[q].sort(H),E(q);for(var U=[],G=0;G<C.length;G++)U.push(C[G]);b.unshift(U),S();for(var W=0,K=0;K<b.length;K++)W=Math.max(b[K].length,W);var Y={x:l.x1+l.w/2,y:l.x1+l.h/2},Z=b.reduce((function(t,e){return Math.max(t,e.length)}),0),Q=function(t){var e=au(t),i=e.depth,r=e.index,o=b[i].length,a=Math.max(l.w/((n.grid?Z:o)+1),N),s=Math.max(l.h/(b.length+1),N),c=Math.min(l.w/2/b.length,l.h/2/b.length);if(c=Math.max(c,N),n.circle){var u=c*i+c-(b.length>0&&b[0].length<=3?c/2:0),h=2*Math.PI/b[i].length*r;return 0===i&&1===b[0].length&&(u=1),{x:Y.x+u*Math.cos(h),y:Y.y+u*Math.sin(h)}}return{x:Y.x+(r+1-(o+1)/2)*a,y:(i+1)*s}};return r.nodes().layoutPositions(this,n,Q),this};var lu={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function uu(t){this.options=Q({},lu,t)}uu.prototype.run=function(){var t=this.options,e=t,n=t.cy,i=e.eles,r=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,o=i.nodes().not(":parent");e.sort&&(o=o.sort(e.sort));for(var a,s=Sn(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),c={x:s.x1+s.w/2,y:s.y1+s.h/2},l=(void 0===e.sweep?2*Math.PI-2*Math.PI/o.length:e.sweep)/Math.max(1,o.length-1),u=0,h=0;h<o.length;h++){var d=o[h].layoutDimensions(e),f=d.w,g=d.h;u=Math.max(u,f,g)}if(a=A(e.radius)?e.radius:o.length<=1?0:Math.min(s.h,s.w)/2-u,o.length>1&&e.avoidOverlap){u*=1.75;var p=Math.cos(l)-Math.cos(0),m=Math.sin(l)-Math.sin(0),b=Math.sqrt(u*u/(p*p+m*m));a=Math.max(b,a)}var w=function(t,n){var i=e.startAngle+n*l*(r?1:-1),o=a*Math.cos(i),s=a*Math.sin(i);return{x:c.x+o,y:c.y+s}};return i.nodes().layoutPositions(this,e,w),this};var hu,du={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(t){return t.degree()},levelWidth:function(t){return t.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function fu(t){this.options=Q({},du,t)}fu.prototype.run=function(){for(var t=this.options,e=t,n=void 0!==e.counterclockwise?!e.counterclockwise:e.clockwise,i=t.cy,r=e.eles,o=r.nodes().not(":parent"),a=Sn(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()}),s={x:a.x1+a.w/2,y:a.y1+a.h/2},c=[],l=0,u=0;u<o.length;u++){var h=o[u],d=void 0;d=e.concentric(h),c.push({value:d,node:h}),h._private.scratch.concentric=d}o.updateStyle();for(var f=0;f<o.length;f++){var g=o[f].layoutDimensions(e);l=Math.max(l,g.w,g.h)}c.sort((function(t,e){return e.value-t.value}));for(var p=e.levelWidth(o),m=[[]],b=m[0],w=0;w<c.length;w++){var k=c[w];b.length>0&&Math.abs(b[0].value-k.value)>=p&&(b=[],m.push(b)),b.push(k)}var v=l+e.minNodeSpacing;if(!e.avoidOverlap){var y=m.length>0&&m[0].length>1,_=(Math.min(a.w,a.h)/2-v)/(m.length+y?1:0);v=Math.min(v,_)}for(var C=0,A=0;A<m.length;A++){var x=m[A],E=void 0===e.sweep?2*Math.PI-2*Math.PI/x.length:e.sweep,T=x.dTheta=E/Math.max(1,x.length-1);if(x.length>1&&e.avoidOverlap){var S=Math.cos(T)-Math.cos(0),D=Math.sin(T)-Math.sin(0),I=Math.sqrt(v*v/(S*S+D*D));C=Math.max(I,C)}x.r=C,C+=v}if(e.equidistant){for(var B=0,M=0,P=0;P<m.length;P++){var L=m[P].r-M;B=Math.max(B,L)}M=0;for(var O=0;O<m.length;O++){var N=m[O];0===O&&(M=N.r),N.r=M,M+=B}}for(var R={},F=0;F<m.length;F++)for(var j=m[F],$=j.dTheta,z=j.r,V=0;V<j.length;V++){var H=j[V],q=e.startAngle+(n?1:-1)*$*V,U={x:s.x+z*Math.cos(q),y:s.y+z*Math.sin(q)};R[H.node.id()]=U}return r.nodes().layoutPositions(this,e,(function(t){var e=t.id();return R[e]})),this};var gu={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(t,e){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(t){return 2048},nodeOverlap:4,idealEdgeLength:function(t){return 32},edgeElasticity:function(t){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function pu(t){this.options=Q({},gu,t),this.options.layout=this}pu.prototype.run=function(){var t=this.options,e=t.cy,n=this;n.stopped=!1,!0!==t.animate&&!1!==t.animate||n.emit({type:"layoutstart",layout:n}),hu=!0===t.debug;var i=bu(e,n,t);hu&&mu(i),t.randomize&&vu(i);var r=ie(),o=function(){_u(i,e,t),!0===t.fit&&e.fit(t.padding)},a=function(e){return!(n.stopped||e>=t.numIter||(Cu(i,t),i.temperature=i.temperature*t.coolingFactor,i.temperature<t.minTemp))},s=function(){if(!0===t.animate||!1===t.animate)o(),n.one("layoutstop",t.stop),n.emit({type:"layoutstop",layout:n});else{var e=t.eles.nodes(),r=yu(i,t,e);e.layoutPositions(n,t,r)}},c=0,l=!0;if(!0===t.animate)!function e(){for(var n=0;l&&n<t.refresh;)l=a(c),c++,n++;l?(ie()-r>=t.animationThreshold&&o(),ne(e)):(Ou(i,t),s())}();else{for(;l;)l=a(c),c++;Ou(i,t),s()}return this},pu.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},pu.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var mu,bu=function(t,e,n){for(var i=n.eles.edges(),r=n.eles.nodes(),o={isCompound:t.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:r.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:i.size(),temperature:n.initialTemp,clientWidth:t.width(),clientHeight:t.width(),boundingBox:Sn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()})},a=n.eles.components(),s={},c=0;c<a.length;c++)for(var l=a[c],u=0;u<l.length;u++)s[l[u].id()]=c;for(c=0;c<o.nodeSize;c++){var h=(m=r[c]).layoutDimensions(n);(P={}).isLocked=m.locked(),P.id=m.data("id"),P.parentId=m.data("parent"),P.cmptId=s[m.id()],P.children=[],P.positionX=m.position("x"),P.positionY=m.position("y"),P.offsetX=0,P.offsetY=0,P.height=h.w,P.width=h.h,P.maxX=P.positionX+P.width/2,P.minX=P.positionX-P.width/2,P.maxY=P.positionY+P.height/2,P.minY=P.positionY-P.height/2,P.padLeft=parseFloat(m.style("padding")),P.padRight=parseFloat(m.style("padding")),P.padTop=parseFloat(m.style("padding")),P.padBottom=parseFloat(m.style("padding")),P.nodeRepulsion=v(n.nodeRepulsion)?n.nodeRepulsion(m):n.nodeRepulsion,o.layoutNodes.push(P),o.idToIndex[P.id]=c}var d=[],f=0,g=-1,p=[];for(c=0;c<o.nodeSize;c++){var m,b=(m=o.layoutNodes[c]).parentId;null!=b?o.layoutNodes[o.idToIndex[b]].children.push(m.id):(d[++g]=m.id,p.push(m.id))}for(o.graphSet.push(p);f<=g;){var w=d[f++],k=o.idToIndex[w],y=o.layoutNodes[k].children;if(y.length>0)for(o.graphSet.push(y),c=0;c<y.length;c++)d[++g]=y[c]}for(c=0;c<o.graphSet.length;c++){var _=o.graphSet[c];for(u=0;u<_.length;u++){var C=o.idToIndex[_[u]];o.indexToGraph[C]=c}}for(c=0;c<o.edgeSize;c++){var A=i[c],x={};x.id=A.data("id"),x.sourceId=A.data("source"),x.targetId=A.data("target");var E=v(n.idealEdgeLength)?n.idealEdgeLength(A):n.idealEdgeLength,T=v(n.edgeElasticity)?n.edgeElasticity(A):n.edgeElasticity,S=o.idToIndex[x.sourceId],D=o.idToIndex[x.targetId];if(o.indexToGraph[S]!=o.indexToGraph[D]){for(var I=wu(x.sourceId,x.targetId,o),B=o.graphSet[I],M=0,P=o.layoutNodes[S];-1===B.indexOf(P.id);)P=o.layoutNodes[o.idToIndex[P.parentId]],M++;for(P=o.layoutNodes[D];-1===B.indexOf(P.id);)P=o.layoutNodes[o.idToIndex[P.parentId]],M++;E*=M*n.nestingFactor}x.idealLength=E,x.elasticity=T,o.layoutEdges.push(x)}return o},wu=function(t,e,n){var i=ku(t,e,0,n);return 2>i.count?0:i.graph},ku=function t(e,n,i,r){var o=r.graphSet[i];if(-1<o.indexOf(e)&&-1<o.indexOf(n))return{count:2,graph:i};for(var a=0,s=0;s<o.length;s++){var c=o[s],l=r.idToIndex[c],u=r.layoutNodes[l].children;if(0!==u.length){var h=t(e,n,r.indexToGraph[r.idToIndex[u[0]]],r);if(0!==h.count){if(1!==h.count)return h;if(2==++a)break}}}return{count:a,graph:i}},vu=function(t,e){for(var n=t.clientWidth,i=t.clientHeight,r=0;r<t.nodeSize;r++){var o=t.layoutNodes[r];0!==o.children.length||o.isLocked||(o.positionX=Math.random()*n,o.positionY=Math.random()*i)}},yu=function(t,e,n){var i=t.boundingBox,r={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return e.boundingBox&&(n.forEach((function(e){var n=t.layoutNodes[t.idToIndex[e.data("id")]];r.x1=Math.min(r.x1,n.positionX),r.x2=Math.max(r.x2,n.positionX),r.y1=Math.min(r.y1,n.positionY),r.y2=Math.max(r.y2,n.positionY)})),r.w=r.x2-r.x1,r.h=r.y2-r.y1),function(n,o){var a=t.layoutNodes[t.idToIndex[n.data("id")]];if(e.boundingBox){var s=(a.positionX-r.x1)/r.w,c=(a.positionY-r.y1)/r.h;return{x:i.x1+s*i.w,y:i.y1+c*i.h}}return{x:a.positionX,y:a.positionY}}},_u=function(t,e,n){var i=n.layout,r=n.eles.nodes(),o=yu(t,n,r);r.positions(o),!0!==t.ready&&(t.ready=!0,i.one("layoutready",n.ready),i.emit({type:"layoutready",layout:this}))},Cu=function(t,e,n){Au(t,e),Du(t),Iu(t,e),Bu(t),Mu(t)},Au=function(t,e){for(var n=0;n<t.graphSet.length;n++)for(var i=t.graphSet[n],r=i.length,o=0;o<r;o++)for(var a=t.layoutNodes[t.idToIndex[i[o]]],s=o+1;s<r;s++){var c=t.layoutNodes[t.idToIndex[i[s]]];Eu(a,c,t,e)}},xu=function(t){return-t+2*t*Math.random()},Eu=function(t,e,n,i){if(t.cmptId===e.cmptId||n.isCompound){var r=e.positionX-t.positionX,o=e.positionY-t.positionY,a=1;0===r&&0===o&&(r=xu(a),o=xu(a));var s=Tu(t,e,r,o);if(s>0)var c=(u=i.nodeOverlap*s)*r/(m=Math.sqrt(r*r+o*o)),l=u*o/m;else{var u,h=Su(t,r,o),d=Su(e,-1*r,-1*o),f=d.x-h.x,g=d.y-h.y,p=f*f+g*g,m=Math.sqrt(p);c=(u=(t.nodeRepulsion+e.nodeRepulsion)/p)*f/m,l=u*g/m}t.isLocked||(t.offsetX-=c,t.offsetY-=l),e.isLocked||(e.offsetX+=c,e.offsetY+=l)}},Tu=function(t,e,n,i){if(n>0)var r=t.maxX-e.minX;else r=e.maxX-t.minX;if(i>0)var o=t.maxY-e.minY;else o=e.maxY-t.minY;return r>=0&&o>=0?Math.sqrt(r*r+o*o):0},Su=function(t,e,n){var i=t.positionX,r=t.positionY,o=t.height||1,a=t.width||1,s=n/e,c=o/a,l={};return 0===e&&0<n||0===e&&0>n?(l.x=i,l.y=r+o/2,l):0<e&&-1*c<=s&&s<=c?(l.x=i+a/2,l.y=r+a*n/2/e,l):0>e&&-1*c<=s&&s<=c?(l.x=i-a/2,l.y=r-a*n/2/e,l):0<n&&(s<=-1*c||s>=c)?(l.x=i+o*e/2/n,l.y=r+o/2,l):0>n&&(s<=-1*c||s>=c)?(l.x=i-o*e/2/n,l.y=r-o/2,l):l},Du=function(t,e){for(var n=0;n<t.edgeSize;n++){var i=t.layoutEdges[n],r=t.idToIndex[i.sourceId],o=t.layoutNodes[r],a=t.idToIndex[i.targetId],s=t.layoutNodes[a],c=s.positionX-o.positionX,l=s.positionY-o.positionY;if(0!==c||0!==l){var u=Su(o,c,l),h=Su(s,-1*c,-1*l),d=h.x-u.x,f=h.y-u.y,g=Math.sqrt(d*d+f*f),p=Math.pow(i.idealLength-g,2)/i.elasticity;if(0!==g)var m=p*d/g,b=p*f/g;else m=0,b=0;o.isLocked||(o.offsetX+=m,o.offsetY+=b),s.isLocked||(s.offsetX-=m,s.offsetY-=b)}}},Iu=function(t,e){if(0!==e.gravity)for(var n=1,i=0;i<t.graphSet.length;i++){var r=t.graphSet[i],o=r.length;if(0===i)var a=t.clientHeight/2,s=t.clientWidth/2;else{var c=t.layoutNodes[t.idToIndex[r[0]]],l=t.layoutNodes[t.idToIndex[c.parentId]];a=l.positionX,s=l.positionY}for(var u=0;u<o;u++){var h=t.layoutNodes[t.idToIndex[r[u]]];if(!h.isLocked){var d=a-h.positionX,f=s-h.positionY,g=Math.sqrt(d*d+f*f);if(g>n){var p=e.gravity*d/g,m=e.gravity*f/g;h.offsetX+=p,h.offsetY+=m}}}}},Bu=function(t,e){var n=[],i=0,r=-1;for(n.push.apply(n,t.graphSet[0]),r+=t.graphSet[0].length;i<=r;){var o=n[i++],a=t.idToIndex[o],s=t.layoutNodes[a],c=s.children;if(0<c.length&&!s.isLocked){for(var l=s.offsetX,u=s.offsetY,h=0;h<c.length;h++){var d=t.layoutNodes[t.idToIndex[c[h]]];d.offsetX+=l,d.offsetY+=u,n[++r]=c[h]}s.offsetX=0,s.offsetY=0}}},Mu=function(t,e){for(var n=0;n<t.nodeSize;n++)0<(r=t.layoutNodes[n]).children.length&&(r.maxX=void 0,r.minX=void 0,r.maxY=void 0,r.minY=void 0);for(n=0;n<t.nodeSize;n++)if(!(0<(r=t.layoutNodes[n]).children.length||r.isLocked)){var i=Pu(r.offsetX,r.offsetY,t.temperature);r.positionX+=i.x,r.positionY+=i.y,r.offsetX=0,r.offsetY=0,r.minX=r.positionX-r.width,r.maxX=r.positionX+r.width,r.minY=r.positionY-r.height,r.maxY=r.positionY+r.height,Lu(r,t)}for(n=0;n<t.nodeSize;n++){var r;0<(r=t.layoutNodes[n]).children.length&&!r.isLocked&&(r.positionX=(r.maxX+r.minX)/2,r.positionY=(r.maxY+r.minY)/2,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY)}},Pu=function(t,e,n){var i=Math.sqrt(t*t+e*e);if(i>n)var r={x:n*t/i,y:n*e/i};else r={x:t,y:e};return r},Lu=function t(e,n){var i=e.parentId;if(null!=i){var r=n.layoutNodes[n.idToIndex[i]],o=!1;return(null==r.maxX||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,o=!0),(null==r.minX||e.minX-r.padLeft<r.minX)&&(r.minX=e.minX-r.padLeft,o=!0),(null==r.maxY||e.maxY+r.padBottom>r.maxY)&&(r.maxY=e.maxY+r.padBottom,o=!0),(null==r.minY||e.minY-r.padTop<r.minY)&&(r.minY=e.minY-r.padTop,o=!0),o?t(r,n):void 0}},Ou=function(t,e){for(var n=t.layoutNodes,i=[],r=0;r<n.length;r++){var o=n[r],a=o.cmptId;(i[a]=i[a]||[]).push(o)}var s=0;for(r=0;r<i.length;r++)if(p=i[r]){p.x1=1/0,p.x2=-1/0,p.y1=1/0,p.y2=-1/0;for(var c=0;c<p.length;c++){var l=p[c];p.x1=Math.min(p.x1,l.positionX-l.width/2),p.x2=Math.max(p.x2,l.positionX+l.width/2),p.y1=Math.min(p.y1,l.positionY-l.height/2),p.y2=Math.max(p.y2,l.positionY+l.height/2)}p.w=p.x2-p.x1,p.h=p.y2-p.y1,s+=p.w*p.h}i.sort((function(t,e){return e.w*e.h-t.w*t.h}));var u=0,h=0,d=0,f=0,g=Math.sqrt(s)*t.clientWidth/t.clientHeight;for(r=0;r<i.length;r++){var p;if(p=i[r]){for(c=0;c<p.length;c++)(l=p[c]).isLocked||(l.positionX+=u-p.x1,l.positionY+=h-p.y1);u+=p.w+e.componentSpacing,d+=p.w+e.componentSpacing,f=Math.max(f,p.h),d>g&&(h+=f+e.componentSpacing,u=0,d=0,f=0)}}},Nu={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(t){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function Ru(t){this.options=Q({},Nu,t)}Ru.prototype.run=function(){var t=this.options,e=t,n=t.cy,i=e.eles,r=i.nodes().not(":parent");e.sort&&(r=r.sort(e.sort));var o=Sn(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===o.h||0===o.w)i.nodes().layoutPositions(this,e,(function(t){return{x:o.x1,y:o.y1}}));else{var a=r.size(),s=Math.sqrt(a*o.h/o.w),c=Math.round(s),l=Math.round(o.w/o.h*s),u=function(t){if(null==t)return Math.min(c,l);Math.min(c,l)==c?c=t:l=t},h=function(t){if(null==t)return Math.max(c,l);Math.max(c,l)==c?c=t:l=t},d=e.rows,f=null!=e.cols?e.cols:e.columns;if(null!=d&&null!=f)c=d,l=f;else if(null!=d&&null==f)c=d,l=Math.ceil(a/c);else if(null==d&&null!=f)l=f,c=Math.ceil(a/l);else if(l*c>a){var g=u(),p=h();(g-1)*p>=a?u(g-1):(p-1)*g>=a&&h(p-1)}else for(;l*c<a;){var m=u(),b=h();(b+1)*m>=a?h(b+1):u(m+1)}var w=o.w/l,k=o.h/c;if(e.condense&&(w=0,k=0),e.avoidOverlap)for(var v=0;v<r.length;v++){var y=r[v],_=y._private.position;null!=_.x&&null!=_.y||(_.x=0,_.y=0);var C=y.layoutDimensions(e),A=e.avoidOverlapPadding,x=C.w+A,E=C.h+A;w=Math.max(w,x),k=Math.max(k,E)}for(var T={},S=function(t,e){return!!T["c-"+t+"-"+e]},D=function(t,e){T["c-"+t+"-"+e]=!0},I=0,B=0,M=function(){++B>=l&&(B=0,I++)},P={},L=0;L<r.length;L++){var O=r[L],N=e.position(O);if(N&&(void 0!==N.row||void 0!==N.col)){var R={row:N.row,col:N.col};if(void 0===R.col)for(R.col=0;S(R.row,R.col);)R.col++;else if(void 0===R.row)for(R.row=0;S(R.row,R.col);)R.row++;P[O.id()]=R,D(R.row,R.col)}}var F=function(t,e){var n,i;if(t.locked()||t.isParent())return!1;var r=P[t.id()];if(r)n=r.col*w+w/2+o.x1,i=r.row*k+k/2+o.y1;else{for(;S(I,B);)M();n=B*w+w/2+o.x1,i=I*k+k/2+o.y1,D(I,B),M()}return{x:n,y:i}};r.layoutPositions(this,e,F)}return this};var Fu={ready:function(){},stop:function(){}};function ju(t){this.options=Q({},Fu,t)}ju.prototype.run=function(){var t=this.options,e=t.eles,n=this;return t.cy,n.emit("layoutstart"),e.nodes().positions((function(){return{x:0,y:0}})),n.one("layoutready",t.ready),n.emit("layoutready"),n.one("layoutstop",t.stop),n.emit("layoutstop"),this},ju.prototype.stop=function(){return this};var $u={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function zu(t){this.options=Q({},$u,t)}zu.prototype.run=function(){var t=this.options,e=t.eles.nodes(),n=v(t.positions);function i(e){if(null==t.positions)return ln(e.position());if(n)return t.positions(e);var i=t.positions[e._private.data.id];return null==i?null:i}return e.layoutPositions(this,t,(function(t,e){var n=i(t);return!t.locked()&&null!=n&&n})),this};var Vu={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(t,e){return!0},ready:void 0,stop:void 0,transform:function(t,e){return e}};function Hu(t){this.options=Q({},Vu,t)}Hu.prototype.run=function(){var t=this.options,e=t.cy,n=t.eles,i=Sn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),r=function(t,e){return{x:i.x1+Math.round(Math.random()*i.w),y:i.y1+Math.round(Math.random()*i.h)}};return n.nodes().layoutPositions(this,t,r),this};var qu=[{name:"breadthfirst",impl:cu},{name:"circle",impl:uu},{name:"concentric",impl:fu},{name:"cose",impl:pu},{name:"grid",impl:Ru},{name:"null",impl:ju},{name:"preset",impl:zu},{name:"random",impl:Hu}];function Uu(t){this.options=t,this.notifications=0}var Gu=function(){},Wu=function(){throw new Error("A headless instance can not render images")};Uu.prototype={recalculateRenderedStyle:Gu,notify:function(){this.notifications++},init:Gu,isHeadless:function(){return!0},png:Wu,jpg:Wu};var Ku={arrowShapeWidth:.3,registerArrowShapes:function(){var t=this.arrowShapes={},e=this,n=function(t,e,n,i,r,o,a){var s=r.x-n/2-a,c=r.x+n/2+a,l=r.y-n/2-a,u=r.y+n/2+a;return s<=t&&t<=c&&l<=e&&e<=u},i=function(t,e,n,i,r){var o=t*Math.cos(i)-e*Math.sin(i),a=(t*Math.sin(i)+e*Math.cos(i))*n;return{x:o*n+r.x,y:a+r.y}},r=function(t,e,n,r){for(var o=[],a=0;a<t.length;a+=2){var s=t[a],c=t[a+1];o.push(i(s,c,e,n,r))}return o},o=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];e.push(i.x,i.y)}return e},a=function(t){return t.pstyle("width").pfValue*t.pstyle("arrow-scale").pfValue*2},s=function(i,s){k(s)&&(s=t[s]),t[i]=Q({name:i,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(t,e,n,i,a,s){var c=o(r(this.points,n+2*s,i,a));return Wn(t,e,c)},roughCollide:n,draw:function(t,n,i,o){var a=r(this.points,n,i,o);e.arrowShapeImpl("polygon")(t,a)},spacing:function(t){return 0},gap:a},s)};s("none",{collide:_e,roughCollide:_e,draw:Ae,spacing:Ce,gap:Ce}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:t.triangle.points,controlPoint:[0,-.15],roughCollide:n,draw:function(t,n,o,a,s){var c=r(this.points,n,o,a),l=this.controlPoint,u=i(l[0],l[1],n,o,a);e.arrowShapeImpl(this.name)(t,c,u)},gap:function(t){return.8*a(t)}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(t,e,n,i,a,s,c){var l=o(r(this.points,n+2*c,i,a)),u=o(r(this.pointsTee,n+2*c,i,a));return Wn(t,e,l)||Wn(t,e,u)},draw:function(t,n,i,o,a){var s=r(this.points,n,i,o),c=r(this.pointsTee,n,i,o);e.arrowShapeImpl(this.name)(t,s,c)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(t,e,n,i,a,s,c){var l=a,u=Math.pow(l.x-t,2)+Math.pow(l.y-e,2)<=Math.pow((n+2*c)*this.radius,2),h=o(r(this.points,n+2*c,i,a));return Wn(t,e,h)||u},draw:function(t,n,i,o,a){var s=r(this.pointsTr,n,i,o);e.arrowShapeImpl(this.name)(t,s,o.x,o.y,this.radius*n)},spacing:function(t){return e.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(t,e){var n=this.baseCrossLinePts.slice(),i=e/t,r=3,o=5;return n[r]=n[r]-i,n[o]=n[o]-i,n},collide:function(t,e,n,i,a,s,c){var l=o(r(this.points,n+2*c,i,a)),u=o(r(this.crossLinePts(n,s),n+2*c,i,a));return Wn(t,e,l)||Wn(t,e,u)},draw:function(t,n,i,o,a){var s=r(this.points,n,i,o),c=r(this.crossLinePts(n,a),n,i,o);e.arrowShapeImpl(this.name)(t,s,c)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(t){return.525*a(t)}}),s("circle",{radius:.15,collide:function(t,e,n,i,r,o,a){var s=r;return Math.pow(s.x-t,2)+Math.pow(s.y-e,2)<=Math.pow((n+2*a)*this.radius,2)},draw:function(t,n,i,r,o){e.arrowShapeImpl(this.name)(t,r.x,r.y,this.radius*n)},spacing:function(t){return e.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(t){return 1},gap:function(t){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(t){return t.pstyle("width").pfValue*t.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(t){return.95*t.pstyle("width").pfValue*t.pstyle("arrow-scale").value}})}},Yu={projectIntoViewport:function(t,e){var n=this.cy,i=this.findContainerClientCoords(),r=i[0],o=i[1],a=i[4],s=n.pan(),c=n.zoom();return[((t-r)/a-s.x)/c,((e-o)/a-s.y)/c]},findContainerClientCoords:function(){if(this.containerBB)return this.containerBB;var t=this.container,e=t.getBoundingClientRect(),n=d.getComputedStyle(t),i=function(t){return parseFloat(n.getPropertyValue(t))},r={left:i("padding-left"),right:i("padding-right"),top:i("padding-top"),bottom:i("padding-bottom")},o={left:i("border-left-width"),right:i("border-right-width"),top:i("border-top-width"),bottom:i("border-bottom-width")},a=t.clientWidth,s=t.clientHeight,c=r.left+r.right,l=r.top+r.bottom,u=o.left+o.right,h=e.width/(a+u),f=a-c,g=s-l,p=e.left+r.left+o.left,m=e.top+r.top+o.top;return this.containerBB=[p,m,f,g,h]},invalidateContainerClientCoordsCache:function(){this.containerBB=null},findNearestElement:function(t,e,n,i){return this.findNearestElements(t,e,n,i)[0]},findNearestElements:function(t,e,n,i){var r,o,a=this,s=this,c=s.getCachedZSortedEles(),l=[],u=s.cy.zoom(),h=s.cy.hasCompoundNodes(),d=(i?24:8)/u,f=(i?8:2)/u,g=(i?8:2)/u,p=1/0;function m(t,e){if(t.isNode()){if(o)return;o=t,l.push(t)}if(t.isEdge()&&(null==e||e<p))if(r){if(r.pstyle("z-compound-depth").value===t.pstyle("z-compound-depth").value&&r.pstyle("z-compound-depth").value===t.pstyle("z-compound-depth").value)for(var n=0;n<l.length;n++)if(l[n].isEdge()){l[n]=t,r=t,p=null!=e?e:p;break}}else l.push(t),r=t,p=null!=e?e:p}function b(n){var i=n.outerWidth()+2*f,r=n.outerHeight()+2*f,o=i/2,c=r/2,l=n.position();if(l.x-o<=t&&t<=l.x+o&&l.y-c<=e&&e<=l.y+c&&s.nodeShapes[a.getNodeShape(n)].checkPoint(t,e,0,i,r,l.x,l.y))return m(n,0),!0}function w(n){var i,r=n._private,o=r.rscratch,c=n.pstyle("width").pfValue,u=n.pstyle("arrow-scale").value,f=c/2+d,g=f*f,p=2*f,w=r.source,k=r.target;if("segments"===o.edgeType||"straight"===o.edgeType||"haystack"===o.edgeType){for(var v=o.allpts,y=0;y+3<v.length;y+=2)if(zn(t,e,v[y],v[y+1],v[y+2],v[y+3],p)&&g>(i=Gn(t,e,v[y],v[y+1],v[y+2],v[y+3])))return m(n,i),!0}else if("bezier"===o.edgeType||"multibezier"===o.edgeType||"self"===o.edgeType||"compound"===o.edgeType)for(v=o.allpts,y=0;y+5<o.allpts.length;y+=4)if(Vn(t,e,v[y],v[y+1],v[y+2],v[y+3],v[y+4],v[y+5],p)&&g>(i=Un(t,e,v[y],v[y+1],v[y+2],v[y+3],v[y+4],v[y+5])))return m(n,i),!0;w=w||r.source,k=k||r.target;var _=a.getArrowWidth(c,u),C=[{name:"source",x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:"target",x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:"mid-source",x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:"mid-target",x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}];for(y=0;y<C.length;y++){var A=C[y],x=s.arrowShapes[n.pstyle(A.name+"-arrow-shape").value],E=n.pstyle("width").pfValue;if(x.roughCollide(t,e,_,A.angle,{x:A.x,y:A.y},E,d)&&x.collide(t,e,_,A.angle,{x:A.x,y:A.y},E,d))return m(n),!0}h&&l.length>0&&(b(w),b(k))}function k(t,e,n){return Fe(t,e,n)}function v(n,i){var r,o=n._private,a=g;r=i?i+"-":"",n.boundingBox();var s=o.labelBounds[i||"main"],c=n.pstyle(r+"label").value;if("yes"===n.pstyle("text-events").strValue&&c){var l=k(o.rscratch,"labelX",i),u=k(o.rscratch,"labelY",i),h=k(o.rscratch,"labelAngle",i),d=n.pstyle(r+"text-margin-x").pfValue,f=n.pstyle(r+"text-margin-y").pfValue,p=s.x1-a-d,b=s.x2+a-d,w=s.y1-a-f,v=s.y2+a-f;if(h){var y=Math.cos(h),_=Math.sin(h),C=function(t,e){return{x:(t-=l)*y-(e-=u)*_+l,y:t*_+e*y+u}},A=C(p,w),x=C(p,v),E=C(b,w),T=C(b,v),S=[A.x+d,A.y+f,E.x+d,E.y+f,T.x+d,T.y+f,x.x+d,x.y+f];if(Wn(t,e,S))return m(n),!0}else if(Rn(s,t,e))return m(n),!0}}n&&(c=c.interactive);for(var y=c.length-1;y>=0;y--){var _=c[y];_.isNode()?b(_)||v(_):w(_)||v(_)||v(_,"source")||v(_,"target")}return l},getAllInBox:function(t,e,n,i){for(var r=this.getCachedZSortedEles().interactive,o=[],a=Math.min(t,n),s=Math.max(t,n),c=Math.min(e,i),l=Math.max(e,i),u=Sn({x1:t=a,y1:e=c,x2:n=s,y2:i=l}),h=0;h<r.length;h++){var d=r[h];if(d.isNode()){var f=d,g=f.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:!1});Nn(u,g)&&!jn(g,u)&&o.push(f)}else{var p=d,m=p._private,b=m.rscratch;if(null!=b.startX&&null!=b.startY&&!Rn(u,b.startX,b.startY))continue;if(null!=b.endX&&null!=b.endY&&!Rn(u,b.endX,b.endY))continue;if("bezier"===b.edgeType||"multibezier"===b.edgeType||"self"===b.edgeType||"compound"===b.edgeType||"segments"===b.edgeType||"haystack"===b.edgeType){for(var w=m.rstyle.bezierPts||m.rstyle.linePts||m.rstyle.haystackPts,k=!0,v=0;v<w.length;v++)if(!Fn(u,w[v])){k=!1;break}k&&o.push(p)}else"haystack"!==b.edgeType&&"straight"!==b.edgeType||o.push(p)}}return o}},Xu={calculateArrowAngles:function(t){var e,n,i,r,o,a,s=t._private.rscratch,c="haystack"===s.edgeType,l="bezier"===s.edgeType,u="multibezier"===s.edgeType,h="segments"===s.edgeType,d="compound"===s.edgeType,f="self"===s.edgeType;if(c?(i=s.haystackPts[0],r=s.haystackPts[1],o=s.haystackPts[2],a=s.haystackPts[3]):(i=s.arrowStartX,r=s.arrowStartY,o=s.arrowEndX,a=s.arrowEndY),p=s.midX,m=s.midY,h)e=i-s.segpts[0],n=r-s.segpts[1];else if(u||d||f||l){var g=s.allpts;e=i-An(g[0],g[2],g[4],.1),n=r-An(g[1],g[3],g[5],.1)}else e=i-p,n=r-m;s.srcArrowAngle=wn(e,n);var p=s.midX,m=s.midY;if(c&&(p=(i+o)/2,m=(r+a)/2),e=o-i,n=a-r,h)if((g=s.allpts).length/2%2==0){var b=(w=g.length/2)-2;e=g[w]-g[b],n=g[w+1]-g[b+1]}else{b=(w=g.length/2-1)-2;var w,k=w+2;e=g[w]-g[b],n=g[w+1]-g[b+1]}else if(u||d||f){var v,y,_,C,g=s.allpts;if(s.ctrlpts.length/2%2==0){var A=2+(x=2+(E=g.length/2-1));v=An(g[E],g[x],g[A],0),y=An(g[E+1],g[x+1],g[A+1],0),_=An(g[E],g[x],g[A],1e-4),C=An(g[E+1],g[x+1],g[A+1],1e-4)}else{var x,E;A=2+(x=g.length/2-1),v=An(g[E=x-2],g[x],g[A],.4999),y=An(g[E+1],g[x+1],g[A+1],.4999),_=An(g[E],g[x],g[A],.5),C=An(g[E+1],g[x+1],g[A+1],.5)}e=_-v,n=C-y}if(s.midtgtArrowAngle=wn(e,n),s.midDispX=e,s.midDispY=n,e*=-1,n*=-1,h&&((g=s.allpts).length/2%2==0||(e=-(g[k=2+(w=g.length/2-1)]-g[w]),n=-(g[k+1]-g[w+1]))),s.midsrcArrowAngle=wn(e,n),h)e=o-s.segpts[s.segpts.length-2],n=a-s.segpts[s.segpts.length-1];else if(u||d||f||l){var T=(g=s.allpts).length;e=o-An(g[T-6],g[T-4],g[T-2],.9),n=a-An(g[T-5],g[T-3],g[T-1],.9)}else e=o-p,n=a-m;s.tgtArrowAngle=wn(e,n)}};Xu.getArrowWidth=Xu.getArrowHeight=function(t,e){var n=this.arrowWidthCache=this.arrowWidthCache||{},i=n[t+", "+e];return i||(i=Math.max(Math.pow(13.37*t,.9),29)*e,n[t+", "+e]=i,i)};var Zu={};function Qu(t){var e=[];if(null!=t){for(var n=0;n<t.length;n+=2){var i=t[n],r=t[n+1];e.push({x:i,y:r})}return e}}Zu.findHaystackPoints=function(t){for(var e=0;e<t.length;e++){var n=t[e],i=n._private,r=i.rscratch;if(!r.haystack){var o=2*Math.random()*Math.PI;r.source={x:Math.cos(o),y:Math.sin(o)},o=2*Math.random()*Math.PI,r.target={x:Math.cos(o),y:Math.sin(o)}}var a=i.source,s=i.target,c=a.position(),l=s.position(),u=a.width(),h=s.width(),d=a.height(),f=s.height(),g=n.pstyle("haystack-radius").value/2;r.haystackPts=r.allpts=[r.source.x*u*g+c.x,r.source.y*d*g+c.y,r.target.x*h*g+l.x,r.target.y*f*g+l.y],r.midX=(r.allpts[0]+r.allpts[2])/2,r.midY=(r.allpts[1]+r.allpts[3])/2,r.edgeType="haystack",r.haystack=!0,this.storeEdgeProjections(n),this.calculateArrowAngles(n),this.recalculateEdgeLabelProjections(n),this.calculateLabelAngles(n)}},Zu.findSegmentsPoints=function(t,e){var n=t._private.rscratch,i=e.posPts,r=e.intersectionPts,o=e.vectorNormInverse,a=t.pstyle("edge-distances").value,s=t.pstyle("segment-weights"),c=t.pstyle("segment-distances"),l=Math.min(s.pfValue.length,c.pfValue.length);n.edgeType="segments",n.segpts=[];for(var u=0;u<l;u++){var h=s.pfValue[u],d=c.pfValue[u],f=1-h,g=h,p="node-position"===a?i:r,m={x:p.x1*f+p.x2*g,y:p.y1*f+p.y2*g};n.segpts.push(m.x+o.x*d,m.y+o.y*d)}},Zu.findLoopPoints=function(t,e,n,i){var r=t._private.rscratch,o=e.dirCounts,a=e.srcPos,s=t.pstyle("control-point-distances"),c=s?s.pfValue[0]:void 0,l=t.pstyle("loop-direction").pfValue,u=t.pstyle("loop-sweep").pfValue,h=t.pstyle("control-point-step-size").pfValue;r.edgeType="self";var d=n,f=h;i&&(d=0,f=c);var g=l-Math.PI/2,p=g-u/2,m=g+u/2,b=String(l+"_"+u);d=void 0===o[b]?o[b]=0:++o[b],r.ctrlpts=[a.x+1.4*Math.cos(p)*f*(d/3+1),a.y+1.4*Math.sin(p)*f*(d/3+1),a.x+1.4*Math.cos(m)*f*(d/3+1),a.y+1.4*Math.sin(m)*f*(d/3+1)]},Zu.findCompoundLoopPoints=function(t,e,n,i){var r=t._private.rscratch;r.edgeType="compound";var o=e.srcPos,a=e.tgtPos,s=e.srcW,c=e.srcH,l=e.tgtW,u=e.tgtH,h=t.pstyle("control-point-step-size").pfValue,d=t.pstyle("control-point-distances"),f=d?d.pfValue[0]:void 0,g=n,p=h;i&&(g=0,p=f);var m=50,b={x:o.x-s/2,y:o.y-c/2},w={x:a.x-l/2,y:a.y-u/2},k={x:Math.min(b.x,w.x),y:Math.min(b.y,w.y)},v=.5,y=Math.max(v,Math.log(.01*s)),_=Math.max(v,Math.log(.01*l));r.ctrlpts=[k.x,k.y-(1+Math.pow(m,1.12)/100)*p*(g/3+1)*y,k.x-(1+Math.pow(m,1.12)/100)*p*(g/3+1)*_,k.y]},Zu.findStraightEdgePoints=function(t){t._private.rscratch.edgeType="straight"},Zu.findBezierPoints=function(t,e,n,i,r){var o=t._private.rscratch,a=e.vectorNormInverse,s=e.posPts,c=e.intersectionPts,l=t.pstyle("edge-distances").value,u=t.pstyle("control-point-step-size").pfValue,h=t.pstyle("control-point-distances"),d=t.pstyle("control-point-weights"),f=h&&d?Math.min(h.value.length,d.value.length):1,g=h?h.pfValue[0]:void 0,p=d.value[0],m=i;o.edgeType=m?"multibezier":"bezier",o.ctrlpts=[];for(var b=0;b<f;b++){var w=(.5-e.eles.length/2+n)*u*(r?-1:1),k=void 0,v=vn(w);m&&(g=h?h.pfValue[b]:u,p=d.value[b]);var y=void 0!==(k=i?g:void 0!==g?v*g:void 0)?k:w,_=1-p,C=p,A="node-position"===l?s:c,x={x:A.x1*_+A.x2*C,y:A.y1*_+A.y2*C};o.ctrlpts.push(x.x+a.x*y,x.y+a.y*y)}},Zu.findTaxiPoints=function(t,e){var n=t._private.rscratch;n.edgeType="segments";var i="vertical",r="horizontal",o="leftward",a="rightward",s="downward",c="upward",l="auto",u=e.posPts,h=e.srcW,d=e.srcH,f=e.tgtW,g=e.tgtH,p="node-position"!==t.pstyle("edge-distances").value,m=t.pstyle("taxi-direction").value,b=m,w=t.pstyle("taxi-turn"),k="%"===w.units,v=w.pfValue,y=v<0,_=t.pstyle("taxi-turn-min-distance").pfValue,C=p?(h+f)/2:0,A=p?(d+g)/2:0,x=u.x2-u.x1,E=u.y2-u.y1,T=function(t,e){return t>0?Math.max(t-e,0):Math.min(t+e,0)},S=T(x,C),D=T(E,A),I=!1;b===l?m=Math.abs(S)>Math.abs(D)?r:i:b===c||b===s?(m=i,I=!0):b!==o&&b!==a||(m=r,I=!0);var B,M=m===i,P=M?D:S,L=M?E:x,O=vn(L),N=!1;I&&(k||y)||!(b===s&&L<0||b===c&&L>0||b===o&&L>0||b===a&&L<0)||(P=(O*=-1)*Math.abs(P),N=!0);var R=function(t){return Math.abs(t)<_||Math.abs(t)>=Math.abs(P)},F=R(B=k?(v<0?1+v:v)*P:(v<0?P:0)+v*O),j=R(Math.abs(P)-Math.abs(B));if(!F&&!j||N)if(M){var $=u.y1+B+(p?d/2*O:0),z=u.x1,V=u.x2;n.segpts=[z,$,V,$]}else{var H=u.x1+B+(p?h/2*O:0),q=u.y1,U=u.y2;n.segpts=[H,q,H,U]}else if(M){var G=Math.abs(L)<=d/2,W=Math.abs(x)<=f/2;if(G){var K=(u.x1+u.x2)/2,Y=u.y1,X=u.y2;n.segpts=[K,Y,K,X]}else if(W){var Z=(u.y1+u.y2)/2,Q=u.x1,J=u.x2;n.segpts=[Q,Z,J,Z]}else n.segpts=[u.x1,u.y2]}else{var tt=Math.abs(L)<=h/2,et=Math.abs(E)<=g/2;if(tt){var nt=(u.y1+u.y2)/2,it=u.x1,rt=u.x2;n.segpts=[it,nt,rt,nt]}else if(et){var ot=(u.x1+u.x2)/2,at=u.y1,st=u.y2;n.segpts=[ot,at,ot,st]}else n.segpts=[u.x2,u.y1]}},Zu.tryToCorrectInvalidPoints=function(t,e){var n=t._private.rscratch;if("bezier"===n.edgeType){var i=e.srcPos,r=e.tgtPos,o=e.srcW,a=e.srcH,s=e.tgtW,c=e.tgtH,l=e.srcShape,u=e.tgtShape,h=!A(n.startX)||!A(n.startY),d=!A(n.arrowStartX)||!A(n.arrowStartY),f=!A(n.endX)||!A(n.endY),g=!A(n.arrowEndX)||!A(n.arrowEndY),p=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth*3,m=yn({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),b=m<p,w=yn({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.endX,y:n.endY}),k=w<p,v=!1;if(h||d||b){v=!0;var y={x:n.ctrlpts[0]-i.x,y:n.ctrlpts[1]-i.y},_=Math.sqrt(y.x*y.x+y.y*y.y),C={x:y.x/_,y:y.y/_},x=Math.max(o,a),E={x:n.ctrlpts[0]+2*C.x*x,y:n.ctrlpts[1]+2*C.y*x},T=l.intersectLine(i.x,i.y,o,a,E.x,E.y,0);b?(n.ctrlpts[0]=n.ctrlpts[0]+C.x*(p-m),n.ctrlpts[1]=n.ctrlpts[1]+C.y*(p-m)):(n.ctrlpts[0]=T[0]+C.x*p,n.ctrlpts[1]=T[1]+C.y*p)}if(f||g||k){v=!0;var S={x:n.ctrlpts[0]-r.x,y:n.ctrlpts[1]-r.y},D=Math.sqrt(S.x*S.x+S.y*S.y),I={x:S.x/D,y:S.y/D},B=Math.max(o,a),M={x:n.ctrlpts[0]+2*I.x*B,y:n.ctrlpts[1]+2*I.y*B},P=u.intersectLine(r.x,r.y,s,c,M.x,M.y,0);k?(n.ctrlpts[0]=n.ctrlpts[0]+I.x*(p-w),n.ctrlpts[1]=n.ctrlpts[1]+I.y*(p-w)):(n.ctrlpts[0]=P[0]+I.x*p,n.ctrlpts[1]=P[1]+I.y*p)}v&&this.findEndpoints(t)}},Zu.storeAllpts=function(t){var e=t._private.rscratch;if("multibezier"===e.edgeType||"bezier"===e.edgeType||"self"===e.edgeType||"compound"===e.edgeType){e.allpts=[],e.allpts.push(e.startX,e.startY);for(var n=0;n+1<e.ctrlpts.length;n+=2)e.allpts.push(e.ctrlpts[n],e.ctrlpts[n+1]),n+3<e.ctrlpts.length&&e.allpts.push((e.ctrlpts[n]+e.ctrlpts[n+2])/2,(e.ctrlpts[n+1]+e.ctrlpts[n+3])/2);var i,r;e.allpts.push(e.endX,e.endY),e.ctrlpts.length/2%2==0?(i=e.allpts.length/2-1,e.midX=e.allpts[i],e.midY=e.allpts[i+1]):(i=e.allpts.length/2-3,r=.5,e.midX=An(e.allpts[i],e.allpts[i+2],e.allpts[i+4],r),e.midY=An(e.allpts[i+1],e.allpts[i+3],e.allpts[i+5],r))}else if("straight"===e.edgeType)e.allpts=[e.startX,e.startY,e.endX,e.endY],e.midX=(e.startX+e.endX+e.arrowStartX+e.arrowEndX)/4,e.midY=(e.startY+e.endY+e.arrowStartY+e.arrowEndY)/4;else if("segments"===e.edgeType)if(e.allpts=[],e.allpts.push(e.startX,e.startY),e.allpts.push.apply(e.allpts,e.segpts),e.allpts.push(e.endX,e.endY),e.segpts.length%4==0){var o=e.segpts.length/2,a=o-2;e.midX=(e.segpts[a]+e.segpts[o])/2,e.midY=(e.segpts[a+1]+e.segpts[o+1])/2}else{var s=e.segpts.length/2-1;e.midX=e.segpts[s],e.midY=e.segpts[s+1]}},Zu.checkForInvalidEdgeWarning=function(t){var e=t[0]._private.rscratch;e.nodesOverlap||A(e.startX)&&A(e.startY)&&A(e.endX)&&A(e.endY)?e.loggedErr=!1:e.loggedErr||(e.loggedErr=!0,Te("Edge `"+t.id()+"` has invalid endpoints and so it is impossible to draw. Adjust your edge style (e.g. control points) accordingly or use an alternative edge type. This is expected behaviour when the source node and the target node overlap."))},Zu.findEdgeControlPoints=function(t){var e=this;if(t&&0!==t.length){for(var n=this,i=n.cy.hasCompoundNodes(),r={map:new $e,get:function(t){var e=this.map.get(t[0]);return null!=e?e.get(t[1]):null},set:function(t,e){var n=this.map.get(t[0]);null==n&&(n=new $e,this.map.set(t[0],n)),n.set(t[1],e)}},o=[],a=[],s=0;s<t.length;s++){var c=t[s],l=c._private,u=c.pstyle("curve-style").value;if(!c.removed()&&c.takesUpSpace())if("haystack"!==u){var h="unbundled-bezier"===u||"segments"===u||"straight"===u||"straight-triangle"===u||"taxi"===u,d="unbundled-bezier"===u||"bezier"===u,f=l.source,g=l.target,p=[f.poolIndex(),g.poolIndex()].sort(),m=r.get(p);null==m&&(m={eles:[]},r.set(p,m),o.push(p)),m.eles.push(c),h&&(m.hasUnbundled=!0),d&&(m.hasBezier=!0)}else a.push(c)}for(var b=function(t){var a=o[t],s=r.get(a),c=void 0;if(!s.hasUnbundled){var l=s.eles[0].parallelEdges().filter((function(t){return t.isBundledBezier()}));Ne(s.eles),l.forEach((function(t){return s.eles.push(t)})),s.eles.sort((function(t,e){return t.poolIndex()-e.poolIndex()}))}var u=s.eles[0],h=u.source(),d=u.target();if(h.poolIndex()>d.poolIndex()){var f=h;h=d,d=f}var g=s.srcPos=h.position(),p=s.tgtPos=d.position(),m=s.srcW=h.outerWidth(),b=s.srcH=h.outerHeight(),w=s.tgtW=d.outerWidth(),k=s.tgtH=d.outerHeight(),v=s.srcShape=n.nodeShapes[e.getNodeShape(h)],y=s.tgtShape=n.nodeShapes[e.getNodeShape(d)];s.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var _=0;_<s.eles.length;_++){var C=s.eles[_],x=C[0]._private.rscratch,E=C.pstyle("curve-style").value,T="unbundled-bezier"===E||"segments"===E||"taxi"===E,S=!h.same(C.source());if(!s.calculatedIntersection&&h!==d&&(s.hasBezier||s.hasUnbundled)){s.calculatedIntersection=!0;var D=v.intersectLine(g.x,g.y,m,b,p.x,p.y,0),I=s.srcIntn=D,B=y.intersectLine(p.x,p.y,w,k,g.x,g.y,0),M=s.tgtIntn=B,P=s.intersectionPts={x1:D[0],x2:B[0],y1:D[1],y2:B[1]},L=s.posPts={x1:g.x,x2:p.x,y1:g.y,y2:p.y},O=B[1]-D[1],N=B[0]-D[0],R=Math.sqrt(N*N+O*O),F=s.vector={x:N,y:O},j=s.vectorNorm={x:F.x/R,y:F.y/R},$={x:-j.y,y:j.x};s.nodesOverlap=!A(R)||y.checkPoint(D[0],D[1],0,w,k,p.x,p.y)||v.checkPoint(B[0],B[1],0,m,b,g.x,g.y),s.vectorNormInverse=$,c={nodesOverlap:s.nodesOverlap,dirCounts:s.dirCounts,calculatedIntersection:!0,hasBezier:s.hasBezier,hasUnbundled:s.hasUnbundled,eles:s.eles,srcPos:p,tgtPos:g,srcW:w,srcH:k,tgtW:m,tgtH:b,srcIntn:M,tgtIntn:I,srcShape:y,tgtShape:v,posPts:{x1:L.x2,y1:L.y2,x2:L.x1,y2:L.y1},intersectionPts:{x1:P.x2,y1:P.y2,x2:P.x1,y2:P.y1},vector:{x:-F.x,y:-F.y},vectorNorm:{x:-j.x,y:-j.y},vectorNormInverse:{x:-$.x,y:-$.y}}}var z=S?c:s;x.nodesOverlap=z.nodesOverlap,x.srcIntn=z.srcIntn,x.tgtIntn=z.tgtIntn,i&&(h.isParent()||h.isChild()||d.isParent()||d.isChild())&&(h.parents().anySame(d)||d.parents().anySame(h)||h.same(d)&&h.isParent())?e.findCompoundLoopPoints(C,z,_,T):h===d?e.findLoopPoints(C,z,_,T):"segments"===E?e.findSegmentsPoints(C,z):"taxi"===E?e.findTaxiPoints(C,z):"straight"===E||!T&&s.eles.length%2==1&&_===Math.floor(s.eles.length/2)?e.findStraightEdgePoints(C):e.findBezierPoints(C,z,_,T,S),e.findEndpoints(C),e.tryToCorrectInvalidPoints(C,z),e.checkForInvalidEdgeWarning(C),e.storeAllpts(C),e.storeEdgeProjections(C),e.calculateArrowAngles(C),e.recalculateEdgeLabelProjections(C),e.calculateLabelAngles(C)}},w=0;w<o.length;w++)b(w);this.findHaystackPoints(a)}},Zu.getSegmentPoints=function(t){var e=t[0]._private.rscratch;if("segments"===e.edgeType)return this.recalculateRenderedStyle(t),Qu(e.segpts)},Zu.getControlPoints=function(t){var e=t[0]._private.rscratch,n=e.edgeType;if("bezier"===n||"multibezier"===n||"self"===n||"compound"===n)return this.recalculateRenderedStyle(t),Qu(e.ctrlpts)},Zu.getEdgeMidpoint=function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),{x:e.midX,y:e.midY}};var Ju={manualEndptToPx:function(t,e){var n=this,i=t.position(),r=t.outerWidth(),o=t.outerHeight();if(2===e.value.length){var a=[e.pfValue[0],e.pfValue[1]];return"%"===e.units[0]&&(a[0]=a[0]*r),"%"===e.units[1]&&(a[1]=a[1]*o),a[0]+=i.x,a[1]+=i.y,a}var s=e.pfValue[0];s=-Math.PI/2+s;var c=2*Math.max(r,o),l=[i.x+Math.cos(s)*c,i.y+Math.sin(s)*c];return n.nodeShapes[this.getNodeShape(t)].intersectLine(i.x,i.y,r,o,l[0],l[1],0)},findEndpoints:function(t){var e,n,i,r,o,a=this,s=t.source()[0],c=t.target()[0],l=s.position(),u=c.position(),h=t.pstyle("target-arrow-shape").value,d=t.pstyle("source-arrow-shape").value,f=t.pstyle("target-distance-from-node").pfValue,g=t.pstyle("source-distance-from-node").pfValue,p=t.pstyle("curve-style").value,m=t._private.rscratch,b=m.edgeType,w="self"===b||"compound"===b,k="bezier"===b||"multibezier"===b||w,v="bezier"!==b,y="straight"===b||"segments"===b,_="segments"===b,C=k||v||y,x=w||"taxi"===p,E=t.pstyle("source-endpoint"),T=x?"outside-to-node":E.value,S=t.pstyle("target-endpoint"),D=x?"outside-to-node":S.value;if(m.srcManEndpt=E,m.tgtManEndpt=S,k){var I=[m.ctrlpts[0],m.ctrlpts[1]];n=v?[m.ctrlpts[m.ctrlpts.length-2],m.ctrlpts[m.ctrlpts.length-1]]:I,i=I}else if(y){var B=_?m.segpts.slice(0,2):[u.x,u.y];n=_?m.segpts.slice(m.segpts.length-2):[l.x,l.y],i=B}if("inside-to-node"===D)e=[u.x,u.y];else if(S.units)e=this.manualEndptToPx(c,S);else if("outside-to-line"===D)e=m.tgtIntn;else if("outside-to-node"===D||"outside-to-node-or-label"===D?r=n:"outside-to-line"!==D&&"outside-to-line-or-label"!==D||(r=[l.x,l.y]),e=a.nodeShapes[this.getNodeShape(c)].intersectLine(u.x,u.y,c.outerWidth(),c.outerHeight(),r[0],r[1],0),"outside-to-node-or-label"===D||"outside-to-line-or-label"===D){var M=c._private.rscratch,P=M.labelWidth,L=M.labelHeight,O=M.labelX,N=M.labelY,R=P/2,F=L/2,j=c.pstyle("text-valign").value;"top"===j?N-=F:"bottom"===j&&(N+=F);var $=c.pstyle("text-halign").value;"left"===$?O-=R:"right"===$&&(O+=R);var z=ii(r[0],r[1],[O-R,N-F,O+R,N-F,O+R,N+F,O-R,N+F],u.x,u.y);if(z.length>0){var V=l,H=_n(V,dn(e)),q=_n(V,dn(z)),U=H;q<H&&(e=z,U=q),z.length>2&&_n(V,{x:z[2],y:z[3]})<U&&(e=[z[2],z[3]])}}var G=oi(e,n,a.arrowShapes[h].spacing(t)+f),W=oi(e,n,a.arrowShapes[h].gap(t)+f);if(m.endX=W[0],m.endY=W[1],m.arrowEndX=G[0],m.arrowEndY=G[1],"inside-to-node"===T)e=[l.x,l.y];else if(E.units)e=this.manualEndptToPx(s,E);else if("outside-to-line"===T)e=m.srcIntn;else if("outside-to-node"===T||"outside-to-node-or-label"===T?o=i:"outside-to-line"!==T&&"outside-to-line-or-label"!==T||(o=[u.x,u.y]),e=a.nodeShapes[this.getNodeShape(s)].intersectLine(l.x,l.y,s.outerWidth(),s.outerHeight(),o[0],o[1],0),"outside-to-node-or-label"===T||"outside-to-line-or-label"===T){var K=s._private.rscratch,Y=K.labelWidth,X=K.labelHeight,Z=K.labelX,Q=K.labelY,J=Y/2,tt=X/2,et=s.pstyle("text-valign").value;"top"===et?Q-=tt:"bottom"===et&&(Q+=tt);var nt=s.pstyle("text-halign").value;"left"===nt?Z-=J:"right"===nt&&(Z+=J);var it=ii(o[0],o[1],[Z-J,Q-tt,Z+J,Q-tt,Z+J,Q+tt,Z-J,Q+tt],l.x,l.y);if(it.length>0){var rt=u,ot=_n(rt,dn(e)),at=_n(rt,dn(it)),st=ot;at<ot&&(e=[it[0],it[1]],st=at),it.length>2&&_n(rt,{x:it[2],y:it[3]})<st&&(e=[it[2],it[3]])}}var ct=oi(e,i,a.arrowShapes[d].spacing(t)+g),lt=oi(e,i,a.arrowShapes[d].gap(t)+g);m.startX=lt[0],m.startY=lt[1],m.arrowStartX=ct[0],m.arrowStartY=ct[1],C&&(A(m.startX)&&A(m.startY)&&A(m.endX)&&A(m.endY)?m.badLine=!1:m.badLine=!0)},getSourceEndpoint:function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),"haystack"===e.edgeType?{x:e.haystackPts[0],y:e.haystackPts[1]}:{x:e.arrowStartX,y:e.arrowStartY}},getTargetEndpoint:function(t){var e=t[0]._private.rscratch;return this.recalculateRenderedStyle(t),"haystack"===e.edgeType?{x:e.haystackPts[2],y:e.haystackPts[3]}:{x:e.arrowEndX,y:e.arrowEndY}}},th={};function eh(t,e,n){for(var i=function(t,e,n,i){return An(t,e,n,i)},r=e._private.rstyle.bezierPts,o=0;o<t.bezierProjPcts.length;o++){var a=t.bezierProjPcts[o];r.push({x:i(n[0],n[2],n[4],a),y:i(n[1],n[3],n[5],a)})}}th.storeEdgeProjections=function(t){var e=t._private,n=e.rscratch,i=n.edgeType;if(e.rstyle.bezierPts=null,e.rstyle.linePts=null,e.rstyle.haystackPts=null,"multibezier"===i||"bezier"===i||"self"===i||"compound"===i){e.rstyle.bezierPts=[];for(var r=0;r+5<n.allpts.length;r+=4)eh(this,t,n.allpts.slice(r,r+6))}else if("segments"===i){var o=e.rstyle.linePts=[];for(r=0;r+1<n.allpts.length;r+=2)o.push({x:n.allpts[r],y:n.allpts[r+1]})}else if("haystack"===i){var a=n.haystackPts;e.rstyle.haystackPts=[{x:a[0],y:a[1]},{x:a[2],y:a[3]}]}e.rstyle.arrowWidth=this.getArrowWidth(t.pstyle("width").pfValue,t.pstyle("arrow-scale").value)*this.arrowShapeWidth},th.recalculateEdgeProjections=function(t){this.findEdgeControlPoints(t)};var nh={recalculateNodeLabelProjection:function(t){var e=t.pstyle("label").strValue;if(!P(e)){var n,i,r=t._private,o=t.width(),a=t.height(),s=t.padding(),c=t.position(),l=t.pstyle("text-halign").strValue,u=t.pstyle("text-valign").strValue,h=r.rscratch,d=r.rstyle;switch(l){case"left":n=c.x-o/2-s;break;case"right":n=c.x+o/2+s;break;default:n=c.x}switch(u){case"top":i=c.y-a/2-s;break;case"bottom":i=c.y+a/2+s;break;default:i=c.y}h.labelX=n,h.labelY=i,d.labelX=n,d.labelY=i,this.calculateLabelAngles(t),this.applyLabelDimensions(t)}}},ih=function(t,e){var n=Math.atan(e/t);return 0===t&&n<0&&(n*=-1),n},rh=function(t,e){var n=e.x-t.x,i=e.y-t.y;return ih(n,i)},oh=function(t,e,n,i){var r=Tn(0,i-.001,1),o=Tn(0,i+.001,1),a=xn(t,e,n,r),s=xn(t,e,n,o);return rh(a,s)};nh.recalculateEdgeLabelProjections=function(t){var e,n=t._private,i=n.rscratch,r=this,o={mid:t.pstyle("label").strValue,source:t.pstyle("source-label").strValue,target:t.pstyle("target-label").strValue};if(o.mid||o.source||o.target){e={x:i.midX,y:i.midY};var a=function(t,e,i){je(n.rscratch,t,e,i),je(n.rstyle,t,e,i)};a("labelX",null,e.x),a("labelY",null,e.y);var s=ih(i.midDispX,i.midDispY);a("labelAutoAngle",null,s);var c=function t(){if(t.cache)return t.cache;for(var e=[],o=0;o+5<i.allpts.length;o+=4){var a={x:i.allpts[o],y:i.allpts[o+1]},s={x:i.allpts[o+2],y:i.allpts[o+3]},c={x:i.allpts[o+4],y:i.allpts[o+5]};e.push({p0:a,p1:s,p2:c,startDist:0,length:0,segments:[]})}var l=n.rstyle.bezierPts,u=r.bezierProjPcts.length;function h(t,e,n,i,r){var o=yn(e,n),a=t.segments[t.segments.length-1],s={p0:e,p1:n,t0:i,t1:r,startDist:a?a.startDist+a.length:0,length:o};t.segments.push(s),t.length+=o}for(var d=0;d<e.length;d++){var f=e[d],g=e[d-1];g&&(f.startDist=g.startDist+g.length),h(f,f.p0,l[d*u],0,r.bezierProjPcts[0]);for(var p=0;p<u-1;p++)h(f,l[d*u+p],l[d*u+p+1],r.bezierProjPcts[p],r.bezierProjPcts[p+1]);h(f,l[d*u+u-1],f.p2,r.bezierProjPcts[u-1],1)}return t.cache=e},l=function(n){var r,s="source"===n;if(o[n]){var l=t.pstyle(n+"-text-offset").pfValue;switch(i.edgeType){case"self":case"compound":case"bezier":case"multibezier":for(var u,h=c(),d=0,f=0,g=0;g<h.length;g++){for(var p=h[s?g:h.length-1-g],m=0;m<p.segments.length;m++){var b=p.segments[s?m:p.segments.length-1-m],w=g===h.length-1&&m===p.segments.length-1;if(d=f,(f+=b.length)>=l||w){u={cp:p,segment:b};break}}if(u)break}var k=u.cp,v=u.segment,y=(l-d)/v.length,_=v.t1-v.t0,C=s?v.t0+_*y:v.t1-_*y;C=Tn(0,C,1),e=xn(k.p0,k.p1,k.p2,C),r=oh(k.p0,k.p1,k.p2,C);break;case"straight":case"segments":case"haystack":for(var A,x,E,T,S=0,D=i.allpts.length,I=0;I+3<D&&(s?(E={x:i.allpts[I],y:i.allpts[I+1]},T={x:i.allpts[I+2],y:i.allpts[I+3]}):(E={x:i.allpts[D-2-I],y:i.allpts[D-1-I]},T={x:i.allpts[D-4-I],y:i.allpts[D-3-I]}),x=S,!((S+=A=yn(E,T))>=l));I+=2);var B=(l-x)/A;B=Tn(0,B,1),e=En(E,T,B),r=rh(E,T)}a("labelX",n,e.x),a("labelY",n,e.y),a("labelAutoAngle",n,r)}};l("source"),l("target"),this.applyLabelDimensions(t)}},nh.applyLabelDimensions=function(t){this.applyPrefixedLabelDimensions(t),t.isEdge()&&(this.applyPrefixedLabelDimensions(t,"source"),this.applyPrefixedLabelDimensions(t,"target"))},nh.applyPrefixedLabelDimensions=function(t,e){var n=t._private,i=this.getLabelText(t,e),r=this.calculateLabelDimensions(t,i),o=t.pstyle("line-height").pfValue,a=t.pstyle("text-wrap").strValue,s=Fe(n.rscratch,"labelWrapCachedLines",e)||[],c="wrap"!==a?1:Math.max(s.length,1),l=r.height/c,u=l*o,h=r.width,d=r.height+(c-1)*(o-1)*l;je(n.rstyle,"labelWidth",e,h),je(n.rscratch,"labelWidth",e,h),je(n.rstyle,"labelHeight",e,d),je(n.rscratch,"labelHeight",e,d),je(n.rscratch,"labelLineHeight",e,u)},nh.getLabelText=function(t,e){var n=t._private,i=e?e+"-":"",r=t.pstyle(i+"label").strValue,o=t.pstyle("text-transform").value,a=function(t,i){return i?(je(n.rscratch,t,e,i),i):Fe(n.rscratch,t,e)};if(!r)return"";"none"==o||("uppercase"==o?r=r.toUpperCase():"lowercase"==o&&(r=r.toLowerCase()));var s=t.pstyle("text-wrap").value;if("wrap"===s){var c=a("labelKey");if(null!=c&&a("labelWrapKey")===c)return a("labelWrapCachedText");for(var l="",u=r.split("\n"),h=t.pstyle("text-max-width").pfValue,d="anywhere"===t.pstyle("text-overflow-wrap").value,f=[],g=/[\s\u200b]+/,p=d?"":" ",m=0;m<u.length;m++){var b=u[m],w=this.calculateLabelDimensions(t,b).width;if(d){var k=b.split("").join(l);b=k}if(w>h){for(var v=b.split(g),y="",_=0;_<v.length;_++){var C=v[_],A=0===y.length?C:y+p+C;this.calculateLabelDimensions(t,A).width<=h?y+=C+p:(y&&f.push(y),y=C+p)}y.match(/^[\s\u200b]+$/)||f.push(y)}else f.push(b)}a("labelWrapCachedLines",f),r=a("labelWrapCachedText",f.join("\n")),a("labelWrapKey",c)}else if("ellipsis"===s){var x=t.pstyle("text-max-width").pfValue,E="",T="…",S=!1;if(this.calculateLabelDimensions(t,r).width<x)return r;for(var D=0;D<r.length&&!(this.calculateLabelDimensions(t,E+r[D]+T).width>x);D++)E+=r[D],D===r.length-1&&(S=!0);return S||(E+=T),E}return r},nh.getLabelJustification=function(t){var e=t.pstyle("text-justification").strValue,n=t.pstyle("text-halign").strValue;if("auto"!==e)return e;if(!t.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},nh.calculateLabelDimensions=function(t,e){var n=this,i=ge(e,t._private.labelDimsKey),r=n.labelDimCache||(n.labelDimCache=[]),o=r[i];if(null!=o)return o;var a=0,s=t.pstyle("font-style").strValue,c=t.pstyle("font-size").pfValue,l=t.pstyle("font-family").strValue,u=t.pstyle("font-weight").strValue,h=this.labelCalcCanvas,d=this.labelCalcCanvasContext;if(!h){h=this.labelCalcCanvas=document.createElement("canvas"),d=this.labelCalcCanvasContext=h.getContext("2d");var f=h.style;f.position="absolute",f.left="-9999px",f.top="-9999px",f.zIndex="-1",f.visibility="hidden",f.pointerEvents="none"}d.font="".concat(s," ").concat(u," ").concat(c,"px ").concat(l);for(var g=0,p=0,m=e.split("\n"),b=0;b<m.length;b++){var w=m[b],k=d.measureText(w),v=Math.ceil(k.width),y=c;g=Math.max(v,g),p+=y}return g+=a,p+=a,r[i]={width:g,height:p}},nh.calculateLabelAngle=function(t,e){var n=t._private.rscratch,i=t.isEdge(),r=e?e+"-":"",o=t.pstyle(r+"text-rotation"),a=o.strValue;return"none"===a?0:i&&"autorotate"===a?n.labelAutoAngle:"autorotate"===a?0:o.pfValue},nh.calculateLabelAngles=function(t){var e=this,n=t.isEdge(),i=t._private.rscratch;i.labelAngle=e.calculateLabelAngle(t),n&&(i.sourceLabelAngle=e.calculateLabelAngle(t,"source"),i.targetLabelAngle=e.calculateLabelAngle(t,"target"))};var ah={},sh=28,ch=!1;ah.getNodeShape=function(t){var e=this,n=t.pstyle("shape").value;if("cutrectangle"===n&&(t.width()<sh||t.height()<sh))return ch||(Te("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),ch=!0),"rectangle";if(t.isParent())return"rectangle"===n||"roundrectangle"===n||"round-rectangle"===n||"cutrectangle"===n||"cut-rectangle"===n||"barrel"===n?n:"rectangle";if("polygon"===n){var i=t.pstyle("shape-polygon-points").value;return e.nodeShapes.makePolygon(i).name}return n};var lh={registerCalculationListeners:function(){var t=this.cy,e=t.collection(),n=this,i=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.merge(t),n)for(var i=0;i<t.length;i++){var r=t[i]._private.rstyle;r.clean=!1,r.cleanConnected=!1}};n.binder(t).on("bounds.* dirty.*",(function(t){var e=t.target;i(e)})).on("style.* background.*",(function(t){var e=t.target;i(e,!1)}));var r=function(r){if(r){var o=n.onUpdateEleCalcsFns;e.cleanStyle();for(var a=0;a<e.length;a++){var s=e[a],c=s._private.rstyle;s.isNode()&&!c.cleanConnected&&(i(s.connectedEdges()),c.cleanConnected=!0)}if(o)for(var l=0;l<o.length;l++)(0,o[l])(r,e);n.recalculateRenderedStyle(e),e=t.collection()}};n.flushRenderedStyleQueue=function(){r(!0)},n.beforeRender(r,n.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(t){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(t)},recalculateRenderedStyle:function(t,e){var n=function(t){return t._private.rstyle.cleanConnected},i=[],r=[];if(!this.destroyed){void 0===e&&(e=!0);for(var o=0;o<t.length;o++){var a=t[o],s=a._private,c=s.rstyle;!a.isEdge()||n(a.source())&&n(a.target())||(c.clean=!1),e&&c.clean||a.removed()||"none"!==a.pstyle("display").value&&("nodes"===s.group?r.push(a):i.push(a),c.clean=!0)}for(var l=0;l<r.length;l++){var u=r[l],h=u._private.rstyle,d=u.position();this.recalculateNodeLabelProjection(u),h.nodeX=d.x,h.nodeY=d.y,h.nodeW=u.pstyle("width").pfValue,h.nodeH=u.pstyle("height").pfValue}this.recalculateEdgeProjections(i);for(var f=0;f<i.length;f++){var g=i[f]._private,p=g.rstyle,m=g.rscratch;p.srcX=m.arrowStartX,p.srcY=m.arrowStartY,p.tgtX=m.arrowEndX,p.tgtY=m.arrowEndY,p.midX=m.midX,p.midY=m.midY,p.labelAngle=m.labelAngle,p.sourceLabelAngle=m.sourceLabelAngle,p.targetLabelAngle=m.targetLabelAngle}}}},uh={updateCachedGrabbedEles:function(){var t=this.cachedZSortedEles;if(t){t.drag=[],t.nondrag=[];for(var e=[],n=0;n<t.length;n++){var i=(r=t[n])._private.rscratch;r.grabbed()&&!r.isParent()?e.push(r):i.inDragLayer?t.drag.push(r):t.nondrag.push(r)}for(n=0;n<e.length;n++){var r=e[n];t.drag.push(r)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(t){if(t||!this.cachedZSortedEles){var e=this.cy.mutableElements().toArray();e.sort(Gc),e.interactive=e.filter((function(t){return t.interactive()})),this.cachedZSortedEles=e,this.updateCachedGrabbedEles()}else e=this.cachedZSortedEles;return e}},hh={};[Yu,Xu,Zu,Ju,th,nh,ah,lh,uh].forEach((function(t){Q(hh,t)}));var dh={getCachedImage:function(t,e,n){var i=this,r=i.imageCache=i.imageCache||{},o=r[t];if(o)return o.image.complete||o.image.addEventListener("load",n),o.image;var a=(o=r[t]=r[t]||{}).image=new Image;a.addEventListener("load",n),a.addEventListener("error",(function(){a.error=!0}));var s="data:";return t.substring(0,s.length).toLowerCase()===s||(a.crossOrigin=e),a.src=t,a}},fh={registerBinding:function(t,e,n,i){var r=Array.prototype.slice.apply(arguments,[1]),o=this.binder(t);return o.on.apply(o,r)},binder:function(t){var e=this,n=t===window||t===document||t===document.body||L(t);if(null==e.supportsPassiveEvents){var i=!1;try{var r=Object.defineProperty({},"passive",{get:function(){return i=!0,!0}});window.addEventListener("test",null,r)}catch(t){}e.supportsPassiveEvents=i}var o=function(i,r,o){var a=Array.prototype.slice.call(arguments);return n&&e.supportsPassiveEvents&&(a[2]={capture:null!=o&&o,passive:!1,once:!1}),e.bindings.push({target:t,args:a}),(t.addEventListener||t.on).apply(t,a),this};return{on:o,addEventListener:o,addListener:o,bind:o}},nodeIsDraggable:function(t){return t&&t.isNode()&&!t.locked()&&t.grabbable()},nodeIsGrabbable:function(t){return this.nodeIsDraggable(t)&&t.interactive()},load:function(){var t=this,e=function(t){return t.selected()},n=function(e,n,i,r){null==e&&(e=t.cy);for(var o=0;o<n.length;o++){var a=n[o];e.emit({originalEvent:i,type:a,position:r})}},i=function(t){return t.shiftKey||t.metaKey||t.ctrlKey},r=function(e,n){var i=!0;if(t.cy.hasCompoundNodes()&&e&&e.pannable()){for(var r=0;n&&r<n.length;r++)if((e=n[r]).isNode()&&e.isParent()&&!e.pannable()){i=!1;break}}else i=!0;return i},o=function(t){t[0]._private.grabbed=!0},a=function(t){t[0]._private.grabbed=!1},s=function(t){t[0]._private.rscratch.inDragLayer=!0},c=function(t){t[0]._private.rscratch.inDragLayer=!1},l=function(t){t[0]._private.rscratch.isGrabTarget=!0},u=function(t){t[0]._private.rscratch.isGrabTarget=!1},h=function(t,e){var n=e.addToList;n.has(t)||!t.grabbable()||t.locked()||(n.merge(t),o(t))},d=function(t,e){if(t.cy().hasCompoundNodes()&&(null!=e.inDragLayer||null!=e.addToList)){var n=t.descendants();e.inDragLayer&&(n.forEach(s),n.connectedEdges().forEach(s)),e.addToList&&h(n,e)}},f=function(e,n){n=n||{};var i=e.cy().hasCompoundNodes();n.inDragLayer&&(e.forEach(s),e.neighborhood().stdFilter((function(t){return!i||t.isEdge()})).forEach(s)),n.addToList&&e.forEach((function(t){h(t,n)})),d(e,n),m(e,{inDragLayer:n.inDragLayer}),t.updateCachedGrabbedEles()},g=f,p=function(e){e&&(t.getCachedZSortedEles().forEach((function(t){a(t),c(t),u(t)})),t.updateCachedGrabbedEles())},m=function(t,e){if((null!=e.inDragLayer||null!=e.addToList)&&t.cy().hasCompoundNodes()){var n=t.ancestors().orphans();if(!n.same(t)){var i=n.descendants().spawnSelf().merge(n).unmerge(t).unmerge(t.descendants()),r=i.connectedEdges();e.inDragLayer&&(r.forEach(s),i.forEach(s)),e.addToList&&i.forEach((function(t){h(t,e)}))}}},b=function(){null!=document.activeElement&&null!=document.activeElement.blur&&document.activeElement.blur()},w="undefined"!=typeof MutationObserver,k="undefined"!=typeof ResizeObserver;w?(t.removeObserver=new MutationObserver((function(e){for(var n=0;n<e.length;n++){var i=e[n].removedNodes;if(i)for(var r=0;r<i.length;r++)if(i[r]===t.container){t.destroy();break}}})),t.container.parentNode&&t.removeObserver.observe(t.container.parentNode,{childList:!0})):t.registerBinding(t.container,"DOMNodeRemoved",(function(e){t.destroy()}));var v=Qt((function(){t.cy.resize()}),100);w&&(t.styleObserver=new MutationObserver(v),t.styleObserver.observe(t.container,{attributes:!0})),t.registerBinding(window,"resize",v),k&&(t.resizeObserver=new ResizeObserver(v),t.resizeObserver.observe(t.container));var y=function(){t.invalidateContainerClientCoordsCache()};(function(t,e){for(;null!=t;)e(t),t=t.parentNode})(t.container,(function(e){t.registerBinding(e,"transitionend",y),t.registerBinding(e,"animationend",y),t.registerBinding(e,"scroll",y)})),t.registerBinding(t.container,"contextmenu",(function(t){t.preventDefault()}));var _,C,x,E=function(){return 0!==t.selection[4]},T=function(e){for(var n=t.findContainerClientCoords(),i=n[0],r=n[1],o=n[2],a=n[3],s=e.touches?e.touches:[e],c=!1,l=0;l<s.length;l++){var u=s[l];if(i<=u.clientX&&u.clientX<=i+o&&r<=u.clientY&&u.clientY<=r+a){c=!0;break}}if(!c)return!1;for(var h=t.container,d=e.target.parentNode,f=!1;d;){if(d===h){f=!0;break}d=d.parentNode}return!!f};t.registerBinding(t.container,"mousedown",(function(e){if(T(e)){e.preventDefault(),b(),t.hoverData.capture=!0,t.hoverData.which=e.which;var i=t.cy,r=[e.clientX,e.clientY],o=t.projectIntoViewport(r[0],r[1]),a=t.selection,s=t.findNearestElements(o[0],o[1],!0,!1),c=s[0],u=t.dragData.possibleDragElements;t.hoverData.mdownPos=o,t.hoverData.mdownGPos=r;var h=function(){t.hoverData.tapholdCancelled=!1,clearTimeout(t.hoverData.tapholdTimeout),t.hoverData.tapholdTimeout=setTimeout((function(){if(!t.hoverData.tapholdCancelled){var n=t.hoverData.down;n?n.emit({originalEvent:e,type:"taphold",position:{x:o[0],y:o[1]}}):i.emit({originalEvent:e,type:"taphold",position:{x:o[0],y:o[1]}})}}),t.tapholdDuration)};if(3==e.which){t.hoverData.cxtStarted=!0;var d={originalEvent:e,type:"cxttapstart",position:{x:o[0],y:o[1]}};c?(c.activate(),c.emit(d),t.hoverData.down=c):i.emit(d),t.hoverData.downTime=(new Date).getTime(),t.hoverData.cxtDragged=!1}else if(1==e.which){if(c&&c.activate(),null!=c&&t.nodeIsGrabbable(c)){var p=function(t){return{originalEvent:e,type:t,position:{x:o[0],y:o[1]}}},m=function(t){t.emit(p("grab"))};if(l(c),c.selected()){u=t.dragData.possibleDragElements=i.collection();var w=i.$((function(e){return e.isNode()&&e.selected()&&t.nodeIsGrabbable(e)}));f(w,{addToList:u}),c.emit(p("grabon")),w.forEach(m)}else u=t.dragData.possibleDragElements=i.collection(),g(c,{addToList:u}),c.emit(p("grabon")).emit(p("grab"));t.redrawHint("eles",!0),t.redrawHint("drag",!0)}t.hoverData.down=c,t.hoverData.downs=s,t.hoverData.downTime=(new Date).getTime(),n(c,["mousedown","tapstart","vmousedown"],e,{x:o[0],y:o[1]}),null==c?(a[4]=1,t.data.bgActivePosistion={x:o[0],y:o[1]},t.redrawHint("select",!0),t.redraw()):c.pannable()&&(a[4]=1),h()}a[0]=a[2]=o[0],a[1]=a[3]=o[1]}}),!1),t.registerBinding(window,"mousemove",(function(e){if(t.hoverData.capture||T(e)){var o=!1,a=t.cy,s=a.zoom(),c=[e.clientX,e.clientY],l=t.projectIntoViewport(c[0],c[1]),u=t.hoverData.mdownPos,h=t.hoverData.mdownGPos,d=t.selection,g=null;t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.selecting||(g=t.findNearestElement(l[0],l[1],!0,!1));var m,b=t.hoverData.last,w=t.hoverData.down,k=[l[0]-d[2],l[1]-d[3]],v=t.dragData.possibleDragElements;if(h){var y=c[0]-h[0],_=y*y,C=c[1]-h[1],x=_+C*C;t.hoverData.isOverThresholdDrag=m=x>=t.desktopTapThreshold2}var E=i(e);m&&(t.hoverData.tapholdCancelled=!0);var S=function(){var e=t.hoverData.dragDelta=t.hoverData.dragDelta||[];0===e.length?(e.push(k[0]),e.push(k[1])):(e[0]+=k[0],e[1]+=k[1])};o=!0,n(g,["mousemove","vmousemove","tapdrag"],e,{x:l[0],y:l[1]});var D=function(){t.data.bgActivePosistion=void 0,t.hoverData.selecting||a.emit({originalEvent:e,type:"boxstart",position:{x:l[0],y:l[1]}}),d[4]=1,t.hoverData.selecting=!0,t.redrawHint("select",!0),t.redraw()};if(3===t.hoverData.which){if(m){var I={originalEvent:e,type:"cxtdrag",position:{x:l[0],y:l[1]}};w?w.emit(I):a.emit(I),t.hoverData.cxtDragged=!0,t.hoverData.cxtOver&&g===t.hoverData.cxtOver||(t.hoverData.cxtOver&&t.hoverData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:l[0],y:l[1]}}),t.hoverData.cxtOver=g,g&&g.emit({originalEvent:e,type:"cxtdragover",position:{x:l[0],y:l[1]}}))}}else if(t.hoverData.dragging){if(o=!0,a.panningEnabled()&&a.userPanningEnabled()){var B;if(t.hoverData.justStartedPan){var M=t.hoverData.mdownPos;B={x:(l[0]-M[0])*s,y:(l[1]-M[1])*s},t.hoverData.justStartedPan=!1}else B={x:k[0]*s,y:k[1]*s};a.panBy(B),a.emit("dragpan"),t.hoverData.dragged=!0}l=t.projectIntoViewport(e.clientX,e.clientY)}else if(1!=d[4]||null!=w&&!w.pannable()){if(w&&w.pannable()&&w.active()&&w.unactivate(),w&&w.grabbed()||g==b||(b&&n(b,["mouseout","tapdragout"],e,{x:l[0],y:l[1]}),g&&n(g,["mouseover","tapdragover"],e,{x:l[0],y:l[1]}),t.hoverData.last=g),w)if(m){if(a.boxSelectionEnabled()&&E)w&&w.grabbed()&&(p(v),w.emit("freeon"),v.emit("free"),t.dragData.didDrag&&(w.emit("dragfreeon"),v.emit("dragfree"))),D();else if(w&&w.grabbed()&&t.nodeIsDraggable(w)){var P=!t.dragData.didDrag;P&&t.redrawHint("eles",!0),t.dragData.didDrag=!0,t.hoverData.draggingEles||f(v,{inDragLayer:!0});var L={x:0,y:0};if(A(k[0])&&A(k[1])&&(L.x+=k[0],L.y+=k[1],P)){var O=t.hoverData.dragDelta;O&&A(O[0])&&A(O[1])&&(L.x+=O[0],L.y+=O[1])}t.hoverData.draggingEles=!0,v.silentShift(L).emit("position drag"),t.redrawHint("drag",!0),t.redraw()}}else S();o=!0}else m&&(t.hoverData.dragging||!a.boxSelectionEnabled()||!E&&a.panningEnabled()&&a.userPanningEnabled()?!t.hoverData.selecting&&a.panningEnabled()&&a.userPanningEnabled()&&r(w,t.hoverData.downs)&&(t.hoverData.dragging=!0,t.hoverData.justStartedPan=!0,d[4]=0,t.data.bgActivePosistion=dn(u),t.redrawHint("select",!0),t.redraw()):D(),w&&w.pannable()&&w.active()&&w.unactivate());return d[2]=l[0],d[3]=l[1],o?(e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1):void 0}}),!1),t.registerBinding(window,"mouseup",(function(r){if(t.hoverData.capture){t.hoverData.capture=!1;var o=t.cy,a=t.projectIntoViewport(r.clientX,r.clientY),s=t.selection,c=t.findNearestElement(a[0],a[1],!0,!1),l=t.dragData.possibleDragElements,u=t.hoverData.down,h=i(r);if(t.data.bgActivePosistion&&(t.redrawHint("select",!0),t.redraw()),t.hoverData.tapholdCancelled=!0,t.data.bgActivePosistion=void 0,u&&u.unactivate(),3===t.hoverData.which){var d={originalEvent:r,type:"cxttapend",position:{x:a[0],y:a[1]}};if(u?u.emit(d):o.emit(d),!t.hoverData.cxtDragged){var f={originalEvent:r,type:"cxttap",position:{x:a[0],y:a[1]}};u?u.emit(f):o.emit(f)}t.hoverData.cxtDragged=!1,t.hoverData.which=null}else if(1===t.hoverData.which){if(n(c,["mouseup","tapend","vmouseup"],r,{x:a[0],y:a[1]}),t.dragData.didDrag||t.hoverData.dragged||t.hoverData.selecting||t.hoverData.isOverThresholdDrag||(n(u,["click","tap","vclick"],r,{x:a[0],y:a[1]}),C=!1,r.timeStamp-x<=o.multiClickDebounceTime()?(_&&clearTimeout(_),C=!0,x=null,n(u,["dblclick","dbltap","vdblclick"],r,{x:a[0],y:a[1]})):(_=setTimeout((function(){C||n(u,["oneclick","onetap","voneclick"],r,{x:a[0],y:a[1]})}),o.multiClickDebounceTime()),x=r.timeStamp)),null!=u||t.dragData.didDrag||t.hoverData.selecting||t.hoverData.dragged||i(r)||(o.$(e).unselect(["tapunselect"]),l.length>0&&t.redrawHint("eles",!0),t.dragData.possibleDragElements=l=o.collection()),c!=u||t.dragData.didDrag||t.hoverData.selecting||null!=c&&c._private.selectable&&(t.hoverData.dragging||("additive"===o.selectionType()||h?c.selected()?c.unselect(["tapunselect"]):c.select(["tapselect"]):h||(o.$(e).unmerge(c).unselect(["tapunselect"]),c.select(["tapselect"]))),t.redrawHint("eles",!0)),t.hoverData.selecting){var g=o.collection(t.getAllInBox(s[0],s[1],s[2],s[3]));t.redrawHint("select",!0),g.length>0&&t.redrawHint("eles",!0),o.emit({type:"boxend",originalEvent:r,position:{x:a[0],y:a[1]}});var m=function(t){return t.selectable()&&!t.selected()};"additive"===o.selectionType()||h||o.$(e).unmerge(g).unselect(),g.emit("box").stdFilter(m).select().emit("boxselect"),t.redraw()}if(t.hoverData.dragging&&(t.hoverData.dragging=!1,t.redrawHint("select",!0),t.redrawHint("eles",!0),t.redraw()),!s[4]){t.redrawHint("drag",!0),t.redrawHint("eles",!0);var b=u&&u.grabbed();p(l),b&&(u.emit("freeon"),l.emit("free"),t.dragData.didDrag&&(u.emit("dragfreeon"),l.emit("dragfree")))}}s[4]=0,t.hoverData.down=null,t.hoverData.cxtStarted=!1,t.hoverData.draggingEles=!1,t.hoverData.selecting=!1,t.hoverData.isOverThresholdDrag=!1,t.dragData.didDrag=!1,t.hoverData.dragged=!1,t.hoverData.dragDelta=[],t.hoverData.mdownPos=null,t.hoverData.mdownGPos=null}}),!1);var S,D,I,B,M,P,L,O,N,R,F,j,$,z=function(e){if(!t.scrollingPage){var n=t.cy,i=n.zoom(),r=n.pan(),o=t.projectIntoViewport(e.clientX,e.clientY),a=[o[0]*i+r.x,o[1]*i+r.y];if(t.hoverData.draggingEles||t.hoverData.dragging||t.hoverData.cxtStarted||E())e.preventDefault();else if(n.panningEnabled()&&n.userPanningEnabled()&&n.zoomingEnabled()&&n.userZoomingEnabled()){var s;e.preventDefault(),t.data.wheelZooming=!0,clearTimeout(t.data.wheelTimeout),t.data.wheelTimeout=setTimeout((function(){t.data.wheelZooming=!1,t.redrawHint("eles",!0),t.redraw()}),150),s=null!=e.deltaY?e.deltaY/-250:null!=e.wheelDeltaY?e.wheelDeltaY/1e3:e.wheelDelta/1e3,s*=t.wheelSensitivity,1===e.deltaMode&&(s*=33);var c=n.zoom()*Math.pow(10,s);"gesturechange"===e.type&&(c=t.gestureStartZoom*e.scale),n.zoom({level:c,renderedPosition:{x:a[0],y:a[1]}}),n.emit("gesturechange"===e.type?"pinchzoom":"scrollzoom")}}};t.registerBinding(t.container,"wheel",z,!0),t.registerBinding(window,"scroll",(function(e){t.scrollingPage=!0,clearTimeout(t.scrollingPageTimeout),t.scrollingPageTimeout=setTimeout((function(){t.scrollingPage=!1}),250)}),!0),t.registerBinding(t.container,"gesturestart",(function(e){t.gestureStartZoom=t.cy.zoom(),t.hasTouchStarted||e.preventDefault()}),!0),t.registerBinding(t.container,"gesturechange",(function(e){t.hasTouchStarted||z(e)}),!0),t.registerBinding(t.container,"mouseout",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseout",position:{x:n[0],y:n[1]}})}),!1),t.registerBinding(t.container,"mouseover",(function(e){var n=t.projectIntoViewport(e.clientX,e.clientY);t.cy.emit({originalEvent:e,type:"mouseover",position:{x:n[0],y:n[1]}})}),!1);var V,H,q,U,G,W,K,Y=function(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))},X=function(t,e,n,i){return(n-t)*(n-t)+(i-e)*(i-e)};if(t.registerBinding(t.container,"touchstart",V=function(e){if(t.hasTouchStarted=!0,T(e)){b(),t.touchData.capture=!0,t.data.bgActivePosistion=void 0;var i=t.cy,r=t.touchData.now,o=t.touchData.earlier;if(e.touches[0]){var a=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);r[0]=a[0],r[1]=a[1]}if(e.touches[1]&&(a=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),r[2]=a[0],r[3]=a[1]),e.touches[2]&&(a=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),r[4]=a[0],r[5]=a[1]),e.touches[1]){t.touchData.singleTouchMoved=!0,p(t.dragData.touchDragEles);var s=t.findContainerClientCoords();N=s[0],R=s[1],F=s[2],j=s[3],S=e.touches[0].clientX-N,D=e.touches[0].clientY-R,I=e.touches[1].clientX-N,B=e.touches[1].clientY-R,$=0<=S&&S<=F&&0<=I&&I<=F&&0<=D&&D<=j&&0<=B&&B<=j;var c=i.pan(),u=i.zoom();M=Y(S,D,I,B),P=X(S,D,I,B),O=[((L=[(S+I)/2,(D+B)/2])[0]-c.x)/u,(L[1]-c.y)/u];var h=200;if(P<h*h&&!e.touches[2]){var d=t.findNearestElement(r[0],r[1],!0,!0),m=t.findNearestElement(r[2],r[3],!0,!0);return d&&d.isNode()?(d.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start=d):m&&m.isNode()?(m.activate().emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start=m):i.emit({originalEvent:e,type:"cxttapstart",position:{x:r[0],y:r[1]}}),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!0,t.touchData.cxtDragged=!1,t.data.bgActivePosistion=void 0,void t.redraw()}}if(e.touches[2])i.boxSelectionEnabled()&&e.preventDefault();else if(e.touches[1]);else if(e.touches[0]){var w=t.findNearestElements(r[0],r[1],!0,!0),k=w[0];if(null!=k&&(k.activate(),t.touchData.start=k,t.touchData.starts=w,t.nodeIsGrabbable(k))){var v=t.dragData.touchDragEles=i.collection(),y=null;t.redrawHint("eles",!0),t.redrawHint("drag",!0),k.selected()?(y=i.$((function(e){return e.selected()&&t.nodeIsGrabbable(e)})),f(y,{addToList:v})):g(k,{addToList:v}),l(k);var _=function(t){return{originalEvent:e,type:t,position:{x:r[0],y:r[1]}}};k.emit(_("grabon")),y?y.forEach((function(t){t.emit(_("grab"))})):k.emit(_("grab"))}n(k,["touchstart","tapstart","vmousedown"],e,{x:r[0],y:r[1]}),null==k&&(t.data.bgActivePosistion={x:a[0],y:a[1]},t.redrawHint("select",!0),t.redraw()),t.touchData.singleTouchMoved=!1,t.touchData.singleTouchStartTime=+new Date,clearTimeout(t.touchData.tapholdTimeout),t.touchData.tapholdTimeout=setTimeout((function(){!1!==t.touchData.singleTouchMoved||t.pinching||t.touchData.selecting||n(t.touchData.start,["taphold"],e,{x:r[0],y:r[1]})}),t.tapholdDuration)}if(e.touches.length>=1){for(var C=t.touchData.startPosition=[],A=0;A<r.length;A++)C[A]=o[A]=r[A];var x=e.touches[0];t.touchData.startGPosition=[x.clientX,x.clientY]}}},!1),t.registerBinding(window,"touchmove",H=function(e){var i=t.touchData.capture;if(i||T(e)){var o=t.selection,a=t.cy,s=t.touchData.now,c=t.touchData.earlier,l=a.zoom();if(e.touches[0]){var u=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY);s[0]=u[0],s[1]=u[1]}e.touches[1]&&(u=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),s[2]=u[0],s[3]=u[1]),e.touches[2]&&(u=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),s[4]=u[0],s[5]=u[1]);var h,d=t.touchData.startGPosition;if(i&&e.touches[0]&&d){for(var g=[],m=0;m<s.length;m++)g[m]=s[m]-c[m];var b=e.touches[0].clientX-d[0],w=b*b,k=e.touches[0].clientY-d[1];h=w+k*k>=t.touchTapThreshold2}if(i&&t.touchData.cxt){e.preventDefault();var v=e.touches[0].clientX-N,y=e.touches[0].clientY-R,_=e.touches[1].clientX-N,C=e.touches[1].clientY-R,x=X(v,y,_,C),E=150,L=1.5;if(x/P>=L*L||x>=E*E){t.touchData.cxt=!1,t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var F={originalEvent:e,type:"cxttapend",position:{x:s[0],y:s[1]}};t.touchData.start?(t.touchData.start.unactivate().emit(F),t.touchData.start=null):a.emit(F)}}if(i&&t.touchData.cxt){F={originalEvent:e,type:"cxtdrag",position:{x:s[0],y:s[1]}},t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.touchData.start?t.touchData.start.emit(F):a.emit(F),t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxtDragged=!0;var j=t.findNearestElement(s[0],s[1],!0,!0);t.touchData.cxtOver&&j===t.touchData.cxtOver||(t.touchData.cxtOver&&t.touchData.cxtOver.emit({originalEvent:e,type:"cxtdragout",position:{x:s[0],y:s[1]}}),t.touchData.cxtOver=j,j&&j.emit({originalEvent:e,type:"cxtdragover",position:{x:s[0],y:s[1]}}))}else if(i&&e.touches[2]&&a.boxSelectionEnabled())e.preventDefault(),t.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,t.touchData.selecting||a.emit({originalEvent:e,type:"boxstart",position:{x:s[0],y:s[1]}}),t.touchData.selecting=!0,t.touchData.didSelect=!0,o[4]=1,o&&0!==o.length&&void 0!==o[0]?(o[2]=(s[0]+s[2]+s[4])/3,o[3]=(s[1]+s[3]+s[5])/3):(o[0]=(s[0]+s[2]+s[4])/3,o[1]=(s[1]+s[3]+s[5])/3,o[2]=(s[0]+s[2]+s[4])/3+1,o[3]=(s[1]+s[3]+s[5])/3+1),t.redrawHint("select",!0),t.redraw();else if(i&&e.touches[1]&&!t.touchData.didSelect&&a.zoomingEnabled()&&a.panningEnabled()&&a.userZoomingEnabled()&&a.userPanningEnabled()){if(e.preventDefault(),t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),nt=t.dragData.touchDragEles){t.redrawHint("drag",!0);for(var z=0;z<nt.length;z++){var V=nt[z]._private;V.grabbed=!1,V.rscratch.inDragLayer=!1}}var H=t.touchData.start,q=(v=e.touches[0].clientX-N,y=e.touches[0].clientY-R,_=e.touches[1].clientX-N,C=e.touches[1].clientY-R,Y(v,y,_,C)),U=q/M;if($){var G=(v-S+(_-I))/2,W=(y-D+(C-B))/2,K=a.zoom(),Z=K*U,Q=a.pan(),J=O[0]*K+Q.x,tt=O[1]*K+Q.y,et={x:-Z/K*(J-Q.x-G)+J,y:-Z/K*(tt-Q.y-W)+tt};if(H&&H.active()){var nt=t.dragData.touchDragEles;p(nt),t.redrawHint("drag",!0),t.redrawHint("eles",!0),H.unactivate().emit("freeon"),nt.emit("free"),t.dragData.didDrag&&(H.emit("dragfreeon"),nt.emit("dragfree"))}a.viewport({zoom:Z,pan:et,cancelOnFailedZoom:!0}),a.emit("pinchzoom"),M=q,S=v,D=y,I=_,B=C,t.pinching=!0}e.touches[0]&&(u=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY),s[0]=u[0],s[1]=u[1]),e.touches[1]&&(u=t.projectIntoViewport(e.touches[1].clientX,e.touches[1].clientY),s[2]=u[0],s[3]=u[1]),e.touches[2]&&(u=t.projectIntoViewport(e.touches[2].clientX,e.touches[2].clientY),s[4]=u[0],s[5]=u[1])}else if(e.touches[0]&&!t.touchData.didSelect){var it=t.touchData.start,rt=t.touchData.last;if(t.hoverData.draggingEles||t.swipePanning||(j=t.findNearestElement(s[0],s[1],!0,!0)),i&&null!=it&&e.preventDefault(),i&&null!=it&&t.nodeIsDraggable(it))if(h){nt=t.dragData.touchDragEles;var ot=!t.dragData.didDrag;ot&&f(nt,{inDragLayer:!0}),t.dragData.didDrag=!0;var at={x:0,y:0};A(g[0])&&A(g[1])&&(at.x+=g[0],at.y+=g[1],ot&&(t.redrawHint("eles",!0),(st=t.touchData.dragDelta)&&A(st[0])&&A(st[1])&&(at.x+=st[0],at.y+=st[1]))),t.hoverData.draggingEles=!0,nt.silentShift(at).emit("position drag"),t.redrawHint("drag",!0),t.touchData.startPosition[0]==c[0]&&t.touchData.startPosition[1]==c[1]&&t.redrawHint("eles",!0),t.redraw()}else{var st;0===(st=t.touchData.dragDelta=t.touchData.dragDelta||[]).length?(st.push(g[0]),st.push(g[1])):(st[0]+=g[0],st[1]+=g[1])}if(n(it||j,["touchmove","tapdrag","vmousemove"],e,{x:s[0],y:s[1]}),it&&it.grabbed()||j==rt||(rt&&rt.emit({originalEvent:e,type:"tapdragout",position:{x:s[0],y:s[1]}}),j&&j.emit({originalEvent:e,type:"tapdragover",position:{x:s[0],y:s[1]}})),t.touchData.last=j,i)for(z=0;z<s.length;z++)s[z]&&t.touchData.startPosition[z]&&h&&(t.touchData.singleTouchMoved=!0);i&&(null==it||it.pannable())&&a.panningEnabled()&&a.userPanningEnabled()&&(r(it,t.touchData.starts)&&(e.preventDefault(),t.data.bgActivePosistion||(t.data.bgActivePosistion=dn(t.touchData.startPosition)),t.swipePanning?(a.panBy({x:g[0]*l,y:g[1]*l}),a.emit("dragpan")):h&&(t.swipePanning=!0,a.panBy({x:b*l,y:k*l}),a.emit("dragpan"),it&&(it.unactivate(),t.redrawHint("select",!0),t.touchData.start=null))),u=t.projectIntoViewport(e.touches[0].clientX,e.touches[0].clientY),s[0]=u[0],s[1]=u[1])}for(m=0;m<s.length;m++)c[m]=s[m];i&&e.touches.length>0&&!t.hoverData.draggingEles&&!t.swipePanning&&null!=t.data.bgActivePosistion&&(t.data.bgActivePosistion=void 0,t.redrawHint("select",!0),t.redraw())}},!1),t.registerBinding(window,"touchcancel",q=function(e){var n=t.touchData.start;t.touchData.capture=!1,n&&n.unactivate()}),t.registerBinding(window,"touchend",U=function(i){var r=t.touchData.start;if(t.touchData.capture){0===i.touches.length&&(t.touchData.capture=!1),i.preventDefault();var o=t.selection;t.swipePanning=!1,t.hoverData.draggingEles=!1;var a,s=t.cy,c=s.zoom(),l=t.touchData.now,u=t.touchData.earlier;if(i.touches[0]){var h=t.projectIntoViewport(i.touches[0].clientX,i.touches[0].clientY);l[0]=h[0],l[1]=h[1]}if(i.touches[1]&&(h=t.projectIntoViewport(i.touches[1].clientX,i.touches[1].clientY),l[2]=h[0],l[3]=h[1]),i.touches[2]&&(h=t.projectIntoViewport(i.touches[2].clientX,i.touches[2].clientY),l[4]=h[0],l[5]=h[1]),r&&r.unactivate(),t.touchData.cxt){if(a={originalEvent:i,type:"cxttapend",position:{x:l[0],y:l[1]}},r?r.emit(a):s.emit(a),!t.touchData.cxtDragged){var d={originalEvent:i,type:"cxttap",position:{x:l[0],y:l[1]}};r?r.emit(d):s.emit(d)}return t.touchData.start&&(t.touchData.start._private.grabbed=!1),t.touchData.cxt=!1,t.touchData.start=null,void t.redraw()}if(!i.touches[2]&&s.boxSelectionEnabled()&&t.touchData.selecting){t.touchData.selecting=!1;var f=s.collection(t.getAllInBox(o[0],o[1],o[2],o[3]));o[0]=void 0,o[1]=void 0,o[2]=void 0,o[3]=void 0,o[4]=0,t.redrawHint("select",!0),s.emit({type:"boxend",originalEvent:i,position:{x:l[0],y:l[1]}});var g=function(t){return t.selectable()&&!t.selected()};f.emit("box").stdFilter(g).select().emit("boxselect"),f.nonempty()&&t.redrawHint("eles",!0),t.redraw()}if(null!=r&&r.unactivate(),i.touches[2])t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);else if(i.touches[1]);else if(i.touches[0]);else if(!i.touches[0]){t.data.bgActivePosistion=void 0,t.redrawHint("select",!0);var m=t.dragData.touchDragEles;if(null!=r){var b=r._private.grabbed;p(m),t.redrawHint("drag",!0),t.redrawHint("eles",!0),b&&(r.emit("freeon"),m.emit("free"),t.dragData.didDrag&&(r.emit("dragfreeon"),m.emit("dragfree"))),n(r,["touchend","tapend","vmouseup","tapdragout"],i,{x:l[0],y:l[1]}),r.unactivate(),t.touchData.start=null}else{var w=t.findNearestElement(l[0],l[1],!0,!0);n(w,["touchend","tapend","vmouseup","tapdragout"],i,{x:l[0],y:l[1]})}var k=t.touchData.startPosition[0]-l[0],v=k*k,y=t.touchData.startPosition[1]-l[1],_=(v+y*y)*c*c;t.touchData.singleTouchMoved||(r||s.$(":selected").unselect(["tapunselect"]),n(r,["tap","vclick"],i,{x:l[0],y:l[1]}),G=!1,i.timeStamp-K<=s.multiClickDebounceTime()?(W&&clearTimeout(W),G=!0,K=null,n(r,["dbltap","vdblclick"],i,{x:l[0],y:l[1]})):(W=setTimeout((function(){G||n(r,["onetap","voneclick"],i,{x:l[0],y:l[1]})}),s.multiClickDebounceTime()),K=i.timeStamp)),null!=r&&!t.dragData.didDrag&&r._private.selectable&&_<t.touchTapThreshold2&&!t.pinching&&("single"===s.selectionType()?(s.$(e).unmerge(r).unselect(["tapunselect"]),r.select(["tapselect"])):r.selected()?r.unselect(["tapunselect"]):r.select(["tapselect"]),t.redrawHint("eles",!0)),t.touchData.singleTouchMoved=!0}for(var C=0;C<l.length;C++)u[C]=l[C];t.dragData.didDrag=!1,0===i.touches.length&&(t.touchData.dragDelta=[],t.touchData.startPosition=null,t.touchData.startGPosition=null,t.touchData.didSelect=!1),i.touches.length<2&&(1===i.touches.length&&(t.touchData.startGPosition=[i.touches[0].clientX,i.touches[0].clientY]),t.pinching=!1,t.redrawHint("eles",!0),t.redraw())}},!1),"undefined"==typeof TouchEvent){var Z=[],Q=function(t){return{clientX:t.clientX,clientY:t.clientY,force:1,identifier:t.pointerId,pageX:t.pageX,pageY:t.pageY,radiusX:t.width/2,radiusY:t.height/2,screenX:t.screenX,screenY:t.screenY,target:t.target}},J=function(t){return{event:t,touch:Q(t)}},tt=function(t){Z.push(J(t))},et=function(t){for(var e=0;e<Z.length;e++)if(Z[e].event.pointerId===t.pointerId)return void Z.splice(e,1)},nt=function(t){var e=Z.filter((function(e){return e.event.pointerId===t.pointerId}))[0];e.event=t,e.touch=Q(t)},it=function(t){t.touches=Z.map((function(t){return t.touch}))},rt=function(t){return"mouse"===t.pointerType||4===t.pointerType};t.registerBinding(t.container,"pointerdown",(function(t){rt(t)||(t.preventDefault(),tt(t),it(t),V(t))})),t.registerBinding(t.container,"pointerup",(function(t){rt(t)||(et(t),it(t),U(t))})),t.registerBinding(t.container,"pointercancel",(function(t){rt(t)||(et(t),it(t),q(t))})),t.registerBinding(t.container,"pointermove",(function(t){rt(t)||(t.preventDefault(),nt(t),it(t),H(t))}))}}},gh={generatePolygon:function(t,e){return this.nodeShapes[t]={renderer:this,name:t,points:e,draw:function(t,e,n,i,r){this.renderer.nodeShapeImpl("polygon",t,e,n,i,r,this.points)},intersectLine:function(t,e,n,i,r,o,a){return ii(r,o,this.points,t,e,n/2,i/2,a)},checkPoint:function(t,e,n,i,r,o,a){return Kn(t,e,this.points,o,a,i,r,[0,-1],n)}}},generateEllipse:function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(t,e,n,i,r){this.renderer.nodeShapeImpl(this.name,t,e,n,i,r)},intersectLine:function(t,e,n,i,r,o,a){return Qn(r,o,t,e,n/2+a,i/2+a)},checkPoint:function(t,e,n,i,r,o,a){return Jn(t,e,i,r,o,a,n)}}},generateRoundPolygon:function(t,e){for(var n=new Array(2*e.length),i=0;i<e.length/2;i++){var r=2*i,o=void 0;o=i<e.length/2-1?2*(i+1):0,n[4*i]=e[r],n[4*i+1]=e[r+1];var a=e[o]-e[r],s=e[o+1]-e[r+1],c=Math.sqrt(a*a+s*s);n[4*i+2]=a/c,n[4*i+3]=s/c}return this.nodeShapes[t]={renderer:this,name:t,points:n,draw:function(t,e,n,i,r){this.renderer.nodeShapeImpl("round-polygon",t,e,n,i,r,this.points)},intersectLine:function(t,e,n,i,r,o,a){return ri(r,o,this.points,t,e,n,i)},checkPoint:function(t,e,n,i,r,o,a){return Yn(t,e,this.points,o,a,i,r)}}},generateRoundRectangle:function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:ai(4,0),draw:function(t,e,n,i,r){this.renderer.nodeShapeImpl(this.name,t,e,n,i,r)},intersectLine:function(t,e,n,i,r,o,a){return $n(r,o,t,e,n,i,a)},checkPoint:function(t,e,n,i,r,o,a){var s=li(i,r),c=2*s;return!!(Kn(t,e,this.points,o,a,i,r-c,[0,-1],n)||Kn(t,e,this.points,o,a,i-c,r,[0,-1],n)||Jn(t,e,c,c,o-i/2+s,a-r/2+s,n)||Jn(t,e,c,c,o+i/2-s,a-r/2+s,n)||Jn(t,e,c,c,o+i/2-s,a+r/2-s,n)||Jn(t,e,c,c,o-i/2+s,a+r/2-s,n))}}},generateCutRectangle:function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:hi(),points:ai(4,0),draw:function(t,e,n,i,r){this.renderer.nodeShapeImpl(this.name,t,e,n,i,r)},generateCutTrianglePts:function(t,e,n,i){var r=this.cornerLength,o=e/2,a=t/2,s=n-a,c=n+a,l=i-o,u=i+o;return{topLeft:[s,l+r,s+r,l,s+r,l+r],topRight:[c-r,l,c,l+r,c-r,l+r],bottomRight:[c,u-r,c-r,u,c-r,u-r],bottomLeft:[s+r,u,s,u-r,s+r,u-r]}},intersectLine:function(t,e,n,i,r,o,a){var s=this.generateCutTrianglePts(n+2*a,i+2*a,t,e),c=[].concat.apply([],[s.topLeft.splice(0,4),s.topRight.splice(0,4),s.bottomRight.splice(0,4),s.bottomLeft.splice(0,4)]);return ii(r,o,c,t,e)},checkPoint:function(t,e,n,i,r,o,a){if(Kn(t,e,this.points,o,a,i,r-2*this.cornerLength,[0,-1],n))return!0;if(Kn(t,e,this.points,o,a,i-2*this.cornerLength,r,[0,-1],n))return!0;var s=this.generateCutTrianglePts(i,r,o,a);return Wn(t,e,s.topLeft)||Wn(t,e,s.topRight)||Wn(t,e,s.bottomRight)||Wn(t,e,s.bottomLeft)}}},generateBarrel:function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:ai(4,0),draw:function(t,e,n,i,r){this.renderer.nodeShapeImpl(this.name,t,e,n,i,r)},intersectLine:function(t,e,n,i,r,o,a){var s=.15,c=.5,l=.85,u=this.generateBarrelBezierPts(n+2*a,i+2*a,t,e),h=function(t){var e=xn({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},s),n=xn({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},c),i=xn({x:t[0],y:t[1]},{x:t[2],y:t[3]},{x:t[4],y:t[5]},l);return[t[0],t[1],e.x,e.y,n.x,n.y,i.x,i.y,t[4],t[5]]},d=[].concat(h(u.topLeft),h(u.topRight),h(u.bottomRight),h(u.bottomLeft));return ii(r,o,d,t,e)},generateBarrelBezierPts:function(t,e,n,i){var r=e/2,o=t/2,a=n-o,s=n+o,c=i-r,l=i+r,u=fi(t,e),h=u.heightOffset,d=u.widthOffset,f=u.ctrlPtOffsetPct*t,g={topLeft:[a,c+h,a+f,c,a+d,c],topRight:[s-d,c,s-f,c,s,c+h],bottomRight:[s,l-h,s-f,l,s-d,l],bottomLeft:[a+d,l,a+f,l,a,l-h]};return g.topLeft.isTop=!0,g.topRight.isTop=!0,g.bottomLeft.isBottom=!0,g.bottomRight.isBottom=!0,g},checkPoint:function(t,e,n,i,r,o,a){var s=fi(i,r),c=s.heightOffset,l=s.widthOffset;if(Kn(t,e,this.points,o,a,i,r-2*c,[0,-1],n))return!0;if(Kn(t,e,this.points,o,a,i-2*l,r,[0,-1],n))return!0;for(var u=this.generateBarrelBezierPts(i,r,o,a),h=function(t,e,n){var i=n[4],r=n[2],o=n[0],a=n[5],s=n[1],c=Math.min(i,o),l=Math.max(i,o),u=Math.min(a,s),h=Math.max(a,s);if(c<=t&&t<=l&&u<=e&&e<=h){var d=di(i,r,o),f=Hn(d[0],d[1],d[2],t).filter((function(t){return 0<=t&&t<=1}));if(f.length>0)return f[0]}return null},d=Object.keys(u),f=0;f<d.length;f++){var g=u[d[f]],p=h(t,e,g);if(null!=p){var m=g[5],b=g[3],w=g[1],k=An(m,b,w,p);if(g.isTop&&k<=e)return!0;if(g.isBottom&&e<=k)return!0}}return!1}}},generateBottomRoundrectangle:function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:ai(4,0),draw:function(t,e,n,i,r){this.renderer.nodeShapeImpl(this.name,t,e,n,i,r)},intersectLine:function(t,e,n,i,r,o,a){var s=e-(i/2+a),c=ni(r,o,t,e,t-(n/2+a),s,t+(n/2+a),s,!1);return c.length>0?c:$n(r,o,t,e,n,i,a)},checkPoint:function(t,e,n,i,r,o,a){var s=li(i,r),c=2*s;if(Kn(t,e,this.points,o,a,i,r-c,[0,-1],n))return!0;if(Kn(t,e,this.points,o,a,i-c,r,[0,-1],n))return!0;var l=i/2+2*n,u=r/2+2*n;return!!Wn(t,e,[o-l,a-u,o-l,a,o+l,a,o+l,a-u])||!!Jn(t,e,c,c,o+i/2-s,a+r/2-s,n)||!!Jn(t,e,c,c,o-i/2+s,a+r/2-s,n)}}},registerNodeShapes:function(){var t=this.nodeShapes={},e=this;this.generateEllipse(),this.generatePolygon("triangle",ai(3,0)),this.generateRoundPolygon("round-triangle",ai(3,0)),this.generatePolygon("rectangle",ai(4,0)),t.square=t.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",ai(5,0)),this.generateRoundPolygon("round-pentagon",ai(5,0)),this.generatePolygon("hexagon",ai(6,0)),this.generateRoundPolygon("round-hexagon",ai(6,0)),this.generatePolygon("heptagon",ai(7,0)),this.generateRoundPolygon("round-heptagon",ai(7,0)),this.generatePolygon("octagon",ai(8,0)),this.generateRoundPolygon("round-octagon",ai(8,0));var i=new Array(20),r=ci(5,0),o=ci(5,Math.PI/5),a=.5*(3-Math.sqrt(5));a*=1.57;for(var s=0;s<o.length/2;s++)o[2*s]*=a,o[2*s+1]*=a;for(s=0;s<5;s++)i[4*s]=r[2*s],i[4*s+1]=r[2*s+1],i[4*s+2]=o[2*s],i[4*s+3]=o[2*s+1];i=si(i),this.generatePolygon("star",i),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);var c=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",c),this.generateRoundPolygon("round-tag",c),t.makePolygon=function(t){var n,i="polygon-"+t.join("$");return(n=this[i])?n:e.generatePolygon(i,t)}}},ph={timeToRender:function(){return this.redrawTotalTime/this.redrawCount},redraw:function(t){t=t||Pe();var e=this;void 0===e.averageRedrawTime&&(e.averageRedrawTime=0),void 0===e.lastRedrawTime&&(e.lastRedrawTime=0),void 0===e.lastDrawTime&&(e.lastDrawTime=0),e.requestedFrame=!0,e.renderOptions=t},beforeRender:function(t,e){if(!this.destroyed){null==e&&xe("Priority is not optional for beforeRender");var n=this.beforeRenderCallbacks;n.push({fn:t,priority:e}),n.sort((function(t,e){return e.priority-t.priority}))}}},mh=function(t,e,n){for(var i=t.beforeRenderCallbacks,r=0;r<i.length;r++)i[r].fn(e,n)};ph.startRenderLoop=function(){var t=this,e=t.cy;if(!t.renderLoopStarted){t.renderLoopStarted=!0;var n=function n(i){if(!t.destroyed){if(e.batching());else if(t.requestedFrame&&!t.skipFrame){mh(t,!0,i);var r=ie();t.render(t.renderOptions);var o=t.lastDrawTime=ie();void 0===t.averageRedrawTime&&(t.averageRedrawTime=o-r),void 0===t.redrawCount&&(t.redrawCount=0),t.redrawCount++,void 0===t.redrawTotalTime&&(t.redrawTotalTime=0);var a=o-r;t.redrawTotalTime+=a,t.lastRedrawTime=a,t.averageRedrawTime=t.averageRedrawTime/2+a/2,t.requestedFrame=!1}else mh(t,!1,i);t.skipFrame=!1,ne(n)}};ne(n)}};var bh=function(t){this.init(t)},wh=bh.prototype;wh.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],wh.init=function(t){var e=this;e.options=t,e.cy=t.cy;var n=e.container=t.cy.container();if(d){var i=d.document,r=i.head,o="__________cytoscape_stylesheet",a="__________cytoscape_container",s=null!=i.getElementById(o);if(n.className.indexOf(a)<0&&(n.className=(n.className||"")+" "+a),!s){var c=i.createElement("style");c.id=o,c.innerHTML="."+a+" { position: relative; }",r.insertBefore(c,r.children[0])}"static"===d.getComputedStyle(n).getPropertyValue("position")&&Te("A Cytoscape container has style position:static and so can not use UI extensions properly")}e.selection=[void 0,void 0,void 0,void 0,0],e.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],e.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},e.dragData={possibleDragElements:[]},e.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},e.redraws=0,e.showFps=t.showFps,e.debug=t.debug,e.hideEdgesOnViewport=t.hideEdgesOnViewport,e.textureOnViewport=t.textureOnViewport,e.wheelSensitivity=t.wheelSensitivity,e.motionBlurEnabled=t.motionBlur,e.forcedPixelRatio=A(t.pixelRatio)?t.pixelRatio:null,e.motionBlur=t.motionBlur,e.motionBlurOpacity=t.motionBlurOpacity,e.motionBlurTransparency=1-e.motionBlurOpacity,e.motionBlurPxRatio=1,e.mbPxRBlurry=1,e.minMbLowQualFrames=4,e.fullQualityMb=!1,e.clearedForMotionBlur=[],e.desktopTapThreshold=t.desktopTapThreshold,e.desktopTapThreshold2=t.desktopTapThreshold*t.desktopTapThreshold,e.touchTapThreshold=t.touchTapThreshold,e.touchTapThreshold2=t.touchTapThreshold*t.touchTapThreshold,e.tapholdDuration=500,e.bindings=[],e.beforeRenderCallbacks=[],e.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},e.registerNodeShapes(),e.registerArrowShapes(),e.registerCalculationListeners()},wh.notify=function(t,e){var n=this,i=n.cy;this.destroyed||("init"!==t?"destroy"!==t?(("add"===t||"remove"===t||"move"===t&&i.hasCompoundNodes()||"load"===t||"zorder"===t||"mount"===t)&&n.invalidateCachedZSortedEles(),"viewport"===t&&n.redrawHint("select",!0),"load"!==t&&"resize"!==t&&"mount"!==t||(n.invalidateContainerClientCoordsCache(),n.matchCanvasSize(n.container)),n.redrawHint("eles",!0),n.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()):n.destroy():n.load())},wh.destroy=function(){var t=this;t.destroyed=!0,t.cy.stopAnimationLoop();for(var e=0;e<t.bindings.length;e++){var n=t.bindings[e],i=n.target;(i.off||i.removeEventListener).apply(i,n.args)}if(t.bindings=[],t.beforeRenderCallbacks=[],t.onUpdateEleCalcsFns=[],t.removeObserver&&t.removeObserver.disconnect(),t.styleObserver&&t.styleObserver.disconnect(),t.resizeObserver&&t.resizeObserver.disconnect(),t.labelCalcDiv)try{document.body.removeChild(t.labelCalcDiv)}catch(t){}},wh.isHeadless=function(){return!1},[Ku,hh,dh,fh,gh,ph].forEach((function(t){Q(wh,t)}));var kh=1e3/60,vh={setupDequeueing:function(t){return function(){var e=this,n=this.renderer;if(!e.dequeueingSetup){e.dequeueingSetup=!0;var i=Qt((function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()}),t.deqRedrawThreshold),r=function(r,o){var a=ie(),s=n.averageRedrawTime,c=n.lastRedrawTime,l=[],u=n.cy.extent(),h=n.getPixelRatio();for(r||n.flushRenderedStyleQueue();;){var d=ie(),f=d-a,g=d-o;if(c<kh){var p=kh-(r?s:0);if(g>=t.deqFastCost*p)break}else if(r){if(f>=t.deqCost*c||f>=t.deqAvgCost*s)break}else if(g>=t.deqNoDrawCost*kh)break;var m=t.deq(e,h,u);if(!(m.length>0))break;for(var b=0;b<m.length;b++)l.push(m[b])}l.length>0&&(t.onDeqd(e,l),!r&&t.shouldRedraw(e,l,h,u)&&i())},o=t.priority||Ae;n.beforeRender(r,o(e))}}}},yh=function(){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_e;e(this,t),this.idsByKey=new $e,this.keyForId=new $e,this.cachesByLvl=new $e,this.lvls=[],this.getKey=n,this.doesEleInvalidateKey=i}return i(t,[{key:"getIdsFor",value:function(t){null==t&&xe("Can not get id list for null key");var e=this.idsByKey,n=this.idsByKey.get(t);return n||(n=new He,e.set(t,n)),n}},{key:"addIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).add(e)}},{key:"deleteIdForKey",value:function(t,e){null!=t&&this.getIdsFor(t).delete(e)}},{key:"getNumberOfIdsForKey",value:function(t){return null==t?0:this.getIdsFor(t).size}},{key:"updateKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e),i=this.getKey(t);this.deleteIdForKey(n,e),this.addIdForKey(i,e),this.keyForId.set(e,i)}},{key:"deleteKeyMappingFor",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteIdForKey(n,e),this.keyForId.delete(e)}},{key:"keyHasChangedFor",value:function(t){var e=t.id();return this.keyForId.get(e)!==this.getKey(t)}},{key:"isInvalid",value:function(t){return this.keyHasChangedFor(t)||this.doesEleInvalidateKey(t)}},{key:"getCachesAt",value:function(t){var e=this.cachesByLvl,n=this.lvls,i=e.get(t);return i||(i=new $e,e.set(t,i),n.push(t)),i}},{key:"getCache",value:function(t,e){return this.getCachesAt(e).get(t)}},{key:"get",value:function(t,e){var n=this.getKey(t),i=this.getCache(n,e);return null!=i&&this.updateKeyMappingFor(t),i}},{key:"getForCachedKey",value:function(t,e){var n=this.keyForId.get(t.id());return this.getCache(n,e)}},{key:"hasCache",value:function(t,e){return this.getCachesAt(e).has(t)}},{key:"has",value:function(t,e){var n=this.getKey(t);return this.hasCache(n,e)}},{key:"setCache",value:function(t,e,n){n.key=t,this.getCachesAt(e).set(t,n)}},{key:"set",value:function(t,e,n){var i=this.getKey(t);this.setCache(i,e,n),this.updateKeyMappingFor(t)}},{key:"deleteCache",value:function(t,e){this.getCachesAt(e).delete(t)}},{key:"delete",value:function(t,e){var n=this.getKey(t);this.deleteCache(n,e)}},{key:"invalidateKey",value:function(t){var e=this;this.lvls.forEach((function(n){return e.deleteCache(t,n)}))}},{key:"invalidate",value:function(t){var e=t.id(),n=this.keyForId.get(e);this.deleteKeyMappingFor(t);var i=this.doesEleInvalidateKey(t);return i&&this.invalidateKey(n),i||0===this.getNumberOfIdsForKey(n)}}]),t}(),_h=25,Ch=50,Ah=-4,xh=3,Eh=7.99,Th=8,Sh=1024,Dh=1024,Ih=1024,Bh=.2,Mh=.8,Ph=10,Lh=.15,Oh=.1,Nh=.9,Rh=.9,Fh=100,jh=1,$h={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},zh=Le({getKey:null,doesEleInvalidateKey:_e,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:ye,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Vh=function(t,e){var n=this;n.renderer=t,n.onDequeues=[];var i=zh(e);Q(n,i),n.lookup=new yh(i.getKey,i.doesEleInvalidateKey),n.setupDequeueing()},Hh=Vh.prototype;Hh.reasons=$h,Hh.getTextureQueue=function(t){var e=this;return e.eleImgCaches=e.eleImgCaches||{},e.eleImgCaches[t]=e.eleImgCaches[t]||[]},Hh.getRetiredTextureQueue=function(t){var e=this,n=e.eleImgCaches.retired=e.eleImgCaches.retired||{};return n[t]=n[t]||[]},Hh.getElementQueue=function(){var t=this;return t.eleCacheQueue=t.eleCacheQueue||new Ke((function(t,e){return e.reqs-t.reqs}))},Hh.getElementKeyToQueue=function(){var t=this;return t.eleKeyToCacheQueue=t.eleKeyToCacheQueue||{}},Hh.getElement=function(t,e,n,i,r){var o=this,a=this.renderer,s=a.cy.zoom(),c=this.lookup;if(!e||0===e.w||0===e.h||isNaN(e.w)||isNaN(e.h)||!t.visible()||t.removed())return null;if(!o.allowEdgeTxrCaching&&t.isEdge()||!o.allowParentTxrCaching&&t.isParent())return null;if(null==i&&(i=Math.ceil(kn(s*n))),i<Ah)i=Ah;else if(s>=Eh||i>xh)return null;var l=Math.pow(2,i),u=e.h*l,h=e.w*l,d=a.eleTextBiggerThanMin(t,l);if(!this.isVisible(t,d))return null;var f,g=c.get(t,i);if(g&&g.invalidated&&(g.invalidated=!1,g.texture.invalidatedWidth-=g.width),g)return g;if(f=u<=_h?_h:u<=Ch?Ch:Math.ceil(u/Ch)*Ch,u>Ih||h>Dh)return null;var p=o.getTextureQueue(f),m=p[p.length-2],b=function(){return o.recycleTexture(f,h)||o.addTexture(f,h)};m||(m=p[p.length-1]),m||(m=b()),m.width-m.usedWidth<h&&(m=b());for(var w,k=function(t){return t&&t.scaledLabelShown===d},v=r&&r===$h.dequeue,y=r&&r===$h.highQuality,_=r&&r===$h.downscale,C=i+1;C<=xh;C++){var A=c.get(t,C);if(A){w=A;break}}var x=w&&w.level===i+1?w:null,E=function(){m.context.drawImage(x.texture.canvas,x.x,0,x.width,x.height,m.usedWidth,0,h,u)};if(m.context.setTransform(1,0,0,1,0,0),m.context.clearRect(m.usedWidth,0,h,f),k(x))E();else if(k(w)){if(!y)return o.queueElement(t,w.level-1),w;for(var T=w.level;T>i;T--)x=o.getElement(t,e,n,T,$h.downscale);E()}else{var S;if(!v&&!y&&!_)for(var D=i-1;D>=Ah;D--){var I=c.get(t,D);if(I){S=I;break}}if(k(S))return o.queueElement(t,i),S;m.context.translate(m.usedWidth,0),m.context.scale(l,l),this.drawElement(m.context,t,e,d,!1),m.context.scale(1/l,1/l),m.context.translate(-m.usedWidth,0)}return g={x:m.usedWidth,texture:m,level:i,scale:l,width:h,height:u,scaledLabelShown:d},m.usedWidth+=Math.ceil(h+Th),m.eleCaches.push(g),c.set(t,i,g),o.checkTextureFullness(m),g},Hh.invalidateElements=function(t){for(var e=0;e<t.length;e++)this.invalidateElement(t[e])},Hh.invalidateElement=function(t){var e=this,n=e.lookup,i=[];if(n.isInvalid(t)){for(var r=Ah;r<=xh;r++){var o=n.getForCachedKey(t,r);o&&i.push(o)}if(n.invalidate(t))for(var a=0;a<i.length;a++){var s=i[a],c=s.texture;c.invalidatedWidth+=s.width,s.invalidated=!0,e.checkTextureUtility(c)}e.removeFromQueue(t)}},Hh.checkTextureUtility=function(t){t.invalidatedWidth>=Bh*t.width&&this.retireTexture(t)},Hh.checkTextureFullness=function(t){var e=this.getTextureQueue(t.height);t.usedWidth/t.width>Mh&&t.fullnessChecks>=Ph?Oe(e,t):t.fullnessChecks++},Hh.retireTexture=function(t){var e=this,n=t.height,i=e.getTextureQueue(n),r=this.lookup;Oe(i,t),t.retired=!0;for(var o=t.eleCaches,a=0;a<o.length;a++){var s=o[a];r.deleteCache(s.key,s.level)}Ne(o),e.getRetiredTextureQueue(n).push(t)},Hh.addTexture=function(t,e){var n=this,i={};return n.getTextureQueue(t).push(i),i.eleCaches=[],i.height=t,i.width=Math.max(Sh,e),i.usedWidth=0,i.invalidatedWidth=0,i.fullnessChecks=0,i.canvas=n.renderer.makeOffscreenCanvas(i.width,i.height),i.context=i.canvas.getContext("2d"),i},Hh.recycleTexture=function(t,e){for(var n=this,i=n.getTextureQueue(t),r=n.getRetiredTextureQueue(t),o=0;o<r.length;o++){var a=r[o];if(a.width>=e)return a.retired=!1,a.usedWidth=0,a.invalidatedWidth=0,a.fullnessChecks=0,Ne(a.eleCaches),a.context.setTransform(1,0,0,1,0,0),a.context.clearRect(0,0,a.width,a.height),Oe(r,a),i.push(a),a}},Hh.queueElement=function(t,e){var n=this,i=n.getElementQueue(),r=n.getElementKeyToQueue(),o=this.getKey(t),a=r[o];if(a)a.level=Math.max(a.level,e),a.eles.merge(t),a.reqs++,i.updateItem(a);else{var s={eles:t.spawn().merge(t),level:e,reqs:1,key:o};i.push(s),r[o]=s}},Hh.dequeue=function(t){for(var e=this,n=e.getElementQueue(),i=e.getElementKeyToQueue(),r=[],o=e.lookup,a=0;a<jh&&n.size()>0;a++){var s=n.pop(),c=s.key,l=s.eles[0],u=o.hasCache(l,s.level);if(i[c]=null,!u){r.push(s);var h=e.getBoundingBox(l);e.getElement(l,h,t,s.level,$h.dequeue)}}return r},Hh.removeFromQueue=function(t){var e=this,n=e.getElementQueue(),i=e.getElementKeyToQueue(),r=this.getKey(t),o=i[r];null!=o&&(1===o.eles.length?(o.reqs=ve,n.updateItem(o),n.pop(),i[r]=null):o.eles.unmerge(t))},Hh.onDequeue=function(t){this.onDequeues.push(t)},Hh.offDequeue=function(t){Oe(this.onDequeues,t)},Hh.setupDequeueing=vh.setupDequeueing({deqRedrawThreshold:Fh,deqCost:Lh,deqAvgCost:Oh,deqNoDrawCost:Nh,deqFastCost:Rh,deq:function(t,e,n){return t.dequeue(e,n)},onDeqd:function(t,e){for(var n=0;n<t.onDequeues.length;n++)(0,t.onDequeues[n])(e)},shouldRedraw:function(t,e,n,i){for(var r=0;r<e.length;r++)for(var o=e[r].eles,a=0;a<o.length;a++){var s=o[a].boundingBox();if(Nn(s,i))return!0}return!1},priority:function(t){return t.renderer.beforeRenderPriorities.eleTxrDeq}});var qh=1,Uh=-4,Gh=2,Wh=3.99,Kh=50,Yh=50,Xh=.15,Zh=.1,Qh=.9,Jh=.9,td=1,ed=250,nd=16e6,id=!0,rd=function(t){var e=this,n=e.renderer=t,i=n.cy;e.layersByLevel={},e.firstGet=!0,e.lastInvalidationTime=ie()-2*ed,e.skipping=!1,e.eleTxrDeqs=i.collection(),e.scheduleElementRefinement=Qt((function(){e.refineElementTextures(e.eleTxrDeqs),e.eleTxrDeqs.unmerge(e.eleTxrDeqs)}),Yh),n.beforeRender((function(t,n){n-e.lastInvalidationTime<=ed?e.skipping=!0:e.skipping=!1}),n.beforeRenderPriorities.lyrTxrSkip);var r=function(t,e){return e.reqs-t.reqs};e.layersQueue=new Ke(r),e.setupDequeueing()},od=rd.prototype,ad=0,sd=Math.pow(2,53)-1;od.makeLayer=function(t,e){var n=Math.pow(2,e),i=Math.ceil(t.w*n),r=Math.ceil(t.h*n),o=this.renderer.makeOffscreenCanvas(i,r),a={id:ad=++ad%sd,bb:t,level:e,width:i,height:r,canvas:o,context:o.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=a.context,c=-a.bb.x1,l=-a.bb.y1;return s.scale(n,n),s.translate(c,l),a},od.getLayers=function(t,e,n){var i=this,r=i.renderer.cy.zoom(),o=i.firstGet;if(i.firstGet=!1,null==n)if((n=Math.ceil(kn(r*e)))<Uh)n=Uh;else if(r>=Wh||n>Gh)return null;i.validateLayersElesOrdering(n,t);var a,s,c=i.layersByLevel,l=Math.pow(2,n),u=c[n]=c[n]||[];if(i.levelIsComplete(n,t))return u;!function(){var e=function(e){if(i.validateLayersElesOrdering(e,t),i.levelIsComplete(e,t))return s=c[e],!0},r=function(t){if(!s)for(var i=n+t;Uh<=i&&i<=Gh&&!e(i);i+=t);};r(1),r(-1);for(var o=u.length-1;o>=0;o--){var a=u[o];a.invalid&&Oe(u,a)}}();var h=function(){if(!a){a=Sn();for(var e=0;e<t.length;e++)Bn(a,t[e].boundingBox())}return a},d=function(t){var e=(t=t||{}).after;if(h(),a.w*l*(a.h*l)>nd)return null;var r=i.makeLayer(a,n);if(null!=e){var o=u.indexOf(e)+1;u.splice(o,0,r)}else(void 0===t.insert||t.insert)&&u.unshift(r);return r};if(i.skipping&&!o)return null;for(var f=null,g=t.length/qh,p=!o,m=0;m<t.length;m++){var b=t[m],w=b._private.rscratch,k=w.imgLayerCaches=w.imgLayerCaches||{},v=k[n];if(v)f=v;else{if((!f||f.eles.length>=g||!jn(f.bb,b.boundingBox()))&&!(f=d({insert:!0,after:f})))return null;s||p?i.queueLayer(f,b):i.drawEleInLayer(f,b,n,e),f.eles.push(b),k[n]=f}}return s||(p?null:u)},od.getEleLevelForLayerLevel=function(t,e){return t},od.drawEleInLayer=function(t,e,n,i){var r=this,o=this.renderer,a=t.context,s=e.boundingBox();0!==s.w&&0!==s.h&&e.visible()&&(n=r.getEleLevelForLayerLevel(n,i),o.setImgSmoothing(a,!1),o.drawCachedElement(a,e,null,null,n,id),o.setImgSmoothing(a,!0))},od.levelIsComplete=function(t,e){var n=this.layersByLevel[t];if(!n||0===n.length)return!1;for(var i=0,r=0;r<n.length;r++){var o=n[r];if(o.reqs>0)return!1;if(o.invalid)return!1;i+=o.eles.length}return i===e.length},od.validateLayersElesOrdering=function(t,e){var n=this.layersByLevel[t];if(n)for(var i=0;i<n.length;i++){for(var r=n[i],o=-1,a=0;a<e.length;a++)if(r.eles[0]===e[a]){o=a;break}if(o<0)this.invalidateLayer(r);else{var s=o;for(a=0;a<r.eles.length;a++)if(r.eles[a]!==e[s+a]){this.invalidateLayer(r);break}}}},od.updateElementsInLayers=function(t,e){for(var n=this,i=S(t[0]),r=0;r<t.length;r++)for(var o=i?null:t[r],a=i?t[r]:t[r].ele,s=a._private.rscratch,c=s.imgLayerCaches=s.imgLayerCaches||{},l=Uh;l<=Gh;l++){var u=c[l];u&&(o&&n.getEleLevelForLayerLevel(u.level)!==o.level||e(u,a,o))}},od.haveLayers=function(){for(var t=this,e=!1,n=Uh;n<=Gh;n++){var i=t.layersByLevel[n];if(i&&i.length>0){e=!0;break}}return e},od.invalidateElements=function(t){var e=this;0!==t.length&&(e.lastInvalidationTime=ie(),0!==t.length&&e.haveLayers()&&e.updateElementsInLayers(t,(function(t,n,i){e.invalidateLayer(t)})))},od.invalidateLayer=function(t){if(this.lastInvalidationTime=ie(),!t.invalid){var e=t.level,n=t.eles,i=this.layersByLevel[e];Oe(i,t),t.elesQueue=[],t.invalid=!0,t.replacement&&(t.replacement.invalid=!0);for(var r=0;r<n.length;r++){var o=n[r]._private.rscratch.imgLayerCaches;o&&(o[e]=null)}}},od.refineElementTextures=function(t){var e=this;e.updateElementsInLayers(t,(function(t,n,i){var r=t.replacement;if(r||((r=t.replacement=e.makeLayer(t.bb,t.level)).replaces=t,r.eles=t.eles),!r.reqs)for(var o=0;o<r.eles.length;o++)e.queueLayer(r,r.eles[o])}))},od.enqueueElementRefinement=function(t){this.eleTxrDeqs.merge(t),this.scheduleElementRefinement()},od.queueLayer=function(t,e){var n=this.layersQueue,i=t.elesQueue,r=i.hasId=i.hasId||{};if(!t.replacement){if(e){if(r[e.id()])return;i.push(e),r[e.id()]=!0}t.reqs?(t.reqs++,n.updateItem(t)):(t.reqs=1,n.push(t))}},od.dequeue=function(t){for(var e=this,n=e.layersQueue,i=[],r=0;r<td&&0!==n.size();){var o=n.peek();if(o.replacement)n.pop();else if(o.replaces&&o!==o.replaces.replacement)n.pop();else if(o.invalid)n.pop();else{var a=o.elesQueue.shift();a&&(e.drawEleInLayer(o,a,o.level,t),r++),0===i.length&&i.push(!0),0===o.elesQueue.length&&(n.pop(),o.reqs=0,o.replaces&&e.applyLayerReplacement(o),e.requestRedraw())}}return i},od.applyLayerReplacement=function(t){var e=this,n=e.layersByLevel[t.level],i=t.replaces,r=n.indexOf(i);if(!(r<0||i.invalid)){n[r]=t;for(var o=0;o<t.eles.length;o++){var a=t.eles[o]._private,s=a.imgLayerCaches=a.imgLayerCaches||{};s&&(s[t.level]=t)}e.requestRedraw()}},od.requestRedraw=Qt((function(){var t=this.renderer;t.redrawHint("eles",!0),t.redrawHint("drag",!0),t.redraw()}),100),od.setupDequeueing=vh.setupDequeueing({deqRedrawThreshold:Kh,deqCost:Xh,deqAvgCost:Zh,deqNoDrawCost:Qh,deqFastCost:Jh,deq:function(t,e){return t.dequeue(e)},onDeqd:Ae,shouldRedraw:ye,priority:function(t){return t.renderer.beforeRenderPriorities.lyrTxrDeq}});var cd,ld={};function ud(t,e){for(var n=0;n<e.length;n++){var i=e[n];t.lineTo(i.x,i.y)}}function hd(t,e,n){for(var i,r=0;r<e.length;r++){var o=e[r];0===r&&(i=o),t.lineTo(o.x,o.y)}t.quadraticCurveTo(n.x,n.y,i.x,i.y)}function dd(t,e,n){t.beginPath&&t.beginPath();for(var i=e,r=0;r<i.length;r++){var o=i[r];t.lineTo(o.x,o.y)}var a=n,s=n[0];for(t.moveTo(s.x,s.y),r=1;r<a.length;r++)o=a[r],t.lineTo(o.x,o.y);t.closePath&&t.closePath()}function fd(t,e,n,i,r){t.beginPath&&t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1);var o=e,a=o[0];t.moveTo(a.x,a.y);for(var s=0;s<o.length;s++){var c=o[s];t.lineTo(c.x,c.y)}t.closePath&&t.closePath()}function gd(t,e,n,i){t.arc(e,n,i,0,2*Math.PI,!1)}ld.arrowShapeImpl=function(t){return(cd||(cd={polygon:ud,"triangle-backcurve":hd,"triangle-tee":dd,"circle-triangle":fd,"triangle-cross":dd,circle:gd}))[t]};var pd={drawElement:function(t,e,n,i,r,o){var a=this;e.isNode()?a.drawNode(t,e,n,i,r,o):a.drawEdge(t,e,n,i,r,o)},drawElementOverlay:function(t,e){var n=this;e.isNode()?n.drawNodeOverlay(t,e):n.drawEdgeOverlay(t,e)},drawElementUnderlay:function(t,e){var n=this;e.isNode()?n.drawNodeUnderlay(t,e):n.drawEdgeUnderlay(t,e)},drawCachedElementPortion:function(t,e,n,i,r,o,a,s){var c=this,l=n.getBoundingBox(e);if(0!==l.w&&0!==l.h){var u=n.getElement(e,l,i,r,o);if(null!=u){var h=s(c,e);if(0===h)return;var d,f,g,p,m,b,w=a(c,e),k=l.x1,v=l.y1,y=l.w,_=l.h;if(0!==w){var C=n.getRotationPoint(e);g=C.x,p=C.y,t.translate(g,p),t.rotate(w),(m=c.getImgSmoothing(t))||c.setImgSmoothing(t,!0);var A=n.getRotationOffset(e);d=A.x,f=A.y}else d=k,f=v;1!==h&&(b=t.globalAlpha,t.globalAlpha=b*h),t.drawImage(u.texture.canvas,u.x,0,u.width,u.height,d,f,y,_),1!==h&&(t.globalAlpha=b),0!==w&&(t.rotate(-w),t.translate(-g,-p),m||c.setImgSmoothing(t,!1))}else n.drawElement(t,e)}}},md=function(){return 0},bd=function(t,e){return t.getTextAngle(e,null)},wd=function(t,e){return t.getTextAngle(e,"source")},kd=function(t,e){return t.getTextAngle(e,"target")},vd=function(t,e){return e.effectiveOpacity()},yd=function(t,e){return e.pstyle("text-opacity").pfValue*e.effectiveOpacity()};pd.drawCachedElement=function(t,e,n,i,r,o){var a=this,s=a.data,c=s.eleTxrCache,l=s.lblTxrCache,u=s.slbTxrCache,h=s.tlbTxrCache,d=e.boundingBox(),f=!0===o?c.reasons.highQuality:null;if(0!==d.w&&0!==d.h&&e.visible()&&(!i||Nn(d,i))){var g=e.isEdge(),p=e.element()._private.rscratch.badLine;a.drawElementUnderlay(t,e),a.drawCachedElementPortion(t,e,c,n,r,f,md,vd),g&&p||a.drawCachedElementPortion(t,e,l,n,r,f,bd,yd),g&&!p&&(a.drawCachedElementPortion(t,e,u,n,r,f,wd,yd),a.drawCachedElementPortion(t,e,h,n,r,f,kd,yd)),a.drawElementOverlay(t,e)}},pd.drawElements=function(t,e){for(var n=this,i=0;i<e.length;i++){var r=e[i];n.drawElement(t,r)}},pd.drawCachedElements=function(t,e,n,i){for(var r=this,o=0;o<e.length;o++){var a=e[o];r.drawCachedElement(t,a,n,i)}},pd.drawCachedNodes=function(t,e,n,i){for(var r=this,o=0;o<e.length;o++){var a=e[o];a.isNode()&&r.drawCachedElement(t,a,n,i)}},pd.drawLayeredElements=function(t,e,n,i){var r=this,o=r.data.lyrTxrCache.getLayers(e,n);if(o)for(var a=0;a<o.length;a++){var s=o[a],c=s.bb;0!==c.w&&0!==c.h&&t.drawImage(s.canvas,c.x1,c.y1,c.w,c.h)}else r.drawCachedElements(t,e,n,i)};var _d={drawEdge:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=this,s=e._private.rscratch;if((!o||e.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var c;n&&(c=n,t.translate(-c.x1,-c.y1));var l=o?e.pstyle("opacity").value:1,u=o?e.pstyle("line-opacity").value:1,h=e.pstyle("curve-style").value,d=e.pstyle("line-style").value,f=e.pstyle("width").pfValue,g=e.pstyle("line-cap").value,p=l*u,m=l*u,b=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;"straight-triangle"===h?(a.eleStrokeStyle(t,e,n),a.drawEdgeTrianglePath(e,t,s.allpts)):(t.lineWidth=f,t.lineCap=g,a.eleStrokeStyle(t,e,n),a.drawEdgePath(e,t,s.allpts,d),t.lineCap="butt")},w=function(){r&&a.drawEdgeOverlay(t,e)},k=function(){r&&a.drawEdgeUnderlay(t,e)},v=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;a.drawArrowheads(t,e,n)},y=function(){a.drawElementText(t,e,null,i)};if(t.lineJoin="round","yes"===e.pstyle("ghost").value){var _=e.pstyle("ghost-offset-x").pfValue,C=e.pstyle("ghost-offset-y").pfValue,A=e.pstyle("ghost-opacity").value,x=p*A;t.translate(_,C),b(x),v(x),t.translate(-_,-C)}k(),b(),v(),w(),y(),n&&t.translate(c.x1,c.y1)}}},Cd=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n){if(n.visible()){var i=n.pstyle("".concat(t,"-opacity")).value;if(0!==i){var r=this,o=r.usePaths(),a=n._private.rscratch,s=2*n.pstyle("".concat(t,"-padding")).pfValue,c=n.pstyle("".concat(t,"-color")).value;e.lineWidth=s,"self"!==a.edgeType||o?e.lineCap="round":e.lineCap="butt",r.colorStrokeStyle(e,c[0],c[1],c[2],i),r.drawEdgePath(n,e,a.allpts,"solid")}}}};_d.drawEdgeOverlay=Cd("overlay"),_d.drawEdgeUnderlay=Cd("underlay"),_d.drawEdgePath=function(t,e,n,i){var r,o=t._private.rscratch,a=e,s=!1,c=this.usePaths(),l=t.pstyle("line-dash-pattern").pfValue,u=t.pstyle("line-dash-offset").pfValue;if(c){var h=n.join("$");o.pathCacheKey&&o.pathCacheKey===h?(r=e=o.pathCache,s=!0):(r=e=new Path2D,o.pathCacheKey=h,o.pathCache=r)}if(a.setLineDash)switch(i){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(l),a.lineDashOffset=u;break;case"solid":a.setLineDash([])}if(!s&&!o.badLine)switch(e.beginPath&&e.beginPath(),e.moveTo(n[0],n[1]),o.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var d=2;d+3<n.length;d+=4)e.quadraticCurveTo(n[d],n[d+1],n[d+2],n[d+3]);break;case"straight":case"segments":case"haystack":for(var f=2;f+1<n.length;f+=2)e.lineTo(n[f],n[f+1])}e=a,c?e.stroke(r):e.stroke(),e.setLineDash&&e.setLineDash([])},_d.drawEdgeTrianglePath=function(t,e,n){e.fillStyle=e.strokeStyle;for(var i=t.pstyle("width").pfValue,r=0;r+1<n.length;r+=2){var o=[n[r+2]-n[r],n[r+3]-n[r+1]],a=Math.sqrt(o[0]*o[0]+o[1]*o[1]),s=[o[1]/a,-o[0]/a],c=[s[0]*i/2,s[1]*i/2];e.beginPath(),e.moveTo(n[r]-c[0],n[r+1]-c[1]),e.lineTo(n[r]+c[0],n[r+1]+c[1]),e.lineTo(n[r+2],n[r+3]),e.closePath(),e.fill()}},_d.drawArrowheads=function(t,e,n){var i=e._private.rscratch,r="haystack"===i.edgeType;r||this.drawArrowhead(t,e,"source",i.arrowStartX,i.arrowStartY,i.srcArrowAngle,n),this.drawArrowhead(t,e,"mid-target",i.midX,i.midY,i.midtgtArrowAngle,n),this.drawArrowhead(t,e,"mid-source",i.midX,i.midY,i.midsrcArrowAngle,n),r||this.drawArrowhead(t,e,"target",i.arrowEndX,i.arrowEndY,i.tgtArrowAngle,n)},_d.drawArrowhead=function(t,e,n,i,r,o,a){if(!(isNaN(i)||null==i||isNaN(r)||null==r||isNaN(o)||null==o)){var s=this,c=e.pstyle(n+"-arrow-shape").value;if("none"!==c){var l="hollow"===e.pstyle(n+"-arrow-fill").value?"both":"filled",u=e.pstyle(n+"-arrow-fill").value,h=e.pstyle("width").pfValue,d=e.pstyle("opacity").value;void 0===a&&(a=d);var f=t.globalCompositeOperation;1===a&&"hollow"!==u||(t.globalCompositeOperation="destination-out",s.colorFillStyle(t,255,255,255,1),s.colorStrokeStyle(t,255,255,255,1),s.drawArrowShape(e,t,l,h,c,i,r,o),t.globalCompositeOperation=f);var g=e.pstyle(n+"-arrow-color").value;s.colorFillStyle(t,g[0],g[1],g[2],a),s.colorStrokeStyle(t,g[0],g[1],g[2],a),s.drawArrowShape(e,t,u,h,c,i,r,o)}}},_d.drawArrowShape=function(t,e,n,i,r,o,a,s){var c,l=this,u=this.usePaths()&&"triangle-cross"!==r,h=!1,d=e,f={x:o,y:a},g=t.pstyle("arrow-scale").value,p=this.getArrowWidth(i,g),m=l.arrowShapes[r];if(u){var b=l.arrowPathCache=l.arrowPathCache||[],w=ge(r),k=b[w];null!=k?(c=e=k,h=!0):(c=e=new Path2D,b[w]=c)}h||(e.beginPath&&e.beginPath(),u?m.draw(e,1,0,{x:0,y:0},1):m.draw(e,p,s,f,i),e.closePath&&e.closePath()),e=d,u&&(e.translate(o,a),e.rotate(s),e.scale(p,p)),"filled"!==n&&"both"!==n||(u?e.fill(c):e.fill()),"hollow"!==n&&"both"!==n||(e.lineWidth=(m.matchEdgeWidth?i:1)/(u?p:1),e.lineJoin="miter",u?e.stroke(c):e.stroke()),u&&(e.scale(1/p,1/p),e.rotate(-s),e.translate(-o,-a))};var Ad={safeDrawImage:function(t,e,n,i,r,o,a,s,c,l){if(!(r<=0||o<=0||c<=0||l<=0))try{t.drawImage(e,n,i,r,o,a,s,c,l)}catch(t){Te(t)}},drawInscribedImage:function(t,e,n,i,r){var o=this,a=n.position(),s=a.x,c=a.y,l=n.cy().style(),u=l.getIndexedStyle.bind(l),h=u(n,"background-fit","value",i),d=u(n,"background-repeat","value",i),f=n.width(),g=n.height(),p=2*n.padding(),m=f+("inner"===u(n,"background-width-relative-to","value",i)?0:p),b=g+("inner"===u(n,"background-height-relative-to","value",i)?0:p),w=n._private.rscratch,k="node"===u(n,"background-clip","value",i),v=u(n,"background-image-opacity","value",i)*r,y=u(n,"background-image-smoothing","value",i),_=e.width||e.cachedW,C=e.height||e.cachedH;null!=_&&null!=C||(document.body.appendChild(e),_=e.cachedW=e.width||e.offsetWidth,C=e.cachedH=e.height||e.offsetHeight,document.body.removeChild(e));var A=_,x=C;if("auto"!==u(n,"background-width","value",i)&&(A="%"===u(n,"background-width","units",i)?u(n,"background-width","pfValue",i)*m:u(n,"background-width","pfValue",i)),"auto"!==u(n,"background-height","value",i)&&(x="%"===u(n,"background-height","units",i)?u(n,"background-height","pfValue",i)*b:u(n,"background-height","pfValue",i)),0!==A&&0!==x){if("contain"===h)A*=E=Math.min(m/A,b/x),x*=E;else if("cover"===h){var E;A*=E=Math.max(m/A,b/x),x*=E}var T=s-m/2,S=u(n,"background-position-x","units",i),D=u(n,"background-position-x","pfValue",i);T+="%"===S?(m-A)*D:D;var I=u(n,"background-offset-x","units",i),B=u(n,"background-offset-x","pfValue",i);T+="%"===I?(m-A)*B:B;var M=c-b/2,P=u(n,"background-position-y","units",i),L=u(n,"background-position-y","pfValue",i);M+="%"===P?(b-x)*L:L;var O=u(n,"background-offset-y","units",i),N=u(n,"background-offset-y","pfValue",i);M+="%"===O?(b-x)*N:N,w.pathCache&&(T-=s,M-=c,s=0,c=0);var R=t.globalAlpha;t.globalAlpha=v;var F=o.getImgSmoothing(t),j=!1;if("no"===y&&F?(o.setImgSmoothing(t,!1),j=!0):"yes"!==y||F||(o.setImgSmoothing(t,!0),j=!0),"no-repeat"===d)k&&(t.save(),w.pathCache?t.clip(w.pathCache):(o.nodeShapes[o.getNodeShape(n)].draw(t,s,c,m,b),t.clip())),o.safeDrawImage(t,e,0,0,_,C,T,M,A,x),k&&t.restore();else{var $=t.createPattern(e,d);t.fillStyle=$,o.nodeShapes[o.getNodeShape(n)].draw(t,s,c,m,b),t.translate(T,M),t.fill(),t.translate(-T,-M)}t.globalAlpha=R,j&&o.setImgSmoothing(t,F)}}},xd={};function Ed(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5;t.beginPath(),t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+o),t.lineTo(e+i,n+r-o),t.quadraticCurveTo(e+i,n+r,e+i-o,n+r),t.lineTo(e+o,n+r),t.quadraticCurveTo(e,n+r,e,n+r-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+o,n),t.closePath(),t.fill()}xd.eleTextBiggerThanMin=function(t,e){if(!e){var n=t.cy().zoom(),i=this.getPixelRatio(),r=Math.ceil(kn(n*i));e=Math.pow(2,r)}return!(t.pstyle("font-size").pfValue*e<t.pstyle("min-zoomed-font-size").pfValue)},xd.drawElementText=function(t,e,n,i,r){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=this;if(null==i){if(o&&!a.eleTextBiggerThanMin(e))return}else if(!1===i)return;if(e.isNode()){var s=e.pstyle("label");if(!s||!s.value)return;var c=a.getLabelJustification(e);t.textAlign=c,t.textBaseline="bottom"}else{var l=e.element()._private.rscratch.badLine,u=e.pstyle("label"),h=e.pstyle("source-label"),d=e.pstyle("target-label");if(l||(!u||!u.value)&&(!h||!h.value)&&(!d||!d.value))return;t.textAlign="center",t.textBaseline="bottom"}var f,g=!n;n&&(f=n,t.translate(-f.x1,-f.y1)),null==r?(a.drawText(t,e,null,g,o),e.isEdge()&&(a.drawText(t,e,"source",g,o),a.drawText(t,e,"target",g,o))):a.drawText(t,e,r,g,o),n&&t.translate(f.x1,f.y1)},xd.getFontCache=function(t){var e;this.fontCaches=this.fontCaches||[];for(var n=0;n<this.fontCaches.length;n++)if((e=this.fontCaches[n]).context===t)return e;return e={context:t},this.fontCaches.push(e),e},xd.setupTextStyle=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=e.pstyle("font-style").strValue,r=e.pstyle("font-size").pfValue+"px",o=e.pstyle("font-family").strValue,a=e.pstyle("font-weight").strValue,s=n?e.effectiveOpacity()*e.pstyle("text-opacity").value:1,c=e.pstyle("text-outline-opacity").value*s,l=e.pstyle("color").value,u=e.pstyle("text-outline-color").value;t.font=i+" "+a+" "+r+" "+o,t.lineJoin="round",this.colorFillStyle(t,l[0],l[1],l[2],s),this.colorStrokeStyle(t,u[0],u[1],u[2],c)},xd.getTextAngle=function(t,e){var n=t._private.rscratch,i=e?e+"-":"",r=t.pstyle(i+"text-rotation"),o=Fe(n,"labelAngle",e);return"autorotate"===r.strValue?t.isEdge()?o:0:"none"===r.strValue?0:r.pfValue},xd.drawText=function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=e._private.rscratch,a=r?e.effectiveOpacity():1;if(!r||0!==a&&0!==e.pstyle("text-opacity").value){"main"===n&&(n=null);var s,c,l=Fe(o,"labelX",n),u=Fe(o,"labelY",n),h=this.getLabelText(e,n);if(null!=h&&""!==h&&!isNaN(l)&&!isNaN(u)){this.setupTextStyle(t,e,r);var d,f=n?n+"-":"",g=Fe(o,"labelWidth",n),p=Fe(o,"labelHeight",n),m=e.pstyle(f+"text-margin-x").pfValue,b=e.pstyle(f+"text-margin-y").pfValue,w=e.isEdge(),k=e.pstyle("text-halign").value,v=e.pstyle("text-valign").value;switch(w&&(k="center",v="center"),l+=m,u+=b,0!==(d=i?this.getTextAngle(e,n):0)&&(s=l,c=u,t.translate(s,c),t.rotate(d),l=0,u=0),v){case"top":break;case"center":u+=p/2;break;case"bottom":u+=p}var y=e.pstyle("text-background-opacity").value,_=e.pstyle("text-border-opacity").value,C=e.pstyle("text-border-width").pfValue,A=e.pstyle("text-background-padding").pfValue;if(y>0||C>0&&_>0){var x=l-A;switch(k){case"left":x-=g;break;case"center":x-=g/2}var E=u-p-A,T=g+2*A,S=p+2*A;if(y>0){var D=t.fillStyle,I=e.pstyle("text-background-color").value;t.fillStyle="rgba("+I[0]+","+I[1]+","+I[2]+","+y*a+")",0===e.pstyle("text-background-shape").strValue.indexOf("round")?Ed(t,x,E,T,S,2):t.fillRect(x,E,T,S),t.fillStyle=D}if(C>0&&_>0){var B=t.strokeStyle,M=t.lineWidth,P=e.pstyle("text-border-color").value,L=e.pstyle("text-border-style").value;if(t.strokeStyle="rgba("+P[0]+","+P[1]+","+P[2]+","+_*a+")",t.lineWidth=C,t.setLineDash)switch(L){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"double":t.lineWidth=C/4,t.setLineDash([]);break;case"solid":t.setLineDash([])}if(t.strokeRect(x,E,T,S),"double"===L){var O=C/2;t.strokeRect(x+O,E+O,T-2*O,S-2*O)}t.setLineDash&&t.setLineDash([]),t.lineWidth=M,t.strokeStyle=B}}var N=2*e.pstyle("text-outline-width").pfValue;if(N>0&&(t.lineWidth=N),"wrap"===e.pstyle("text-wrap").value){var R=Fe(o,"labelWrapCachedLines",n),F=Fe(o,"labelLineHeight",n),j=g/2,$=this.getLabelJustification(e);switch("auto"===$||("left"===k?"left"===$?l+=-g:"center"===$&&(l+=-j):"center"===k?"left"===$?l+=-j:"right"===$&&(l+=j):"right"===k&&("center"===$?l+=j:"right"===$&&(l+=g))),v){case"top":case"center":case"bottom":u-=(R.length-1)*F}for(var z=0;z<R.length;z++)N>0&&t.strokeText(R[z],l,u),t.fillText(R[z],l,u),u+=F}else N>0&&t.strokeText(h,l,u),t.fillText(h,l,u);0!==d&&(t.rotate(-d),t.translate(-s,-c))}}};var Td={drawNode:function(t,e,n){var i,r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],c=this,l=e._private,u=l.rscratch,h=e.position();if(A(h.x)&&A(h.y)&&(!s||e.visible())){var d,f,g=s?e.effectiveOpacity():1,p=c.usePaths(),m=!1,b=e.padding();i=e.width()+2*b,r=e.height()+2*b,n&&(f=n,t.translate(-f.x1,-f.y1));for(var w=e.pstyle("background-image").value,k=new Array(w.length),v=new Array(w.length),y=0,_=0;_<w.length;_++){var C=w[_];if(k[_]=null!=C&&"none"!==C){var x=e.cy().style().getIndexedStyle(e,"background-image-crossorigin","value",_);y++,v[_]=c.getCachedImage(C,x,(function(){l.backgroundTimestamp=Date.now(),e.emitAndNotify("background")}))}}var E=e.pstyle("background-blacken").value,T=e.pstyle("border-width").pfValue,S=e.pstyle("background-opacity").value*g,D=e.pstyle("border-color").value,I=e.pstyle("border-style").value,B=e.pstyle("border-opacity").value*g;t.lineJoin="miter";var M=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S;c.eleFillStyle(t,e,n)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B;c.colorStrokeStyle(t,D[0],D[1],D[2],e)},L=e.pstyle("shape").strValue,O=e.pstyle("shape-polygon-points").pfValue;if(p){t.translate(h.x,h.y);var N=c.nodePathCache=c.nodePathCache||[],R=pe("polygon"===L?L+","+O.join(","):L,""+r,""+i),F=N[R];null!=F?(d=F,m=!0,u.pathCache=d):(d=new Path2D,N[R]=u.pathCache=d)}var j=function(){if(!m){var n=h;p&&(n={x:0,y:0}),c.nodeShapes[c.getNodeShape(e)].draw(d||t,n.x,n.y,i,r)}p?t.fill(d):t.fill()},$=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=l.backgrounding,o=0,a=0;a<v.length;a++){var s=e.cy().style().getIndexedStyle(e,"background-image-containment","value",a);i&&"over"===s||!i&&"inside"===s?o++:k[a]&&v[a].complete&&!v[a].error&&(o++,c.drawInscribedImage(t,v[a],e,a,n))}l.backgrounding=!(o===y),r!==l.backgrounding&&e.updateStyle(!1)},z=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;c.hasPie(e)&&(c.drawPie(t,e,o),n&&(p||c.nodeShapes[c.getNodeShape(e)].draw(t,h.x,h.y,i,r)))},V=function(){var e=(E>0?E:-E)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g),n=E>0?0:255;0!==E&&(c.colorFillStyle(t,n,n,n,e),p?t.fill(d):t.fill())},H=function(){if(T>0){if(t.lineWidth=T,t.lineCap="butt",t.setLineDash)switch(I){case"dotted":t.setLineDash([1,1]);break;case"dashed":t.setLineDash([4,2]);break;case"solid":case"double":t.setLineDash([])}if(p?t.stroke(d):t.stroke(),"double"===I){t.lineWidth=T/3;var e=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",p?t.stroke(d):t.stroke(),t.globalCompositeOperation=e}t.setLineDash&&t.setLineDash([])}},q=function(){a&&c.drawNodeOverlay(t,e,h,i,r)},U=function(){a&&c.drawNodeUnderlay(t,e,h,i,r)},G=function(){c.drawElementText(t,e,null,o)};if("yes"===e.pstyle("ghost").value){var W=e.pstyle("ghost-offset-x").pfValue,K=e.pstyle("ghost-offset-y").pfValue,Y=e.pstyle("ghost-opacity").value,X=Y*g;t.translate(W,K),M(Y*S),j(),$(X,!0),P(Y*B),H(),z(0!==E||0!==T),$(X,!1),V(X),t.translate(-W,-K)}p&&t.translate(-h.x,-h.y),U(),p&&t.translate(h.x,h.y),M(),j(),$(g,!0),P(),H(),z(0!==E||0!==T),$(g,!1),V(),p&&t.translate(-h.x,-h.y),G(),q(),n&&t.translate(f.x1,f.y1)}}},Sd=function(t){if(!["overlay","underlay"].includes(t))throw new Error("Invalid state");return function(e,n,i,r,o){var a=this;if(n.visible()){var s=n.pstyle("".concat(t,"-padding")).pfValue,c=n.pstyle("".concat(t,"-opacity")).value,l=n.pstyle("".concat(t,"-color")).value,u=n.pstyle("".concat(t,"-shape")).value;if(c>0){if(i=i||n.position(),null==r||null==o){var h=n.padding();r=n.width()+2*h,o=n.height()+2*h}a.colorFillStyle(e,l[0],l[1],l[2],c),a.nodeShapes[u].draw(e,i.x,i.y,r+2*s,o+2*s),e.fill()}}}};Td.drawNodeOverlay=Sd("overlay"),Td.drawNodeUnderlay=Sd("underlay"),Td.hasPie=function(t){return(t=t[0])._private.hasPie},Td.drawPie=function(t,e,n,i){e=e[0],i=i||e.position();var r=e.cy().style(),o=e.pstyle("pie-size"),a=i.x,s=i.y,c=e.width(),l=e.height(),u=Math.min(c,l)/2,h=0;this.usePaths()&&(a=0,s=0),"%"===o.units?u*=o.pfValue:void 0!==o.pfValue&&(u=o.pfValue/2);for(var d=1;d<=r.pieBackgroundN;d++){var f=e.pstyle("pie-"+d+"-background-size").value,g=e.pstyle("pie-"+d+"-background-color").value,p=e.pstyle("pie-"+d+"-background-opacity").value*n,m=f/100;m+h>1&&(m=1-h);var b=1.5*Math.PI+2*Math.PI*h,w=b+2*Math.PI*m;0===f||h>=1||h+m>1||(t.beginPath(),t.moveTo(a,s),t.arc(a,s,u,b,w),t.closePath(),this.colorFillStyle(t,g[0],g[1],g[2],p),t.fill(),h+=m)}};var Dd={},Id=100;Dd.getPixelRatio=function(){var t=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var e=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/e},Dd.paintCache=function(t){for(var e,n=this.paintCaches=this.paintCaches||[],i=!0,r=0;r<n.length;r++)if((e=n[r]).context===t){i=!1;break}return i&&(e={context:t},n.push(e)),e},Dd.createGradientStyleFor=function(t,e,n,i,r){var o,a=this.usePaths(),s=n.pstyle(e+"-gradient-stop-colors").value,c=n.pstyle(e+"-gradient-stop-positions").pfValue;if("radial-gradient"===i)if(n.isEdge()){var l=n.sourceEndpoint(),u=n.targetEndpoint(),h=n.midpoint(),d=yn(l,h),f=yn(u,h);o=t.createRadialGradient(h.x,h.y,0,h.x,h.y,Math.max(d,f))}else{var g=a?{x:0,y:0}:n.position(),p=n.paddedWidth(),m=n.paddedHeight();o=t.createRadialGradient(g.x,g.y,0,g.x,g.y,Math.max(p,m))}else if(n.isEdge()){var b=n.sourceEndpoint(),w=n.targetEndpoint();o=t.createLinearGradient(b.x,b.y,w.x,w.y)}else{var k=a?{x:0,y:0}:n.position(),v=n.paddedWidth()/2,y=n.paddedHeight()/2;switch(n.pstyle("background-gradient-direction").value){case"to-bottom":o=t.createLinearGradient(k.x,k.y-y,k.x,k.y+y);break;case"to-top":o=t.createLinearGradient(k.x,k.y+y,k.x,k.y-y);break;case"to-left":o=t.createLinearGradient(k.x+v,k.y,k.x-v,k.y);break;case"to-right":o=t.createLinearGradient(k.x-v,k.y,k.x+v,k.y);break;case"to-bottom-right":case"to-right-bottom":o=t.createLinearGradient(k.x-v,k.y-y,k.x+v,k.y+y);break;case"to-top-right":case"to-right-top":o=t.createLinearGradient(k.x-v,k.y+y,k.x+v,k.y-y);break;case"to-bottom-left":case"to-left-bottom":o=t.createLinearGradient(k.x+v,k.y-y,k.x-v,k.y+y);break;case"to-top-left":case"to-left-top":o=t.createLinearGradient(k.x+v,k.y+y,k.x-v,k.y-y)}}if(!o)return null;for(var _=c.length===s.length,C=s.length,A=0;A<C;A++)o.addColorStop(_?c[A]:A/(C-1),"rgba("+s[A][0]+","+s[A][1]+","+s[A][2]+","+r+")");return o},Dd.gradientFillStyle=function(t,e,n,i){var r=this.createGradientStyleFor(t,"background",e,n,i);if(!r)return null;t.fillStyle=r},Dd.colorFillStyle=function(t,e,n,i,r){t.fillStyle="rgba("+e+","+n+","+i+","+r+")"},Dd.eleFillStyle=function(t,e,n){var i=e.pstyle("background-fill").value;if("linear-gradient"===i||"radial-gradient"===i)this.gradientFillStyle(t,e,i,n);else{var r=e.pstyle("background-color").value;this.colorFillStyle(t,r[0],r[1],r[2],n)}},Dd.gradientStrokeStyle=function(t,e,n,i){var r=this.createGradientStyleFor(t,"line",e,n,i);if(!r)return null;t.strokeStyle=r},Dd.colorStrokeStyle=function(t,e,n,i,r){t.strokeStyle="rgba("+e+","+n+","+i+","+r+")"},Dd.eleStrokeStyle=function(t,e,n){var i=e.pstyle("line-fill").value;if("linear-gradient"===i||"radial-gradient"===i)this.gradientStrokeStyle(t,e,i,n);else{var r=e.pstyle("line-color").value;this.colorStrokeStyle(t,r[0],r[1],r[2],n)}},Dd.matchCanvasSize=function(t){var e=this,n=e.data,i=e.findContainerClientCoords(),r=i[2],o=i[3],a=e.getPixelRatio(),s=e.motionBlurPxRatio;t!==e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE]&&t!==e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG]||(a=s);var c,l=r*a,u=o*a;if(l!==e.canvasWidth||u!==e.canvasHeight){e.fontCaches=null;var h=n.canvasContainer;h.style.width=r+"px",h.style.height=o+"px";for(var d=0;d<e.CANVAS_LAYERS;d++)(c=n.canvases[d]).width=l,c.height=u,c.style.width=r+"px",c.style.height=o+"px";for(d=0;d<e.BUFFER_COUNT;d++)(c=n.bufferCanvases[d]).width=l,c.height=u,c.style.width=r+"px",c.style.height=o+"px";e.textureMult=1,a<=1&&(c=n.bufferCanvases[e.TEXTURE_BUFFER],e.textureMult=2,c.width=l*e.textureMult,c.height=u*e.textureMult),e.canvasWidth=l,e.canvasHeight=u}},Dd.renderTo=function(t,e,n,i){this.render({forcedContext:t,forcedZoom:e,forcedPan:n,drawAllLayers:!0,forcedPxRatio:i})},Dd.render=function(t){var e=(t=t||Pe()).forcedContext,n=t.drawAllLayers,i=t.drawOnlyNodeLayer,r=t.forcedZoom,o=t.forcedPan,a=this,s=void 0===t.forcedPxRatio?this.getPixelRatio():t.forcedPxRatio,c=a.cy,l=a.data,u=l.canvasNeedsRedraw,h=a.textureOnViewport&&!e&&(a.pinching||a.hoverData.dragging||a.swipePanning||a.data.wheelZooming),d=void 0!==t.motionBlur?t.motionBlur:a.motionBlur,f=a.motionBlurPxRatio,g=c.hasCompoundNodes(),p=a.hoverData.draggingEles,m=!(!a.hoverData.selecting&&!a.touchData.selecting),b=d=d&&!e&&a.motionBlurEnabled&&!m;e||(a.prevPxRatio!==s&&(a.invalidateContainerClientCoordsCache(),a.matchCanvasSize(a.container),a.redrawHint("eles",!0),a.redrawHint("drag",!0)),a.prevPxRatio=s),!e&&a.motionBlurTimeout&&clearTimeout(a.motionBlurTimeout),d&&(null==a.mbFrames&&(a.mbFrames=0),a.mbFrames++,a.mbFrames<3&&(b=!1),a.mbFrames>a.minMbLowQualFrames&&(a.motionBlurPxRatio=a.mbPxRBlurry)),a.clearingMotionBlur&&(a.motionBlurPxRatio=1),a.textureDrawLastFrame&&!h&&(u[a.NODE]=!0,u[a.SELECT_BOX]=!0);var w=c.style(),k=c.zoom(),v=void 0!==r?r:k,y=c.pan(),_={x:y.x,y:y.y},C={zoom:k,pan:{x:y.x,y:y.y}},A=a.prevViewport;void 0===A||C.zoom!==A.zoom||C.pan.x!==A.pan.x||C.pan.y!==A.pan.y||p&&!g||(a.motionBlurPxRatio=1),o&&(_=o),v*=s,_.x*=s,_.y*=s;var x=a.getCachedZSortedEles();function E(t,e,n,i,r){var o=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",a.colorFillStyle(t,255,255,255,a.motionBlurTransparency),t.fillRect(e,n,i,r),t.globalCompositeOperation=o}function T(t,i){var s,c,u,h;a.clearingMotionBlur||t!==l.bufferContexts[a.MOTIONBLUR_BUFFER_NODE]&&t!==l.bufferContexts[a.MOTIONBLUR_BUFFER_DRAG]?(s=_,c=v,u=a.canvasWidth,h=a.canvasHeight):(s={x:y.x*f,y:y.y*f},c=k*f,u=a.canvasWidth*f,h=a.canvasHeight*f),t.setTransform(1,0,0,1,0,0),"motionBlur"===i?E(t,0,0,u,h):e||void 0!==i&&!i||t.clearRect(0,0,u,h),n||(t.translate(s.x,s.y),t.scale(c,c)),o&&t.translate(o.x,o.y),r&&t.scale(r,r)}if(h||(a.textureDrawLastFrame=!1),h){if(a.textureDrawLastFrame=!0,!a.textureCache){a.textureCache={},a.textureCache.bb=c.mutableElements().boundingBox(),a.textureCache.texture=a.data.bufferCanvases[a.TEXTURE_BUFFER];var S=a.data.bufferContexts[a.TEXTURE_BUFFER];S.setTransform(1,0,0,1,0,0),S.clearRect(0,0,a.canvasWidth*a.textureMult,a.canvasHeight*a.textureMult),a.render({forcedContext:S,drawOnlyNodeLayer:!0,forcedPxRatio:s*a.textureMult}),(C=a.textureCache.viewport={zoom:c.zoom(),pan:c.pan(),width:a.canvasWidth,height:a.canvasHeight}).mpan={x:(0-C.pan.x)/C.zoom,y:(0-C.pan.y)/C.zoom}}u[a.DRAG]=!1,u[a.NODE]=!1;var D=l.contexts[a.NODE],I=a.textureCache.texture;C=a.textureCache.viewport,D.setTransform(1,0,0,1,0,0),d?E(D,0,0,C.width,C.height):D.clearRect(0,0,C.width,C.height);var B=w.core("outside-texture-bg-color").value,M=w.core("outside-texture-bg-opacity").value;a.colorFillStyle(D,B[0],B[1],B[2],M),D.fillRect(0,0,C.width,C.height),k=c.zoom(),T(D,!1),D.clearRect(C.mpan.x,C.mpan.y,C.width/C.zoom/s,C.height/C.zoom/s),D.drawImage(I,C.mpan.x,C.mpan.y,C.width/C.zoom/s,C.height/C.zoom/s)}else a.textureOnViewport&&!e&&(a.textureCache=null);var P=c.extent(),L=a.pinching||a.hoverData.dragging||a.swipePanning||a.data.wheelZooming||a.hoverData.draggingEles||a.cy.animated(),O=a.hideEdgesOnViewport&&L,N=[];if(N[a.NODE]=!u[a.NODE]&&d&&!a.clearedForMotionBlur[a.NODE]||a.clearingMotionBlur,N[a.NODE]&&(a.clearedForMotionBlur[a.NODE]=!0),N[a.DRAG]=!u[a.DRAG]&&d&&!a.clearedForMotionBlur[a.DRAG]||a.clearingMotionBlur,N[a.DRAG]&&(a.clearedForMotionBlur[a.DRAG]=!0),u[a.NODE]||n||i||N[a.NODE]){var R=d&&!N[a.NODE]&&1!==f;T(D=e||(R?a.data.bufferContexts[a.MOTIONBLUR_BUFFER_NODE]:l.contexts[a.NODE]),d&&!R?"motionBlur":void 0),O?a.drawCachedNodes(D,x.nondrag,s,P):a.drawLayeredElements(D,x.nondrag,s,P),a.debug&&a.drawDebugPoints(D,x.nondrag),n||d||(u[a.NODE]=!1)}if(!i&&(u[a.DRAG]||n||N[a.DRAG])&&(R=d&&!N[a.DRAG]&&1!==f,T(D=e||(R?a.data.bufferContexts[a.MOTIONBLUR_BUFFER_DRAG]:l.contexts[a.DRAG]),d&&!R?"motionBlur":void 0),O?a.drawCachedNodes(D,x.drag,s,P):a.drawCachedElements(D,x.drag,s,P),a.debug&&a.drawDebugPoints(D,x.drag),n||d||(u[a.DRAG]=!1)),a.showFps||!i&&u[a.SELECT_BOX]&&!n){if(T(D=e||l.contexts[a.SELECT_BOX]),1==a.selection[4]&&(a.hoverData.selecting||a.touchData.selecting)){k=a.cy.zoom();var F=w.core("selection-box-border-width").value/k;D.lineWidth=F,D.fillStyle="rgba("+w.core("selection-box-color").value[0]+","+w.core("selection-box-color").value[1]+","+w.core("selection-box-color").value[2]+","+w.core("selection-box-opacity").value+")",D.fillRect(a.selection[0],a.selection[1],a.selection[2]-a.selection[0],a.selection[3]-a.selection[1]),F>0&&(D.strokeStyle="rgba("+w.core("selection-box-border-color").value[0]+","+w.core("selection-box-border-color").value[1]+","+w.core("selection-box-border-color").value[2]+","+w.core("selection-box-opacity").value+")",D.strokeRect(a.selection[0],a.selection[1],a.selection[2]-a.selection[0],a.selection[3]-a.selection[1]))}if(l.bgActivePosistion&&!a.hoverData.selecting){k=a.cy.zoom();var j=l.bgActivePosistion;D.fillStyle="rgba("+w.core("active-bg-color").value[0]+","+w.core("active-bg-color").value[1]+","+w.core("active-bg-color").value[2]+","+w.core("active-bg-opacity").value+")",D.beginPath(),D.arc(j.x,j.y,w.core("active-bg-size").pfValue/k,0,2*Math.PI),D.fill()}var $=a.lastRedrawTime;if(a.showFps&&$){$=Math.round($);var z=Math.round(1e3/$);D.setTransform(1,0,0,1,0,0),D.fillStyle="rgba(255, 0, 0, 0.75)",D.strokeStyle="rgba(255, 0, 0, 0.75)",D.lineWidth=1,D.fillText("1 frame = "+$+" ms = "+z+" fps",0,20);var V=60;D.strokeRect(0,30,250,20),D.fillRect(0,30,250*Math.min(z/V,1),20)}n||(u[a.SELECT_BOX]=!1)}if(d&&1!==f){var H=l.contexts[a.NODE],q=a.data.bufferCanvases[a.MOTIONBLUR_BUFFER_NODE],U=l.contexts[a.DRAG],G=a.data.bufferCanvases[a.MOTIONBLUR_BUFFER_DRAG],W=function(t,e,n){t.setTransform(1,0,0,1,0,0),n||!b?t.clearRect(0,0,a.canvasWidth,a.canvasHeight):E(t,0,0,a.canvasWidth,a.canvasHeight);var i=f;t.drawImage(e,0,0,a.canvasWidth*i,a.canvasHeight*i,0,0,a.canvasWidth,a.canvasHeight)};(u[a.NODE]||N[a.NODE])&&(W(H,q,N[a.NODE]),u[a.NODE]=!1),(u[a.DRAG]||N[a.DRAG])&&(W(U,G,N[a.DRAG]),u[a.DRAG]=!1)}a.prevViewport=C,a.clearingMotionBlur&&(a.clearingMotionBlur=!1,a.motionBlurCleared=!0,a.motionBlur=!0),d&&(a.motionBlurTimeout=setTimeout((function(){a.motionBlurTimeout=null,a.clearedForMotionBlur[a.NODE]=!1,a.clearedForMotionBlur[a.DRAG]=!1,a.motionBlur=!1,a.clearingMotionBlur=!h,a.mbFrames=0,u[a.NODE]=!0,u[a.DRAG]=!0,a.redraw()}),Id)),e||c.emit("render")};for(var Bd={drawPolygonPath:function(t,e,n,i,r,o){var a=i/2,s=r/2;t.beginPath&&t.beginPath(),t.moveTo(e+a*o[0],n+s*o[1]);for(var c=1;c<o.length/2;c++)t.lineTo(e+a*o[2*c],n+s*o[2*c+1]);t.closePath()},drawRoundPolygonPath:function(t,e,n,i,r,o){var a=i/2,s=r/2,c=ui(i,r);t.beginPath&&t.beginPath();for(var l=0;l<o.length/4;l++){var u=void 0,h=void 0;u=0===l?o.length-2:4*l-2,h=4*l+2;var d=e+a*o[4*l],f=n+s*o[4*l+1],g=-o[u]*o[h]-o[u+1]*o[h+1],p=c/Math.tan(Math.acos(g)/2),m=d-p*o[u],b=f-p*o[u+1],w=d+p*o[h],k=f+p*o[h+1];0===l?t.moveTo(m,b):t.lineTo(m,b),t.arcTo(d,f,w,k,c)}t.closePath()},drawRoundRectanglePath:function(t,e,n,i,r){var o=i/2,a=r/2,s=li(i,r);t.beginPath&&t.beginPath(),t.moveTo(e,n-a),t.arcTo(e+o,n-a,e+o,n,s),t.arcTo(e+o,n+a,e,n+a,s),t.arcTo(e-o,n+a,e-o,n,s),t.arcTo(e-o,n-a,e,n-a,s),t.lineTo(e,n-a),t.closePath()},drawBottomRoundRectanglePath:function(t,e,n,i,r){var o=i/2,a=r/2,s=li(i,r);t.beginPath&&t.beginPath(),t.moveTo(e,n-a),t.lineTo(e+o,n-a),t.lineTo(e+o,n),t.arcTo(e+o,n+a,e,n+a,s),t.arcTo(e-o,n+a,e-o,n,s),t.lineTo(e-o,n-a),t.lineTo(e,n-a),t.closePath()},drawCutRectanglePath:function(t,e,n,i,r){var o=i/2,a=r/2,s=hi();t.beginPath&&t.beginPath(),t.moveTo(e-o+s,n-a),t.lineTo(e+o-s,n-a),t.lineTo(e+o,n-a+s),t.lineTo(e+o,n+a-s),t.lineTo(e+o-s,n+a),t.lineTo(e-o+s,n+a),t.lineTo(e-o,n+a-s),t.lineTo(e-o,n-a+s),t.closePath()},drawBarrelPath:function(t,e,n,i,r){var o=i/2,a=r/2,s=e-o,c=e+o,l=n-a,u=n+a,h=fi(i,r),d=h.widthOffset,f=h.heightOffset,g=h.ctrlPtOffsetPct*d;t.beginPath&&t.beginPath(),t.moveTo(s,l+f),t.lineTo(s,u-f),t.quadraticCurveTo(s+g,u,s+d,u),t.lineTo(c-d,u),t.quadraticCurveTo(c-g,u,c,u-f),t.lineTo(c,l+f),t.quadraticCurveTo(c-g,l,c-d,l),t.lineTo(s+d,l),t.quadraticCurveTo(s+g,l,s,l+f),t.closePath()}},Md=Math.sin(0),Pd=Math.cos(0),Ld={},Od={},Nd=Math.PI/40,Rd=0*Math.PI;Rd<2*Math.PI;Rd+=Nd)Ld[Rd]=Math.sin(Rd),Od[Rd]=Math.cos(Rd);Bd.drawEllipsePath=function(t,e,n,i,r){if(t.beginPath&&t.beginPath(),t.ellipse)t.ellipse(e,n,i/2,r/2,0,0,2*Math.PI);else for(var o,a,s=i/2,c=r/2,l=0*Math.PI;l<2*Math.PI;l+=Nd)o=e-s*Ld[l]*Md+s*Od[l]*Pd,a=n+c*Od[l]*Md+c*Ld[l]*Pd,0===l?t.moveTo(o,a):t.lineTo(o,a);t.closePath()};var Fd={};function jd(t,e){for(var n=atob(t),i=new ArrayBuffer(n.length),r=new Uint8Array(i),o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return new Blob([i],{type:e})}function $d(t){var e=t.indexOf(",");return t.substr(e+1)}function zd(t,e,n){var i=function(){return e.toDataURL(n,t.quality)};switch(t.output){case"blob-promise":return new jr((function(i,r){try{e.toBlob((function(t){null!=t?i(t):r(new Error("`canvas.toBlob()` sent a null value in its callback"))}),n,t.quality)}catch(t){r(t)}}));case"blob":return jd($d(i()),n);case"base64":return $d(i());default:return i()}}Fd.createBuffer=function(t,e){var n=document.createElement("canvas");return n.width=t,n.height=e,[n,n.getContext("2d")]},Fd.bufferCanvasImage=function(t){var e=this.cy,n=e.mutableElements().boundingBox(),i=this.findContainerClientCoords(),r=t.full?Math.ceil(n.w):i[2],o=t.full?Math.ceil(n.h):i[3],a=A(t.maxWidth)||A(t.maxHeight),s=this.getPixelRatio(),c=1;if(void 0!==t.scale)r*=t.scale,o*=t.scale,c=t.scale;else if(a){var l=1/0,u=1/0;A(t.maxWidth)&&(l=c*t.maxWidth/r),A(t.maxHeight)&&(u=c*t.maxHeight/o),r*=c=Math.min(l,u),o*=c}a||(r*=s,o*=s,c*=s);var h=document.createElement("canvas");h.width=r,h.height=o,h.style.width=r+"px",h.style.height=o+"px";var d=h.getContext("2d");if(r>0&&o>0){d.clearRect(0,0,r,o),d.globalCompositeOperation="source-over";var f=this.getCachedZSortedEles();if(t.full)d.translate(-n.x1*c,-n.y1*c),d.scale(c,c),this.drawElements(d,f),d.scale(1/c,1/c),d.translate(n.x1*c,n.y1*c);else{var g=e.pan(),p={x:g.x*c,y:g.y*c};c*=e.zoom(),d.translate(p.x,p.y),d.scale(c,c),this.drawElements(d,f),d.scale(1/c,1/c),d.translate(-p.x,-p.y)}t.bg&&(d.globalCompositeOperation="destination-over",d.fillStyle=t.bg,d.rect(0,0,r,o),d.fill())}return h},Fd.png=function(t){return zd(t,this.bufferCanvasImage(t),"image/png")},Fd.jpg=function(t){return zd(t,this.bufferCanvasImage(t),"image/jpeg")};var Vd={nodeShapeImpl:function(t,e,n,i,r,o,a){switch(t){case"ellipse":return this.drawEllipsePath(e,n,i,r,o);case"polygon":return this.drawPolygonPath(e,n,i,r,o,a);case"round-polygon":return this.drawRoundPolygonPath(e,n,i,r,o,a);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(e,n,i,r,o);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(e,n,i,r,o);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(e,n,i,r,o);case"barrel":return this.drawBarrelPath(e,n,i,r,o)}}},Hd=Ud,qd=Ud.prototype;function Ud(t){var e=this;e.data={canvases:new Array(qd.CANVAS_LAYERS),contexts:new Array(qd.CANVAS_LAYERS),canvasNeedsRedraw:new Array(qd.CANVAS_LAYERS),bufferCanvases:new Array(qd.BUFFER_COUNT),bufferContexts:new Array(qd.CANVAS_LAYERS)};var n="-webkit-tap-highlight-color",i="rgba(0,0,0,0)";e.data.canvasContainer=document.createElement("div");var r=e.data.canvasContainer.style;e.data.canvasContainer.style[n]=i,r.position="relative",r.zIndex="0",r.overflow="hidden";var o=t.cy.container();o.appendChild(e.data.canvasContainer),o.style[n]=i;var a={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};R()&&(a["-ms-touch-action"]="none",a["touch-action"]="none");for(var s=0;s<qd.CANVAS_LAYERS;s++){var c=e.data.canvases[s]=document.createElement("canvas");e.data.contexts[s]=c.getContext("2d"),Object.keys(a).forEach((function(t){c.style[t]=a[t]})),c.style.position="absolute",c.setAttribute("data-id","layer"+s),c.style.zIndex=String(qd.CANVAS_LAYERS-s),e.data.canvasContainer.appendChild(c),e.data.canvasNeedsRedraw[s]=!1}for(e.data.topCanvas=e.data.canvases[0],e.data.canvases[qd.NODE].setAttribute("data-id","layer"+qd.NODE+"-node"),e.data.canvases[qd.SELECT_BOX].setAttribute("data-id","layer"+qd.SELECT_BOX+"-selectbox"),e.data.canvases[qd.DRAG].setAttribute("data-id","layer"+qd.DRAG+"-drag"),s=0;s<qd.BUFFER_COUNT;s++)e.data.bufferCanvases[s]=document.createElement("canvas"),e.data.bufferContexts[s]=e.data.bufferCanvases[s].getContext("2d"),e.data.bufferCanvases[s].style.position="absolute",e.data.bufferCanvases[s].setAttribute("data-id","buffer"+s),e.data.bufferCanvases[s].style.zIndex=String(-s-1),e.data.bufferCanvases[s].style.visibility="hidden";e.pathsEnabled=!0;var l=Sn(),u=function(t){return{x:(t.x1+t.x2)/2,y:(t.y1+t.y2)/2}},h=function(t){return{x:-t.w/2,y:-t.h/2}},d=function(t){var e=t[0]._private;return!(e.oldBackgroundTimestamp===e.backgroundTimestamp)},f=function(t){return t[0]._private.nodeKey},g=function(t){return t[0]._private.labelStyleKey},p=function(t){return t[0]._private.sourceLabelStyleKey},m=function(t){return t[0]._private.targetLabelStyleKey},b=function(t,n,i,r,o){return e.drawElement(t,n,i,!1,!1,o)},w=function(t,n,i,r,o){return e.drawElementText(t,n,i,r,"main",o)},k=function(t,n,i,r,o){return e.drawElementText(t,n,i,r,"source",o)},v=function(t,n,i,r,o){return e.drawElementText(t,n,i,r,"target",o)},y=function(t){return t.boundingBox(),t[0]._private.bodyBounds},_=function(t){return t.boundingBox(),t[0]._private.labelBounds.main||l},C=function(t){return t.boundingBox(),t[0]._private.labelBounds.source||l},A=function(t){return t.boundingBox(),t[0]._private.labelBounds.target||l},x=function(t,e){return e},E=function(t){return u(y(t))},T=function(t,e,n){var i=t?t+"-":"";return{x:e.x+n.pstyle(i+"text-margin-x").pfValue,y:e.y+n.pstyle(i+"text-margin-y").pfValue}},S=function(t,e,n){var i=t[0]._private.rscratch;return{x:i[e],y:i[n]}},D=function(t){return T("",S(t,"labelX","labelY"),t)},I=function(t){return T("source",S(t,"sourceLabelX","sourceLabelY"),t)},B=function(t){return T("target",S(t,"targetLabelX","targetLabelY"),t)},M=function(t){return h(y(t))},P=function(t){return h(C(t))},L=function(t){return h(A(t))},O=function(t){var e=_(t),n=h(_(t));if(t.isNode()){switch(t.pstyle("text-halign").value){case"left":n.x=-e.w;break;case"right":n.x=0}switch(t.pstyle("text-valign").value){case"top":n.y=-e.h;break;case"bottom":n.y=0}}return n},N=e.data.eleTxrCache=new Vh(e,{getKey:f,doesEleInvalidateKey:d,drawElement:b,getBoundingBox:y,getRotationPoint:E,getRotationOffset:M,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),F=e.data.lblTxrCache=new Vh(e,{getKey:g,drawElement:w,getBoundingBox:_,getRotationPoint:D,getRotationOffset:O,isVisible:x}),j=e.data.slbTxrCache=new Vh(e,{getKey:p,drawElement:k,getBoundingBox:C,getRotationPoint:I,getRotationOffset:P,isVisible:x}),$=e.data.tlbTxrCache=new Vh(e,{getKey:m,drawElement:v,getBoundingBox:A,getRotationPoint:B,getRotationOffset:L,isVisible:x}),z=e.data.lyrTxrCache=new rd(e);e.onUpdateEleCalcs((function(t,e){N.invalidateElements(e),F.invalidateElements(e),j.invalidateElements(e),$.invalidateElements(e),z.invalidateElements(e);for(var n=0;n<e.length;n++){var i=e[n]._private;i.oldBackgroundTimestamp=i.backgroundTimestamp}}));var V=function(t){for(var e=0;e<t.length;e++)z.enqueueElementRefinement(t[e].ele)};N.onDequeue(V),F.onDequeue(V),j.onDequeue(V),$.onDequeue(V)}qd.CANVAS_LAYERS=3,qd.SELECT_BOX=0,qd.DRAG=1,qd.NODE=2,qd.BUFFER_COUNT=3,qd.TEXTURE_BUFFER=0,qd.MOTIONBLUR_BUFFER_NODE=1,qd.MOTIONBLUR_BUFFER_DRAG=2,qd.redrawHint=function(t,e){var n=this;switch(t){case"eles":n.data.canvasNeedsRedraw[qd.NODE]=e;break;case"drag":n.data.canvasNeedsRedraw[qd.DRAG]=e;break;case"select":n.data.canvasNeedsRedraw[qd.SELECT_BOX]=e}};var Gd="undefined"!=typeof Path2D;qd.path2dEnabled=function(t){if(void 0===t)return this.pathsEnabled;this.pathsEnabled=!!t},qd.usePaths=function(){return Gd&&this.pathsEnabled},qd.setImgSmoothing=function(t,e){null!=t.imageSmoothingEnabled?t.imageSmoothingEnabled=e:(t.webkitImageSmoothingEnabled=e,t.mozImageSmoothingEnabled=e,t.msImageSmoothingEnabled=e)},qd.getImgSmoothing=function(t){return null!=t.imageSmoothingEnabled?t.imageSmoothingEnabled:t.webkitImageSmoothingEnabled||t.mozImageSmoothingEnabled||t.msImageSmoothingEnabled},qd.makeOffscreenCanvas=function(e,n){var i;return"undefined"!==("undefined"==typeof OffscreenCanvas?"undefined":t(OffscreenCanvas))?i=new OffscreenCanvas(e,n):((i=document.createElement("canvas")).width=e,i.height=n),i},[ld,pd,_d,Ad,xd,Td,Dd,Bd,Fd,Vd].forEach((function(t){Q(qd,t)}));var Wd=[{type:"layout",extensions:qu},{type:"renderer",extensions:[{name:"null",impl:Uu},{name:"base",impl:bh},{name:"canvas",impl:Hd}]}],Kd={},Yd={};function Xd(t,e,n){var i=n,r=function(n){Te("Can not register `"+e+"` for `"+t+"` since `"+n+"` already exists in the prototype and can not be overridden")};if("core"===t){if(iu.prototype[e])return r(e);iu.prototype[e]=n}else if("collection"===t){if(bl.prototype[e])return r(e);bl.prototype[e]=n}else if("layout"===t){for(var o=function(t){this.options=t,n.call(this,t),_(this._private)||(this._private={}),this._private.cy=t.cy,this._private.listeners=[],this.createEmitter()},a=o.prototype=Object.create(n.prototype),s=[],c=0;c<s.length;c++){var l=s[c];a[l]=a[l]||function(){return this}}a.start&&!a.run?a.run=function(){return this.start(),this}:!a.start&&a.run&&(a.start=function(){return this.run(),this});var u=n.prototype.stop;a.stop=function(){var t=this.options;if(t&&t.animate){var e=this.animations;if(e)for(var n=0;n<e.length;n++)e[n].stop()}return u?u.call(this):this.emit("layoutstop"),this},a.destroy||(a.destroy=function(){return this}),a.cy=function(){return this._private.cy};var h=function(t){return t._private.cy},d={addEventFields:function(t,e){e.layout=t,e.cy=h(t),e.target=t},bubble:function(){return!0},parent:function(t){return h(t)}};Q(a,{createEmitter:function(){return this._private.emitter=new Lc(d,this),this},emitter:function(){return this._private.emitter},on:function(t,e){return this.emitter().on(t,e),this},one:function(t,e){return this.emitter().one(t,e),this},once:function(t,e){return this.emitter().one(t,e),this},removeListener:function(t,e){return this.emitter().removeListener(t,e),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(t,e){return this.emitter().emit(t,e),this}}),ls.eventAliasesOn(a),i=o}else if("renderer"===t&&"null"!==e&&"base"!==e){var f=Zd("renderer","base"),g=f.prototype,p=n,m=n.prototype,b=function(){f.apply(this,arguments),p.apply(this,arguments)},w=b.prototype;for(var k in g){var v=g[k];if(null!=m[k])return r(k);w[k]=v}for(var y in m)w[y]=m[y];g.clientFunctions.forEach((function(t){w[t]=w[t]||function(){xe("Renderer does not implement `renderer."+t+"()` on its prototype")}})),i=b}else if("__proto__"===t||"constructor"===t||"prototype"===t)return xe(t+" is an illegal type to be registered, possibly lead to prototype pollutions");return ot({map:Kd,keys:[t,e],value:i})}function Zd(t,e){return at({map:Kd,keys:[t,e]})}function Qd(t,e,n,i,r){return ot({map:Yd,keys:[t,e,n,i],value:r})}function Jd(t,e,n,i){return at({map:Yd,keys:[t,e,n,i]})}var tf=function(){return 2===arguments.length?Zd.apply(null,arguments):3===arguments.length?Xd.apply(null,arguments):4===arguments.length?Jd.apply(null,arguments):5===arguments.length?Qd.apply(null,arguments):void xe("Invalid extension access syntax")};iu.prototype.extension=tf,Wd.forEach((function(t){t.extensions.forEach((function(e){Xd(t.type,e.name,e.impl)}))}));var ef=function t(){if(!(this instanceof t))return new t;this.length=0},nf=ef.prototype;nf.instanceString=function(){return"stylesheet"},nf.selector=function(t){return this[this.length++]={selector:t,properties:[]},this},nf.css=function(t,e){var n=this.length-1;if(k(t))this[n].properties.push({name:t,value:e});else if(_(t))for(var i=t,r=Object.keys(i),o=0;o<r.length;o++){var a=r[o],s=i[a];if(null!=s){var c=Zl.properties[a]||Zl.properties[$(a)];if(null!=c){var l=c.name,u=s;this[n].properties.push({name:l,value:u})}}}return this},nf.style=nf.css,nf.generateStyle=function(t){var e=new Zl(t);return this.appendToStyle(e)},nf.appendToStyle=function(t){for(var e=0;e<this.length;e++){var n=this[e],i=n.selector,r=n.properties;t.selector(i);for(var o=0;o<r.length;o++){var a=r[o];t.css(a.name,a.value)}}return t};var rf="3.23.0",of=function(t){return void 0===t&&(t={}),_(t)?new iu(t):k(t)?tf.apply(tf,arguments):void 0};return of.use=function(t){var e=Array.prototype.slice.call(arguments,1);return e.unshift(of),t.apply(null,e),this},of.warnings=function(t){return Ee(t)},of.version=rf,of.stylesheet=of.Stylesheet=ef,of}))}({get exports(){return yU},set exports(t){yU=t}});const _U=yU;var CU,AU,xU={},EU={get exports(){return xU},set exports(t){xU=t}},TU={},SU={get exports(){return TU},set exports(t){TU=t}},DU={},IU={get exports(){return DU},set exports(t){DU=t}};function BU(){return CU||(CU=1,function(t){!function(e,n){t.exports=n()}(0,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=26)}([function(t,e,n){function i(){}i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,t.exports=i},function(t,e,n){var i=n(2),r=n(8),o=n(9);function a(t,e,n){i.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=t,this.target=e}for(var s in a.prototype=Object.create(i.prototype),i)a[s]=i[s];a.prototype.getSource=function(){return this.source},a.prototype.getTarget=function(){return this.target},a.prototype.isInterGraph=function(){return this.isInterGraph},a.prototype.getLength=function(){return this.length},a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},a.prototype.getBendpoints=function(){return this.bendpoints},a.prototype.getLca=function(){return this.lca},a.prototype.getSourceInLca=function(){return this.sourceInLca},a.prototype.getTargetInLca=function(){return this.targetInLca},a.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},a.prototype.getOtherEndInGraph=function(t,e){for(var n=this.getOtherEnd(t),i=e.getGraphManager().getRoot();;){if(n.getOwner()==e)return n;if(n.getOwner()==i)break;n=n.getOwner().getParent()}return null},a.prototype.updateLength=function(){var t=new Array(4);this.isOverlapingSourceAndTarget=r.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},a.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=a},function(t,e,n){function i(t){this.vGraphObject=t}t.exports=i},function(t,e,n){var i=n(2),r=n(10),o=n(13),a=n(0),s=n(16),c=n(4);function l(t,e,n,a){null==n&&null==a&&(a=e),i.call(this,a),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=r.MIN_VALUE,this.inclusionTreeDepth=r.MAX_VALUE,this.vGraphObject=a,this.edges=[],this.graphManager=t,this.rect=null!=n&&null!=e?new o(e.x,e.y,n.width,n.height):new o}for(var u in l.prototype=Object.create(i.prototype),i)l[u]=i[u];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],n=this;return n.edges.forEach((function(i){if(i.target==t){if(i.source!=n)throw"Incorrect edge source!";e.push(i)}})),e},l.prototype.getEdgesBetween=function(t){var e=[],n=this;return n.edges.forEach((function(i){if(i.source!=n&&i.target!=n)throw"Incorrect edge source and/or target";i.target!=t&&i.source!=t||e.push(i)})),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach((function(n){if(n.source==e)t.add(n.target);else{if(n.target!=e)throw"Incorrect incidency!";t.add(n.source)}})),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),n=0;n<e.length;n++)e[n].withChildren().forEach((function(e){t.add(e)}));return t},l.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),n=0;n<e.length;n++)t+=e[n].getNoOfChildren();return 0==t&&(t=1),t},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},l.prototype.scatter=function(){var t,e,n=-a.INITIAL_WORLD_BOUNDARY,i=a.INITIAL_WORLD_BOUNDARY;t=a.WORLD_CENTER_X+s.nextDouble()*(i-n)+n;var r=-a.INITIAL_WORLD_BOUNDARY,o=a.INITIAL_WORLD_BOUNDARY;e=a.WORLD_CENTER_Y+s.nextDouble()*(o-r)+r,this.rect.x=t,this.rect.y=e},l.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),a.NODE_DIMENSIONS_INCLUDE_LABELS){var e=t.getRight()-t.getLeft(),n=t.getBottom()-t.getTop();this.labelWidth>e&&(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==r.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>a.WORLD_BOUNDARY?e=a.WORLD_BOUNDARY:e<-a.WORLD_BOUNDARY&&(e=-a.WORLD_BOUNDARY);var n=this.rect.y;n>a.WORLD_BOUNDARY?n=a.WORLD_BOUNDARY:n<-a.WORLD_BOUNDARY&&(n=-a.WORLD_BOUNDARY);var i=new c(e,n),r=t.inverseTransformPoint(i);this.setLocation(r.x,r.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,n){function i(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(t){this.x=t},i.prototype.setY=function(t){this.y=t},i.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=i},function(t,e,n){var i=n(2),r=n(10),o=n(0),a=n(6),s=n(3),c=n(1),l=n(13),u=n(12),h=n(11);function d(t,e,n){i.call(this,n),this.estimatedSize=r.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof a?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var f in d.prototype=Object.create(i.prototype),i)d[f]=i[f];d.prototype.getNodes=function(){return this.nodes},d.prototype.getEdges=function(){return this.edges},d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getParent=function(){return this.parent},d.prototype.getLeft=function(){return this.left},d.prototype.getRight=function(){return this.right},d.prototype.getTop=function(){return this.top},d.prototype.getBottom=function(){return this.bottom},d.prototype.isConnected=function(){return this.isConnected},d.prototype.add=function(t,e,n){if(null==e&&null==n){var i=t;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(i)>-1)throw"Node already in graph!";return i.owner=this,this.getNodes().push(i),i}var r=t;if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(e.owner!=n.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=n.owner?null:(r.source=e,r.target=n,r.isInterGraph=!1,this.getEdges().push(r),e.edges.push(r),n!=e&&n.edges.push(r),r)},d.prototype.remove=function(t){var e=t;if(t instanceof s){if(null==e)throw"Node is null!";if(null==e.owner||e.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var n=e.edges.slice(),i=n.length,r=0;r<i;r++)(o=n[r]).isInterGraph?this.graphManager.remove(o):o.source.owner.remove(o);if(-1==(a=this.nodes.indexOf(e)))throw"Node not in owner node list!";this.nodes.splice(a,1)}else if(t instanceof c){var o;if(null==(o=t))throw"Edge is null!";if(null==o.source||null==o.target)throw"Source and/or target is null!";if(null==o.source.owner||null==o.target.owner||o.source.owner!=this||o.target.owner!=this)throw"Source and/or target owner is invalid!";var a,l=o.source.edges.indexOf(o),u=o.target.edges.indexOf(o);if(!(l>-1&&u>-1))throw"Source and/or target doesn't know this edge!";if(o.source.edges.splice(l,1),o.target!=o.source&&o.target.edges.splice(u,1),-1==(a=o.source.owner.getEdges().indexOf(o)))throw"Not in owner's edge list!";o.source.owner.getEdges().splice(a,1)}},d.prototype.updateLeftTop=function(){for(var t,e,n,i=r.MAX_VALUE,o=r.MAX_VALUE,a=this.getNodes(),s=a.length,c=0;c<s;c++){var l=a[c];i>(t=l.getTop())&&(i=t),o>(e=l.getLeft())&&(o=e)}return i==r.MAX_VALUE?null:(n=null!=a[0].getParent().paddingLeft?a[0].getParent().paddingLeft:this.margin,this.left=o-n,this.top=i-n,new u(this.left,this.top))},d.prototype.updateBounds=function(t){for(var e,n,i,o,a,s=r.MAX_VALUE,c=-r.MAX_VALUE,u=r.MAX_VALUE,h=-r.MAX_VALUE,d=this.nodes,f=d.length,g=0;g<f;g++){var p=d[g];t&&null!=p.child&&p.updateBounds(),s>(e=p.getLeft())&&(s=e),c<(n=p.getRight())&&(c=n),u>(i=p.getTop())&&(u=i),h<(o=p.getBottom())&&(h=o)}var m=new l(s,u,c-s,h-u);s==r.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),a=null!=d[0].getParent().paddingLeft?d[0].getParent().paddingLeft:this.margin,this.left=m.x-a,this.right=m.x+m.width+a,this.top=m.y-a,this.bottom=m.y+m.height+a},d.calculateBounds=function(t){for(var e,n,i,o,a=r.MAX_VALUE,s=-r.MAX_VALUE,c=r.MAX_VALUE,u=-r.MAX_VALUE,h=t.length,d=0;d<h;d++){var f=t[d];a>(e=f.getLeft())&&(a=e),s<(n=f.getRight())&&(s=n),c>(i=f.getTop())&&(c=i),u<(o=f.getBottom())&&(u=o)}return new l(a,c,s-a,u-c)},d.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},d.prototype.getEstimatedSize=function(){if(this.estimatedSize==r.MIN_VALUE)throw"assert failed";return this.estimatedSize},d.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,n=e.length,i=0;i<n;i++)t+=e[i].calcEstimatedSize();return this.estimatedSize=0==t?o.EMPTY_COMPOUND_NODE_SIZE:t/Math.sqrt(this.nodes.length),this.estimatedSize},d.prototype.updateConnected=function(){var t=this;if(0!=this.nodes.length){var e,n,i=new h,r=new Set,o=this.nodes[0];for(o.withChildren().forEach((function(t){i.push(t),r.add(t)}));0!==i.length;)for(var a=(e=(o=i.shift()).getEdges()).length,s=0;s<a;s++)null==(n=e[s].getOtherEndInGraph(o,this))||r.has(n)||n.withChildren().forEach((function(t){i.push(t),r.add(t)}));if(this.isConnected=!1,r.size>=this.nodes.length){var c=0;r.forEach((function(e){e.owner==t&&c++})),c==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},t.exports=d},function(t,e,n){var i,r=n(1);function o(t){i=n(5),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),n=this.add(t,e);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(t,e,n,i,r){if(null==n&&null==i&&null==r){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}r=n,n=t;var o=(i=e).getOwner(),a=r.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==a||a.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==a)return n.isInterGraph=!1,o.add(n,i,r);if(n.isInterGraph=!0,n.source=i,n.target=r,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),null==n.source||null==n.target)throw"Edge source and/or target is null!";if(-1!=n.source.edges.indexOf(n)||-1!=n.target.edges.indexOf(n))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},o.prototype.remove=function(t){if(t instanceof i){var e=t;if(e.getGraphManager()!=this)throw"Graph not in this graph mgr";if(e!=this.rootGraph&&(null==e.parent||e.parent.graphManager!=this))throw"Invalid parent node!";for(var n,o=[],a=(o=o.concat(e.getEdges())).length,s=0;s<a;s++)n=o[s],e.remove(n);var c,l=[];for(a=(l=l.concat(e.getNodes())).length,s=0;s<a;s++)c=l[s],e.remove(c);e==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(e);this.graphs.splice(u,1),e.parent=null}else if(t instanceof r){if(null==(n=t))throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(null==n.source||null==n.target)throw"Source and/or target is null!";if(-1==n.source.edges.indexOf(n)||-1==n.target.edges.indexOf(n))throw"Source and/or target doesn't know this edge!";if(u=n.source.edges.indexOf(n),n.source.edges.splice(u,1),u=n.target.edges.indexOf(n),n.target.edges.splice(u,1),null==n.source.owner||null==n.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==n.source.owner.getGraphManager().edges.indexOf(n))throw"Not in owner graph manager's edge list!";u=n.source.owner.getGraphManager().edges.indexOf(n),n.source.owner.getGraphManager().edges.splice(u,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),n=e.length,i=0;i<n;i++)t=t.concat(e[i].getNodes());this.allNodes=t}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){var t=[],e=this.getGraphs();e.length;for(var n=0;n<e.length;n++)t=t.concat(e[n].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,null==t.parent&&(t.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var n,i=t.getOwner();null!=(n=i.getParent());){if(n==e)return!0;if(null==(i=n.getOwner()))break}for(i=e.getOwner();null!=(n=i.getParent());){if(n==t)return!0;if(null==(i=n.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var t,e,n,i,r,o=this.getAllEdges(),a=o.length,s=0;s<a;s++)if(e=(t=o[s]).source,n=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=n,e!=n){for(i=e.getOwner();null==t.lca;){for(t.targetInLca=n,r=n.getOwner();null==t.lca;){if(r==i){t.lca=r;break}if(r==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=r.getParent(),r=t.targetInLca.getOwner()}if(i==this.rootGraph)break;null==t.lca&&(t.sourceInLca=i.getParent(),i=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}else t.lca=e.getOwner()},o.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var n=t.getOwner();null!=n;){for(var i=e.getOwner();null!=i;){if(i==n)return i;i=i.getParent().getOwner()}n=n.getParent().getOwner()}return n},o.prototype.calcInclusionTreeDepths=function(t,e){var n;null==t&&null==e&&(t=this.rootGraph,e=1);for(var i=t.getNodes(),r=i.length,o=0;o<r;o++)(n=i[o]).inclusionTreeDepth=e,null!=n.child&&this.calcInclusionTreeDepths(n.child,e+1)},o.prototype.includesInvalidEdge=function(){for(var t,e=this.edges.length,n=0;n<e;n++)if(t=this.edges[n],this.isOneAncestorOfOther(t.source,t.target))return!0;return!1},t.exports=o},function(t,e,n){var i=n(0);function r(){}for(var o in i)r[o]=i[o];r.MAX_ITERATIONS=2500,r.DEFAULT_EDGE_LENGTH=50,r.DEFAULT_SPRING_STRENGTH=.45,r.DEFAULT_REPULSION_STRENGTH=4500,r.DEFAULT_GRAVITY_STRENGTH=.4,r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,r.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,r.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,r.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,r.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,r.COOLING_ADAPTATION_FACTOR=.33,r.ADAPTATION_LOWER_NODE_LIMIT=1e3,r.ADAPTATION_UPPER_NODE_LIMIT=5e3,r.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,r.MAX_NODE_DISPLACEMENT=3*r.MAX_NODE_DISPLACEMENT_INCREMENTAL,r.MIN_REPULSION_DIST=r.DEFAULT_EDGE_LENGTH/10,r.CONVERGENCE_CHECK_PERIOD=100,r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,r.MIN_EDGE_LENGTH=1,r.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=r},function(t,e,n){var i=n(12);function r(){}r.calcSeparationAmount=function(t,e,n,i){if(!t.intersects(e))throw"assert failed";var r=new Array(2);this.decideDirectionsForOverlappingNodes(t,e,r),n[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),n[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=e.getRight()?n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var a=o*n[0],s=n[1]/o;n[0]<s?s=n[0]:a=n[1],n[0]=-1*r[0]*(s/2+i),n[1]=-1*r[1]*(a/2+i)},r.decideDirectionsForOverlappingNodes=function(t,e,n){t.getCenterX()<e.getCenterX()?n[0]=-1:n[0]=1,t.getCenterY()<e.getCenterY()?n[1]=-1:n[1]=1},r.getIntersection2=function(t,e,n){var i=t.getCenterX(),r=t.getCenterY(),o=e.getCenterX(),a=e.getCenterY();if(t.intersects(e))return n[0]=i,n[1]=r,n[2]=o,n[3]=a,!0;var s=t.getX(),c=t.getY(),l=t.getRight(),u=t.getX(),h=t.getBottom(),d=t.getRight(),f=t.getWidthHalf(),g=t.getHeightHalf(),p=e.getX(),m=e.getY(),b=e.getRight(),w=e.getX(),k=e.getBottom(),v=e.getRight(),y=e.getWidthHalf(),_=e.getHeightHalf(),C=!1,A=!1;if(i===o){if(r>a)return n[0]=i,n[1]=c,n[2]=o,n[3]=k,!1;if(r<a)return n[0]=i,n[1]=h,n[2]=o,n[3]=m,!1}else if(r===a){if(i>o)return n[0]=s,n[1]=r,n[2]=b,n[3]=a,!1;if(i<o)return n[0]=l,n[1]=r,n[2]=p,n[3]=a,!1}else{var x=t.height/t.width,E=e.height/e.width,T=(a-r)/(o-i),S=void 0,D=void 0,I=void 0,B=void 0,M=void 0,P=void 0;if(-x===T?i>o?(n[0]=u,n[1]=h,C=!0):(n[0]=l,n[1]=c,C=!0):x===T&&(i>o?(n[0]=s,n[1]=c,C=!0):(n[0]=d,n[1]=h,C=!0)),-E===T?o>i?(n[2]=w,n[3]=k,A=!0):(n[2]=b,n[3]=m,A=!0):E===T&&(o>i?(n[2]=p,n[3]=m,A=!0):(n[2]=v,n[3]=k,A=!0)),C&&A)return!1;if(i>o?r>a?(S=this.getCardinalDirection(x,T,4),D=this.getCardinalDirection(E,T,2)):(S=this.getCardinalDirection(-x,T,3),D=this.getCardinalDirection(-E,T,1)):r>a?(S=this.getCardinalDirection(-x,T,1),D=this.getCardinalDirection(-E,T,3)):(S=this.getCardinalDirection(x,T,2),D=this.getCardinalDirection(E,T,4)),!C)switch(S){case 1:B=c,I=i+-g/T,n[0]=I,n[1]=B;break;case 2:I=d,B=r+f*T,n[0]=I,n[1]=B;break;case 3:B=h,I=i+g/T,n[0]=I,n[1]=B;break;case 4:I=u,B=r+-f*T,n[0]=I,n[1]=B}if(!A)switch(D){case 1:P=m,M=o+-_/T,n[2]=M,n[3]=P;break;case 2:M=v,P=a+y*T,n[2]=M,n[3]=P;break;case 3:P=k,M=o+_/T,n[2]=M,n[3]=P;break;case 4:M=w,P=a+-y*T,n[2]=M,n[3]=P}}return!1},r.getCardinalDirection=function(t,e,n){return t>e?n:1+n%4},r.getIntersection=function(t,e,n,r){if(null==r)return this.getIntersection2(t,e,n);var o=t.x,a=t.y,s=e.x,c=e.y,l=n.x,u=n.y,h=r.x,d=r.y,f=void 0,g=void 0,p=void 0,m=void 0,b=void 0,w=void 0,k=void 0;return 0==(k=(f=c-a)*(m=l-h)-(g=d-u)*(p=o-s))?null:new i((p*(w=h*u-l*d)-m*(b=s*a-o*c))/k,(g*b-f*w)/k)},r.angleOfVector=function(t,e,n,i){var r=void 0;return t!==n?(r=Math.atan((i-e)/(n-t)),n<t?r+=Math.PI:i<e&&(r+=this.TWO_PI)):r=i<e?this.ONE_AND_HALF_PI:this.HALF_PI,r},r.doIntersect=function(t,e,n,i){var r=t.x,o=t.y,a=e.x,s=e.y,c=n.x,l=n.y,u=i.x,h=i.y,d=(a-r)*(h-l)-(u-c)*(s-o);if(0===d)return!1;var f=((h-l)*(u-r)+(c-u)*(h-o))/d,g=((o-s)*(u-r)+(a-r)*(h-o))/d;return 0<f&&f<1&&0<g&&g<1},r.HALF_PI=.5*Math.PI,r.ONE_AND_HALF_PI=1.5*Math.PI,r.TWO_PI=2*Math.PI,r.THREE_PI=3*Math.PI,t.exports=r},function(t,e,n){function i(){}i.sign=function(t){return t>0?1:t<0?-1:0},i.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},i.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=i},function(t,e,n){function i(){}i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,t.exports=i},function(t,e,n){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(t){return{value:t,next:null,prev:null}},a=function(t,e,n,i){return null!==t?t.next=e:i.head=e,null!==n?n.prev=e:i.tail=e,e.prev=t,e.next=n,i.length++,e},s=function(t,e){var n=t.prev,i=t.next;return null!==n?n.next=i:e.head=i,null!==i?i.prev=n:e.tail=n,t.prev=t.next=null,e.length--,t},c=function(){function t(e){var n=this;r(this,t),this.length=0,this.head=null,this.tail=null,null!=e&&e.forEach((function(t){return n.push(t)}))}return i(t,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return a(e.prev,o(t),e,this)}},{key:"insertAfter",value:function(t,e){return a(e,o(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return a(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return a(e,t,e.next,this)}},{key:"push",value:function(t){return a(this.tail,o(t),null,this)}},{key:"unshift",value:function(t){return a(null,o(t),this.head,this)}},{key:"remove",value:function(t){return s(t,this)}},{key:"pop",value:function(){return s(this.tail,this).value}},{key:"popNode",value:function(){return s(this.tail,this)}},{key:"shift",value:function(){return s(this.head,this).value}},{key:"shiftNode",value:function(){return s(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,n=this.head;e<t;)n=n.next,e++;return n.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var n=1,i=this.head;n<t;)i=i.next,n++;i.value=e}}}]),t}();t.exports=c},function(t,e,n){function i(t,e,n){this.x=null,this.y=null,null==t&&null==e&&null==n?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==n?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==n&&(n=t,this.x=n.x,this.y=n.y)}i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.getLocation=function(){return new i(this.x,this.y)},i.prototype.setLocation=function(t,e,n){"Point"==t.constructor.name&&null==e&&null==n?(n=t,this.setLocation(n.x,n.y)):"number"==typeof t&&"number"==typeof e&&null==n&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},i.prototype.move=function(t,e){this.x=t,this.y=e},i.prototype.translate=function(t,e){this.x+=t,this.y+=e},i.prototype.equals=function(t){if("Point"==t.constructor.name){var e=t;return this.x==e.x&&this.y==e.y}return this==t},i.prototype.toString=function(){return(new i).constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=i},function(t,e,n){function i(t,e,n,i){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=n&&null!=i&&(this.x=t,this.y=e,this.width=n,this.height=i)}i.prototype.getX=function(){return this.x},i.prototype.setX=function(t){this.x=t},i.prototype.getY=function(){return this.y},i.prototype.setY=function(t){this.y=t},i.prototype.getWidth=function(){return this.width},i.prototype.setWidth=function(t){this.width=t},i.prototype.getHeight=function(){return this.height},i.prototype.setHeight=function(t){this.height=t},i.prototype.getRight=function(){return this.x+this.width},i.prototype.getBottom=function(){return this.y+this.height},i.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.getBottom()<this.y)},i.prototype.getCenterX=function(){return this.x+this.width/2},i.prototype.getMinX=function(){return this.getX()},i.prototype.getMaxX=function(){return this.getX()+this.width},i.prototype.getCenterY=function(){return this.y+this.height/2},i.prototype.getMinY=function(){return this.getY()},i.prototype.getMaxY=function(){return this.getY()+this.height},i.prototype.getWidthHalf=function(){return this.width/2},i.prototype.getHeightHalf=function(){return this.height/2},t.exports=i},function(t,e,n){var i="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};function r(){}r.lastID=0,r.createID=function(t){return r.isPrimitive(t)?t:(null!=t.uniqueID||(t.uniqueID=r.getString(),r.lastID++),t.uniqueID)},r.getString=function(t){return null==t&&(t=r.lastID),"Object#"+t},r.isPrimitive=function(t){var e=void 0===t?"undefined":i(t);return null==t||"object"!=e&&"function"!=e},t.exports=r},function(t,e,n){function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var r=n(0),o=n(6),a=n(3),s=n(1),c=n(5),l=n(4),u=n(17),h=n(27);function d(t){h.call(this),this.layoutQuality=r.QUALITY,this.createBendsAsNeeded=r.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=r.DEFAULT_INCREMENTAL,this.animationOnLayout=r.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=r.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=r.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=r.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}d.RANDOM_SEED=1,d.prototype=Object.create(h.prototype),d.prototype.getGraphManager=function(){return this.graphManager},d.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},d.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},d.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},d.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},d.prototype.newGraph=function(t){return new c(null,this.graphManager,t)},d.prototype.newNode=function(t){return new a(this.graphManager,t)},d.prototype.newEdge=function(t){return new s(null,null,t)},d.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},d.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==r.ANIMATE&&(t&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},d.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},d.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];var n=this.graphManager.getRoot().getNodes();for(e=0;e<n.length;e++)n[e];this.update(this.graphManager.getRoot())}},d.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof a){var e=t;if(null!=e.getChild())for(var n=e.getChild().getNodes(),i=0;i<n.length;i++)update(n[i]);null!=e.vGraphObject&&e.vGraphObject.update(e)}else if(t instanceof s){var r=t;null!=r.vGraphObject&&r.vGraphObject.update(r)}else if(t instanceof c){var o=t;null!=o.vGraphObject&&o.vGraphObject.update(o)}},d.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=r.QUALITY,this.animationDuringLayout=r.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=r.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=r.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=r.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=r.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=r.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},d.prototype.transform=function(t){if(null==t)this.transform(new l(0,0));else{var e=new u,n=this.graphManager.getRoot().updateLeftTop();if(null!=n){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(n.x),e.setDeviceOrgY(n.y);for(var i=this.getAllNodes(),r=0;r<i.length;r++)i[r].transform(e)}}},d.prototype.positionNodesRandomly=function(t){if(null==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,n,i=t.getNodes(),r=0;r<i.length;r++)null==(n=(e=i[r]).getChild())||0==n.getNodes().length?e.scatter():(this.positionNodesRandomly(n),e.updateBounds())},d.prototype.getFlatForest=function(){for(var t=[],e=!0,n=this.graphManager.getRoot().getNodes(),r=!0,o=0;o<n.length;o++)null!=n[o].getChild()&&(r=!1);if(!r)return t;var a=new Set,s=[],c=new Map,l=[];for(l=l.concat(n);l.length>0&&e;){for(s.push(l[0]);s.length>0&&e;){var u=s[0];s.splice(0,1),a.add(u);var h=u.getEdges();for(o=0;o<h.length;o++){var d=h[o].getOtherEnd(u);if(c.get(u)!=d){if(a.has(d)){e=!1;break}s.push(d),c.set(d,u)}}}if(e){var f=[].concat(i(a));for(t.push(f),o=0;o<f.length;o++){var g=f[o],p=l.indexOf(g);p>-1&&l.splice(p,1)}a=new Set,c=new Map}else t=[]}return t},d.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],n=t.source,i=this.graphManager.calcLowestCommonAncestor(t.source,t.target),r=0;r<t.bendpoints.length;r++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),i.add(o);var a=this.newEdge(null);this.graphManager.add(a,n,o),e.add(o),n=o}return a=this.newEdge(null),this.graphManager.add(a,n,t.target),this.edgeToDummyNodes.set(t,e),t.isInterGraph()?this.graphManager.remove(t):i.remove(t),e},d.prototype.createBendpointsFromDummyNodes=function(){var t=[];t=t.concat(this.graphManager.getAllEdges()),t=[].concat(i(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var n=t[e];if(n.bendpoints.length>0){for(var r=this.edgeToDummyNodes.get(n),o=0;o<r.length;o++){var a=r[o],s=new l(a.getCenterX(),a.getCenterY()),c=n.bendpoints.get(o);c.x=s.x,c.y=s.y,a.getOwner().remove(a)}this.graphManager.add(n,n.source,n.target)}}},d.transform=function(t,e,n,i){if(null!=n&&null!=i){var r=e;return t<=50?r-=(e-e/n)/50*(50-t):r+=(e*i-e)/50*(t-50),r}var o,a;return t<=50?(o=9*e/500,a=e/10):(o=9*e/50,a=-8*e),o*t+a},d.findCenterOfTree=function(t){var e=[];e=e.concat(t);var n=[],i=new Map,r=!1,o=null;1!=e.length&&2!=e.length||(r=!0,o=e[0]);for(var a=0;a<e.length;a++){var s=(u=e[a]).getNeighborsList().size;i.set(u,u.getNeighborsList().size),1==s&&n.push(u)}var c=[];for(c=c.concat(n);!r;){var l=[];for(l=l.concat(c),c=[],a=0;a<e.length;a++){var u=e[a],h=e.indexOf(u);h>=0&&e.splice(h,1),u.getNeighborsList().forEach((function(t){if(n.indexOf(t)<0){var e=i.get(t)-1;1==e&&c.push(t),i.set(t,e)}}))}n=n.concat(c),1!=e.length&&2!=e.length||(r=!0,o=e[0])}return o},d.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=d},function(t,e,n){function i(){}i.seed=1,i.x=0,i.nextDouble=function(){return i.x=1e4*Math.sin(i.seed++),i.x-Math.floor(i.x)},t.exports=i},function(t,e,n){var i=n(4);function r(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}r.prototype.getWorldOrgX=function(){return this.lworldOrgX},r.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},r.prototype.getWorldOrgY=function(){return this.lworldOrgY},r.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},r.prototype.getWorldExtX=function(){return this.lworldExtX},r.prototype.setWorldExtX=function(t){this.lworldExtX=t},r.prototype.getWorldExtY=function(){return this.lworldExtY},r.prototype.setWorldExtY=function(t){this.lworldExtY=t},r.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},r.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},r.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},r.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},r.prototype.getDeviceExtX=function(){return this.ldeviceExtX},r.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},r.prototype.getDeviceExtY=function(){return this.ldeviceExtY},r.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},r.prototype.transformX=function(t){var e=0,n=this.lworldExtX;return 0!=n&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/n),e},r.prototype.transformY=function(t){var e=0,n=this.lworldExtY;return 0!=n&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/n),e},r.prototype.inverseTransformX=function(t){var e=0,n=this.ldeviceExtX;return 0!=n&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/n),e},r.prototype.inverseTransformY=function(t){var e=0,n=this.ldeviceExtY;return 0!=n&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/n),e},r.prototype.inverseTransformPoint=function(t){return new i(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=r},function(t,e,n){function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var r=n(15),o=n(7),a=n(0),s=n(8),c=n(9);function l(){r.call(this),this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.springConstant=o.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=o.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=o.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=o.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=o.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*o.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=o.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=o.MAX_ITERATIONS}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var t,e,n,i,r,s,c=this.getGraphManager().getAllEdges(),l=0;l<c.length;l++)(t=c[l]).idealLength=this.idealEdgeLength,t.isInterGraph&&(n=t.getSource(),i=t.getTarget(),r=t.getSourceInLca().getEstimatedSize(),s=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=r+s-2*a.SIMPLE_NODE_SIZE),e=t.getLca().getInclusionTreeDepth(),t.idealLength+=o.DEFAULT_EDGE_LENGTH*o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(n.getInclusionTreeDepth()+i.getInclusionTreeDepth()-2*e))},l.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>o.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*o.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-o.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>o.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(o.COOLING_ADAPTATION_FACTOR,1-(t-o.ADAPTATION_LOWER_NODE_LIMIT)/(o.ADAPTATION_UPPER_NODE_LIMIT-o.ADAPTATION_LOWER_NODE_LIMIT)*(1-o.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=o.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),n=0;n<e.length;n++)t=e[n],this.calcSpringForce(t,t.idealLength)},l.prototype.calcRepulsionForces=function(){var t,e,n,i,r,a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&a&&this.updateGrid(),r=new Set,t=0;t<c.length;t++)n=c[t],this.calculateRepulsionForceOfANode(n,r,a,s),r.add(n);else for(t=0;t<c.length;t++)for(n=c[t],e=t+1;e<c.length;e++)i=c[e],n.getOwner()==i.getOwner()&&this.calcRepulsionForce(n,i)},l.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),n=0;n<e.length;n++)t=e[n],this.calcGravitationalForce(t)},l.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},l.prototype.calcSpringForce=function(t,e){var n,i,r,o,a=t.getSource(),s=t.getTarget();if(this.uniformLeafNodeSizes&&null==a.getChild()&&null==s.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(n=t.getLength())&&(r=(i=this.springConstant*(n-e))*(t.lengthX/n),o=i*(t.lengthY/n),a.springForceX+=r,a.springForceY+=o,s.springForceX-=r,s.springForceY-=o)},l.prototype.calcRepulsionForce=function(t,e){var n,i,r,a,l,u,h,d=t.getRect(),f=e.getRect(),g=new Array(2),p=new Array(4);if(d.intersects(f)){s.calcSeparationAmount(d,f,g,o.DEFAULT_EDGE_LENGTH/2),u=2*g[0],h=2*g[1];var m=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren);t.repulsionForceX-=m*u,t.repulsionForceY-=m*h,e.repulsionForceX+=m*u,e.repulsionForceY+=m*h}else this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(n=f.getCenterX()-d.getCenterX(),i=f.getCenterY()-d.getCenterY()):(s.getIntersection(d,f,p),n=p[2]-p[0],i=p[3]-p[1]),Math.abs(n)<o.MIN_REPULSION_DIST&&(n=c.sign(n)*o.MIN_REPULSION_DIST),Math.abs(i)<o.MIN_REPULSION_DIST&&(i=c.sign(i)*o.MIN_REPULSION_DIST),r=n*n+i*i,a=Math.sqrt(r),u=(l=this.repulsionConstant*t.noOfChildren*e.noOfChildren/r)*n/a,h=l*i/a,t.repulsionForceX-=u,t.repulsionForceY-=h,e.repulsionForceX+=u,e.repulsionForceY+=h},l.prototype.calcGravitationalForce=function(t){var e,n,i,r,o,a,s,c;n=((e=t.getOwner()).getRight()+e.getLeft())/2,i=(e.getTop()+e.getBottom())/2,r=t.getCenterX()-n,o=t.getCenterY()-i,a=Math.abs(r)+t.getWidth()/2,s=Math.abs(o)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(a>(c=e.getEstimatedSize()*this.gravityRangeFactor)||s>c)&&(t.gravitationForceX=-this.gravityConstant*r,t.gravitationForceY=-this.gravityConstant*o):(a>(c=e.getEstimatedSize()*this.compoundGravityRangeFactor)||s>c)&&(t.gravitationForceX=-this.gravityConstant*r*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},l.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},l.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},l.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),n=0;n<e.length;n++)(t=e[n]).noOfChildren=t.getNoOfChildren()},l.prototype.calcGrid=function(t){var e=0,n=0;e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var i=new Array(e),r=0;r<e;r++)i[r]=new Array(n);for(r=0;r<e;r++)for(var o=0;o<n;o++)i[r][o]=new Array;return i},l.prototype.addNodeToGrid=function(t,e,n){var i=0,r=0,o=0,a=0;i=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),r=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().y-n)/this.repulsionRange)),a=parseInt(Math.floor((t.getRect().height+t.getRect().y-n)/this.repulsionRange));for(var s=i;s<=r;s++)for(var c=o;c<=a;c++)this.grid[s][c].push(t),t.setGridCoordinates(i,r,o,a)},l.prototype.updateGrid=function(){var t,e,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<n.length;t++)e=n[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},l.prototype.calculateRepulsionForceOfANode=function(t,e,n,r){if(this.totalIterations%o.GRID_CALCULATION_CHECK_PERIOD==1&&n||r){var a,s=new Set;t.surrounding=new Array;for(var c=this.grid,l=t.startX-1;l<t.finishX+2;l++)for(var u=t.startY-1;u<t.finishY+2;u++)if(!(l<0||u<0||l>=c.length||u>=c[0].length))for(var h=0;h<c[l][u].length;h++)if(a=c[l][u][h],t.getOwner()==a.getOwner()&&t!=a&&!e.has(a)&&!s.has(a)){var d=Math.abs(t.getCenterX()-a.getCenterX())-(t.getWidth()/2+a.getWidth()/2),f=Math.abs(t.getCenterY()-a.getCenterY())-(t.getHeight()/2+a.getHeight()/2);d<=this.repulsionRange&&f<=this.repulsionRange&&s.add(a)}t.surrounding=[].concat(i(s))}for(l=0;l<t.surrounding.length;l++)this.calcRepulsionForce(t,t.surrounding[l])},l.prototype.calcRepulsionRange=function(){return 0},t.exports=l},function(t,e,n){var i=n(1),r=n(7);function o(t,e,n){i.call(this,t,e,n),this.idealLength=r.DEFAULT_EDGE_LENGTH}for(var a in o.prototype=Object.create(i.prototype),i)o[a]=i[a];t.exports=o},function(t,e,n){var i=n(3);function r(t,e,n,r){i.call(this,t,e,n,r),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];r.prototype.setGridCoordinates=function(t,e,n,i){this.startX=t,this.finishX=e,this.startY=n,this.finishY=i},t.exports=r},function(t,e,n){function i(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}i.prototype.getWidth=function(){return this.width},i.prototype.setWidth=function(t){this.width=t},i.prototype.getHeight=function(){return this.height},i.prototype.setHeight=function(t){this.height=t},t.exports=i},function(t,e,n){var i=n(14);function r(){this.map={},this.keys=[]}r.prototype.put=function(t,e){var n=i.createID(t);this.contains(n)||(this.map[n]=e,this.keys.push(t))},r.prototype.contains=function(t){return i.createID(t),null!=this.map[t]},r.prototype.get=function(t){var e=i.createID(t);return this.map[e]},r.prototype.keySet=function(){return this.keys},t.exports=r},function(t,e,n){var i=n(14);function r(){this.set={}}r.prototype.add=function(t){var e=i.createID(t);this.contains(e)||(this.set[e]=t)},r.prototype.remove=function(t){delete this.set[i.createID(t)]},r.prototype.clear=function(){this.set={}},r.prototype.contains=function(t){return this.set[i.createID(t)]==t},r.prototype.isEmpty=function(){return 0===this.size()},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),n=e.length,i=0;i<n;i++)t.push(this.set[e[i]])},r.prototype.size=function(){return Object.keys(this.set).length},r.prototype.addAll=function(t){for(var e=t.length,n=0;n<e;n++){var i=t[n];this.add(i)}},t.exports=r},function(t,e,n){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=n(11),a=function(){function t(e,n){r(this,t),null===n&&void 0===n||(this.compareFunction=this._defaultCompareFunction);var i=void 0;i=e instanceof o?e.size():e.length,this._quicksort(e,0,i-1)}return i(t,[{key:"_quicksort",value:function(t,e,n){if(e<n){var i=this._partition(t,e,n);this._quicksort(t,e,i),this._quicksort(t,i+1,n)}}},{key:"_partition",value:function(t,e,n){for(var i=this._get(t,e),r=e,o=n;;){for(;this.compareFunction(i,this._get(t,o));)o--;for(;this.compareFunction(this._get(t,r),i);)r++;if(!(r<o))return o;this._swap(t,r,o),r++,o--}}},{key:"_get",value:function(t,e){return t instanceof o?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,n){t instanceof o?t.set_object_at(e,n):t[e]=n}},{key:"_swap",value:function(t,e,n){var i=this._get(t,e);this._set(t,e,this._get(t,n)),this._set(t,n,i)}},{key:"_defaultCompareFunction",value:function(t,e){return e>t}}]),t}();t.exports=a},function(t,e,n){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(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;r(this,t),this.sequence1=e,this.sequence2=n,this.match_score=i,this.mismatch_penalty=o,this.gap_penalty=a,this.iMax=e.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var c=0;c<this.jMax;c++)this.grid[s][c]=0}this.tracebackGrid=new Array(this.iMax);for(var l=0;l<this.iMax;l++){this.tracebackGrid[l]=new Array(this.jMax);for(var u=0;u<this.jMax;u++)this.tracebackGrid[l][u]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return i(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var i=1;i<this.jMax;i++){var r=[this.sequence1[n-1]===this.sequence2[i-1]?this.grid[n-1][i-1]+this.match_score:this.grid[n-1][i-1]+this.mismatch_penalty,this.grid[n-1][i]+this.gap_penalty,this.grid[n][i-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(r);this.grid[n][i]=r[o[0]],this.tracebackGrid[n][i]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],n=this.tracebackGrid[e.pos[0]][e.pos[1]];n[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),n[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),n[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var n=[],i=-1;-1!==(i=t.indexOf(e,i+1));)n.push(i);return n}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),t}();t.exports=o},function(t,e,n){var i=function(){};i.FDLayout=n(18),i.FDLayoutConstants=n(7),i.FDLayoutEdge=n(19),i.FDLayoutNode=n(20),i.DimensionD=n(21),i.HashMap=n(22),i.HashSet=n(23),i.IGeometry=n(8),i.IMath=n(9),i.Integer=n(10),i.Point=n(12),i.PointD=n(4),i.RandomSeed=n(16),i.RectangleD=n(13),i.Transform=n(17),i.UniqueIDGeneretor=n(14),i.Quicksort=n(24),i.LinkedList=n(11),i.LGraphObject=n(2),i.LGraph=n(5),i.LEdge=n(1),i.LGraphManager=n(6),i.LNode=n(3),i.Layout=n(15),i.LayoutConstants=n(0),i.NeedlemanWunsch=n(25),t.exports=i},function(t,e,n){function i(){this.listeners=[]}var r=i.prototype;r.addListener=function(t,e){this.listeners.push({event:t,callback:e})},r.removeListener=function(t,e){for(var n=this.listeners.length;n>=0;n--){var i=this.listeners[n];i.event===t&&i.callback===e&&this.listeners.splice(n,1)}},r.emit=function(t,e){for(var n=0;n<this.listeners.length;n++){var i=this.listeners[n];t===i.event&&i.callback(e)}},t.exports=i}])}))}(IU)),DU}function MU(){return AU||(AU=1,function(t){!function(e,n){t.exports=n(BU())}(0,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(e,n){e.exports=t},function(t,e,n){var i=n(0).FDLayoutConstants;function r(){}for(var o in i)r[o]=i[o];r.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,r.DEFAULT_RADIAL_SEPARATION=i.DEFAULT_EDGE_LENGTH,r.DEFAULT_COMPONENT_SEPERATION=60,r.TILE=!0,r.TILING_PADDING_VERTICAL=10,r.TILING_PADDING_HORIZONTAL=10,r.TREE_REDUCTION_ON_INCREMENTAL=!1,t.exports=r},function(t,e,n){var i=n(0).FDLayoutEdge;function r(t,e,n){i.call(this,t,e,n)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){var i=n(0).LGraph;function r(t,e,n){i.call(this,t,e,n)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){var i=n(0).LGraphManager;function r(t){i.call(this,t)}for(var o in r.prototype=Object.create(i.prototype),i)r[o]=i[o];t.exports=r},function(t,e,n){var i=n(0).FDLayoutNode,r=n(0).IMath;function o(t,e,n,r){i.call(this,t,e,n,r)}for(var a in o.prototype=Object.create(i.prototype),i)o[a]=i[a];o.prototype.move=function(){var t=this.graphManager.getLayout();this.displacementX=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*r.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(t,e){for(var n,i=this.getChild().getNodes(),r=0;r<i.length;r++)null==(n=i[r]).getChild()?(n.moveBy(t,e),n.displacementX+=t,n.displacementY+=e):n.propogateDisplacementToChildren(t,e)},o.prototype.setPred1=function(t){this.pred1=t},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(t){this.next=t},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(t){this.processed=t},o.prototype.isProcessed=function(){return processed},t.exports=o},function(t,e,n){var i=n(0).FDLayout,r=n(4),o=n(3),a=n(5),s=n(2),c=n(1),l=n(0).FDLayoutConstants,u=n(0).LayoutConstants,h=n(0).Point,d=n(0).PointD,f=n(0).Layout,g=n(0).Integer,p=n(0).IGeometry,m=n(0).LGraph,b=n(0).Transform;function w(){i.call(this),this.toBeTiled={}}for(var k in w.prototype=Object.create(i.prototype),i)w[k]=i[k];w.prototype.newGraphManager=function(){var t=new r(this);return this.graphManager=t,t},w.prototype.newGraph=function(t){return new o(null,this.graphManager,t)},w.prototype.newNode=function(t){return new a(this.graphManager,t)},w.prototype.newEdge=function(t){return new s(null,null,t)},w.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.isSubLayout||(c.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=c.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=l.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},w.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},w.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)c.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),e=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter((function(t){return e.has(t)})),this.graphManager.setAllNodesToApplyGravitation(n));else{var t=this.getFlatForest();if(t.length>0)this.positionNodesRadially(t);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter((function(t){return e.has(t)}));this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},w.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter((function(e){return t.has(e)}));this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,i=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,i),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},w.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},n=0;n<t.length;n++){var i=t[n].rect,r=t[n].id;e[r]={id:r,x:i.getCenterX(),y:i.getCenterY(),w:i.width,h:i.height}}return e},w.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===l.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},w.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,n=[],i=this.graphManager.getGraphs(),r=i.length;for(e=0;e<r;e++)(t=i[e]).updateConnected(),t.isConnected||(n=n.concat(t.getNodes()));return n},w.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e,n=new Set;for(e=0;e<t.length;e++){var i=t[e];if(!n.has(i)){var r=i.getSource(),o=i.getTarget();if(r==o)i.getBendpoints().push(new d),i.getBendpoints().push(new d),this.createDummyNodesForBendpoints(i),n.add(i);else{var a=[];if(a=(a=a.concat(r.getEdgeListToNode(o))).concat(o.getEdgeListToNode(r)),!n.has(a[0])){var s;if(a.length>1)for(s=0;s<a.length;s++){var c=a[s];c.getBendpoints().push(new d),this.createDummyNodesForBendpoints(c)}a.forEach((function(t){n.add(t)}))}}}if(n.size==t.length)break}},w.prototype.positionNodesRadially=function(t){for(var e=new h(0,0),n=Math.ceil(Math.sqrt(t.length)),i=0,r=0,o=0,a=new d(0,0),s=0;s<t.length;s++){s%n==0&&(o=0,r=i,0!=s&&(r+=c.DEFAULT_COMPONENT_SEPERATION),i=0);var l=t[s],g=f.findCenterOfTree(l);e.x=o,e.y=r,(a=w.radialLayout(l,g,e)).y>i&&(i=Math.floor(a.y)),o=Math.floor(a.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(u.WORLD_CENTER_X-a.x/2,u.WORLD_CENTER_Y-a.y/2))},w.radialLayout=function(t,e,n){var i=Math.max(this.maxDiagonalInTree(t),c.DEFAULT_RADIAL_SEPARATION);w.branchRadialLayout(e,null,0,359,0,i);var r=m.calculateBounds(t),o=new b;o.setDeviceOrgX(r.getMinX()),o.setDeviceOrgY(r.getMinY()),o.setWorldOrgX(n.x),o.setWorldOrgY(n.y);for(var a=0;a<t.length;a++)t[a].transform(o);var s=new d(r.getMaxX(),r.getMaxY());return o.inverseTransformPoint(s)},w.branchRadialLayout=function(t,e,n,i,r,o){var a=(i-n+1)/2;a<0&&(a+=180);var s=(a+n)%360*p.TWO_PI/360,c=r*Math.cos(s),l=r*Math.sin(s);t.setCenter(c,l);var u=[],h=(u=u.concat(t.getEdges())).length;null!=e&&h--;for(var d,f=0,g=u.length,m=t.getEdgesBetween(e);m.length>1;){var b=m[0];m.splice(0,1);var k=u.indexOf(b);k>=0&&u.splice(k,1),g--,h--}d=null!=e?(u.indexOf(m[0])+1)%g:0;for(var v=Math.abs(i-n)/h,y=d;f!=h;y=++y%g){var _=u[y].getOtherEnd(t);if(_!=e){var C=(n+f*v)%360,A=(C+v)%360;w.branchRadialLayout(_,t,C,A,r+o,o),f++}}},w.maxDiagonalInTree=function(t){for(var e=g.MIN_VALUE,n=0;n<t.length;n++){var i=t[n].getDiagonal();i>e&&(e=i)}return e},w.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},w.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var n=[],i=this.graphManager.getAllNodes(),r=0;r<i.length;r++){var o=(s=i[r]).getParent();0!==this.getNodeDegreeWithChildren(s)||null!=o.id&&this.getToBeTiled(o)||n.push(s)}for(r=0;r<n.length;r++){var s,c=(s=n[r]).getParent().id;void 0===e[c]&&(e[c]=[]),e[c]=e[c].concat(s)}Object.keys(e).forEach((function(n){if(e[n].length>1){var i="DummyCompound_"+n;t.memberGroups[i]=e[n];var r=e[n][0].getParent(),o=new a(t.graphManager);o.id=i,o.paddingLeft=r.paddingLeft||0,o.paddingRight=r.paddingRight||0,o.paddingBottom=r.paddingBottom||0,o.paddingTop=r.paddingTop||0,t.idToDummyNode[i]=o;var s=t.getGraphManager().add(t.newGraph(),o),c=r.getChild();c.add(o);for(var l=0;l<e[n].length;l++){var u=e[n][l];c.remove(u),s.add(u)}}}))},w.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)e[this.compoundOrder[n].id]=this.compoundOrder[n],t[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},w.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach((function(n){var i=t.idToDummyNode[n];e[n]=t.tileNodes(t.memberGroups[n],i.paddingLeft+i.paddingRight),i.rect.width=e[n].width,i.rect.height=e[n].height}))},w.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],n=e.id,i=e.paddingLeft,r=e.paddingTop;this.adjustLocations(this.tiledMemberPack[n],e.rect.x,e.rect.y,i,r)}},w.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach((function(n){var i=t.idToDummyNode[n],r=i.paddingLeft,o=i.paddingTop;t.adjustLocations(e[n],i.rect.x,i.rect.y,r,o)}))},w.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var n=t.getChild();if(null==n)return this.toBeTiled[e]=!1,!1;for(var i=n.getNodes(),r=0;r<i.length;r++){var o=i[r];if(this.getNodeDegree(o)>0)return this.toBeTiled[e]=!1,!1;if(null!=o.getChild()){if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}else this.toBeTiled[o.id]=!1}return this.toBeTiled[e]=!0,!0},w.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),n=0,i=0;i<e.length;i++){var r=e[i];r.getSource().id!==r.getTarget().id&&(n+=1)}return n},w.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var n=t.getChild().getNodes(),i=0;i<n.length;i++){var r=n[i];e+=this.getNodeDegreeWithChildren(r)}return e},w.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},w.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var n=t[e];null!=n.getChild()&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},w.prototype.adjustLocations=function(t,e,n,i,r){n+=r;for(var o=e+=i,a=0;a<t.rows.length;a++){var s=t.rows[a];e=o;for(var c=0,l=0;l<s.length;l++){var u=s[l];u.rect.x=e,u.rect.y=n,e+=u.rect.width+t.horizontalPadding,u.rect.height>c&&(c=u.rect.height)}n+=c+t.verticalPadding}},w.prototype.tileCompoundMembers=function(t,e){var n=this;this.tiledMemberPack=[],Object.keys(t).forEach((function(i){var r=e[i];n.tiledMemberPack[i]=n.tileNodes(t[i],r.paddingLeft+r.paddingRight),r.rect.width=n.tiledMemberPack[i].width,r.rect.height=n.tiledMemberPack[i].height}))},w.prototype.tileNodes=function(t,e){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:c.TILING_PADDING_VERTICAL,horizontalPadding:c.TILING_PADDING_HORIZONTAL};t.sort((function(t,e){return t.rect.width*t.rect.height>e.rect.width*e.rect.height?-1:t.rect.width*t.rect.height<e.rect.width*e.rect.height?1:0}));for(var i=0;i<t.length;i++){var r=t[i];0==n.rows.length?this.insertNodeToRow(n,r,0,e):this.canAddHorizontal(n,r.rect.width,r.rect.height)?this.insertNodeToRow(n,r,this.getShortestRowIndex(n),e):this.insertNodeToRow(n,r,n.rows.length,e),this.shiftToLastRow(n)}return n},w.prototype.insertNodeToRow=function(t,e,n,i){var r=i;if(n==t.rows.length){var o=[];t.rows.push(o),t.rowWidth.push(r),t.rowHeight.push(0)}var a=t.rowWidth[n]+e.rect.width;t.rows[n].length>0&&(a+=t.horizontalPadding),t.rowWidth[n]=a,t.width<a&&(t.width=a);var s=e.rect.height;n>0&&(s+=t.verticalPadding);var c=0;s>t.rowHeight[n]&&(c=t.rowHeight[n],t.rowHeight[n]=s,c=t.rowHeight[n]-c),t.height+=c,t.rows[n].push(e)},w.prototype.getShortestRowIndex=function(t){for(var e=-1,n=Number.MAX_VALUE,i=0;i<t.rows.length;i++)t.rowWidth[i]<n&&(e=i,n=t.rowWidth[i]);return e},w.prototype.getLongestRowIndex=function(t){for(var e=-1,n=Number.MIN_VALUE,i=0;i<t.rows.length;i++)t.rowWidth[i]>n&&(e=i,n=t.rowWidth[i]);return e},w.prototype.canAddHorizontal=function(t,e,n){var i=this.getShortestRowIndex(t);if(i<0)return!0;var r=t.rowWidth[i];if(r+t.horizontalPadding+e<=t.width)return!0;var o,a,s=0;return t.rowHeight[i]<n&&i>0&&(s=n+t.verticalPadding-t.rowHeight[i]),o=t.width-r>=e+t.horizontalPadding?(t.height+s)/(r+e+t.horizontalPadding):(t.height+s)/t.width,s=n+t.verticalPadding,(a=t.width<e?(t.height+s)/e:(t.height+s)/t.width)<1&&(a=1/a),o<1&&(o=1/o),o<a},w.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),n=t.rowWidth.length-1,i=t.rows[e],r=i[i.length-1],o=r.width+t.horizontalPadding;if(t.width-t.rowWidth[n]>o&&e!=n){i.splice(-1,1),t.rows[n].push(r),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[n]=t.rowWidth[n]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var a=Number.MIN_VALUE,s=0;s<i.length;s++)i[s].height>a&&(a=i[s].height);e>0&&(a+=t.verticalPadding);var c=t.rowHeight[e]+t.rowHeight[n];t.rowHeight[e]=a,t.rowHeight[n]<r.height+t.verticalPadding&&(t.rowHeight[n]=r.height+t.verticalPadding);var l=t.rowHeight[e]+t.rowHeight[n];t.height+=l-c,this.shiftToLastRow(t)}},w.prototype.tilingPreLayout=function(){c.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},w.prototype.tilingPostLayout=function(){c.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},w.prototype.reduceTrees=function(){for(var t,e=[],n=!0;n;){var i=this.graphManager.getAllNodes(),r=[];n=!1;for(var o=0;o<i.length;o++)1!=(t=i[o]).getEdges().length||t.getEdges()[0].isInterGraph||null!=t.getChild()||(r.push([t,t.getEdges()[0],t.getOwner()]),n=!0);if(1==n){for(var a=[],s=0;s<r.length;s++)1==r[s][0].getEdges().length&&(a.push(r[s]),r[s][0].getOwner().remove(r[s][0]));e.push(a),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},w.prototype.growTree=function(t){for(var e,n=t[t.length-1],i=0;i<n.length;i++)e=n[i],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},w.prototype.findPlaceforPrunedNode=function(t){var e,n,i=t[0],r=(n=i==t[1].source?t[1].target:t[1].source).startX,o=n.finishX,a=n.startY,s=n.finishY,c=[0,0,0,0];if(a>0)for(var u=r;u<=o;u++)c[0]+=this.grid[u][a-1].length+this.grid[u][a].length-1;if(o<this.grid.length-1)for(u=a;u<=s;u++)c[1]+=this.grid[o+1][u].length+this.grid[o][u].length-1;if(s<this.grid[0].length-1)for(u=r;u<=o;u++)c[2]+=this.grid[u][s+1].length+this.grid[u][s].length-1;if(r>0)for(u=a;u<=s;u++)c[3]+=this.grid[r-1][u].length+this.grid[r][u].length-1;for(var h,d,f=g.MAX_VALUE,p=0;p<c.length;p++)c[p]<f?(f=c[p],h=1,d=p):c[p]==f&&h++;if(3==h&&0==f)0==c[0]&&0==c[1]&&0==c[2]?e=1:0==c[0]&&0==c[1]&&0==c[3]?e=0:0==c[0]&&0==c[2]&&0==c[3]?e=3:0==c[1]&&0==c[2]&&0==c[3]&&(e=2);else if(2==h&&0==f){var m=Math.floor(2*Math.random());e=0==c[0]&&0==c[1]?0==m?0:1:0==c[0]&&0==c[2]?0==m?0:2:0==c[0]&&0==c[3]?0==m?0:3:0==c[1]&&0==c[2]?0==m?1:2:0==c[1]&&0==c[3]?0==m?1:3:0==m?2:3}else e=4==h&&0==f?m=Math.floor(4*Math.random()):d;0==e?i.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-l.DEFAULT_EDGE_LENGTH-i.getHeight()/2):1==e?i.setCenter(n.getCenterX()+n.getWidth()/2+l.DEFAULT_EDGE_LENGTH+i.getWidth()/2,n.getCenterY()):2==e?i.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+l.DEFAULT_EDGE_LENGTH+i.getHeight()/2):i.setCenter(n.getCenterX()-n.getWidth()/2-l.DEFAULT_EDGE_LENGTH-i.getWidth()/2,n.getCenterY())},t.exports=w},function(t,e,n){var i={};i.layoutBase=n(0),i.CoSEConstants=n(1),i.CoSEEdge=n(2),i.CoSEGraph=n(3),i.CoSEGraphManager=n(4),i.CoSELayout=n(6),i.CoSENode=n(5),t.exports=i}])}))}(SU)),TU}!function(t){!function(e,n){t.exports=n(MU())}(0,(function(t){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.i=function(t){return t},n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){var i=n(0).layoutBase.LayoutConstants,r=n(0).layoutBase.FDLayoutConstants,o=n(0).CoSEConstants,a=n(0).CoSELayout,s=n(0).CoSENode,c=n(0).layoutBase.PointD,l=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function h(t,e){var n={};for(var i in t)n[i]=t[i];for(var i in e)n[i]=e[i];return n}function d(t){this.options=h(u,t),f(this.options)}var f=function(t){null!=t.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=r.DEFAULT_REPULSION_STRENGTH=t.nodeRepulsion),null!=t.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=r.DEFAULT_EDGE_LENGTH=t.idealEdgeLength),null!=t.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=r.DEFAULT_SPRING_STRENGTH=t.edgeElasticity),null!=t.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=r.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(o.MAX_ITERATIONS=r.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=r.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),"draft"==t.quality?i.QUALITY=0:"proof"==t.quality?i.QUALITY=2:i.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=!t.randomize,o.ANIMATE=r.ANIMATE=i.ANIMATE=t.animate,o.TILE=t.tile,o.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal};d.prototype.run=function(){var t,e,n=this.options;this.idToLNode={};var i=this.layout=new a,r=this;r.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var o=i.newGraphManager();this.gm=o;var s=this.options.eles.nodes(),c=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),i);for(var l=0;l<c.length;l++){var u=c[l],h=this.idToLNode[u.data("source")],d=this.idToLNode[u.data("target")];h!==d&&0==h.getEdgesBetween(d).length&&(o.add(i.newEdge(),h,d).id=u.id())}var f=function(t,e){"number"==typeof t&&(t=e);var n=t.data("id"),i=r.idToLNode[n];return{x:i.getRect().getCenterX(),y:i.getRect().getCenterY()}},g=function o(){for(var a,s=function(){n.fit&&n.cy.fit(n.eles,n.padding),t||(t=!0,r.cy.one("layoutready",n.ready),r.cy.trigger({type:"layoutready",layout:r}))},c=r.options.refresh,l=0;l<c&&!a;l++)a=r.stopped||r.layout.tick();if(a)return i.checkLayoutSuccess()&&!i.isSubLayout&&i.doPostLayout(),i.tilingPostLayout&&i.tilingPostLayout(),i.isLayoutFinished=!0,r.options.eles.nodes().positions(f),s(),r.cy.one("layoutstop",r.options.stop),r.cy.trigger({type:"layoutstop",layout:r}),e&&cancelAnimationFrame(e),void(t=!1);var u=r.layout.getPositionsData();n.eles.nodes().positions((function(t,e){if("number"==typeof t&&(t=e),!t.isParent()){for(var n=t.id(),i=u[n],r=t;null==i&&(i=u[r.data("parent")]||u["DummyCompound_"+r.data("parent")],u[n]=i,null!=(r=r.parent()[0])););return null!=i?{x:i.x,y:i.y}:{x:t.position("x"),y:t.position("y")}}})),s(),e=requestAnimationFrame(o)};return i.addListener("layoutstarted",(function(){"during"===r.options.animate&&(e=requestAnimationFrame(g))})),i.runLayout(),"during"!==this.options.animate&&(r.options.eles.nodes().not(":parent").layoutPositions(r,r.options,f),t=!1),this},d.prototype.getTopMostNodes=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].id()]=!0;return t.filter((function(t,n){"number"==typeof t&&(t=n);for(var i=t.parent()[0];null!=i;){if(e[i.id()])return!1;i=i.parent()[0]}return!0}))},d.prototype.processChildrenList=function(t,e,n){for(var i=e.length,r=0;r<i;r++){var o,a,u=e[r],h=u.children(),d=u.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((o=null!=u.outerWidth()&&null!=u.outerHeight()?t.add(new s(n.graphManager,new c(u.position("x")-d.w/2,u.position("y")-d.h/2),new l(parseFloat(d.w),parseFloat(d.h)))):t.add(new s(this.graphManager))).id=u.data("id"),o.paddingLeft=parseInt(u.css("padding")),o.paddingTop=parseInt(u.css("padding")),o.paddingRight=parseInt(u.css("padding")),o.paddingBottom=parseInt(u.css("padding")),this.options.nodeDimensionsIncludeLabels&&u.isParent()){var f=u.boundingBox({includeLabels:!0,includeNodes:!1}).w,g=u.boundingBox({includeLabels:!0,includeNodes:!1}).h,p=u.css("text-halign");o.labelWidth=f,o.labelHeight=g,o.labelPos=p}this.idToLNode[u.data("id")]=o,isNaN(o.rect.x)&&(o.rect.x=0),isNaN(o.rect.y)&&(o.rect.y=0),null!=h&&h.length>0&&(a=n.getGraphManager().add(n.newGraph(),o),this.processChildrenList(a,h,n))}},d.prototype.stop=function(){return this.stopped=!0,this};var g=function(t){t("layout","cose-bilkent",d)};"undefined"!=typeof cytoscape&&g(cytoscape),t.exports=g}])}))}(EU);const PU=o(xU);function LU(t,e,n,i){vU.drawNode(t,e,n,i),e.children&&e.children.forEach(((e,r)=>{LU(t,e,n<0?r:n,i)}))}function OU(t,e){e.edges().map(((e,n)=>{const i=e.data();if(e[0]._private.bodyBounds){const r=e[0]._private.rscratch;h.trace("Edge: ",n,i),t.insert("path").attr("d",`M ${r.startX},${r.startY} L ${r.midX},${r.midY} L${r.endX},${r.endY} `).attr("class","edge section-edge-"+i.section+" edge-depth-"+i.depth)}}))}function NU(t,e,n,i){e.add({group:"nodes",data:{id:t.id,labelText:t.descr,height:t.height,width:t.width,level:i,nodeId:t.id,padding:t.padding,type:t.type},position:{x:t.x,y:t.y}}),t.children&&t.children.forEach((r=>{NU(r,e,n,i+1),e.add({group:"edges",data:{id:`${t.id}_${r.id}`,source:t.id,target:r.id,depth:i,section:r.section}})}))}function RU(t,e){return new Promise((n=>{const i=un("body").append("div").attr("id","cy").attr("style","display:none"),r=_U({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});i.remove(),NU(t,r,e,0),r.nodes().forEach((function(t){t.layoutDimensions=()=>{const e=t.data();return{w:e.width,h:e.height}}})),r.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),r.ready((t=>{h.info("Ready",t),n(r)}))}))}function FU(t){t.nodes().map(((t,e)=>{const n=t.data();n.x=t.position().x,n.y=t.position().y,vU.positionNode(n);const i=cU(n.nodeId);h.info("Id:",e,"Position: (",t.position().x,", ",t.position().y,")",n),i.attr("transform",`translate(${t.position().x-n.width/2}, ${t.position().y-n.height/2})`),i.attr("attr",`apa-${e})`)}))}_U.use(PU);const jU=t=>{let e="";for(let e=0;e<t.THEME_COLOR_LIMIT;e++)t["lineColor"+e]=t["lineColor"+e]||t["cScaleInv"+e],yd(t["lineColor"+e])?t["lineColor"+e]=Cd(t["lineColor"+e],20):t["lineColor"+e]=Ad(t["lineColor"+e],20);for(let n=0;n<t.THEME_COLOR_LIMIT;n++){const i=""+(17-3*n);e+=`\n .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {\n fill: ${t["cScale"+n]};\n }\n .section-${n-1} text {\n fill: ${t["cScaleLabel"+n]};\n }\n .node-icon-${n-1} {\n font-size: 40px;\n color: ${t["cScaleLabel"+n]};\n }\n .section-edge-${n-1}{\n stroke: ${t["cScale"+n]};\n }\n .edge-depth-${n-1}{\n stroke-width: ${i};\n }\n .section-${n-1} line {\n stroke: ${t["cScaleInv"+n]} ;\n stroke-width: 3;\n }\n\n .disabled, .disabled circle, .disabled text {\n fill: lightgray;\n }\n .disabled text {\n fill: #efefef;\n }\n `}return e},$U={db:lU,renderer:{draw:async(t,e,n,i)=>{const r=_w();i.db.clear(),i.parser.parse(t),h.debug("Renering info diagram\n"+t);const o=_w().securityLevel;let a;"sandbox"===o&&(a=un("#i"+e));const s=un("sandbox"===o?a.nodes()[0].contentDocument.body:"body").select("#"+e);s.append("g");const c=i.db.getMindmap(),l=s.append("g");l.attr("class","mindmap-edges");const u=s.append("g");u.attr("class","mindmap-nodes"),LU(u,c,-1,r);const d=await RU(c,r);OU(l,d),FU(d),Pw(void 0,s,r.mindmap.padding,r.mindmap.useMaxWidth)}},parser:qq,styles:t=>`\n .edge {\n stroke-width: 3;\n }\n ${jU(t)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n`},zU=Object.freeze(Object.defineProperty({__proto__:null,diagram:$U},Symbol.toStringTag,{value:"Module"}));return MH}()},2591:(t,e,n)=>{"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},i=[],r=0;r<t.length;r++){var o=t[r],c=e.base?o[0]+e.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var h=s(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==h?(a[h].references++,a[h].updater(d)):a.push({identifier:u,updater:m(d,e),references:1}),i.push(u)}return i}function l(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,h=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function d(t,e,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=h(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function f(t,e,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?t.setAttribute("media",r):t.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var g=null,p=0;function m(t,e){var n,i,r;if(e.singleton){var o=p++;n=g||(g=l(e)),i=d.bind(null,n,o,!1),r=d.bind(null,n,o,!0)}else n=l(e),i=f.bind(null,n,e),r=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=r());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=c(t,e),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.nc=void 0;var i={};return(()=>{"use strict";n.d(i,{default:()=>MO});class t{crashes=[];state="initializing";_crashNumberLimit;_now=Date.now;_minimumNonErrorTimePeriod;_boundErrorHandler;_listeners;constructor(t){if(this.crashes=[],this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=t=>{const e="error"in t?t.error:t.reason;e instanceof Error&&this._handleError(e,t)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter((t=>t!==e))}_fire(t,...e){const n=this._listeners[t]||[];for(const t of n)t.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&void 0!==t.context&&null!==t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}_shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function e(t,e=new Set){const n=[t],i=new Set;let o=0;for(;n.length>o;){const t=n[o++];if(!i.has(t)&&r(t)&&!e.has(t))if(i.add(t),Symbol.iterator in t)try{for(const e of t)n.push(e)}catch(t){}else for(const e in t)"defaultValue"!==e&&n.push(t[e])}return i}function r(t){const e=Object.prototype.toString.call(t),n=typeof t;return!("number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===e||"[object RegExp]"===e||"[object Module]"===e||null==t||t._watchdogExcluded||t instanceof EventTarget||t instanceof Event)}function o(t,n,i=new Set){if(t===n&&("object"==typeof(r=t)&&null!==r))return!0;var r;const o=e(t,i),a=e(n,i);for(const t of o)if(a.has(t))return!0;return!1}const a=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const s="object"==typeof global&&global&&global.Object===Object&&global;var c="object"==typeof self&&self&&self.Object===Object&&self;const l=s||c||Function("return this")();const u=function(){return l.Date.now()};var h=/\s/;const d=function(t){for(var e=t.length;e--&&h.test(t.charAt(e)););return e};var f=/^\s+/;const g=function(t){return t?t.slice(0,d(t)+1).replace(f,""):t};const p=l.Symbol;var m=Object.prototype,b=m.hasOwnProperty,w=m.toString,k=p?p.toStringTag:void 0;const v=function(t){var e=b.call(t,k),n=t[k];try{t[k]=void 0;var i=!0}catch(t){}var r=w.call(t);return i&&(e?t[k]=n:delete t[k]),r};var y=Object.prototype.toString;const _=function(t){return y.call(t)};var C=p?p.toStringTag:void 0;const A=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":C&&C in Object(t)?v(t):_(t)};const x=function(t){return null!=t&&"object"==typeof t};const E=function(t){return"symbol"==typeof t||x(t)&&"[object Symbol]"==A(t)};var T=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,D=/^0o[0-7]+$/i,I=parseInt;const B=function(t){if("number"==typeof t)return t;if(E(t))return NaN;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=g(t);var n=S.test(t);return n||D.test(t)?I(t.slice(2),n?2:8):T.test(t)?NaN:+t};var M=Math.max,P=Math.min;const L=function(t,e,n){var i,r,o,s,c,l,h=0,d=!1,f=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=i,o=r;return i=r=void 0,h=e,s=t.apply(o,n)}function m(t){var n=t-l;return void 0===l||n>=e||n<0||f&&t-h>=o}function b(){var t=u();if(m(t))return w(t);c=setTimeout(b,function(t){var n=e-(t-l);return f?P(n,o-(t-h)):n}(t))}function w(t){return c=void 0,g&&i?p(t):(i=r=void 0,s)}function k(){var t=u(),n=m(t);if(i=arguments,r=this,l=t,n){if(void 0===c)return function(t){return h=t,c=setTimeout(b,e),d?p(t):s}(l);if(f)return clearTimeout(c),c=setTimeout(b,e),p(l)}return void 0===c&&(c=setTimeout(b,e)),s}return e=B(e)||0,a(n)&&(d=!!n.leading,o=(f="maxWait"in n)?M(B(n.maxWait)||0,e):o,g="trailing"in n?!!n.trailing:g),k.cancel=function(){void 0!==c&&clearTimeout(c),h=0,i=l=r=c=void 0},k.flush=function(){return void 0===c?s:w(u())},k};const O=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return a(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),L(t,e,{leading:i,maxWait:e,trailing:r})};const N=function(t,e){return function(n){return t(e(n))}};const R=N(Object.getPrototypeOf,Object);var F=Function.prototype,j=Object.prototype,z=F.toString,V=j.hasOwnProperty,H=z.call(Object);const q=function(t){if(!x(t)||"[object Object]"!=A(t))return!1;var e=R(t);if(null===e)return!0;var n=V.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&z.call(n)==H};const U=function(t){return x(t)&&1===t.nodeType&&!q(t)};const G=function(){this.__data__=[],this.size=0};const W=function(t,e){return t===e||t!=t&&e!=e};const K=function(t,e){for(var n=t.length;n--;)if(W(t[n][0],e))return n;return-1};var Y=Array.prototype.splice;const X=function(t){var e=this.__data__,n=K(e,t);return!(n<0)&&(n==e.length-1?e.pop():Y.call(e,n,1),--this.size,!0)};const Z=function(t){var e=this.__data__,n=K(e,t);return n<0?void 0:e[n][1]};const Q=function(t){return K(this.__data__,t)>-1};const J=function(t,e){var n=this.__data__,i=K(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}tt.prototype.clear=G,tt.prototype.delete=X,tt.prototype.get=Z,tt.prototype.has=Q,tt.prototype.set=J;const et=tt;const nt=function(){this.__data__=new et,this.size=0};const it=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const rt=function(t){return this.__data__.get(t)};const ot=function(t){return this.__data__.has(t)};const at=function(t){if(!a(t))return!1;var e=A(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const st=l["__core-js_shared__"];var ct=function(){var t=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();const lt=function(t){return!!ct&&ct in t};var ut=Function.prototype.toString;const ht=function(t){if(null!=t){try{return ut.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var dt=/^\[object .+?Constructor\]$/,ft=Function.prototype,gt=Object.prototype,pt=ft.toString,mt=gt.hasOwnProperty,bt=RegExp("^"+pt.call(mt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const wt=function(t){return!(!a(t)||lt(t))&&(at(t)?bt:dt).test(ht(t))};const kt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=kt(t,e);return wt(n)?n:void 0};const yt=vt(l,"Map");const _t=vt(Object,"create");const Ct=function(){this.__data__=_t?_t(null):{},this.size=0};const At=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var xt=Object.prototype.hasOwnProperty;const Et=function(t){var e=this.__data__;if(_t){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xt.call(e,t)?e[t]:void 0};var Tt=Object.prototype.hasOwnProperty;const St=function(t){var e=this.__data__;return _t?void 0!==e[t]:Tt.call(e,t)};const Dt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=_t&&void 0===e?"__lodash_hash_undefined__":e,this};function It(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}It.prototype.clear=Ct,It.prototype.delete=At,It.prototype.get=Et,It.prototype.has=St,It.prototype.set=Dt;const Bt=It;const Mt=function(){this.size=0,this.__data__={hash:new Bt,map:new(yt||et),string:new Bt}};const Pt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Lt=function(t,e){var n=t.__data__;return Pt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Ot=function(t){var e=Lt(this,t).delete(t);return this.size-=e?1:0,e};const Nt=function(t){return Lt(this,t).get(t)};const Rt=function(t){return Lt(this,t).has(t)};const Ft=function(t,e){var n=Lt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}jt.prototype.clear=Mt,jt.prototype.delete=Ot,jt.prototype.get=Nt,jt.prototype.has=Rt,jt.prototype.set=Ft;const $t=jt;const zt=function(t,e){var n=this.__data__;if(n instanceof et){var i=n.__data__;if(!yt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new $t(i)}return n.set(t,e),this.size=n.size,this};function Vt(t){var e=this.__data__=new et(t);this.size=e.size}Vt.prototype.clear=nt,Vt.prototype.delete=it,Vt.prototype.get=rt,Vt.prototype.has=ot,Vt.prototype.set=zt;const Ht=Vt;const qt=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t};const Ut=function(){try{var t=vt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const Gt=function(t,e,n){"__proto__"==e&&Ut?Ut(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Wt=Object.prototype.hasOwnProperty;const Kt=function(t,e,n){var i=t[e];Wt.call(t,e)&&W(i,n)&&(void 0!==n||e in t)||Gt(t,e,n)};const Yt=function(t,e,n,i){var r=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],c=i?i(n[s],t[s],s,n,t):void 0;void 0===c&&(c=t[s]),r?Gt(n,s,c):Kt(n,s,c)}return n};const Xt=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i};const Zt=function(t){return x(t)&&"[object Arguments]"==A(t)};var Qt=Object.prototype,Jt=Qt.hasOwnProperty,te=Qt.propertyIsEnumerable;const ee=Zt(function(){return arguments}())?Zt:function(t){return x(t)&&Jt.call(t,"callee")&&!te.call(t,"callee")};const ne=Array.isArray;const ie=function(){return!1};var re="object"==typeof exports&&exports&&!exports.nodeType&&exports,oe=re&&"object"==typeof module&&module&&!module.nodeType&&module,ae=oe&&oe.exports===re?l.Buffer:void 0;const se=(ae?ae.isBuffer:void 0)||ie;var ce=/^(?:0|[1-9]\d*)$/;const le=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ce.test(t))&&t>-1&&t%1==0&&t<e};const ue=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var he={};he["[object Float32Array]"]=he["[object Float64Array]"]=he["[object Int8Array]"]=he["[object Int16Array]"]=he["[object Int32Array]"]=he["[object Uint8Array]"]=he["[object Uint8ClampedArray]"]=he["[object Uint16Array]"]=he["[object Uint32Array]"]=!0,he["[object Arguments]"]=he["[object Array]"]=he["[object ArrayBuffer]"]=he["[object Boolean]"]=he["[object DataView]"]=he["[object Date]"]=he["[object Error]"]=he["[object Function]"]=he["[object Map]"]=he["[object Number]"]=he["[object Object]"]=he["[object RegExp]"]=he["[object Set]"]=he["[object String]"]=he["[object WeakMap]"]=!1;const de=function(t){return x(t)&&ue(t.length)&&!!he[A(t)]};const fe=function(t){return function(e){return t(e)}};var ge="object"==typeof exports&&exports&&!exports.nodeType&&exports,pe=ge&&"object"==typeof module&&module&&!module.nodeType&&module,me=pe&&pe.exports===ge&&s.process;const be=function(){try{var t=pe&&pe.require&&pe.require("util").types;return t||me&&me.binding&&me.binding("util")}catch(t){}}();var we=be&&be.isTypedArray;const ke=we?fe(we):de;var ve=Object.prototype.hasOwnProperty;const ye=function(t,e){var n=ne(t),i=!n&&ee(t),r=!n&&!i&&se(t),o=!n&&!i&&!r&&ke(t),a=n||i||r||o,s=a?Xt(t.length,String):[],c=s.length;for(var l in t)!e&&!ve.call(t,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||le(l,c))||s.push(l);return s};var _e=Object.prototype;const Ce=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_e)};const Ae=N(Object.keys,Object);var xe=Object.prototype.hasOwnProperty;const Ee=function(t){if(!Ce(t))return Ae(t);var e=[];for(var n in Object(t))xe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Te=function(t){return null!=t&&ue(t.length)&&!at(t)};const Se=function(t){return Te(t)?ye(t):Ee(t)};const De=function(t,e){return t&&Yt(e,Se(e),t)};const Ie=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Be=Object.prototype.hasOwnProperty;const Me=function(t){if(!a(t))return Ie(t);var e=Ce(t),n=[];for(var i in t)("constructor"!=i||!e&&Be.call(t,i))&&n.push(i);return n};const Pe=function(t){return Te(t)?ye(t,!0):Me(t)};const Le=function(t,e){return t&&Yt(e,Pe(e),t)};var Oe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ne=Oe&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ne&&Ne.exports===Oe?l.Buffer:void 0,Fe=Re?Re.allocUnsafe:void 0;const je=function(t,e){if(e)return t.slice();var n=t.length,i=Fe?Fe(n):new t.constructor(n);return t.copy(i),i};const $e=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e};const ze=function(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o};const Ve=function(){return[]};var He=Object.prototype.propertyIsEnumerable,qe=Object.getOwnPropertySymbols;const Ue=qe?function(t){return null==t?[]:(t=Object(t),ze(qe(t),(function(e){return He.call(t,e)})))}:Ve;const Ge=function(t,e){return Yt(t,Ue(t),e)};const We=function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t};const Ke=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)We(e,Ue(t)),t=R(t);return e}:Ve;const Ye=function(t,e){return Yt(t,Ke(t),e)};const Xe=function(t,e,n){var i=e(t);return ne(t)?i:We(i,n(t))};const Ze=function(t){return Xe(t,Se,Ue)};const Qe=function(t){return Xe(t,Pe,Ke)};const Je=vt(l,"DataView");const tn=vt(l,"Promise");const en=vt(l,"Set");const nn=vt(l,"WeakMap");var rn="[object Map]",on="[object Promise]",an="[object Set]",sn="[object WeakMap]",cn="[object DataView]",ln=ht(Je),un=ht(yt),hn=ht(tn),dn=ht(en),fn=ht(nn),gn=A;(Je&&gn(new Je(new ArrayBuffer(1)))!=cn||yt&&gn(new yt)!=rn||tn&&gn(tn.resolve())!=on||en&&gn(new en)!=an||nn&&gn(new nn)!=sn)&&(gn=function(t){var e=A(t),n="[object Object]"==e?t.constructor:void 0,i=n?ht(n):"";if(i)switch(i){case ln:return cn;case un:return rn;case hn:return on;case dn:return an;case fn:return sn}return e});const pn=gn;var mn=Object.prototype.hasOwnProperty;const bn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&mn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const wn=l.Uint8Array;const kn=function(t){var e=new t.constructor(t.byteLength);return new wn(e).set(new wn(t)),e};const vn=function(t,e){var n=e?kn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var yn=/\w*$/;const _n=function(t){var e=new t.constructor(t.source,yn.exec(t));return e.lastIndex=t.lastIndex,e};var Cn=p?p.prototype:void 0,An=Cn?Cn.valueOf:void 0;const xn=function(t){return An?Object(An.call(t)):{}};const En=function(t,e){var n=e?kn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Tn=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return kn(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return vn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return En(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return _n(t);case"[object Symbol]":return xn(t)}};var Sn=Object.create;const Dn=function(){function t(){}return function(e){if(!a(e))return{};if(Sn)return Sn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const In=function(t){return"function"!=typeof t.constructor||Ce(t)?{}:Dn(R(t))};const Bn=function(t){return x(t)&&"[object Map]"==pn(t)};var Mn=be&&be.isMap;const Pn=Mn?fe(Mn):Bn;const Ln=function(t){return x(t)&&"[object Set]"==pn(t)};var On=be&&be.isSet;const Nn=On?fe(On):Ln;var Rn="[object Arguments]",Fn="[object Function]",jn="[object Object]",$n={};$n[Rn]=$n["[object Array]"]=$n["[object ArrayBuffer]"]=$n["[object DataView]"]=$n["[object Boolean]"]=$n["[object Date]"]=$n["[object Float32Array]"]=$n["[object Float64Array]"]=$n["[object Int8Array]"]=$n["[object Int16Array]"]=$n["[object Int32Array]"]=$n["[object Map]"]=$n["[object Number]"]=$n[jn]=$n["[object RegExp]"]=$n["[object Set]"]=$n["[object String]"]=$n["[object Symbol]"]=$n["[object Uint8Array]"]=$n["[object Uint8ClampedArray]"]=$n["[object Uint16Array]"]=$n["[object Uint32Array]"]=!0,$n["[object Error]"]=$n[Fn]=$n["[object WeakMap]"]=!1;const zn=function t(e,n,i,r,o,s){var c,l=1&n,u=2&n,h=4&n;if(i&&(c=o?i(e,r,o,s):i(e)),void 0!==c)return c;if(!a(e))return e;var d=ne(e);if(d){if(c=bn(e),!l)return $e(e,c)}else{var f=pn(e),g=f==Fn||"[object GeneratorFunction]"==f;if(se(e))return je(e,l);if(f==jn||f==Rn||g&&!o){if(c=u||g?{}:In(e),!l)return u?Ye(e,Le(c,e)):Ge(e,De(c,e))}else{if(!$n[f])return o?e:{};c=Tn(e,f,l)}}s||(s=new Ht);var p=s.get(e);if(p)return p;s.set(e,c),Nn(e)?e.forEach((function(r){c.add(t(r,n,i,r,e,s))})):Pn(e)&&e.forEach((function(r,o){c.set(o,t(r,n,i,o,e,s))}));var m=d?void 0:(h?u?Qe:Ze:u?Pe:Se)(e);return qt(m||e,(function(r,o){m&&(r=e[o=r]),Kt(c,o,t(r,n,i,o,e,s))})),c};const Vn=function(t,e){return zn(t,5,e="function"==typeof e?e:void 0)};class Hn extends t{_editor=null;_lifecyclePromise=null;_throttledSave;_data;_lastDocumentVersion;_elementOrData;_initUsingData=!0;_editables={};_config;_excludedProps;constructor(t,e={}){super(e),this._throttledSave=O(this._save.bind(this),"number"==typeof e.saveInterval?e.saveInterval:5e3),t&&(this._creator=(e,n)=>t.create(e,n)),this._destructor=t=>t.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}_restart(){return Promise.resolve().then((()=>(this.state="initializing",this._fire("stateChange"),this._destroy()))).catch((t=>{console.error("An error happened during the editor destroying.",t)})).then((()=>{const t={},e=[],n=this._config.rootsAttributes||{},i={};for(const[r,o]of Object.entries(this._data.roots))o.isLoaded?(t[r]="",i[r]=n[r]||{}):e.push(r);const r={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:i,_watchdogInitialData:this._data};return delete r.initialData,r.extraPlugins.push(qn),this._initUsingData?this.create(t,r,r.context):U(this._elementOrData)?this.create(this._elementOrData,r,r.context):this.create(this._editables,r,r.context)})).then((()=>{this._fire("restart")}))}create(t=this._elementOrData,e=this._config,n){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then((()=>(super._startErrorHandling(),this._elementOrData=t,this._initUsingData="string"==typeof t||Object.keys(t).length>0&&"string"==typeof Object.values(t)[0],this._config=this._cloneEditorConfiguration(e)||{},this._config.context=n,this._creator(t,this._config)))).then((t=>{this._editor=t,t.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=t.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})).finally((()=>{this._lifecyclePromise=null})),this._lifecyclePromise}destroy(){return this._lifecyclePromise=Promise.resolve(this._lifecyclePromise).then((()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))).finally((()=>{this._lifecyclePromise=null})),this._lifecyclePromise}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling(),this._throttledSave.cancel();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)}))}_save(){const t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t=this._editor,e=t.model.document.roots.filter((t=>t.isAttached()&&"$graveyard"!=t.rootName)),{plugins:n}=t,i=n.has("CommentsRepository")&&n.get("CommentsRepository"),r=n.has("TrackChanges")&&n.get("TrackChanges"),o={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};e.forEach((t=>{o.roots[t.rootName]={content:JSON.stringify(Array.from(t.getChildren())),attributes:JSON.stringify(Array.from(t.getAttributes())),isLoaded:t._isLoaded}}));for(const e of t.model.markers)e._affectsData&&(o.markers[e.name]={rangeJSON:e.getRange().toJSON(),usingOperation:e._managedUsingOperations,affectsData:e._affectsData});return i&&(o.commentThreads=JSON.stringify(i.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),r&&(o.suggestions=JSON.stringify(r.getSuggestions({toJSON:!0,skipNotAttached:!0}))),o}_getEditables(){const t={};for(const e of this.editor.model.document.getRootNames()){const n=this.editor.ui.getEditableElement(e);n&&(t[e]=n)}return t}_isErrorComingFromThisItem(t){return o(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return Vn(t,((t,e)=>U(t)||"context"===e?t:void 0))}}class qn{editor;_data;constructor(t){this.editor=t,this._data=t.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",(t=>{t.stop(),this.editor.model.enqueueChange({isUndoable:!1},(t=>{this._restoreCollaborationData(),this._restoreEditorData(t)})),this.editor.data.fire("ready")}),{priority:999})}_createNode(t,e){if("name"in e){const n=t.createElement(e.name,e.attributes);if(e.children)for(const i of e.children)n._appendChild(this._createNode(t,i));return n}return t.createText(e.data,e.attributes)}_restoreEditorData(t){const e=this.editor;Object.entries(this._data.roots).forEach((([n,{content:i,attributes:r}])=>{const o=JSON.parse(i),a=JSON.parse(r),s=e.model.document.getRoot(n);for(const[e,n]of a)t.setAttribute(e,n,s);for(const e of o){const n=this._createNode(t,e);t.insert(n,s,"end")}})),Object.entries(this._data.markers).forEach((([n,i])=>{const{document:r}=e.model,{rangeJSON:{start:o,end:a},...s}=i,c=r.getRoot(o.root),l=t.createPositionFromPath(c,o.path,o.stickiness),u=t.createPositionFromPath(c,a.path,a.stickiness),h=t.createRange(l,u);t.addMarker(n,{range:h,...s})}))}_restoreCollaborationData(){const t=JSON.parse(this._data.commentThreads),e=JSON.parse(this._data.suggestions);t.forEach((t=>{const e=this.editor.config.get("collaboration.channelId"),n=this.editor.plugins.get("CommentsRepository");if(n.hasCommentThread(t.threadId)){n.getCommentThread(t.threadId).remove()}n.addCommentThread({channelId:e,...t})})),e.forEach((t=>{const e=this.editor.plugins.get("TrackChangesEditing");if(e.hasSuggestion(t.id)){e.getSuggestion(t.id).attributes=t.attributes}else e.addSuggestionData(t)}))}}const Un=Symbol("MainQueueId");class Gn extends t{_watchdogs=new Map;_watchdogConfig;_context=null;_contextProps=new Set;_actionQueues=new Wn;_contextConfig;_item;constructor(t,e={}){super(e),this._watchdogConfig=e,this._creator=e=>t.create(e),this._destructor=t=>t.destroy(),this._actionQueues.onEmpty((()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))}))}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}get context(){return this._context}create(t={}){return this._actionQueues.enqueue(Un,(()=>(this._contextConfig=t,this._create())))}getItem(t){return this._getWatchdog(t)._item}getItemState(t){return this._getWatchdog(t).state}add(t){const e=Kn(t);return Promise.all(e.map((t=>this._actionQueues.enqueue(t.id,(()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let e;if(this._watchdogs.has(t.id))throw new Error(`Item with the given id is already added: '${t.id}'.`);if("editor"===t.type)return e=new Hn(null,this._watchdogConfig),e.setCreator(t.creator),e._setExcludedProperties(this._contextProps),t.destructor&&e.setDestructor(t.destructor),this._watchdogs.set(t.id,e),e.on("error",((n,{error:i,causesRestart:r})=>{this._fire("itemError",{itemId:t.id,error:i}),r&&this._actionQueues.enqueue(t.id,(()=>new Promise((n=>{const i=()=>{e.off("restart",i),this._fire("itemRestart",{itemId:t.id}),n()};e.on("restart",i)}))))})),e.create(t.sourceElementOrData,t.config,this._context);throw new Error(`Not supported item type: '${t.type}'.`)})))))}remove(t){const e=Kn(t);return Promise.all(e.map((t=>this._actionQueues.enqueue(t,(()=>{const e=this._getWatchdog(t);return this._watchdogs.delete(t),e.destroy()})))))}destroy(){return this._actionQueues.enqueue(Un,(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy())))}_restart(){return this._actionQueues.enqueue(Un,(()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch((t=>{console.error("An error happened during destroying the context or items.",t)})).then((()=>this._create())).then((()=>this._fire("restart"))))))}_create(){return Promise.resolve().then((()=>(this._startErrorHandling(),this._creator(this._contextConfig)))).then((t=>(this._context=t,this._contextProps=e(this._context),Promise.all(Array.from(this._watchdogs.values()).map((t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))))}_destroy(){return Promise.resolve().then((()=>{this._stopErrorHandling();const t=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map((t=>t.destroy()))).then((()=>this._destructor(t)))}))}_getWatchdog(t){const e=this._watchdogs.get(t);if(!e)throw new Error(`Item with the given id was not registered: ${t}.`);return e}_isErrorComingFromThisItem(t){for(const e of this._watchdogs.values())if(e._isErrorComingFromThisItem(t))return!1;return o(this._context,t.context)}}class Wn{_onEmptyCallbacks=[];_queues=new Map;_activeActions=0;onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===Un;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const i=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(Un),this._queues.get(t)])).then(e),r=i.catch((()=>{}));return this._queues.set(t,r),i.finally((()=>{this._activeActions--,this._queues.get(t)===r&&0===this._activeActions&&this._onEmptyCallbacks.forEach((t=>t()))}))}}function Kn(t){return Array.isArray(t)?t:[t]}let Yn;try{Yn={window,document}}catch(t){Yn={window:{},document:{}}}const Xn=Yn;function Zn(){try{return navigator.userAgent.toLowerCase()}catch(t){return""}}const Qn=Zn(),Jn={isMac:ti(Qn),isWindows:ei(Qn),isGecko:ni(Qn),isSafari:ii(Qn),isiOS:ri(Qn),isAndroid:oi(Qn),isBlink:ai(Qn),get isMediaForcedColors(){return!!Xn.window.matchMedia&&Xn.window.matchMedia("(forced-colors: active)").matches},get isMotionReduced(){return!!Xn.window.matchMedia&&Xn.window.matchMedia("(prefers-reduced-motion)").matches},features:{isRegExpUnicodePropertySupported:si()}};function ti(t){return t.indexOf("macintosh")>-1}function ei(t){return t.indexOf("windows")>-1}function ni(t){return!!t.match(/gecko\/\d+/)}function ii(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}function ri(t){return!!t.match(/iphone|ipad/i)||ti(t)&&navigator.maxTouchPoints>0}function oi(t){return t.indexOf("android")>-1}function ai(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}function si(){let t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}function ci(t,e,n,i){n=n||function(t,e){return t===e};const r=Array.isArray(t)?t:Array.prototype.slice.call(t),o=Array.isArray(e)?e:Array.prototype.slice.call(e),a=function(t,e,n){const i=li(t,e,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const r=ui(t,i),o=ui(e,i),a=li(r,o,n),s=t.length-a,c=e.length-a;return{firstIndex:i,lastIndexOld:s,lastIndexNew:c}}(r,o,n),s=i?function(t,e){const{firstIndex:n,lastIndexOld:i,lastIndexNew:r}=t;if(-1===n)return Array(e).fill("equal");let o=[];n>0&&(o=o.concat(Array(n).fill("equal")));r-n>0&&(o=o.concat(Array(r-n).fill("insert")));i-n>0&&(o=o.concat(Array(i-n).fill("delete")));r<e&&(o=o.concat(Array(e-r).fill("equal")));return o}(a,o.length):function(t,e){const n=[],{firstIndex:i,lastIndexOld:r,lastIndexNew:o}=e;o-i>0&&n.push({index:i,type:"insert",values:t.slice(i,o)});r-i>0&&n.push({index:i+(o-i),type:"delete",howMany:r-i});return n}(o,a);return s}function li(t,e,n){for(let i=0;i<Math.max(t.length,e.length);i++)if(void 0===t[i]||void 0===e[i]||!n(t[i],e[i]))return i;return-1}function ui(t,e){return t.slice(e).reverse()}function hi(t,e,n){n=n||function(t,e){return t===e};const i=t.length,r=e.length;if(i>200||r>200||i+r>300)return hi.fastDiff(t,e,n,!0);let o,a;if(r<i){const n=t;t=e,e=n,o="delete",a="insert"}else o="insert",a="delete";const s=t.length,c=e.length,l=c-s,u={},h={};function d(i){const r=(void 0!==h[i-1]?h[i-1]:-1)+1,l=void 0!==h[i+1]?h[i+1]:-1,d=r>l?-1:1;u[i+d]&&(u[i]=u[i+d].slice(0)),u[i]||(u[i]=[]),u[i].push(r>l?o:a);let f=Math.max(r,l),g=f-i;for(;g<s&&f<c&&n(t[g],e[f]);)g++,f++,u[i].push("equal");return f}let f,g=0;do{for(f=-g;f<l;f++)h[f]=d(f);for(f=l+g;f>l;f--)h[f]=d(f);h[l]=d(l),g++}while(h[l]!==c);return u[l].slice(1)}hi.fastDiff=ci;const di=function(){return function t(){t.called=!0}};class fi{source;name;path;stop;off;return;constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=di(),this.off=di()}}const gi=new Array(256).fill("").map(((t,e)=>("0"+e.toString(16)).slice(-2)));function pi(){const[t,e,n,i]=crypto.getRandomValues(new Uint32Array(4));return"e"+gi[255&t]+gi[t>>8&255]+gi[t>>16&255]+gi[t>>24&255]+gi[255&e]+gi[e>>8&255]+gi[e>>16&255]+gi[e>>24&255]+gi[255&n]+gi[n>>8&255]+gi[n>>16&255]+gi[n>>24&255]+gi[255&i]+gi[i>>8&255]+gi[i>>16&255]+gi[i>>24&255]}const mi={get(t="normal"){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function bi(t,e){const n=mi.get(e.priority);for(let i=0;i<t.length;i++)if(mi.get(t[i].priority)<n)return void t.splice(i,0,e);t.push(e)}class wi extends Error{context;data;constructor(t,e,n){super(function(t,e){const n=new WeakSet,i=(t,e)=>{if("object"==typeof e&&null!==e){if(n.has(e))return`[object ${e.constructor.name}]`;n.add(e)}return e},r=e?` ${JSON.stringify(e,i)}`:"",o=vi(t);return t+r+o}(t,n)),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new wi(t.message,e);throw n.stack=t.stack,n}}function ki(t,e){console.warn(...yi(t,e))}function vi(t){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${t}`}function yi(t,e){const n=vi(t);return e?[t,e,n]:[t,n]}const _i="43.2.0",Ci=new Date(2024,9,2);if(globalThis.CKEDITOR_VERSION)throw new wi("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION=_i;const Ai=Symbol("listeningTo"),xi=Symbol("emitterId"),Ei=Symbol("delegations"),Ti=Si(Object);function Si(t){if(!t)return Ti;return class extends t{on(t,e,n){this.listenTo(this,t,e,n)}once(t,e,n){let i=!1;this.listenTo(this,t,((t,...n)=>{i||(i=!0,t.off(),e.call(this,t,...n))}),n)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,n,i={}){let r,o;this[Ai]||(this[Ai]={});const a=this[Ai];Ii(t)||Di(t);const s=Ii(t);(r=a[s])||(r=a[s]={emitter:t,callbacks:{}}),(o=r.callbacks[e])||(o=r.callbacks[e]=[]),o.push(n),function(t,e,n,i,r){e._addEventListener?e._addEventListener(n,i,r):t._addEventListener.call(e,n,i,r)}(this,t,e,n,i)}stopListening(t,e,n){const i=this[Ai];let r=t&&Ii(t);const o=i&&r?i[r]:void 0,a=o&&e?o.callbacks[e]:void 0;if(!(!i||t&&!o||e&&!a))if(n){Oi(this,t,e,n);-1!==a.indexOf(n)&&(1===a.length?delete o.callbacks[e]:Oi(this,t,e,n))}else if(a){for(;n=a.pop();)Oi(this,t,e,n);delete o.callbacks[e]}else if(o){for(e in o.callbacks)this.stopListening(t,e);delete i[r]}else{for(r in i)this.stopListening(i[r].emitter);delete this[Ai]}}fire(t,...e){try{const n=t instanceof fi?t:new fi(this,t),i=n.name;let r=Pi(this,i);if(n.path.push(this),r){const t=[n,...e];r=Array.from(r);for(let e=0;e<r.length&&(r[e].callback.apply(this,t),n.off.called&&(delete n.off.called,this._removeEventListener(i,r[e].callback)),!n.stop.called);e++);}const o=this[Ei];if(o){const t=o.get(i),r=o.get("*");t&&Li(t,n,e),r&&Li(r,n,e)}return n.return}catch(t){wi.rethrowUnexpectedError(t,this)}}delegate(...t){return{to:(e,n)=>{this[Ei]||(this[Ei]=new Map),t.forEach((t=>{const i=this[Ei].get(t);i?i.set(e,n):this[Ei].set(t,new Map([[e,n]]))}))}}}stopDelegating(t,e){if(this[Ei])if(t)if(e){const n=this[Ei].get(t);n&&n.delete(e)}else this[Ei].delete(t);else this[Ei].clear()}_addEventListener(t,e,n){!function(t,e){const n=Bi(t);if(n[e])return;let i=e,r=null;const o=[];for(;""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},o.push(n[i]),r&&n[i].childEvents.push(r),r=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){for(const t of o)t.callbacks=n[i].callbacks.slice();n[i].childEvents.push(r)}}(this,t);const i=Mi(this,t),r={callback:e,priority:mi.get(n.priority)};for(const t of i)bi(t,r)}_removeEventListener(t,e){const n=Mi(this,t);for(const t of n)for(let n=0;n<t.length;n++)t[n].callback==e&&(t.splice(n,1),n--)}}}function Di(t,e){t[xi]||(t[xi]=e||pi())}function Ii(t){return t[xi]}function Bi(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function Mi(t,e){const n=Bi(t)[e];if(!n)return[];let i=[n.callbacks];for(let e=0;e<n.childEvents.length;e++){const r=Mi(t,n.childEvents[e]);i=i.concat(r)}return i}function Pi(t,e){let n;return t._events&&(n=t._events[e])&&n.callbacks.length?n.callbacks:e.indexOf(":")>-1?Pi(t,e.substr(0,e.lastIndexOf(":"))):null}function Li(t,e,n){for(let[i,r]of t){r?"function"==typeof r&&(r=r(e.name)):r=e.name;const t=new fi(e.source,r);t.path=[...e.path],i.fire(t,...n)}}function Oi(t,e,n,i){e._removeEventListener?e._removeEventListener(n,i):t._removeEventListener.call(e,n,i)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{Si[t]=Ti.prototype[t]}));const Ni=Symbol("observableProperties"),Ri=Symbol("boundObservables"),Fi=Symbol("boundProperties"),ji=Symbol("decoratedMethods"),$i=Symbol("decoratedOriginal"),zi=Vi(Si());function Vi(t){if(!t)return zi;return class extends t{set(t,e){if(a(t))return void Object.keys(t).forEach((e=>{this.set(e,t[e])}),this);Hi(this);const n=this[Ni];if(t in this&&!n.has(t))throw new wi("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(e){const i=n.get(t);let r=this.fire(`set:${t}`,t,e,i);void 0===r&&(r=e),i===r&&n.has(t)||(n.set(t,r),this.fire(`change:${t}`,t,r,i))}}),this[t]=e}bind(...t){if(!t.length||!Gi(t))throw new wi("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new wi("observable-bind-duplicate-properties",this);Hi(this);const e=this[Fi];t.forEach((t=>{if(e.has(t))throw new wi("observable-bind-rebind",this)}));const n=new Map;return t.forEach((t=>{const i={property:t,to:[]};e.set(t,i),n.set(t,i)})),{to:qi,toMany:Ui,_observable:this,_bindProperties:t,_to:[],_bindings:n}}unbind(...t){if(!this[Ni])return;const e=this[Fi],n=this[Ri];if(t.length){if(!Gi(t))throw new wi("observable-unbind-wrong-properties",this);t.forEach((t=>{const i=e.get(t);i&&(i.to.forEach((([t,e])=>{const r=n.get(t),o=r[e];o.delete(i),o.size||delete r[e],Object.keys(r).length||(n.delete(t),this.stopListening(t,"change"))})),e.delete(t))}))}else n.forEach(((t,e)=>{this.stopListening(e,"change")})),n.clear(),e.clear()}decorate(t){Hi(this);const e=this[t];if(!e)throw new wi("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,((t,n)=>{t.return=e.apply(this,n)})),this[t]=function(...e){return this.fire(t,e)},this[t][$i]=e,this[ji]||(this[ji]=[]),this[ji].push(t)}stopListening(t,e,n){if(!t&&this[ji]){for(const t of this[ji])this[t]=this[t][$i];delete this[ji]}super.stopListening(t,e,n)}[Ni];[ji];[Fi];[Ri]}}function Hi(t){t[Ni]||(Object.defineProperty(t,Ni,{value:new Map}),Object.defineProperty(t,Ri,{value:new Map}),Object.defineProperty(t,Fi,{value:new Map}))}function qi(...t){const e=function(...t){if(!t.length)throw new wi("observable-bind-to-parse-error",null);const e={to:[]};let n;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach((t=>{if("string"==typeof t)n.properties.push(t);else{if("object"!=typeof t)throw new wi("observable-bind-to-parse-error",null);n={observable:t,properties:[]},e.to.push(n)}})),e}(...t),n=Array.from(this._bindings.keys()),i=n.length;if(!e.callback&&e.to.length>1)throw new wi("observable-bind-to-no-callback",this);if(i>1&&e.callback)throw new wi("observable-bind-to-extra-callback",this);var r;e.to.forEach((t=>{if(t.properties.length&&t.properties.length!==i)throw new wi("observable-bind-to-properties-length",this);t.properties.length||(t.properties=this._bindProperties)})),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),r=this._observable,this._to.forEach((t=>{const e=r[Ri];let n;e.get(t.observable)||r.listenTo(t.observable,"change",((i,o)=>{n=e.get(t.observable)[o],n&&n.forEach((t=>{Wi(r,t.property)}))}))})),function(t){let e;t._bindings.forEach(((n,i)=>{t._to.forEach((r=>{e=r.properties[n.callback?0:t._bindProperties.indexOf(i)],n.to.push([r.observable,e]),function(t,e,n,i){const r=t[Ri],o=r.get(n),a=o||{};a[i]||(a[i]=new Set);a[i].add(e),o||r.set(n,a)}(t._observable,n,r.observable,e)}))}))}(this),this._bindProperties.forEach((t=>{Wi(this._observable,t)}))}function Ui(t,e,n){if(this._bindings.size>1)throw new wi("observable-bind-to-many-not-one-binding",this);this.to(...function(t,e){const n=t.map((t=>[t,e]));return Array.prototype.concat.apply([],n)}(t,e),n)}function Gi(t){return t.every((t=>"string"==typeof t))}function Wi(t,e){const n=t[Fi].get(e);let i;n.callback?i=n.callback.apply(t,n.to.map((t=>t[0][t[1]]))):(i=n.to[0],i=i[0][i[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=i:t.set(e,i)}function Ki(t){let e=0;for(const n of t)e++;return e}function Yi(t,e){const n=Math.min(t.length,e.length);for(let i=0;i<n;i++)if(t[i]!=e[i])return i;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}function Xi(t){return!(!t||!t[Symbol.iterator])}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{Vi[t]=zi.prototype[t]}));const Zi=function(t){return"string"==typeof t||!ne(t)&&x(t)&&"[object String]"==A(t)};function Qi(t,e,n={},i=[]){const r=n&&n.xmlns,o=r?t.createElementNS(r,e):t.createElement(e);for(const t in n)o.setAttribute(t,n[t]);!Zi(i)&&Xi(i)||(i=[i]);for(let e of i)Zi(e)&&(e=t.createTextNode(e)),o.appendChild(e);return o}class Ji{_config;constructor(t,e){this._config=Object.create(null),e&&this.define(tr(e)),t&&this._setObjectToTarget(this._config,t)}set(t,e){this._setToTarget(this._config,t,e)}define(t,e){this._setToTarget(this._config,t,e,!0)}get(t){return this._getFromSource(this._config,t)}*names(){for(const t of Object.keys(this._config))yield t}_setToTarget(t,e,n,i=!1){if(q(e))return void this._setObjectToTarget(t,e,i);const r=e.split(".");e=r.pop();for(const e of r)q(t[e])||(t[e]=Object.create(null)),t=t[e];if(q(n))return q(t[e])||(t[e]=Object.create(null)),t=t[e],void this._setObjectToTarget(t,n,i);i&&void 0!==t[e]||(t[e]=n)}_getFromSource(t,e){const n=e.split(".");e=n.pop();for(const e of n){if(!q(t[e])){t=null;break}t=t[e]}return t?tr(t[e]):void 0}_setObjectToTarget(t,e,n){Object.keys(e).forEach((i=>{this._setToTarget(t,i,e[i],n)}))}}function tr(t){return Vn(t,er)}function er(t){return U(t)||"function"==typeof t?t:void 0}function nr(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}function ir(t){const e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}const rr=or(Si());function or(t){if(!t)return rr;return class extends t{listenTo(t,e,n,i={}){if(nr(t)||ir(t)){const r={capture:!!i.useCapture,passive:!!i.usePassive},o=this._getProxyEmitter(t,r)||new ar(t,r);this.listenTo(o,e,n,i)}else super.listenTo(t,e,n,i)}stopListening(t,e,n){if(nr(t)||ir(t)){const i=this._getAllProxyEmitters(t);for(const t of i)this.stopListening(t,e,n)}else super.stopListening(t,e,n)}_getProxyEmitter(t,e){return function(t,e){const n=t[Ai];return n&&n[e]?n[e].emitter:null}(this,sr(t,e))}_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((e=>this._getProxyEmitter(t,e))).filter((t=>!!t))}}}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((t=>{or[t]=rr.prototype[t]}));class ar extends(Si()){_domNode;_options;constructor(t,e){super(),Di(this,sr(t,e)),this._domNode=t,this._options=e}_domListeners;attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,n){this.attach(t),Si().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){Si().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=e=>{this.fire(t,e)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function sr(t,e){let n=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=pi())}(t);for(const t of Object.keys(e).sort())e[t]&&(n+="-"+t);return n}function cr(t){const e=[];let n=t;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)e.unshift(n),n=n.parentNode;return e}function lr(t){return t instanceof HTMLTextAreaElement?t.value:t.innerHTML}function ur(t){const e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}function hr(t){if(!t.target)return null;const e=t.target.ownerDocument,n=t.clientX,i=t.clientY;let r=null;return e.caretRangeFromPoint&&e.caretRangeFromPoint(n,i)?r=e.caretRangeFromPoint(n,i):t.rangeParent&&(r=e.createRange(),r.setStart(t.rangeParent,t.rangeOffset),r.collapse(!0)),r}function dr(t){return"[object Text]"==Object.prototype.toString.call(t)}function fr(t){return"[object Range]"==Object.prototype.toString.apply(t)}function gr(t){return t&&t.parentNode?t.offsetParent===Xn.document.body?null:t.offsetParent:null}const pr=["top","right","bottom","left","width","height"];class mr{top;right;bottom;left;width;height;_source;constructor(t){const e=fr(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),kr(t)||e)if(e){const e=mr.getDomRangeRects(t);br(this,mr.getBoundingRect(e))}else br(this,t.getBoundingClientRect());else if(ir(t)){const{innerWidth:e,innerHeight:n}=t;br(this,{top:0,right:e,bottom:n,left:0,width:e,height:n})}else br(this,t)}clone(){return new mr(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const t=new mr(e);return t._source=this._source,t}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(wr(t))return e;let n,i=t,r=t.parentNode||t.commonAncestorContainer;for(;r&&!wr(r);){const t="visible"===((o=r)instanceof HTMLElement?o.ownerDocument.defaultView.getComputedStyle(o).overflow:"visible");i instanceof HTMLElement&&"absolute"===vr(i)&&(n=i);const a=vr(r);if(t||n&&("relative"===a&&t||"relative"!==a)){i=r,r=r.parentNode;continue}const s=new mr(r),c=e.getIntersection(s);if(!c)return null;c.getArea()<e.getArea()&&(e=c),i=r,r=r.parentNode}var o;return e}isEqual(t){for(const e of pr)if(this[e]!==t[e])return!1;return!0}contains(t){const e=this.getIntersection(t);return!(!e||!e.isEqual(t))}toAbsoluteRect(){const{scrollX:t,scrollY:e}=Xn.window,n=this.clone().moveBy(t,e);if(kr(n._source)){const t=gr(n._source);t&&function(t,e){const n=new mr(e),i=ur(e);let r=0,o=0;r-=n.left,o-=n.top,r+=e.scrollLeft,o+=e.scrollTop,r-=i.left,o-=i.top,t.moveBy(r,o)}(n,t)}return n}excludeScrollbarsAndBorders(){const t=this._source;let e,n,i;if(ir(t))e=t.innerWidth-t.document.documentElement.clientWidth,n=t.innerHeight-t.document.documentElement.clientHeight,i=t.getComputedStyle(t.document.documentElement).direction;else{const r=ur(t);e=t.offsetWidth-t.clientWidth-r.left-r.right,n=t.offsetHeight-t.clientHeight-r.top-r.bottom,i=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===i?this.right-=e:this.left+=e,this.height-=n,this.bottom-=n,this}static getDomRangeRects(t){const e=[],n=Array.from(t.getClientRects());if(n.length)for(const t of n)e.push(new mr(t));else{let n=t.startContainer;dr(n)&&(n=n.parentNode);const i=new mr(n.getBoundingClientRect());i.right=i.left,i.width=0,e.push(i)}return e}static getBoundingRect(t){const e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};let n=0;for(const i of t)n++,e.left=Math.min(e.left,i.left),e.top=Math.min(e.top,i.top),e.right=Math.max(e.right,i.right),e.bottom=Math.max(e.bottom,i.bottom);return 0==n?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new mr(e))}}function br(t,e){for(const n of pr)t[n]=e[n]}function wr(t){return!!kr(t)&&t===t.ownerDocument.body}function kr(t){return null!==t&&"object"==typeof t&&1===t.nodeType&&"function"==typeof t.getBoundingClientRect}function vr(t){return t instanceof HTMLElement?t.ownerDocument.defaultView.getComputedStyle(t).position:"static"}class yr{_element;_callback;static _observerInstance=null;static _elementCallbacks=null;constructor(t,e){yr._observerInstance||yr._createObserver(),this._element=t,this._callback=e,yr._addElementCallback(t,e),yr._observerInstance.observe(t)}get element(){return this._element}destroy(){yr._deleteElementCallback(this._element,this._callback)}static _addElementCallback(t,e){yr._elementCallbacks||(yr._elementCallbacks=new Map);let n=yr._elementCallbacks.get(t);n||(n=new Set,yr._elementCallbacks.set(t,n)),n.add(e)}static _deleteElementCallback(t,e){const n=yr._getElementCallbacks(t);n&&(n.delete(e),n.size||(yr._elementCallbacks.delete(t),yr._observerInstance.unobserve(t))),yr._elementCallbacks&&!yr._elementCallbacks.size&&(yr._observerInstance=null,yr._elementCallbacks=null)}static _getElementCallbacks(t){return yr._elementCallbacks?yr._elementCallbacks.get(t):null}static _createObserver(){yr._observerInstance=new Xn.window.ResizeObserver((t=>{for(const e of t){const t=yr._getElementCallbacks(e.target);if(t)for(const n of t)n(e)}}))}}function _r(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}function Cr(t){return e=>e+t}function Ar(t){let e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e}function xr(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function Er(t){return t&&t.nodeType===Node.COMMENT_NODE}function Tr(t){try{Xn.document.createAttribute(t)}catch(t){return!1}return!0}function Sr(t){return!!t&&(dr(t)?Sr(t.parentElement):!!t.getClientRects&&!!t.getClientRects().length)}function Dr({element:t,target:e,positions:n,limiter:i,fitInViewport:r,viewportOffsetConfig:o}){at(e)&&(e=e()),at(i)&&(i=i());const a=gr(t),s=function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const e=new mr(Xn.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e}(o),c=new mr(t),l=Ir(e,s);let u;if(!l||!s.getIntersection(l))return null;const h={targetRect:l,elementRect:c,positionedElementAncestor:a,viewportRect:s};if(i||r){if(i){const t=Ir(i,s);t&&(h.limiterRect=t)}u=function(t,e){const{elementRect:n}=e,i=n.getArea(),r=t.map((t=>new Br(t,e))).filter((t=>!!t.name));let o=0,a=null;for(const t of r){const{limiterIntersectionArea:e,viewportIntersectionArea:n}=t;if(e===i)return t;const r=n**2+e**2;r>o&&(o=r,a=t)}return a}(n,h)}else u=new Br(n[0],h);return u}function Ir(t,e){const n=new mr(t).getVisible();return n?n.getIntersection(e):null}class Br{name;config;_positioningFunctionCoordinates;_options;_cachedRect;_cachedAbsoluteRect;constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!n)return;const{left:i,top:r,name:o,config:a}=n;this.name=o,this.config=a,this._positioningFunctionCoordinates={left:i,top:r},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function Mr(t){const e=t.parentNode;e&&e.removeChild(t)}function Pr({target:t,viewportOffset:e=0,ancestorOffset:n=0,alignToTop:i,forceScroll:r}){const o=$r(t);let a=o,s=null;for(e=function(t){if("number"==typeof t)return{top:t,bottom:t,left:t,right:t};return t}(e);a;){let c;c=zr(a==o?t:s),Or({parent:c,getRect:()=>Vr(t,a),alignToTop:i,ancestorOffset:n,forceScroll:r});const l=Vr(t,a);if(Lr({window:a,rect:l,viewportOffset:e,alignToTop:i,forceScroll:r}),a.parent!=a){if(s=a.frameElement,a=a.parent,!s)return}else a=null}}function Lr({window:t,rect:e,alignToTop:n,forceScroll:i,viewportOffset:r}){const o=e.clone().moveBy(0,r.bottom),a=e.clone().moveBy(0,-r.top),s=new mr(t).excludeScrollbarsAndBorders(),c=n&&i,l=[a,o].every((t=>s.contains(t)));let{scrollX:u,scrollY:h}=t;const d=u,f=h;c?h-=s.top-e.top+r.top:l||(Rr(a,s)?h-=s.top-e.top+r.top:Nr(o,s)&&(h+=n?e.top-s.top-r.top:e.bottom-s.bottom+r.bottom)),l||(Fr(e,s)?u-=s.left-e.left+r.left:jr(e,s)&&(u+=e.right-s.right+r.right)),u==d&&h===f||t.scrollTo(u,h)}function Or({parent:t,getRect:e,alignToTop:n,forceScroll:i,ancestorOffset:r=0,limiterElement:o}){const a=$r(t),s=n&&i;let c,l,u;const h=o||a.document.body;for(;t!=h;)l=e(),c=new mr(t).excludeScrollbarsAndBorders(),u=c.contains(l),s?t.scrollTop-=c.top-l.top+r:u||(Rr(l,c)?t.scrollTop-=c.top-l.top+r:Nr(l,c)&&(t.scrollTop+=n?l.top-c.top-r:l.bottom-c.bottom+r)),u||(Fr(l,c)?t.scrollLeft-=c.left-l.left+r:jr(l,c)&&(t.scrollLeft+=l.right-c.right+r)),t=t.parentNode}function Nr(t,e){return t.bottom>e.bottom}function Rr(t,e){return t.top<e.top}function Fr(t,e){return t.left<e.left}function jr(t,e){return t.right>e.right}function $r(t){return fr(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function zr(t){if(fr(t)){let e=t.commonAncestorContainer;return dr(e)&&(e=e.parentNode),e}return t.parentNode}function Vr(t,e){const n=$r(t),i=new mr(t);if(n===e)return i;{let t=n;for(;t!=e;){const e=t.frameElement,n=new mr(e).excludeScrollbarsAndBorders();i.moveBy(n.left,n.top),t=t.parent}}return i}const Hr={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},qr={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Ur={37:"←",38:"↑",39:"→",40:"↓",9:"⇥",33:"Page Up",34:"Page Down"},Gr=Qr(),Wr=Object.fromEntries(Object.entries(Gr).map((([t,e])=>{let n;return n=e in Ur?Ur[e]:t.charAt(0).toUpperCase()+t.slice(1),[e,n]})));function Kr(t){let e;if("string"==typeof t){if(e=Gr[t.toLowerCase()],!e)throw new wi("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?Gr.alt:0)+(t.ctrlKey?Gr.ctrl:0)+(t.shiftKey?Gr.shift:0)+(t.metaKey?Gr.cmd:0);return e}function Yr(t){return"string"==typeof t&&(t=function(t){return t.split("+").map((t=>t.trim()))}(t)),t.map((t=>"string"==typeof t?function(t){if(t.endsWith("!"))return Kr(t.slice(0,-1));const e=Kr(t);return(Jn.isMac||Jn.isiOS)&&e==Gr.ctrl?Gr.cmd:e}(t):t)).reduce(((t,e)=>e+t),0)}function Xr(t){let e=Yr(t);return Object.entries(Jn.isMac||Jn.isiOS?Hr:qr).reduce(((t,[n,i])=>(e&Gr[n]&&(e&=~Gr[n],t+=i),t)),"")+(e?Wr[e]:"")}function Zr(t,e){const n="ltr"===e;switch(t){case Gr.arrowleft:return n?"left":"right";case Gr.arrowright:return n?"right":"left";case Gr.arrowup:return"up";case Gr.arrowdown:return"down"}}function Qr(){const t={pageup:33,pagedown:34,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let e=65;e<=90;e++){t[String.fromCharCode(e).toLowerCase()]=e}for(let e=48;e<=57;e++)t[e-48]=e;for(let e=112;e<=123;e++)t["f"+(e-111)]=e;return Object.assign(t,{"'":222,",":108,"-":109,".":110,"/":111,";":186,"=":187,"[":219,"\\":220,"]":221,"`":223}),t}function Jr(t){return Array.isArray(t)?t:[t]}const to=function(t,e,n){(void 0!==n&&!W(t[e],n)||void 0===n&&!(e in t))&&Gt(t,e,n)};const eo=function(t){return function(e,n,i){for(var r=-1,o=Object(e),a=i(e),s=a.length;s--;){var c=a[t?s:++r];if(!1===n(o[c],c,o))break}return e}}();const no=function(t){return x(t)&&Te(t)};const io=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};const ro=function(t){return Yt(t,Pe(t))};const oo=function(t,e,n,i,r,o,s){var c=io(t,n),l=io(e,n),u=s.get(l);if(u)to(t,n,u);else{var h=o?o(c,l,n+"",t,e,s):void 0,d=void 0===h;if(d){var f=ne(l),g=!f&&se(l),p=!f&&!g&&ke(l);h=l,f||g||p?ne(c)?h=c:no(c)?h=$e(c):g?(d=!1,h=je(l,!0)):p?(d=!1,h=En(l,!0)):h=[]:q(l)||ee(l)?(h=c,ee(c)?h=ro(c):a(c)&&!at(c)||(h=In(l))):d=!1}d&&(s.set(l,h),r(h,l,i,o,s),s.delete(l)),to(t,n,h)}};const ao=function t(e,n,i,r,o){e!==n&&eo(n,(function(s,c){if(o||(o=new Ht),a(s))oo(e,n,c,i,t,r,o);else{var l=r?r(io(e,c),s,c+"",e,n,o):void 0;void 0===l&&(l=s),to(e,c,l)}}),Pe)};const so=function(t){return t};const co=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var lo=Math.max;const uo=function(t,e,n){return e=lo(void 0===e?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=lo(i.length-e,0),a=Array(o);++r<o;)a[r]=i[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=i[r];return s[e]=n(a),co(t,this,s)}};const ho=function(t){return function(){return t}};const fo=Ut?function(t,e){return Ut(t,"toString",{configurable:!0,enumerable:!1,value:ho(e),writable:!0})}:so;var go=Date.now;const po=function(t){var e=0,n=0;return function(){var i=go(),r=16-(i-n);if(n=i,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(fo);const mo=function(t,e){return po(uo(t,e,so),t+"")};const bo=function(t,e,n){if(!a(n))return!1;var i=typeof e;return!!("number"==i?Te(n)&&le(e,n.length):"string"==i&&e in n)&&W(n[e],t)};const wo=function(t){return mo((function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(r--,o):void 0,a&&bo(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++i<r;){var s=n[i];s&&t(e,s,i,o)}return e}))};const ko=wo((function(t,e,n){ao(t,e,n)}));function vo(t,e,n=1,i){if("number"!=typeof n)throw new wi("translation-service-quantity-not-a-number",null,{quantity:n});const r=i||Xn.window.CKEDITOR_TRANSLATIONS,o=function(t){return Object.keys(t).length}(r);1===o&&(t=Object.keys(r)[0]);const a=e.id||e.string;if(0===o||!function(t,e,n){return!!n[t]&&!!n[t].dictionary[e]}(t,a,r))return 1!==n?e.plural:e.string;const s=r[t].dictionary,c=r[t].getPluralForm||(t=>1===t?0:1),l=s[a];if("string"==typeof l)return l;return l[Number(c(n))]}Xn.window.CKEDITOR_TRANSLATIONS||(Xn.window.CKEDITOR_TRANSLATIONS={});const yo=["ar","ara","dv","div","fa","per","fas","he","heb","ku","kur","ug","uig"];function _o(t){return yo.includes(t)?"rtl":"ltr"}class Co{uiLanguage;uiLanguageDirection;contentLanguage;contentLanguageDirection;t;translations;constructor({uiLanguage:t="en",contentLanguage:e,translations:n}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=_o(this.uiLanguage),this.contentLanguageDirection=_o(this.contentLanguage),this.translations=function(t){return Array.isArray(t)?t.reduce(((t,e)=>ko(t,e))):t}(n),this.t=(t,e)=>this._t(t,e)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){e=Jr(e),"string"==typeof t&&(t={string:t});const n=!!t.plural?e[0]:1;return function(t,e){return t.replace(/%(\d+)/g,((t,n)=>n<e.length?e[n]:t))}(vo(this.uiLanguage,t,n,this.translations),e)}}class Ao extends(Si()){_items;_itemMap;_idProperty;_bindToCollection;_bindToExternalToInternalMap;_bindToInternalToExternalMap;_skippedIndexesFromExternal;constructor(t={},e={}){super();const n=Xi(t);if(n||(e=t),this._items=[],this._itemMap=new Map,this._idProperty=e.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],n)for(const e of t)this._items.push(e),this._itemMap.set(this._getItemIdBeforeAdding(e),e)}get length(){return this._items.length}get first(){return this._items[0]||null}get last(){return this._items[this.length-1]||null}add(t,e){return this.addMany([t],e)}addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new wi("collection-add-item-invalid-index",this);let n=0;for(const i of t){const t=this._getItemIdBeforeAdding(i),r=e+n;this._items.splice(r,0,i),this._itemMap.set(t,i),this.fire("add",i,r),n++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new wi("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),e}map(t,e){return this._items.map(t,e)}forEach(t,e){this._items.forEach(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new wi("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:t=>{this._setUpBindToBinding((e=>new t(e)))},using:t=>{"function"==typeof t?this._setUpBindToBinding(t):this._setUpBindToBinding((e=>e[t]))}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(n,i,r)=>{const o=e._bindToCollection==this,a=e._bindToInternalToExternalMap.get(i);if(o&&a)this._bindToExternalToInternalMap.set(i,a),this._bindToInternalToExternalMap.set(a,i);else{const n=t(i);if(!n)return void this._skippedIndexesFromExternal.push(r);let o=r;for(const t of this._skippedIndexesFromExternal)r>t&&o--;for(const t of e._skippedIndexesFromExternal)o>=t&&o++;this._bindToExternalToInternalMap.set(i,n),this._bindToInternalToExternalMap.set(n,i),this.add(n,o);for(let t=0;t<e._skippedIndexesFromExternal.length;t++)o<=e._skippedIndexesFromExternal[t]&&e._skippedIndexesFromExternal[t]++}};for(const t of e)n(0,t,e.getIndex(t));this.listenTo(e,"add",n),this.listenTo(e,"remove",((t,e,n)=>{const i=this._bindToExternalToInternalMap.get(e);i&&this.remove(i),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce(((t,e)=>(n<e&&t.push(e-1),n>e&&t.push(e),t)),[])}))}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],"string"!=typeof n)throw new wi("collection-add-invalid-id",this);if(this.get(n))throw new wi("collection-add-item-already-exists",this)}else t[e]=n=pi();return n}_remove(t){let e,n,i,r=!1;const o=this._idProperty;if("string"==typeof t?(n=t,i=this._itemMap.get(n),r=!i,i&&(e=this._items.indexOf(i))):"number"==typeof t?(e=t,i=this._items[e],r=!i,i&&(n=i[o])):(i=t,n=i[o],e=this._items.indexOf(i),r=-1==e||!this._itemMap.get(n)),r)throw new wi("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,e),[i,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function xo(t){const e=t.next();return e.done?null:e.value}class Eo extends(or(Vi())){_elements=new Set;_nextEventLoopTimeout=null;constructor(){super(),this.set("isFocused",!1),this.set("focusedElement",null)}get elements(){return Array.from(this._elements.values())}add(t){if(this._elements.has(t))throw new wi("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",(()=>this._focus(t)),{useCapture:!0}),this.listenTo(t,"blur",(()=>this._blur()),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((()=>{this.focusedElement=null,this.isFocused=!1}),0)}}class To{_listener;constructor(){this._listener=new(or())}listenTo(t){this._listener.listenTo(t,"keydown",((t,e)=>{this._listener.fire("_keydown:"+Kr(e),e)}))}set(t,e,n={}){const i=Yr(t),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,((t,i)=>{n.filter&&!n.filter(i)||(e(i,(()=>{i.preventDefault(),i.stopPropagation(),t.stop()})),t.return=!0)}),{priority:r})}press(t){return!!this._listener.fire("_keydown:"+Kr(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function So(t){return Xi(t)?new Map(t):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(t)}function Do(t,e){let n;function i(...r){i.cancel(),n=setTimeout((()=>t(...r)),e)}return i.cancel=()=>{clearTimeout(n)},i}function Io(t,e){return!!(n=t.charAt(e-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}(t.charAt(e));var n}function Bo(t,e){return!!(n=t.charAt(e))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}const Mo=Lo();function Po(t,e){const n=String(t).matchAll(Mo);return Array.from(n).some((t=>t.index<e&&e<t.index+t[0].length))}function Lo(){const t=/\p{Regional_Indicator}{2}/u.source,e="(?:"+[/\p{Emoji}[\u{E0020}-\u{E007E}]+\u{E007F}/u,/\p{Emoji}\u{FE0F}?\u{20E3}/u,/\p{Emoji}\u{FE0F}/u,/(?=\p{General_Category=Other_Symbol})\p{Emoji}\p{Emoji_Modifier}*/u].map((t=>t.source)).join("|")+")";return new RegExp(`${t}|${e}(?:${e})*`,"ug")}class Oo extends(Vi()){editor;_disableStack=new Set;constructor(t){super(),this.editor=t,this.set("isEnabled",!0)}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",No,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",No),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function No(t){t.return=!1,t.stop()}class Ro extends(Vi()){editor;_isEnabledBasedOnSelection;_affectsData;_disableStack;constructor(t){super(),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(()=>{this.refresh()})),this.listenTo(t,"change:isReadOnly",(()=>{this.refresh()})),this.on("set:isEnabled",(e=>{if(!this.affectsData)return;const n=t.model.document.selection,i=!("$graveyard"==n.getFirstPosition().root.rootName)&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!i)&&(e.return=!1,e.stop())}),{priority:"highest"}),this.on("execute",(t=>{this.isEnabled||t.stop()}),{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(t){this._affectsData=t}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",Fo,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Fo),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function Fo(t){t.return=!1,t.stop()}class jo extends Ro{_childCommandsDefinitions=[];refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){bi(this._childCommandsDefinitions,{command:t,priority:e.priority||"normal"}),t.on("change:isEnabled",(()=>this._checkEnabled())),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const t=this._childCommandsDefinitions.find((({command:t})=>t.isEnabled));return t&&t.command}}class $o extends(Si()){_context;_plugins=new Map;_availablePlugins;_contextPlugins;constructor(t,e=[],n=[]){super(),this._context=t,this._availablePlugins=new Map;for(const t of e)t.pluginName&&this._availablePlugins.set(t.pluginName,t);this._contextPlugins=new Map;for(const[t,e]of n)this._contextPlugins.set(t,e),this._contextPlugins.set(e,t),t.pluginName&&this._availablePlugins.set(t.pluginName,t)}*[Symbol.iterator](){for(const t of this._plugins)"function"==typeof t[0]&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let e=t;throw"function"==typeof t&&(e=t.pluginName||t.name),new wi("plugincollection-plugin-not-loaded",this._context,{plugin:e})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const i=this,r=this._context;!function t(e,n=new Set){e.forEach((e=>{s(e)&&(n.has(e)||(n.add(e),e.pluginName&&!i._availablePlugins.has(e.pluginName)&&i._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)))}))}(t),h(t);const o=[...function t(e,n=new Set){return e.map((t=>s(t)?t:i._availablePlugins.get(t))).reduce(((e,i)=>n.has(i)?e:(n.add(i),i.requires&&(h(i.requires,i),t(i.requires,n).forEach((t=>e.add(t)))),e.add(i))),new Set)}(t.filter((t=>!l(t,e))))];!function(t,e){for(const n of e){if("function"!=typeof n)throw new wi("plugincollection-replace-plugin-invalid-type",null,{pluginItem:n});const e=n.pluginName;if(!e)throw new wi("plugincollection-replace-plugin-missing-name",null,{pluginItem:n});if(n.requires&&n.requires.length)throw new wi("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:e});const r=i._availablePlugins.get(e);if(!r)throw new wi("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:e});const o=t.indexOf(r);if(-1===o){if(i._contextPlugins.has(r))return;throw new wi("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:e})}if(r.requires&&r.requires.length)throw new wi("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:e});t.splice(o,1,n),i._availablePlugins.set(e,n)}}(o,n);const a=o.map((t=>{let e=i._contextPlugins.get(t);return e=e||new t(r),i._add(t,e),e}));return d(a,"init").then((()=>d(a,"afterInit"))).then((()=>a));function s(t){return"function"==typeof t}function c(t){return s(t)&&!!t.isContextPlugin}function l(t,e){return e.some((e=>e===t||(u(t)===e||u(e)===t)))}function u(t){return s(t)?t.pluginName||t.name:t}function h(t,n=null){t.map((t=>s(t)?t:i._availablePlugins.get(t)||t)).forEach((t=>{!function(t,e){if(s(t))return;if(e)throw new wi("plugincollection-soft-required",r,{missingPlugin:t,requiredBy:u(e)});throw new wi("plugincollection-plugin-not-found",r,{plugin:t})}(t,n),function(t,e){if(!c(e))return;if(c(t))return;throw new wi("plugincollection-context-required",r,{plugin:u(t),requiredBy:u(e)})}(t,n),function(t,n){if(!n)return;if(!l(t,e))return;throw new wi("plugincollection-required",r,{plugin:u(t),requiredBy:u(n)})}(t,n)}))}function d(t,e){return t.reduce(((t,n)=>n[e]?i._contextPlugins.has(n)?t:t.then(n[e].bind(n)):t),Promise.resolve())}}destroy(){const t=[];for(const[,e]of this)"function"!=typeof e.destroy||this._contextPlugins.has(e)||t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new wi("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class zo{config;plugins;locale;t;editors;static defaultConfig;static builtinPlugins;_contextOwner=null;constructor(t){const{translations:e,...n}=t||{};this.config=new Ji(n,this.constructor.defaultConfig);const i=this.constructor.builtinPlugins;this.config.define("plugins",i),this.plugins=new $o(this,i);const r=this.config.get("language")||{};this.locale=new Co({uiLanguage:"string"==typeof r?r:r.ui,contentLanguage:this.config.get("language.content"),translations:e}),this.t=this.locale.t,this.editors=new Ao}initPlugins(){const t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];for(const n of t.concat(e)){if("function"!=typeof n)throw new wi("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new wi("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(t,[],e)}destroy(){return Promise.all(Array.from(this.editors,(t=>t.destroy()))).then((()=>this.plugins.destroy()))}_addEditor(t,e){if(this._contextOwner)throw new wi("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise((e=>{const n=new this(t);e(n.initPlugins().then((()=>n)))}))}}class Vo extends(Vi()){context;constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class Ho extends To{editor;constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const t=e;e=(e,n)=>{this.editor.execute(t),n()}}super.set(t,e,n)}}var qo=n(2591),Uo=n.n(qo),Go=n(4098),Wo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Go.A,Wo);Go.A.locals;const Ko=new WeakMap;let Yo=!1;function Xo({view:t,element:e,text:n,isDirectHost:i=!0,keepOnFocus:r=!1}){const o=t.document;function a(n){Ko.get(o).set(e,{text:n,isDirectHost:i,keepOnFocus:r,hostElement:i?e:null}),t.change((t=>Qo(o,t)))}Ko.has(o)||(Ko.set(o,new Map),o.registerPostFixer((t=>Qo(o,t))),o.on("change:isComposing",(()=>{t.change((t=>Qo(o,t)))}),{priority:"high"})),e.is("editableElement")&&e.on("change:placeholder",((t,e,n)=>{a(n)})),e.placeholder?a(e.placeholder):n&&a(n),n&&function(){Yo||ki("enableplaceholder-deprecated-text-option");Yo=!0}()}function Zo(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}function Qo(t,e){const n=Ko.get(t),i=[];let r=!1;for(const[t,o]of n)o.isDirectHost&&(i.push(t),Jo(e,t,o)&&(r=!0));for(const[t,o]of n){if(o.isDirectHost)continue;const n=ta(t);n&&(i.includes(n)||(o.hostElement=n,Jo(e,t,o)&&(r=!0)))}return r}function Jo(t,e,n){const{text:i,isDirectHost:r,hostElement:o}=n;let a=!1;o.getAttribute("data-placeholder")!==i&&(t.setAttribute("data-placeholder",i,o),a=!0);return(r||1==e.childCount)&&function(t,e){if(!t.isAttached())return!1;if(Array.from(t.getChildren()).some((t=>!t.is("uiElement"))))return!1;const n=t.document,i=n.selection.anchor;return!(n.isComposing&&i&&i.parent===t||!e&&n.isFocused&&(!i||i.parent===t))}(o,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,o)&&(a=!0):Zo(t,o)&&(a=!0),a}function ta(t){if(t.childCount){const e=t.getChild(0);if(e.is("element")&&!e.is("uiElement")&&!e.is("attributeElement"))return e}return null}class ea{is(){throw new Error("is() method is abstract")}}const na=function(t){return zn(t,4)};class ia extends(Si(ea)){document;parent;constructor(t){super(),this.document=t,this.parent=null}get index(){let t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new wi("view-node-not-found-in-parent",this);return t}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),i=t.getAncestors(e);let r=0;for(;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=Yi(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}isAfter(t){return this!=t&&(this.root===t.root&&!this.isBefore(t))}_remove(){this.parent._removeChildren(this.index)}_fireChange(t,e){this.fire(`change:${t}`,e),this.parent&&this.parent._fireChange(t,e)}toJSON(){const t=na(this);return delete t.parent,t}}ia.prototype.is=function(t){return"node"===t||"view:node"===t};class ra extends ia{_textData;constructor(t,e){super(t),this._textData=e}get data(){return this._textData}get _data(){return this.data}set _data(t){this._fireChange("text",this),this._textData=t}isSimilar(t){return t instanceof ra&&(this===t||this.data===t.data)}_clone(){return new ra(this.document,this.data)}}ra.prototype.is=function(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t};class oa extends ea{textNode;data;offsetInText;constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.data.length)throw new wi("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new wi("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(t={}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}oa.prototype.is=function(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t};class aa{_patterns=[];constructor(...t){this.add(...t)}add(...t){for(let e of t)("string"==typeof e||e instanceof RegExp)&&(e={name:e}),this._patterns.push(e)}match(...t){for(const e of t)for(const t of this._patterns){const n=sa(e,t);if(n)return{element:e,pattern:t,match:n}}return null}matchAll(...t){const e=[];for(const n of t)for(const t of this._patterns){const i=sa(n,t);i&&e.push({element:n,pattern:t,match:i})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}function sa(t,e){if("function"==typeof e)return e(t);const n={};return e.name&&(n.name=function(t,e){if(t instanceof RegExp)return!!e.match(t);return t===e}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){const n=new Set(e.getAttributeKeys());q(t)?(void 0!==t.style&&ki("matcher-pattern-deprecated-attributes-style-key",t),void 0!==t.class&&ki("matcher-pattern-deprecated-attributes-class-key",t)):(n.delete("style"),n.delete("class"));return ca(t,n,(t=>e.getAttribute(t)))}(e.attributes,t),!n.attributes)||e.classes&&(n.classes=function(t,e){return ca(t,e.getClassNames(),(()=>{}))}(e.classes,t),!n.classes)||e.styles&&(n.styles=function(t,e){return ca(t,e.getStyleNames(!0),(t=>e.getStyle(t)))}(e.styles,t),!n.styles)?null:n}function ca(t,e,n){const i=function(t){if(Array.isArray(t))return t.map((t=>q(t)?(void 0!==t.key&&void 0!==t.value||ki("matcher-pattern-missing-key-or-value",t),[t.key,t.value]):[t,!0]));if(q(t))return Object.entries(t);return[[t,!0]]}(t),r=Array.from(e),o=[];if(i.forEach((([t,e])=>{r.forEach((i=>{(function(t,e){return!0===t||t===e||t instanceof RegExp&&e.match(t)})(t,i)&&function(t,e,n){if(!0===t)return!0;const i=n(e);return t===i||t instanceof RegExp&&!!String(i).match(t)}(e,i,n)&&o.push(i)}))})),i.length&&!(o.length<i.length))return o}var la=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ua=/^\w*$/;const ha=function(t,e){if(ne(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!E(t))||(ua.test(t)||!la.test(t)||null!=e&&t in Object(e))};function da(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(da.Cache||$t),n}da.Cache=$t;const fa=da;var ga=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pa=/\\(\\)?/g;const ma=function(t){var e=fa(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ga,(function(t,n,i,r){e.push(i?r.replace(pa,"$1"):n||t)})),e}));const ba=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r};var wa=p?p.prototype:void 0,ka=wa?wa.toString:void 0;const va=function t(e){if("string"==typeof e)return e;if(ne(e))return ba(e,t)+"";if(E(e))return ka?ka.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n};const ya=function(t){return null==t?"":va(t)};const _a=function(t,e){return ne(t)?t:ha(t,e)?[t]:ma(ya(t))};const Ca=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Aa=function(t){if("string"==typeof t||E(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e};const xa=function(t,e){for(var n=0,i=(e=_a(e,t)).length;null!=t&&n<i;)t=t[Aa(e[n++])];return n&&n==i?t:void 0};const Ea=function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o};const Ta=function(t,e){return e.length<2?t:xa(t,Ea(e,0,-1))};const Sa=function(t,e){return e=_a(e,t),null==(t=Ta(t,e))||delete t[Aa(Ca(e))]};const Da=function(t,e){return null==t||Sa(t,e)};const Ia=function(t,e,n){var i=null==t?void 0:xa(t,e);return void 0===i?n:i};const Ba=function(t,e,n,i){if(!a(t))return t;for(var r=-1,o=(e=_a(e,t)).length,s=o-1,c=t;null!=c&&++r<o;){var l=Aa(e[r]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(r!=s){var h=c[l];void 0===(u=i?i(h,l,c):void 0)&&(u=a(h)?h:le(e[r+1])?[]:{})}Kt(c,l,u),c=c[l]}return t};const Ma=function(t,e,n){return null==t?t:Ba(t,e,n)};class Pa{_styles;_styleProcessor;constructor(t){this._styles={},this._styleProcessor=t}get isEmpty(){return!Object.entries(this._styles).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(t){this.clear();const e=function(t){let e=null,n=0,i=0,r=null;const o=new Map;if(""===t)return o;";"!=t.charAt(t.length-1)&&(t+=";");for(let a=0;a<t.length;a++){const s=t.charAt(a);if(null===e)switch(s){case":":r||(r=t.substr(n,a-n),i=a+1);break;case'"':case"'":e=s;break;case";":{const e=t.substr(i,a-i);r&&o.set(r.trim(),e.trim()),r=null,n=a+1;break}}else s===e&&(e=null)}return o}(t);for(const[t,n]of e)this._styleProcessor.toNormalizedForm(t,n,this._styles)}has(t){if(this.isEmpty)return!1;const e=this._styleProcessor.getReducedForm(t,this._styles).find((([e])=>e===t));return Array.isArray(e)}set(t,e){if(a(t))for(const[e,n]of Object.entries(t))this._styleProcessor.toNormalizedForm(e,n,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=Oa(t);Da(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this.getStylesEntries().map((t=>t.join(":"))).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!a(this._styles[t]))return this._styles[t];const e=this._styleProcessor.getReducedForm(t,this._styles).find((([e])=>e===t));return Array.isArray(e)?e[1]:void 0}getStyleNames(t=!1){if(this.isEmpty)return[];if(t)return this._styleProcessor.getStyleNames(this._styles);return this.getStylesEntries().map((([t])=>t))}clear(){this._styles={}}getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const n=e.splice(0,e.length-1).join("."),i=Ia(this._styles,n);if(!i)return;!Object.keys(i).length&&this.remove(n)}}class La{_normalizers;_extractors;_reducers;_consumables;constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(a(e))Na(n,Oa(t),e);else if(this._normalizers.has(t)){const i=this._normalizers.get(t),{path:r,value:o}=i(e);Na(n,r,o)}else Na(n,t,e)}getNormalized(t,e){if(!t)return ko({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if("string"==typeof n)return Ia(e,n);const i=n(t,e);if(i)return i}return Ia(e,Oa(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);if(void 0===n)return[];if(this._reducers.has(t)){return this._reducers.get(t)(n)}return[[t,n]]}getStyleNames(t){const e=new Set;for(const n of this._consumables.keys()){const i=this.getNormalized(n,t);i&&("object"!=typeof i||Object.keys(i).length)&&e.add(n)}for(const n of Object.keys(t))e.add(n);return Array.from(e)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function Oa(t){return t.replace("-",".")}function Na(t,e,n){let i=n;a(n)&&(i=ko({},Ia(t,e),n)),Ma(t,e,i)}class Ra extends ia{name;_unsafeAttributesToRender=[];_attrs;_children;_classes;_styles;_customProperties=new Map;constructor(t,e,n,i){if(super(t),this.name=e,this._attrs=function(t){const e=So(t);for(const[t,n]of e)null===n?e.delete(t):"string"!=typeof n&&e.set(t,String(n));return e}(n),this._children=[],i&&this._insertChild(0,i),this._classes=new Set,this._attrs.has("class")){const t=this._attrs.get("class");Fa(this._classes,t),this._attrs.delete("class")}this._styles=new Pa(this.document.stylesProcessor),this._attrs.has("style")&&(this._styles.setTo(this._attrs.get("style")),this._attrs.delete("style"))}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){this._classes.size>0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==t){const t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(t)}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof Ra))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new aa(...t);let n=this.parent;for(;n&&!n.is("documentFragment");){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map((t=>`${t[0]}="${t[1]}"`)).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(e?` style="${e}"`:"")+(""==n?"":` ${n}`)}shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t)}_clone(t=!1){const e=[];if(t)for(const n of this.getChildren())e.push(n._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const i=function(t,e){if("string"==typeof e)return[new ra(t,e)];Xi(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new ra(t,e):e instanceof oa?new ra(t,e.data):e))}(this.document,e);for(const e of i)null!==e.parent&&e._remove(),e.parent=this,e.document=this.document,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_setAttribute(t,e){const n=String(e);this._fireChange("attributes",this),"class"==t?Fa(this._classes,n):"style"==t?this._styles.setTo(n):this._attrs.set(t,n)}_removeAttribute(t){return this._fireChange("attributes",this),"class"==t?this._classes.size>0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of Jr(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of Jr(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),"string"!=typeof t?this._styles.set(t):this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of Jr(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function Fa(t,e){const n=e.split(/\s+/);t.clear(),n.forEach((e=>t.add(e)))}Ra.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t};class ja extends Ra{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=$a}}function $a(){const t=[...this.getChildren()],e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;for(const e of t)if(!e.is("uiElement"))return null;return this.childCount}ja.prototype.is=function(t,e){return e?e===this.name&&("containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class za extends(Vi(ja)){constructor(t,e,n,i){super(t,e,n,i),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",(e=>e&&t.selection.editableElement==this)),this.listenTo(t.selection,"change",(()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this}))}destroy(){this.stopListening()}}za.prototype.is=function(t,e){return e?e===this.name&&("editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};const Va=Symbol("rootName");class Ha extends za{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(Va)}set rootName(t){this._setCustomProperty(Va,t)}set _name(t){this.name=t}}Ha.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class qa{direction;boundaries;singleCharacters;shallow;ignoreElementEnd;_position;_boundaryStartParent;_boundaryEndParent;constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new wi("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new wi("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=Ua._createAt(t.startPosition):this._position=Ua._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n;do{n=this.position,e=this.next()}while(!e.done&&t(e.value));e.done||(this._position=n)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let i;if(n instanceof ra){if(t.isAtEnd)return this._position=Ua._createAfter(n),this._next();i=n.data[t.offset]}else i=n.getChild(t.offset);if(i instanceof Ra){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new Ua(i,0);return this._position=t,this._formatReturnValue("elementStart",i,e,t,1)}if(i instanceof ra){if(this.singleCharacters)return t=new Ua(i,0),this._position=t,this._next();let n,r=i.data.length;return i==this._boundaryEndParent?(r=this.boundaries.end.offset,n=new oa(i,0,r),t=Ua._createAfter(n)):(n=new oa(i,0,i.data.length),t.offset++),this._position=t,this._formatReturnValue("text",n,e,t,r)}if("string"==typeof i){let i;if(this.singleCharacters)i=1;else{i=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset}const r=new oa(n,t.offset,i);return t.offset+=i,this._position=t,this._formatReturnValue("text",r,e,t,i)}return t=Ua._createAfter(n),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let i;if(n instanceof ra){if(t.isAtStart)return this._position=Ua._createBefore(n),this._previous();i=n.data[t.offset-1]}else i=n.getChild(t.offset-1);if(i instanceof Ra)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",i,e,t,1)):(t=new Ua(i,i.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",i,e,t));if(i instanceof ra){if(this.singleCharacters)return t=new Ua(i,i.data.length),this._position=t,this._previous();let n,r=i.data.length;if(i==this._boundaryStartParent){const e=this.boundaries.start.offset;n=new oa(i,e,i.data.length-e),r=n.data.length,t=Ua._createBefore(n)}else n=new oa(i,0,i.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",n,e,t,r)}if("string"==typeof i){let i;if(this.singleCharacters)i=1;else{const e=n===this._boundaryStartParent?this.boundaries.start.offset:0;i=t.offset-e}t.offset-=i;const r=new oa(n,t.offset,i);return this._position=t,this._formatReturnValue("text",r,e,t,i)}return t=Ua._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,i,r){return e instanceof oa&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Ua._createAfter(e.textNode):(i=Ua._createAfter(e.textNode),this._position=i)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Ua._createBefore(e.textNode):(i=Ua._createBefore(e.textNode),this._position=i))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}}class Ua extends ea{parent;offset;constructor(t,e){super(),this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof za);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=Ua._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new qa(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let i=0;for(;e[i]==n[i]&&e[i];)i++;return 0===i?null:e[i-1]}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return"before"==this.compareWith(t)}isAfter(t){return"after"==this.compareWith(t)}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const i=Yi(e,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return e[i]<n[i]?"before":"after"}}getWalker(t={}){return t.startPosition=this,new qa(t)}clone(){return new Ua(this.parent,this.offset)}static _createAt(t,e){if(t instanceof Ua)return new this(t.parent,t.offset);{const n=t;if("end"==e)e=n.is("$text")?n.data.length:n.childCount;else{if("before"==e)return this._createBefore(n);if("after"==e)return this._createAfter(n);if(0!==e&&!e)throw new wi("view-createpositionat-offset-required",n)}return new Ua(n,e)}}static _createAfter(t){if(t.is("$textProxy"))return new Ua(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new wi("view-position-after-root",t,{root:t});return new Ua(t.parent,t.index+1)}static _createBefore(t){if(t.is("$textProxy"))return new Ua(t.textNode,t.offsetInText);if(!t.parent)throw new wi("view-position-before-root",t,{root:t});return new Ua(t.parent,t.index)}}Ua.prototype.is=function(t){return"position"===t||"view:position"===t};class Ga extends ea{start;end;constructor(t,e=null){super(),this.start=t.clone(),this.end=e?e.clone():t.clone()}*[Symbol.iterator](){yield*new qa({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let t=this.start.getLastMatchingPosition(Wa,{direction:"backward"}),e=this.end.getLastMatchingPosition(Wa);return t.parent.is("$text")&&t.isAtStart&&(t=Ua._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=Ua._createAfter(e.parent)),new Ga(t,e)}getTrimmed(){let t=this.start.getLastMatchingPosition(Wa);if(t.isAfter(this.end)||t.isEqual(this.end))return new Ga(t,t);let e=this.end.getLastMatchingPosition(Wa,{direction:"backward"});const n=t.nodeAfter,i=e.nodeBefore;return n&&n.is("$text")&&(t=new Ua(n,0)),i&&i.is("$text")&&(e=new Ua(i,i.data.length)),new Ga(t,e)}isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end)}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Ga(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Ga(t.end,this.end))):e.push(this.clone()),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new Ga(e,n)}return null}getWalker(t={}){return t.boundaries=this,new qa(t)}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;let t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null}clone(){return new Ga(this.start,this.end)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new qa(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new qa(t);yield e.position;for(const t of e)yield t.nextPosition}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}static _createFromParentsAndOffsets(t,e,n,i){return new this(new Ua(t,e),new Ua(n,i))}static _createFromPositionAndShift(t,e){const n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(Ua._createBefore(t),e)}}function Wa(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}Ga.prototype.is=function(t){return"range"===t||"view:range"===t};class Ka extends(Si(ea)){_ranges;_lastRangeBackward;_isFake;_fakeSelectionLabel;constructor(...t){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",t.length&&this.setTo(...t)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=Ki(this.getRanges());if(e!=Ki(t.getRanges()))return!1;if(0==e)return!0;for(let e of this.getRanges()){e=e.getTrimmed();let n=!1;for(let i of t.getRanges())if(i=i.getTrimmed(),e.start.isEqual(i.start)&&e.end.isEqual(i.end)){n=!0;break}if(!n)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...t){let[e,n,i]=t;if("object"==typeof n&&(i=n,n=void 0),null===e)this._setRanges([]),this._setFakeOptions(i);else if(e instanceof Ka||e instanceof Ya)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof Ga)this._setRanges([e],i&&i.backward),this._setFakeOptions(i);else if(e instanceof Ua)this._setRanges([new Ga(e)]),this._setFakeOptions(i);else if(e instanceof ia){const t=!!i&&!!i.backward;let r;if(void 0===n)throw new wi("view-selection-setto-required-second-parameter",this);r="in"==n?Ga._createIn(e):"on"==n?Ga._createOn(e):new Ga(Ua._createAt(e,n)),this._setRanges([r],t),this._setFakeOptions(i)}else{if(!Xi(e))throw new wi("view-selection-setto-not-selectable",this);this._setRanges(e,i&&i.backward),this._setFakeOptions(i)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new wi("view-selection-setfocus-no-ranges",this);const n=Ua._createAt(t,e);if("same"==n.compareWith(this.focus))return;const i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new Ga(n,i),!0):this._addRange(new Ga(i,n)),this.fire("change")}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const e of t)this._addRange(e);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof Ga))throw new wi("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new wi("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Ga(t.start,t.end))}}Ka.prototype.is=function(t){return"selection"===t||"view:selection"===t};class Ya extends(Si(ea)){_selection;constructor(...t){super(),this._selection=new Ka,this._selection.delegate("change").to(this),t.length&&this._selection.setTo(...t)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}_setTo(...t){this._selection.setTo(...t)}_setFocus(t,e){this._selection.setFocus(t,e)}}Ya.prototype.is=function(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t};class Xa extends fi{startRange;_eventPhase;_currentTarget;constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Za=Symbol("bubbling contexts");function Qa(t){return class extends t{fire(t,...e){try{const n=t instanceof fi?t:new fi(this,t),i=ns(this);if(!i.size)return;if(Ja(n,"capturing",this),ts(i,"$capture",n,...e))return n.return;const r=n.startRange||this.selection.getFirstRange(),o=r?r.getContainedElement():null,a=!!o&&Boolean(es(i,o));let s=o||function(t){if(!t)return null;const e=t.start.parent,n=t.end.parent,i=e.getPath(),r=n.getPath();return i.length>r.length?e:n}(r);if(Ja(n,"atTarget",s),!a){if(ts(i,"$text",n,...e))return n.return;Ja(n,"bubbling",s)}for(;s;){if(s.is("rootElement")){if(ts(i,"$root",n,...e))return n.return}else if(s.is("element")&&ts(i,s.name,n,...e))return n.return;if(ts(i,s,n,...e))return n.return;s=s.parent,Ja(n,"bubbling",s)}return Ja(n,"bubbling",this),ts(i,"$document",n,...e),n.return}catch(t){wi.rethrowUnexpectedError(t,this)}}_addEventListener(t,e,n){const i=Jr(n.context||"$document"),r=ns(this);for(const o of i){let i=r.get(o);i||(i=new(Si()),r.set(o,i)),this.listenTo(i,t,e,n)}}_removeEventListener(t,e){const n=ns(this);for(const i of n.values())this.stopListening(i,t,e)}}}{const t=Qa(Object);["fire","_addEventListener","_removeEventListener"].forEach((e=>{Qa[e]=t.prototype[e]}))}function Ja(t,e,n){t instanceof Xa&&(t._eventPhase=e,t._currentTarget=n)}function ts(t,e,n,...i){const r="string"==typeof e?t.get(e):es(t,e);return!!r&&(r.fire(n,...i),n.stop.called)}function es(t,e){for(const[n,i]of t)if("function"==typeof n&&n(e))return i;return null}function ns(t){return t[Za]||(t[Za]=new Map),t[Za]}class is extends(Qa(Vi())){selection;roots;stylesProcessor;_postFixers=new Set;constructor(t){super(),this.selection=new Ya,this.roots=new Ao({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.forEach((t=>t.destroy())),this.stopListening()}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(e=n(t),e)break}while(e)}}class rs extends Ra{static DEFAULT_PRIORITY=10;_priority=10;_id=null;_clonesGroup=null;constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=os}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new wi("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t=!1){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function os(){if(as(this))return null;let t=this.parent;for(;t&&t.is("attributeElement");){if(as(t)>1)return null;t=t.parent}return!t||as(t)>1?null:this.childCount}function as(t){return Array.from(t.getChildren()).filter((t=>!t.is("uiElement"))).length}rs.prototype.is=function(t,e){return e?e===this.name&&("attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t):"attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class ss extends Ra{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=cs}_insertChild(t,e){if(e&&(e instanceof ia||Array.from(e).length>0))throw new wi("view-emptyelement-cannot-add",[this,e]);return 0}}function cs(){return null}ss.prototype.is=function(t,e){return e?e===this.name&&("emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t):"emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class ls extends Ra{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=hs}_insertChild(t,e){if(e&&(e instanceof ia||Array.from(e).length>0))throw new wi("view-uielement-cannot-add",[this,e]);return 0}render(t,e){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const t of this.getAttributeKeys())e.setAttribute(t,this.getAttribute(t));return e}}function us(t){t.document.on("arrowKey",((e,n)=>function(t,e,n){if(e.keyCode==Gr.arrowright){const t=e.domTarget.ownerDocument.defaultView.getSelection(),i=1==t.rangeCount&&t.getRangeAt(0).collapsed;if(i||e.shiftKey){const e=t.focusNode,r=t.focusOffset,o=n.domPositionToView(e,r);if(null===o)return;let a=!1;const s=o.getLastMatchingPosition((t=>(t.item.is("uiElement")&&(a=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement")))));if(a){const e=n.viewPositionToDom(s);i?t.collapse(e.parent,e.offset):t.extend(e.parent,e.offset)}}}}(0,n,t.domConverter)),{priority:"low"})}function hs(){return null}ls.prototype.is=function(t,e){return e?e===this.name&&("uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t):"uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class ds extends Ra{constructor(t,e,n,i){super(t,e,n,i),this.getFillerOffset=fs}_insertChild(t,e){if(e&&(e instanceof ia||Array.from(e).length>0))throw new wi("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}function fs(){return null}ds.prototype.is=function(t,e){return e?e===this.name&&("rawElement"===t||"view:rawElement"===t||"element"===t||"view:element"===t):"rawElement"===t||"view:rawElement"===t||t===this.name||t==="view:"+this.name||"element"===t||"view:element"===t||"node"===t||"view:node"===t};class gs extends(Si(ea)){document;_children=[];_customProperties=new Map;constructor(t,e){super(),this.document=t,e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const i=function(t,e){if("string"==typeof e)return[new ra(t,e)];Xi(e)||(e=[e]);return Array.from(e).map((e=>"string"==typeof e?new ra(t,e):e instanceof oa?new ra(t,e.data):e))}(this.document,e);for(const e of i)null!==e.parent&&e._remove(),e.parent=this,this._children.splice(t,0,e),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}_fireChange(t,e){this.fire("change:"+t,e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}gs.prototype.is=function(t){return"documentFragment"===t||"view:documentFragment"===t};class ps{document;_cloneGroups=new Map;_slotFactory=null;constructor(t){this.document=t}setSelection(...t){this.document.selection._setTo(...t)}setSelectionFocus(t,e){this.document.selection._setFocus(t,e)}createDocumentFragment(t){return new gs(this.document,t)}createText(t){return new ra(this.document,t)}createAttributeElement(t,e,n={}){const i=new rs(this.document,t,e);return"number"==typeof n.priority&&(i._priority=n.priority),n.id&&(i._id=n.id),n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createContainerElement(t,e,n={},i={}){let r=null;q(n)?i=n:r=n;const o=new ja(this.document,t,e,r);return i.renderUnsafeAttributes&&o._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),o}createEditableElement(t,e,n={}){const i=new za(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createEmptyElement(t,e,n={}){const i=new ss(this.document,t,e);return n.renderUnsafeAttributes&&i._unsafeAttributesToRender.push(...n.renderUnsafeAttributes),i}createUIElement(t,e,n){const i=new ls(this.document,t,e);return n&&(i.render=n),i}createRawElement(t,e,n,i={}){const r=new ds(this.document,t,e);return n&&(r.render=n),i.renderUnsafeAttributes&&r._unsafeAttributesToRender.push(...i.renderUnsafeAttributes),r}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){q(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}breakAttributes(t){return t instanceof Ua?this._breakAttributes(t):this._breakAttributesRange(t)}breakContainer(t){const e=t.parent;if(!e.is("containerElement"))throw new wi("view-writer-break-non-container-element",this.document);if(!e.parent)throw new wi("view-writer-break-root",this.document);if(t.isAtStart)return Ua._createBefore(e);if(!t.isAtEnd){const n=e._clone(!1);this.insert(Ua._createAfter(e),n);const i=new Ga(t,Ua._createAt(e,"end")),r=new Ua(n,0);this.move(i,r)}return Ua._createAfter(e)}mergeAttributes(t){const e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&0===n.childCount){const t=n.parent,e=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new Ua(t,e))}const i=n.getChild(e-1),r=n.getChild(e);if(!i||!r)return t;if(i.is("$text")&&r.is("$text"))return vs(i,r);if(i.is("attributeElement")&&r.is("attributeElement")&&i.isSimilar(r)){const t=i.childCount;return i._appendChild(r.getChildren()),r._remove(),this._removeFromClonedElementsGroup(r),this.mergeAttributes(new Ua(i,t))}return t}mergeContainers(t){const e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new wi("view-writer-merge-containers-invalid-position",this.document);const i=e.getChild(e.childCount-1),r=i instanceof ra?Ua._createAt(i,"end"):Ua._createAt(e,"end");return this.move(Ga._createIn(n),Ua._createAt(e,"end")),this.remove(Ga._createOn(n)),r}insert(t,e){_s(e=Xi(e)?[...e]:[e],this.document);const n=e.reduce(((t,e)=>{const n=t[t.length-1],i=!e.is("uiElement");return n&&n.breakAttributes==i?n.nodes.push(e):t.push({breakAttributes:i,nodes:[e]}),t}),[]);let i=null,r=t;for(const{nodes:t,breakAttributes:e}of n){const n=this._insertNodes(r,t,e);i||(i=n.start),r=n.end}return i?new Ga(i,r):new Ga(t)}remove(t){const e=t instanceof Ga?t:Ga._createOn(t);if(As(e,this.document),e.isCollapsed)return new gs(this.document);const{start:n,end:i}=this._breakAttributesRange(e,!0),r=n.parent,o=i.offset-n.offset,a=r._removeChildren(n.offset,o);for(const t of a)this._removeFromClonedElementsGroup(t);const s=this.mergeAttributes(n);return e.start=s,e.end=s.clone(),new gs(this.document,a)}clear(t,e){As(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const i of n){const n=i.item;let r;if(n.is("element")&&e.isSimilar(n))r=Ga._createOn(n);else if(!i.nextPosition.isAfter(t.start)&&n.is("$textProxy")){const t=n.getAncestors().find((t=>t.is("element")&&e.isSimilar(t)));t&&(r=Ga._createIn(t))}r&&(r.end.isAfter(t.end)&&(r.end=t.end),r.start.isBefore(t.start)&&(r.start=t.start),this.remove(r))}}move(t,e){let n;if(e.isAfter(t.end)){const i=(e=this._breakAttributes(e,!0)).parent,r=i.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=i.childCount-r}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof rs))throw new wi("view-writer-wrap-invalid-attribute",this.document);if(As(t,this.document),t.isCollapsed){let i=t.start;i.parent.is("element")&&(n=i.parent,!Array.from(n.getChildren()).some((t=>!t.is("uiElement"))))&&(i=i.getLastMatchingPosition((t=>t.item.is("uiElement")))),i=this._wrapPosition(i,e);const r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(t.start)&&this.setSelection(i),new Ga(i)}return this._wrapRange(t,e);var n}unwrap(t,e){if(!(e instanceof rs))throw new wi("view-writer-unwrap-invalid-attribute",this.document);if(As(t,this.document),t.isCollapsed)return t;const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent,o=this._unwrapChildren(r,n.offset,i.offset,e),a=this.mergeAttributes(o.start);a.isEqual(o.start)||o.end.offset--;const s=this.mergeAttributes(o.end);return new Ga(a,s)}rename(t,e){const n=new ja(this.document,t,e.getAttributes());return this.insert(Ua._createAfter(e),n),this.move(Ga._createIn(e),Ua._createAt(n,0)),this.remove(Ga._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return Ua._createAt(t,e)}createPositionAfter(t){return Ua._createAfter(t)}createPositionBefore(t){return Ua._createBefore(t)}createRange(t,e){return new Ga(t,e)}createRangeOn(t){return Ga._createOn(t)}createRangeIn(t){return Ga._createIn(t)}createSelection(...t){return new Ka(...t)}createSlot(t="children"){if(!this._slotFactory)throw new wi("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}_registerSlotFactory(t){this._slotFactory=t}_clearSlotFactory(){this._slotFactory=null}_insertNodes(t,e,n){let i,r;if(i=n?ms(t):t.parent.is("$text")?t.parent.parent:t.parent,!i)throw new wi("view-writer-invalid-position-container",this.document);r=n?this._breakAttributes(t,!0):t.parent.is("$text")?ks(t):t;const o=i._insertChild(r.offset,e);for(const t of e)this._addToClonedElementsGroup(t);const a=r.getShiftedBy(o),s=this.mergeAttributes(r);s.isEqual(r)||a.offset--;const c=this.mergeAttributes(a);return new Ga(s,c)}_wrapChildren(t,e,n,i){let r=e;const o=[];for(;r<n;){const e=t.getChild(r),n=e.is("$text"),a=e.is("attributeElement");if(a&&this._wrapAttributeElement(i,e))o.push(new Ua(t,r));else if(n||!a||bs(i,e)){const n=i._clone();e._remove(),n._appendChild(e),t._insertChild(r,n),this._addToClonedElementsGroup(n),o.push(new Ua(t,r))}else this._wrapChildren(e,0,e.childCount,i);r++}let a=0;for(const t of o){if(t.offset-=a,t.offset==e)continue;this.mergeAttributes(t).isEqual(t)||(a++,n--)}return Ga._createFromParentsAndOffsets(t,e,t,n)}_unwrapChildren(t,e,n,i){let r=e;const o=[];for(;r<n;){const e=t.getChild(r);if(e.is("attributeElement"))if(e.isSimilar(i)){const i=e.getChildren(),a=e.childCount;e._remove(),t._insertChild(r,i),this._removeFromClonedElementsGroup(e),o.push(new Ua(t,r),new Ua(t,r+a)),r+=a,n+=a-1}else this._unwrapAttributeElement(i,e)?(o.push(new Ua(t,r),new Ua(t,r+1)),r++):(this._unwrapChildren(e,0,e.childCount,i),r++);else r++}let a=0;for(const t of o){if(t.offset-=a,t.offset==e||t.offset==n)continue;this.mergeAttributes(t).isEqual(t)||(a++,n--)}return Ga._createFromParentsAndOffsets(t,e,t,n)}_wrapRange(t,e){const{start:n,end:i}=this._breakAttributesRange(t,!0),r=n.parent,o=this._wrapChildren(r,n.offset,i.offset,e),a=this.mergeAttributes(o.start);a.isEqual(o.start)||o.end.offset--;const s=this.mergeAttributes(o.end);return new Ga(a,s)}_wrapPosition(t,e){if(e.isSimilar(t.parent))return ws(t.clone());t.parent.is("$text")&&(t=ks(t));const n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=()=>!1,t.parent._insertChild(t.offset,n);const i=new Ga(t,t.getShiftedBy(1));this.wrap(i,e);const r=new Ua(n.parent,n.index);n._remove();const o=r.nodeBefore,a=r.nodeAfter;return o instanceof ra&&a instanceof ra?vs(o,a):ws(r)}_wrapAttributeElement(t,e){if(!xs(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!xs(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,i=t.end;if(As(t,this.document),t.isCollapsed){const n=this._breakAttributes(t.start,e);return new Ga(n,n)}const r=this._breakAttributes(i,e),o=r.parent.childCount,a=this._breakAttributes(n,e);return r.offset+=r.parent.childCount-o,new Ga(a,r)}_breakAttributes(t,e=!1){const n=t.offset,i=t.parent;if(t.parent.is("emptyElement"))throw new wi("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new wi("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new wi("view-writer-cannot-break-raw-element",this.document);if(!e&&i.is("$text")&&Cs(i.parent))return t.clone();if(Cs(i))return t.clone();if(i.is("$text"))return this._breakAttributes(ks(t),e);if(n==i.childCount){const t=new Ua(i.parent,i.index+1);return this._breakAttributes(t,e)}if(0===n){const t=new Ua(i.parent,i.index);return this._breakAttributes(t,e)}{const t=i.index+1,r=i._clone();i.parent._insertChild(t,r),this._addToClonedElementsGroup(r);const o=i.childCount-n,a=i._removeChildren(n,o);r._appendChild(a);const s=new Ua(i.parent,t);return this._breakAttributes(s,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const e of t.getChildren())this._addToClonedElementsGroup(e);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const e of t.getChildren())this._removeFromClonedElementsGroup(e);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function ms(t){let e=t.parent;for(;!Cs(e);){if(!e)return;e=e.parent}return e}function bs(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity()}function ws(t){const e=t.nodeBefore;if(e&&e.is("$text"))return new Ua(e,e.data.length);const n=t.nodeAfter;return n&&n.is("$text")?new Ua(n,0):t}function ks(t){if(t.offset==t.parent.data.length)return new Ua(t.parent.parent,t.parent.index+1);if(0===t.offset)return new Ua(t.parent.parent,t.parent.index);const e=t.parent.data.slice(t.offset);return t.parent._data=t.parent.data.slice(0,t.offset),t.parent.parent._insertChild(t.parent.index+1,new ra(t.root.document,e)),new Ua(t.parent.parent,t.parent.index+1)}function vs(t,e){const n=t.data.length;return t._data+=e.data,e._remove(),new Ua(t,n)}const ys=[ra,rs,ja,ss,ds,ls];function _s(t,e){for(const n of t){if(!ys.some((t=>n instanceof t)))throw new wi("view-writer-insert-invalid-node-type",e);n.is("$text")||_s(n.getChildren(),e)}}function Cs(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function As(t,e){const n=ms(t.start),i=ms(t.end);if(!n||!i||n!==i)throw new wi("view-writer-invalid-range-container",e)}function xs(t,e){return null===t.id&&null===e.id}const Es=t=>t.createTextNode(" "),Ts=t=>{const e=t.createElement("span");return e.dataset.ckeFiller="true",e.innerText=" ",e},Ss=t=>{const e=t.createElement("br");return e.dataset.ckeFiller="true",e},Ds="".repeat(7);function Is(t){return"string"==typeof t?t.substr(0,7)===Ds:dr(t)&&t.data.substr(0,7)===Ds}function Bs(t){return 7==t.data.length&&Is(t)}function Ms(t){const e="string"==typeof t?t:t.data;return Is(t)?e.slice(7):e}function Ps(t,e){if(e.keyCode==Gr.arrowleft){const t=e.domTarget.ownerDocument.defaultView.getSelection();if(1==t.rangeCount&&t.getRangeAt(0).collapsed){const e=t.getRangeAt(0).startContainer,n=t.getRangeAt(0).startOffset;Is(e)&&n<=7&&t.collapse(e,0)}}}var Ls=n(8264),Os={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Ls.A,Os);Ls.A.locals;class Ns extends(Vi()){domDocuments=new Set;domConverter;markedAttributes=new Set;markedChildren=new Set;markedTexts=new Set;selection;_inlineFiller=null;_fakeSelectionContainer=null;constructor(t,e){super(),this.domConverter=t,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),Jn.isBlink&&!Jn.isAndroid&&this.on("change:isSelecting",(()=>{this.isSelecting||this.render()}))}markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t){throw new wi("view-renderer-unknown-type",this)}this.markedChildren.add(e)}}}render(){if(this.isComposing&&!Jn.isAndroid)return;let t=null;const e=!(Jn.isBlink&&!Jn.isAndroid)||!this.isSelecting;for(const t of this.markedChildren)this._updateChildrenMappings(t);e?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller),t&&t.parent.is("$text")&&(t=Ua._createBefore(t.parent)));for(const t of this.markedAttributes)this._updateAttrs(t);for(const e of this.markedChildren)this._updateChildren(e,{inlineFillerPosition:t});for(const e of this.markedTexts)!this.markedChildren.has(e.parent)&&this.domConverter.mapViewToDom(e.parent)&&this._updateText(e,{inlineFillerPosition:t});if(e)if(t){const e=this.domConverter.viewPositionToDom(t),n=e.parent.ownerDocument;Is(e.parent)?this._inlineFiller=e.parent:this._inlineFiller=Rs(n,e.parent,e.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.childNodes),i=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),r=this._diffNodeLists(n,i),o=this._findUpdateActions(r,n,i,Fs);if(-1!==o.indexOf("update")){const e={equal:0,insert:0,delete:0};for(const r of o)if("update"===r){const r=e.equal+e.insert,o=e.equal+e.delete,a=t.getChild(r);!a||a.is("uiElement")||a.is("rawElement")||this._updateElementMappings(a,n[o]),Mr(i[r]),e.equal++}else e[r]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?Ua._createBefore(t.parent):t}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&dr(e.parent)&&Is(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!Is(t))throw new wi("view-renderer-filler-was-lost",this);Bs(t)?t.remove():t.data=t.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;const e=t.findAncestor((t=>t.hasAttribute("contenteditable")));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;const i=t.nodeBefore,r=t.nodeAfter;return!(i instanceof ra||r instanceof ra)&&(!!(n!==e.getFillerOffset()||i&&i.is("element","br"))&&(!Jn.isAndroid||!i&&!r))}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let i=this.domConverter.viewToDom(t).data;const r=e.inlineFillerPosition;r&&r.parent==t.parent&&r.offset==t.index&&(i=Ds+i),this._updateTextNode(n,i)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(e){for(const n of e.attributes){const i=n.name;t.hasAttribute(i)||this.domConverter.removeDomElementAttribute(e,i)}for(const n of t.getAttributeKeys())this.domConverter.setDomElementAttribute(e,n,t.getAttribute(n),t)}}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(Jn.isAndroid){let t=null;for(const e of Array.from(n.childNodes)){if(t&&dr(t)&&dr(e)){n.normalize();break}t=e}}const i=e.inlineFillerPosition,r=n.childNodes,o=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));i&&i.parent===t&&Rs(n.ownerDocument,o,i.offset);const a=this._diffNodeLists(r,o),s=this._findUpdateActions(a,r,o,js);let c=0;const l=new Set;for(const t of s)"delete"===t?(l.add(r[c]),Mr(r[c])):"equal"!==t&&"update"!==t||c++;c=0;for(const t of s)"insert"===t?(xr(n,c,o[c]),c++):"update"===t?(this._updateTextNode(r[c],o[c].data),c++):"equal"===t&&(this._markDescendantTextToSync(this.domConverter.domToView(o[c])),c++);for(const t of l)t.parentNode||this.domConverter.unbindDomElement(t)}_diffNodeLists(t,e){return hi(t=function(t,e){const n=Array.from(t);if(0==n.length||!e)return n;n[n.length-1]==e&&n.pop();return n}(t,this._fakeSelectionContainer),e,$s.bind(null,this.domConverter))}_findUpdateActions(t,e,n,i){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let r=[],o=[],a=[];const s={equal:0,insert:0,delete:0};for(const c of t)"insert"===c?a.push(n[s.equal+s.insert]):"delete"===c?o.push(e[s.equal+s.delete]):(r=r.concat(hi(o,a,i).map((t=>"equal"===t?"update":t))),r.push("equal"),o=[],a=[]),s[c]++;return r.concat(hi(o,a,i).map((t=>"equal"===t?"update":t)))}_updateTextNode(t,e){const n=t.data;n!=e&&(Jn.isAndroid&&this.isComposing&&n.replace(/\u00A0/g," ")==e.replace(/\u00A0/g," ")||this._updateTextNodeInternal(t,e))}_updateTextNodeInternal(t,e){const n=ci(t.data,e);for(const e of n)"insert"===e.type?t.insertData(e.index,e.values.join("")):t.deleteData(e.index,e.howMany)}_markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(Jn.isBlink&&!Jn.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(t)):this.isComposing&&Jn.isAndroid||this._updateDomSelection(t))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){const e=t.createElement("div");return e.className="ck-fake-selection-container",Object.assign(e.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),e.textContent=" ",e}(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";const i=e.getSelection(),r=e.createRange();i.removeAllRanges(),r.selectNodeContents(n),i.addRange(r)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.setBaseAndExtent(n.parent,n.offset,i.parent,i.offset),Jn.isGecko&&function(t,e){let n=t.parent,i=t.offset;dr(n)&&Bs(n)&&(i=Ar(n)+1,n=n.parentNode);if(n.nodeType!=Node.ELEMENT_NODE||i!=n.childNodes.length-1)return;const r=n.childNodes[i];r&&"BR"==r.tagName&&e.addRange(e.getRangeAt(0))}(i,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return(!e||!this.selection.isEqual(e))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||(n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel)}_removeDomSelection(){for(const t of this.domDocuments){const e=t.getSelection();if(e.rangeCount){const n=t.activeElement,i=this.domConverter.mapDomToView(n);n&&i&&e.removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function Rs(t,e,n){const i=e instanceof Array?e:e.childNodes,r=i[n];if(dr(r))return r.data=Ds+r.data,r;{const r=t.createTextNode(Ds);return Array.isArray(e)?i.splice(n,0,r):xr(e,n,r),r}}function Fs(t,e){return nr(t)&&nr(e)&&!dr(t)&&!dr(e)&&!Er(t)&&!Er(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function js(t,e){return nr(t)&&nr(e)&&dr(t)&&dr(e)}function $s(t,e,n){return e===n||(dr(e)&&dr(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}const zs=Ss(Xn.document),Vs=Es(Xn.document),Hs=Ts(Xn.document),qs="data-ck-unsafe-attribute-",Us="data-ck-unsafe-element";class Gs{document;renderingMode;blockFillerMode;preElements;blockElements;inlineObjectElements;unsafeElements;_domDocument;_domToViewMapping=new WeakMap;_viewToDomMapping=new WeakMap;_fakeSelectionMapping=new WeakMap;_rawContentElementMatcher=new aa;_inlineObjectElementMatcher=new aa;_elementsWithTemporaryCustomProperties=new Set;constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this.document=t,this.renderingMode=n,this.blockFillerMode=e||("editing"===n?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Xn.document:Xn.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new Ka(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const e of t.children)this.unbindDomElement(e)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return"data"===this.renderingMode||!(t=t.toLowerCase()).startsWith("on")&&(("srcdoc"!==t||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===t||"srcset"===t)||("source"===n&&"srcset"===t||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))))}setContentOf(t,e){if("data"===this.renderingMode)return void(t.innerHTML=e);const n=(new DOMParser).parseFromString(e,"text/html"),i=n.createDocumentFragment(),r=n.body.childNodes;for(;r.length>0;)i.appendChild(r[0]);const o=n.createTreeWalker(i,NodeFilter.SHOW_ELEMENT),a=[];let s;for(;s=o.nextNode();)a.push(s);for(const t of a){for(const e of t.getAttributeNames())this.setDomElementAttribute(t,e,t.getAttribute(e));const e=t.tagName.toLowerCase();this._shouldRenameElement(e)&&(Ys(e),t.replaceWith(this._createReplacementDomElement(e,t)))}for(;t.firstChild;)t.firstChild.remove();t.append(i)}viewToDom(t,e={}){if(t.is("$text")){const e=this._processDataFromViewText(t);return this._domDocument.createTextNode(e)}{const n=t;if(this.mapViewToDom(n)){if(!n.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(n);this._elementsWithTemporaryCustomProperties.add(n)}let i;if(n.is("documentFragment"))i=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(i,n);else{if(n.is("uiElement"))return i="$comment"===n.name?this._domDocument.createComment(n.getCustomProperty("$rawContent")):n.render(this._domDocument,this),e.bind&&this.bindElements(i,n),i;this._shouldRenameElement(n.name)?(Ys(n.name),i=this._createReplacementDomElement(n.name)):i=n.hasAttribute("xmlns")?this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):this._domDocument.createElement(n.name),n.is("rawElement")&&n.render(i,this),e.bind&&this.bindElements(i,n);for(const t of n.getAttributeKeys())this.setDomElementAttribute(i,t,n.getAttribute(t),n)}if(!1!==e.withChildren)for(const t of this.viewChildrenToDom(n,e))i instanceof HTMLTemplateElement?i.content.appendChild(t):i.appendChild(t);return i}}setDomElementAttribute(t,e,n,i){const r=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||i&&i.shouldRenderUnsafeAttribute(e);r||ki("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),Tr(e)?(t.hasAttribute(e)&&!r?t.removeAttribute(e):t.hasAttribute(qs+e)&&r&&t.removeAttribute(qs+e),t.setAttribute(r?e:qs+e,n)):ki("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n})}removeDomElementAttribute(t,e){e!=Us&&(t.removeAttribute(e),t.removeAttribute(qs+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let i=0;for(const r of t.getChildren()){n===i&&(yield this._getBlockFiller());const t=r.is("element")&&!!r.getCustomProperty("dataPipeline:transparentRendering")&&!xo(r.getAttributes());if(t&&"data"==this.renderingMode)if(r.is("rawElement")){const t=this._domDocument.createElement(r.name);r.render(t,this),yield*[...t.childNodes]}else yield*this.viewChildrenToDom(r,e);else t&&ki("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:r}),yield this.viewToDom(r,e);i++}n===i&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),i=this._domDocument.createRange();return i.setStart(e.parent,e.offset),i.setEnd(n.parent,n.offset),i}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let i=t.offset;return Is(n)&&(i+=7),{parent:n,offset:i}}{let n,i,r;if(0===t.offset){if(n=this.mapViewToDom(e),!n)return null;r=n.childNodes[0]}else{const e=t.nodeBefore;if(i=e.is("$text")?this.findCorrespondingDomText(e):this.mapViewToDom(e),!i)return null;n=i.parentNode,r=i.nextSibling}if(dr(r)&&Is(r))return{parent:r,offset:7};return{parent:n,offset:i?Ar(i)+1:0}}}domToView(t,e={}){const n=[],i=this._domToView(t,e,n),r=i.next().value;return r?(i.next(),this._processDomInlineNodes(null,n,e),r.is("$text")&&0==r.data.length?null:r):null}*domChildrenToView(t,e={},n=[]){let i=[];i=t instanceof HTMLTemplateElement?[...t.content.childNodes]:[...t.childNodes];for(let r=0;r<i.length;r++){const o=i[r],a=this._domToView(o,e,n),s=a.next().value;null!==s&&(this._isBlockViewElement(s)&&this._processDomInlineNodes(t,n,e),yield s,a.next())}this._processDomInlineNodes(t,n,e)}domSelectionToView(t){if(function(t){if(!Jn.isGecko)return!1;if(!t.rangeCount)return!1;const e=t.getRangeAt(0).startContainer;try{Object.prototype.toString.call(e)}catch(t){return!0}return!1}(t))return new Ka([]);if(1===t.rangeCount){let e=t.getRangeAt(0).startContainer;dr(e)&&(e=e.parentNode);const n=this.fakeSelectionToView(e);if(n)return n}const e=this.isDomSelectionBackward(t),n=[];for(let e=0;e<t.rangeCount;e++){const i=t.getRangeAt(e),r=this.domRangeToView(i);r&&n.push(r)}return new Ka(n,{backward:e})}domRangeToView(t){const e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new Ga(e,n):null}domPositionToView(t,e=0){if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,Ar(t));const n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return Ua._createBefore(n);if(dr(t)){if(Bs(t))return this.domPositionToView(t.parentNode,Ar(t));const n=this.findCorrespondingViewText(t);let i=e;return n?(Is(t)&&(i-=7,i=i<0?0:i),new Ua(n,i)):null}if(0===e){const e=this.mapDomToView(t);if(e)return new Ua(e,0)}else{const n=t.childNodes[e-1];if(dr(n)&&Bs(n)||n&&this.isBlockFiller(n))return this.domPositionToView(n.parentNode,Ar(n));const i=dr(n)?this.findCorrespondingViewText(n):this.mapDomToView(n);if(i&&i.parent)return new Ua(i.parent,i.index+1)}return null}mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}findCorrespondingViewText(t){if(Bs(t))return null;const e=this.getHostViewElement(t);if(e)return e;const n=t.previousSibling;if(n){if(!this.isElement(n))return null;const t=this.mapDomToView(n);if(t){const e=t.nextSibling;return e instanceof ra?e:null}}else{const e=this.mapDomToView(t.parentNode);if(e){const t=e.getChild(0);return t instanceof ra?t:null}}return null}mapViewToDom(t){return this._viewToDomMapping.get(t)}findCorrespondingDomText(t){const e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null}focus(t){const e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){const{scrollX:t,scrollY:n}=Xn.window,i=[];Ws(e,(t=>{const{scrollLeft:e,scrollTop:n}=t;i.push([e,n])})),e.focus(),Ws(e,(t=>{const[e,n]=i.shift();t.scrollLeft=e,t.scrollTop=n})),Xn.window.scrollTo(t,n)}}_clearDomSelection(){const t=this.mapViewToDom(this.document.selection.editableElement);if(!t)return;const e=t.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(e);n&&n.rangeCount>0&&e.removeAllRanges()}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(t){return"br"==this.blockFillerMode?t.isEqualNode(zs):!("BR"!==t.tagName||!Ks(t,this.blockElements)||1!==t.parentNode.childNodes.length)||(t.isEqualNode(Hs)||function(t,e){const n=t.isEqualNode(Vs);return n&&Ks(t,e)&&1===t.parentNode.childNodes.length}(t,this.blockElements))}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset)}catch(t){return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=cr(t);for(e.pop();e.length;){const t=e.pop(),n=this._domToViewMapping.get(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return n}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}registerInlineObjectMatcher(t){this._inlineObjectElementMatcher.add(t)}_clearTemporaryCustomProperties(){for(const t of this._elementsWithTemporaryCustomProperties)t._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Es(this._domDocument);case"markedNbsp":return Ts(this._domDocument);case"br":return Ss(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(dr(t)&&Is(t)&&e<7)return!1;if(this.isElement(t)&&Is(t.childNodes[e]))return!1;const n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement")}*_domToView(t,e,n){if(this.isBlockFiller(t))return null;const i=this.getHostViewElement(t);if(i)return i;if(Er(t)&&e.skipComments)return null;if(dr(t)){if(Bs(t))return null;{const e=t.data;if(""===e)return null;const i=new ra(this.document,e);return n.push(i),i}}{let i=this.mapDomToView(t);if(i)return this._isInlineObjectElement(i)&&n.push(i),i;if(this.isDocumentFragment(t))i=new gs(this.document),e.bind&&this.bindDocumentFragments(t,i);else{i=this._createViewElement(t,e),e.bind&&this.bindElements(t,i);const r=t.attributes;if(r)for(let t=r.length,e=0;e<t;e++)i._setAttribute(r[e].name,r[e].value);if(this._isViewElementWithRawContent(i,e))return i._setCustomProperty("$rawContent",t.innerHTML),this._isBlockViewElement(i)||n.push(i),i;if(Er(t))return i._setCustomProperty("$rawContent",t.data),i}yield i;const r=[];if(!1!==e.withChildren)for(const n of this.domChildrenToView(t,e,r))i._appendChild(n);if(this._isInlineObjectElement(i))n.push(i);else for(const t of r)n.push(t)}}_processDomInlineNodes(t,e,n){if(!e.length)return;if(t&&!this.isDocumentFragment(t)&&!this._isBlockDomElement(t))return;let i=!1;for(let t=0;t<e.length;t++){const r=e[t];if(!r.is("$text")){i=!1;continue}let o,a=!1;if(this._isPreFormatted(r))o=Ms(r.data);else{o=r.data.replace(/[ \n\t\r]{1,}/g," "),a=/[^\S\u00A0]/.test(o.charAt(o.length-1));const s=t>0?e[t-1]:null,c=t+1<e.length?e[t+1]:null,l=!s||s.is("element")&&"br"==s.name||i,u=!c&&!Is(r.data);!1!==n.withChildren&&(l&&(o=o.replace(/^ /,"")),u&&(o=o.replace(/ $/,""))),o=Ms(o),o=o.replace(/ \u00A0/g," ");const h=c&&c.is("element")&&"br"!=c.name,d=c&&c.is("$text")&&" "==c.data.charAt(0);(/[ \u00A0]\u00A0$/.test(o)||!c||h||d)&&(o=o.replace(/\u00A0$/," ")),(l||s&&s.is("element")&&"br"!=s.name)&&(o=o.replace(/^\u00A0/," "))}0==o.length&&r.parent?(r._remove(),e.splice(t,1),t--):(r._data=o,i=a)}e.length=0}_processDataFromViewText(t){let e=t.data;if(this._isPreFormatted(t))return e;if(" "==e.charAt(0)){const n=this._getTouchingInlineViewNode(t,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(e=" "+e.substr(1))}if(" "==e.charAt(e.length-1)){const n=this._getTouchingInlineViewNode(t,!0),i=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=e.charAt(e.length-2)&&n&&!i||(e=e.substr(0,e.length-1)+" ")}return e.replace(/ {2}/g,"  ")}_nodeEndsWithSpace(t){if(this._isPreFormatted(t))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_isPreFormatted(t){if(function(t,e){return t.getAncestors().some((t=>t.is("element")&&e.includes(t.name)))}(t,this.preElements))return!0;for(const e of t.getAncestors({parentFirst:!0}))if(e.is("element")&&e.hasStyle("white-space")&&"inherit"!==e.getStyle("white-space"))return["pre","pre-wrap","break-spaces"].includes(e.getStyle("white-space"));return!1}_getTouchingInlineViewNode(t,e){const n=new qa({startPosition:e?Ua._createAfter(t):Ua._createBefore(t),direction:e?"forward":"backward"});for(const{item:t}of n){if(t.is("$textProxy"))return t;if(!t.is("element")||!t.getCustomProperty("dataPipeline:transparentRendering")){if(t.is("element","br"))return null;if(this._isInlineObjectElement(t))return t;if(t.is("containerElement"))return null}}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return!!t.is("element")&&("br"==t.name||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t))}_createViewElement(t,e){if(Er(t))return new ls(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new Ra(this.document,n)}_isViewElementWithRawContent(t,e){return!1!==e.withChildren&&t.is("element")&&!!this._rawContentElementMatcher.match(t)}_shouldRenameElement(t){const e=t.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(e)}_createReplacementDomElement(t,e){const n=this._domDocument.createElement("span");if(n.setAttribute(Us,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const t of e.getAttributeNames())n.setAttribute(t,e.getAttribute(t))}return n}}function Ws(t,e){let n=t;for(;n;)e(n),n=n.parentElement}function Ks(t,e){const n=t.parentNode;return!!n&&!!n.tagName&&e.includes(n.tagName.toLowerCase())}function Ys(t){"script"===t&&ki("domconverter-unsafe-script-element-detected"),"style"===t&&ki("domconverter-unsafe-style-element-detected")}class Xs extends(or()){view;document;_isEnabled=!1;constructor(t){super(),this.view=t,this.document=t.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const Zs=wo((function(t,e){Yt(e,Pe(e),t)}));class Qs{view;document;domEvent;domTarget;constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,Zs(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Js extends Xs{useCapture=!1;usePassive=!1;observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((e=>{this.listenTo(t,e,((t,e)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(e.target)&&this.onDomEvent(e)}),{useCapture:this.useCapture,usePassive:this.usePassive})}))}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new Qs(this.view,e,n))}}class tc extends Js{domEventType=["keydown","keyup"];onDomEvent(t){const e={keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return Kr(this)}};this.fire(t.type,t,e)}}class ec extends Xs{_fireSelectionChangeDoneDebounced;constructor(t){super(t),this._fireSelectionChangeDoneDebounced=L((t=>{this.document.fire("selectionChangeDone",t)}),200)}observe(){const t=this.document;t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()}),{context:"$capture"}),t.on("arrowKey",((e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)}),{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new Ka(e.getRanges(),{backward:e.isBackward,fake:!1});t!=Gr.arrowleft&&t!=Gr.arrowup||n.setTo(n.getFirstPosition()),t!=Gr.arrowright&&t!=Gr.arrowdown||n.setTo(n.getLastPosition());const i={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}const nc=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const ic=function(t){return this.__data__.has(t)};function rc(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new $t;++e<n;)this.add(t[e])}rc.prototype.add=rc.prototype.push=nc,rc.prototype.has=ic;const oc=rc;const ac=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1};const sc=function(t,e){return t.has(e)};const cc=function(t,e,n,i,r,o){var a=1&n,s=t.length,c=e.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(t),u=o.get(e);if(l&&u)return l==e&&u==t;var h=-1,d=!0,f=2&n?new oc:void 0;for(o.set(t,e),o.set(e,t);++h<s;){var g=t[h],p=e[h];if(i)var m=a?i(p,g,h,e,t,o):i(g,p,h,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!ac(e,(function(t,e){if(!sc(f,e)&&(g===t||r(g,t,n,i,o)))return f.push(e)}))){d=!1;break}}else if(g!==p&&!r(g,p,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d};const lc=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n};const uc=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var hc=p?p.prototype:void 0,dc=hc?hc.valueOf:void 0;const fc=function(t,e,n,i,r,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new wn(t),new wn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return W(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=lc;case"[object Set]":var c=1&i;if(s||(s=uc),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;i|=2,a.set(t,e);var u=cc(s(t),s(e),i,r,o,a);return a.delete(t),u;case"[object Symbol]":if(dc)return dc.call(t)==dc.call(e)}return!1};var gc=Object.prototype.hasOwnProperty;const pc=function(t,e,n,i,r,o){var a=1&n,s=Ze(t),c=s.length;if(c!=Ze(e).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in e:gc.call(e,u)))return!1}var h=o.get(t),d=o.get(e);if(h&&d)return h==e&&d==t;var f=!0;o.set(t,e),o.set(e,t);for(var g=a;++l<c;){var p=t[u=s[l]],m=e[u];if(i)var b=a?i(m,p,u,e,t,o):i(p,m,u,t,e,o);if(!(void 0===b?p===m||r(p,m,n,i,o):b)){f=!1;break}g||(g="constructor"==u)}if(f&&!g){var w=t.constructor,k=e.constructor;w==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(f=!1)}return o.delete(t),o.delete(e),f};var mc="[object Arguments]",bc="[object Array]",wc="[object Object]",kc=Object.prototype.hasOwnProperty;const vc=function(t,e,n,i,r,o){var a=ne(t),s=ne(e),c=a?bc:pn(t),l=s?bc:pn(e),u=(c=c==mc?wc:c)==wc,h=(l=l==mc?wc:l)==wc,d=c==l;if(d&&se(t)){if(!se(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new Ht),a||ke(t)?cc(t,e,n,i,r,o):fc(t,e,c,n,i,r,o);if(!(1&n)){var f=u&&kc.call(t,"__wrapped__"),g=h&&kc.call(e,"__wrapped__");if(f||g){var p=f?t.value():t,m=g?e.value():e;return o||(o=new Ht),r(p,m,n,i,o)}}return!!d&&(o||(o=new Ht),pc(t,e,n,i,r,o))};const yc=function t(e,n,i,r,o){return e===n||(null==e||null==n||!x(e)&&!x(n)?e!=e&&n!=n:vc(e,n,i,r,t,o))};const _c=function(t,e,n){var i=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===i?yc(t,e,void 0,n):!!i};class Cc extends Xs{domConverter;_config;_domElements;_mutationObserver;constructor(t){super(t),this._config={childList:!0,characterData:!0,subtree:!0},this.domConverter=t.domConverter,this._domElements=new Set,this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(t){this._domElements.add(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}stopObserving(t){if(this._domElements.delete(t),this.isEnabled){this._mutationObserver.disconnect();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}}enable(){super.enable();for(const t of this._domElements)this._mutationObserver.observe(t,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(t){if(0===t.length)return;const e=this.domConverter,n=new Set,i=new Set;for(const n of t){const t=e.mapDomToView(n.target);t&&(t.is("uiElement")||t.is("rawElement")||"childList"!==n.type||this._isBogusBrMutation(n)||i.add(t))}for(const r of t){const t=e.mapDomToView(r.target);if((!t||!t.is("uiElement")&&!t.is("rawElement"))&&"characterData"===r.type){const t=e.findCorrespondingViewText(r.target);t&&!i.has(t.parent)?n.add(t):!t&&Is(r.target)&&i.add(e.mapDomToView(r.target.parentNode))}}const r=[];for(const t of n)r.push({type:"text",node:t});for(const t of i){const n=e.mapViewToDom(t),i=Array.from(t.getChildren()),o=Array.from(e.domChildrenToView(n,{withChildren:!1}));_c(i,o,Ac)||r.push({type:"children",node:t})}r.length&&this.document.fire("mutations",{mutations:r})}_isBogusBrMutation(t){let e=null;return null===t.nextSibling&&0===t.removedNodes.length&&1==t.addedNodes.length&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}function Ac(t,e){if(!Array.isArray(t))return t===e||!(!t.is("$text")||!e.is("$text"))&&t.data===e.data}class xc extends Js{_renderTimeoutId=null;_isFocusChanging=!1;domEventType=["focus","blur"];constructor(t){super(t),this.useCapture=!0;const e=this.document;e.on("focus",(()=>this._handleFocus())),e.on("blur",((t,e)=>this._handleBlur(e))),e.on("beforeinput",(()=>{e.isFocused||this._handleFocus()}),{priority:"highest"})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._clearTimeout(),super.destroy()}_handleFocus(){this._clearTimeout(),this._isFocusChanging=!0,this._renderTimeoutId=setTimeout((()=>{this._renderTimeoutId=null,this.flush(),this.view.change((()=>{}))}),50)}_handleBlur(t){const e=this.document.selection.editableElement;null!==e&&e!==t.target||(this.document.isFocused=!1,this._isFocusChanging=!1,this.view.change((()=>{})))}_clearTimeout(){this._renderTimeoutId&&(clearTimeout(this._renderTimeoutId),this._renderTimeoutId=null)}}class Ec extends Xs{mutationObserver;focusObserver;selection;domConverter;_documents;_fireSelectionChangeDoneDebounced;_clearInfiniteLoopInterval;_documentIsSelectingInactivityTimeoutDebounced;_loopbackCounter;constructor(t){super(t),this.mutationObserver=t.getObserver(Cc),this.focusObserver=t.getObserver(xc),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=L((t=>{this.document.fire("selectionChangeDone",t)}),200),this._clearInfiniteLoopInterval=setInterval((()=>this._clearInfiniteLoop()),1e3),this._documentIsSelectingInactivityTimeoutDebounced=L((()=>this.document.isSelecting=!1),5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",(()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",(()=>{this.document.isComposing&&!Jn.isAndroid||(this._handleSelectionChange(e),this._documentIsSelectingInactivityTimeoutDebounced())})),this.listenTo(this.view.document,"compositionstart",(()=>{this._handleSelectionChange(e)}),{priority:"lowest"}),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t){if(!this.isEnabled)return;const e=t.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(e.anchorNode))return;this.mutationObserver.flush();const n=this.domConverter.domSelectionToView(e);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(n)||!this.domConverter.isDomSelectionCorrect(e))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(n))this.view.forceRender();else{const t={oldSelection:this.selection,newSelection:n,domSelection:e};this.document.fire("selectionChange",t),this._fireSelectionChangeDoneDebounced(t)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class Tc extends Js{domEventType=["compositionstart","compositionupdate","compositionend"];constructor(t){super(t);const e=this.document;e.on("compositionstart",(()=>{e.isComposing=!0}),{priority:"low"}),e.on("compositionend",(()=>{e.isComposing=!1}),{priority:"low"})}onDomEvent(t){this.fire(t.type,t,{data:t.data})}}class Sc{_files;_native;constructor(t,e={}){this._files=e.cacheFiles?Dc(t):null,this._native=t}get files(){return this._files||(this._files=Dc(this._native)),this._files}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}setDragImage(t,e,n){this._native.setDragImage(t,e,n)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Dc(t){const e=Array.from(t.files||[]),n=Array.from(t.items||[]);return e.length?e:n.filter((t=>"file"===t.kind)).map((t=>t.getAsFile()))}class Ic extends Js{domEventType="beforeinput";onDomEvent(t){const e=t.getTargetRanges(),n=this.view,i=n.document;let r=null,o=null,a=[];if(t.dataTransfer&&(r=new Sc(t.dataTransfer)),null!==t.data?o=t.data:r&&(o=r.getData("text/plain")),i.selection.isFake)a=Array.from(i.selection.getRanges());else if(e.length)a=e.map((t=>{const e=n.domConverter.domPositionToView(t.startContainer,t.startOffset),i=n.domConverter.domPositionToView(t.endContainer,t.endOffset);return e?n.createRange(e,i):i?n.createRange(i):void 0})).filter((t=>!!t));else if(Jn.isAndroid){const e=t.target.ownerDocument.defaultView.getSelection();a=Array.from(n.domConverter.domSelectionToView(e).getRanges())}if(Jn.isAndroid&&"insertCompositionText"==t.inputType&&o&&o.endsWith("\n"))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(a[0].end)]});else if("insertText"==t.inputType&&o&&o.includes("\n")){const e=o.split(/\n{1,2}/g);let n=a;for(let o=0;o<e.length;o++){const a=e[o];""!=a&&(this.fire(t.type,t,{data:a,dataTransfer:r,targetRanges:n,inputType:t.inputType,isComposing:t.isComposing}),n=[i.selection.getFirstRange()]),o+1<e.length&&(this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:n}),n=[i.selection.getFirstRange()])}}else this.fire(t.type,t,{data:o,dataTransfer:r,targetRanges:a,inputType:t.inputType,isComposing:t.isComposing})}}class Bc extends Xs{constructor(t){super(t),this.document.on("keydown",((t,e)=>{if(this.isEnabled&&((n=e.keyCode)==Gr.arrowright||n==Gr.arrowleft||n==Gr.arrowup||n==Gr.arrowdown)){const n=new Xa(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(n,e),n.stop.called&&t.stop()}var n}))}observe(){}stopObserving(){}}class Mc extends Xs{constructor(t){super(t);const e=this.document;e.on("keydown",((t,n)=>{if(!this.isEnabled||n.keyCode!=Gr.tab||n.ctrlKey)return;const i=new Xa(e,"tab",e.selection.getFirstRange());e.fire(i,n),i.stop.called&&t.stop()}))}observe(){}stopObserving(){}}const Pc=function(t){return zn(t,5)};class Lc extends(Vi()){document;domConverter;domRoots=new Map;_renderer;_initialDomRootAttributes=new WeakMap;_observers=new Map;_writer;_ongoingChange=!1;_postFixersInProgress=!1;_renderingDisabled=!1;_hasChangedSinceTheLastRendering=!1;constructor(t){super(),this.document=new is(t),this.domConverter=new Gs(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Ns(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new ps(this.document),this.addObserver(Cc),this.addObserver(xc),this.addObserver(Ec),this.addObserver(tc),this.addObserver(ec),this.addObserver(Tc),this.addObserver(Bc),this.addObserver(Ic),this.addObserver(Mc),this.document.on("arrowKey",Ps,{priority:"low"}),us(this),this.on("render",(()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(()=>{this._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(()=>{this._hasChangedSinceTheLastRendering=!0})),Jn.isiOS&&this.listenTo(this.document,"blur",((t,e)=>{this.domConverter.mapDomToView(e.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})),this.listenTo(this.document,"mutations",((t,{mutations:e})=>{e.forEach((t=>this._renderer.markToSync(t.type,t.node)))}),{priority:"low"}),this.listenTo(this.document,"mutations",(()=>{this.forceRender()}),{priority:"lowest"})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const i={};for(const{name:e,value:r}of Array.from(t.attributes))i[e]=r,"class"===e?this._writer.addClass(r.split(" "),n):n.hasAttribute(e)||this._writer.setAttribute(e,r,n);this._initialDomRootAttributes.set(t,i);const r=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};r(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",((t,e)=>this._renderer.markToSync("children",e))),n.on("change:attributes",((t,e)=>this._renderer.markToSync("attributes",e))),n.on("change:text",((t,e)=>this._renderer.markToSync("text",e))),n.on("change:isReadOnly",(()=>this.change(r))),n.on("change",(()=>{this._hasChangedSinceTheLastRendering=!0}));for(const n of this._observers.values())n.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach((({name:t})=>e.removeAttribute(t)));const n=this._initialDomRootAttributes.get(e);for(const t in n)e.setAttribute(t,n[t]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e);for(const t of this._observers.values())t.stopObserving(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[t,n]of this.domRoots)e.observe(n,t);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection({alignToTop:t,forceScroll:e,viewportOffset:n=20,ancestorOffset:i=20}={}){const r=this.document.selection.getFirstRange();if(!r)return;const o=Pc({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:i});"number"==typeof n&&(n={top:n,bottom:n,left:n,right:n});const a={target:this.domConverter.viewRangeToDom(r),viewportOffset:n,ancestorOffset:i,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",a,o),Pr(a)}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new wi("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(t){wi.rethrowUnexpectedError(t,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(xc).flush(),this.change((()=>{}))}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return Ua._createAt(t,e)}createPositionAfter(t){return Ua._createAfter(t)}createPositionBefore(t){return Ua._createBefore(t)}createRange(t,e){return new Ga(t,e)}createRangeOn(t){return Ga._createOn(t)}createRangeIn(t){return Ga._createIn(t)}createSelection(...t){return new Ka(...t)}_disableRendering(t){this._renderingDisabled=t,0==t&&this.change((()=>{}))}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Oc{is(){throw new Error("is() method is abstract")}}class Nc extends Oc{parent=null;_attrs;constructor(t){super(),this._attrs=So(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new wi("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new wi("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),i=t.getAncestors(e);let r=0;for(;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),i=Yi(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}isAfter(t){return this!=t&&(this.root===t.root&&!this.isBefore(t))}hasAttribute(t){return this._attrs.has(t)}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}toJSON(){const t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce(((t,e)=>(t[e[0]]=e[1],t)),{})),t}_clone(t){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=So(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}Nc.prototype.is=function(t){return"node"===t||"model:node"===t};class Rc{_nodes=[];constructor(t){t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce(((t,e)=>t+e.offsetSize),0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);if(null===e)return null;let n=0;for(let t=0;t<e;t++)n+=this._nodes[t].offsetSize;return n}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new wi("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t<e+n.offsetSize)return this.getNodeIndex(n);e+=n.offsetSize}if(e!=t)throw new wi("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length}_insertNodes(t,e){for(const t of e)if(!(t instanceof Nc))throw new wi("model-nodelist-insertnodes-not-node",this);this._nodes=function(t,e,n,i){if(Math.max(e.length,t.length)>1e4)return t.slice(0,n).concat(e).concat(t.slice(n+i,t.length));{const r=Array.from(t);return r.splice(n,i,...e),r}}(this._nodes,Array.from(e),t,0)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map((t=>t.toJSON()))}}class Fc extends Nc{_data;constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new Fc(this.data,this.getAttributes())}static fromJSON(t){return new Fc(t.data,t.attributes)}}Fc.prototype.is=function(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t};class jc extends Oc{textNode;data;offsetInText;constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new wi("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new wi("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}jc.prototype.is=function(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t};class $c extends Nc{name;_children=new Rc;constructor(t,e,n){super(e),this.name=t,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map((t=>t._clone(!0))):void 0;return new $c(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Fc(t)];Xi(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Fc(t):t instanceof jc?new Fc(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}static fromJSON(t){let e;if(t.children){e=[];for(const n of t.children)n.name?e.push($c.fromJSON(n)):e.push(Fc.fromJSON(n))}return new $c(t.name,t.attributes,e)}}$c.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t};class zc{direction;boundaries;singleCharacters;shallow;ignoreElementEnd;_position;_boundaryStartParent;_boundaryEndParent;_visitedParent;constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new wi("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new wi("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this._position=t.startPosition.clone():this._position=Hc._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n,i,r;do{i=this.position,r=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this._position=i,this._visitedParent=r)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const i=qc(e,n),r=i||Uc(e,n,i);if(r instanceof $c){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e.path.push(0),this._visitedParent=r;return this._position=e,Vc("elementStart",r,t,e,1)}if(r instanceof Fc){let i;if(this.singleCharacters)i=1;else{let t=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<t&&(t=this.boundaries.end.offset),i=t-e.offset}const o=e.offset-r.startOffset,a=new jc(r,o,i);return e.offset+=i,this._position=e,Vc("text",a,t,e,i)}return e.path.pop(),e.offset++,this._position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Vc("elementEnd",n,t,e)}_previous(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===e.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};const i=e.parent,r=qc(e,i),o=r||Gc(e,i,r);if(o instanceof $c)return e.offset--,this.shallow?(this._position=e,Vc("elementStart",o,t,e,1)):(e.path.push(o.maxOffset),this._position=e,this._visitedParent=o,this.ignoreElementEnd?this._previous():Vc("elementEnd",o,t,e));if(o instanceof Fc){let i;if(this.singleCharacters)i=1;else{let t=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>t&&(t=this.boundaries.start.offset),i=e.offset-t}const r=e.offset-o.startOffset,a=new jc(o,r-i,i);return e.offset-=i,this._position=e,Vc("text",a,t,e,i)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,Vc("elementStart",n,t,e,1)}}function Vc(t,e,n,i,r){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:r}}}class Hc extends Oc{root;path;stickiness;constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new wi("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new wi("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e<this.path.length-1;e++)if(t=t.getChild(t.offsetToIndex(this.path[e])),!t)throw new wi("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new wi("model-position-path-incorrect",this,{position:this});return t}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){return qc(this,this.parent)}get nodeAfter(){const t=this.parent;return Uc(this,t,qc(this,t))}get nodeBefore(){const t=this.parent;return Gc(this,t,qc(this,t))}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(t){if(this.root!=t.root)return"different";const e=Yi(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after"}}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new zc(e);return n.skip(t),n.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){const t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0})}findAncestor(t){const e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null}getCommonPath(t){if(this.root!=t.root)return[];const e=Yi(this.path,t.path),n="string"==typeof e?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n)}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let i=0;for(;e[i]==n[i]&&e[i];)i++;return 0===i?null:e[i-1]}getShiftedBy(t){const e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}isAfter(t){return"after"==this.compareWith(t)}isBefore(t){return"before"==this.compareWith(t)}isEqual(t){return"same"==this.compareWith(t)}isTouching(t){if(this.root!==t.root)return!1;const e=Math.min(this.path.length,t.path.length);for(let n=0;n<e;n++){const e=this.path[n]-t.path[n];if(e<-1||e>1)return!1;if(1===e)return Wc(t,this,n);if(-1===e)return Wc(this,t,n)}return this.path.length===t.path.length||(this.path.length>t.path.length?Kc(this.path,e):Kc(t.path,e))}hasSameParentAs(t){if(this.root!==t.root)return!1;return"same"==Yi(this.getParentPath(),t.getParentPath())}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=Hc._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?Hc._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=Hc._createAt(this);if(this.root!=t.root)return n;if("same"==Yi(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e}}else if("prefix"==Yi(t.getParentPath(),this.getParentPath())){const i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+e>this.path[i])return null;n.path[i]-=e}}return n}_getTransformedByInsertion(t,e){const n=Hc._createAt(this);if(this.root!=t.root)return n;if("same"==Yi(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=e);else if("prefix"==Yi(t.getParentPath(),this.getParentPath())){const i=t.path.length-1;t.offset<=this.path[i]&&(n.path[i]+=e)}return n}_getTransformedByMove(t,e,n){if(e=e._getTransformedByDeletion(t,n),t.isEqual(e))return Hc._createAt(this);const i=this._getTransformedByDeletion(t,n);return null===i||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,e):i._getTransformedByInsertion(e,n)}_getCombined(t,e){const n=t.path.length-1,i=Hc._createAt(e);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[n]-t.offset,i.path=[...i.path,...this.path.slice(n+1)],i}toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}clone(){return new this.constructor(this.root,this.path,this.stickiness)}static _createAt(t,e,n="toNone"){if(t instanceof Hc)return new Hc(t.root,t.path,t.stickiness);{const i=t;if("end"==e)e=i.maxOffset;else{if("before"==e)return this._createBefore(i,n);if("after"==e)return this._createAfter(i,n);if(0!==e&&!e)throw new wi("model-createpositionat-offset-required",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new wi("model-position-parent-incorrect",[this,t]);const r=i.getPath();return r.push(e),new this(i.root,r,n)}}static _createAfter(t,e){if(!t.parent)throw new wi("model-position-after-root",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}static _createBefore(t,e){if(!t.parent)throw new wi("model-position-before-root",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}static fromJSON(t,e){if("$graveyard"===t.root){const n=new Hc(e.graveyard,t.path);return n.stickiness=t.stickiness,n}if(!e.getRoot(t.root))throw new wi("model-position-fromjson-no-root",e,{rootName:t.root});return new Hc(e.getRoot(t.root),t.path,t.stickiness)}}function qc(t,e){const n=e.getChild(e.offsetToIndex(t.offset));return n&&n.is("$text")&&n.startOffset<t.offset?n:null}function Uc(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset))}function Gc(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset)-1)}function Wc(t,e,n){return n+1!==t.path.length&&(!!Kc(e.path,n+1)&&!!function(t,e){let n=t.parent,i=t.path.length-1,r=0;for(;i>=e;){if(t.path[i]+r!==n.maxOffset)return!1;r=1,i--,n=n.parent}return!0}(t,n+1))}function Kc(t,e){for(;e<t.length;){if(0!==t[e])return!1;e++}return!0}Hc.prototype.is=function(t){return"position"===t||"model:position"===t};class Yc extends Oc{start;end;constructor(t,e){super(),this.start=Hc._createAt(t),this.end=e?Hc._createAt(e):Hc._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}*[Symbol.iterator](){yield*new zc({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return"same"==Yi(this.start.getParentPath(),this.end.getParentPath())}get root(){return this.start.root}containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end)}containsRange(t,e=!1){t.isCollapsed&&(e=!1);const n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}containsItem(t){const e=Hc._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}isEqual(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}getDifference(t){const e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Yc(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Yc(t.end,this.end))):e.push(new Yc(this.start,this.end)),e}getIntersection(t){if(this.isIntersecting(t)){let e=this.start,n=this.end;return this.containsPosition(t.start)&&(e=t.start),this.containsPosition(t.end)&&(n=t.end),new Yc(e,n)}return null}getJoined(t,e=!1){let n=this.isIntersecting(t);if(n||(n=this.start.isBefore(t.start)?e?this.end.isTouching(t.start):this.end.isEqual(t.start):e?t.end.isTouching(this.start):t.end.isEqual(this.start)),!n)return null;let i=this.start,r=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(r)&&(r=t.end),new Yc(i,r)}getMinimalFlatRanges(){const t=[],e=this.start.getCommonPath(this.end).length,n=Hc._createAt(this.start);let i=n.parent;for(;n.path.length>e+1;){const e=i.maxOffset-n.offset;0!==e&&t.push(new Yc(n,n.getShiftedBy(e))),n.path=n.path.slice(0,-1),n.offset++,i=i.parent}for(;n.path.length<=this.end.path.length;){const e=this.end.path[n.path.length-1],i=e-n.offset;0!==i&&t.push(new Yc(n,n.getShiftedBy(i))),n.offset=e,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new zc(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new zc(t);for(const t of e)yield t.item}*getPositions(t={}){t.boundaries=this;const e=new zc(t);yield e.position;for(const t of e)yield t.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new Yc(this.start,this.end)]}getTransformedByOperations(t){const e=[new Yc(this.start,this.end)];for(const n of t)for(let t=0;t<e.length;t++){const i=e[t].getTransformedByOperation(n);e.splice(t,1,...i),t+=i.length-1}for(let t=0;t<e.length;t++){const n=e[t];for(let i=t+1;i<e.length;i++){const t=e[i];(n.containsRange(t)||t.containsRange(n)||n.isEqual(t))&&e.splice(i,1)}}return e}getCommonAncestor(){return this.start.getCommonAncestor(this.end)}getContainedElement(){if(this.isCollapsed)return null;const t=this.start.nodeAfter,e=this.end.nodeBefore;return t&&t.is("element")&&t===e?t:null}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}clone(){return new this.constructor(this.start,this.end)}_getTransformedByInsertOperation(t,e=!1){return this._getTransformedByInsertion(t.position,t.howMany,e)}_getTransformedByMoveOperation(t,e=!1){const n=t.sourcePosition,i=t.howMany,r=t.targetPosition;return this._getTransformedByMove(n,r,i,e)}_getTransformedBySplitOperation(t){const e=this.start._getTransformedBySplitOperation(t);let n=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(n=this.end.getShiftedBy(1)),e.root!=n.root&&(n=this.end.getShiftedBy(-1)),new Yc(e,n)}_getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new Yc(this.start);let e=this.start._getTransformedByMergeOperation(t),n=this.end._getTransformedByMergeOperation(t);return e.root!=n.root&&(n=this.end.getShiftedBy(-1)),e.isAfter(n)?(t.sourcePosition.isBefore(t.targetPosition)?(e=Hc._createAt(n),e.offset=0):(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new Yc(e,n)):new Yc(e,n)}_getTransformedByInsertion(t,e,n=!1){if(n&&this.containsPosition(t))return[new Yc(this.start,t),new Yc(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{const n=new Yc(this.start,this.end);return n.start=n.start._getTransformedByInsertion(t,e),n.end=n.end._getTransformedByInsertion(t,e),[n]}}_getTransformedByMove(t,e,n,i=!1){if(this.isCollapsed){const i=this.start._getTransformedByMove(t,e,n);return[new Yc(i)]}const r=Yc._createFromPositionAndShift(t,n),o=e._getTransformedByDeletion(t,n);if(this.containsPosition(e)&&!i&&(r.containsPosition(this.start)||r.containsPosition(this.end))){const i=this.start._getTransformedByMove(t,e,n),r=this.end._getTransformedByMove(t,e,n);return[new Yc(i,r)]}let a;const s=this.getDifference(r);let c=null;const l=this.getIntersection(r);if(1==s.length?c=new Yc(s[0].start._getTransformedByDeletion(t,n),s[0].end._getTransformedByDeletion(t,n)):2==s.length&&(c=new Yc(this.start,this.end._getTransformedByDeletion(t,n))),a=c?c._getTransformedByInsertion(o,n,null!==l||i):[],l){const t=new Yc(l.start._getCombined(r.start,o),l.end._getCombined(r.start,o));2==a.length?a.splice(1,0,t):a.push(t)}return a}_getTransformedByDeletion(t,e){let n=this.start._getTransformedByDeletion(t,e),i=this.end._getTransformedByDeletion(t,e);return null==n&&null==i?null:(null==n&&(n=t),null==i&&(i=t),new Yc(n,i))}static _createFromPositionAndShift(t,e){const n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}static _createIn(t){return new this(Hc._createAt(t,0),Hc._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(Hc._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new wi("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();const e=t[0];t.sort(((t,e)=>t.start.isAfter(e.start)?1:-1));const n=t.indexOf(e),i=new this(e.start,e.end);for(let e=n-1;e>=0&&t[e].end.isEqual(i.start);e--)i.start=Hc._createAt(t[e].start);for(let e=n+1;e<t.length&&t[e].start.isEqual(i.end);e++)i.end=Hc._createAt(t[e].end);return i}static fromJSON(t,e){return new this(Hc.fromJSON(t.start,e),Hc.fromJSON(t.end,e))}}Yc.prototype.is=function(t){return"range"===t||"model:range"===t};class Xc extends(Si()){_modelToViewMapping=new WeakMap;_viewToModelMapping=new WeakMap;_viewToModelLengthCallbacks=new Map;_markerNameToElements=new Map;_elementToMarkerNames=new Map;_deferredBindingRemovals=new Map;_unboundMarkerNames=new Set;constructor(){super(),this.on("modelToViewPosition",((t,e)=>{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new wi("mapping-model-position-view-parent-not-found",this,{modelPosition:e.modelPosition});e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)}),{priority:"low"}),this.on("viewToModelPosition",((t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),i=this._viewToModelMapping.get(n),r=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=Hc._createAt(i,r)}),{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t,e={}){const n=this.toModelElement(t);if(this._elementToMarkerNames.has(t))for(const e of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(e);e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const i=this._elementToMarkerNames.get(t)||new Set;i.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,i)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));const i=this._elementToMarkerNames.get(t);i&&(i.delete(e),0==i.size&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}flushDeferredBindings(){for(const[t,e]of this._deferredBindingRemovals)t.root==e&&this.unbindViewElement(t);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new Yc(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Ga(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const t of e)if(t.is("attributeElement"))for(const e of t.getElementsWithSameId())n.add(e);else n.add(t);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t){return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t)}if(t.is("$text"))return e;let i=0;for(let n=0;n<e;n++)i+=this.getModelLength(t.getChild(n));return i}getModelLength(t){if(this._viewToModelLengthCallbacks.get(t.name)){return this._viewToModelLengthCallbacks.get(t.name)(t)}if(this._viewToModelMapping.has(t))return 1;if(t.is("$text"))return t.data.length;if(t.is("uiElement"))return 0;{let e=0;for(const n of t.getChildren())e+=this.getModelLength(n);return e}}findPositionIn(t,e){let n,i=0,r=0,o=0;if(t.is("$text"))return new Ua(t,e);for(;r<e;)n=t.getChild(o),i=this.getModelLength(n),r+=i,o++;return r==e?this._moveViewPositionToTextNode(new Ua(t,o)):this.findPositionIn(n,e-(r-i))}_moveViewPositionToTextNode(t){const e=t.nodeBefore,n=t.nodeAfter;return e instanceof ra?new Ua(e,e.data.length):n instanceof ra?new Ua(n,0):t}}class Zc{_consumable=new Map;_textProxyRegistry=new Map;add(t,e){e=Qc(e),t instanceof jc&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map),this._consumable.get(t).set(e,!0)}consume(t,e){return e=Qc(e),t instanceof jc&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}test(t,e){e=Qc(e),t instanceof jc&&(t=this._getSymbolForTextProxy(t));const n=this._consumable.get(t);if(void 0===n)return null;const i=n.get(e);return void 0===i?null:i}revert(t,e){e=Qc(e),t instanceof jc&&(t=this._getSymbolForTextProxy(t));const n=this.test(t,e);return!1===n?(this._consumable.get(t).set(e,!0),!0):!0!==n&&null}verifyAllConsumed(t){const e=[];for(const[n,i]of this._consumable)for(const[r,o]of i){const i=r.split(":")[0];o&&t==i&&e.push({event:r,item:n.name||n.description})}if(e.length)throw new wi("conversion-model-consumable-not-consumed",null,{items:e})}_getSymbolForTextProxy(t){let e=null;const n=this._textProxyRegistry.get(t.startOffset);if(n){const i=n.get(t.endOffset);i&&(e=i.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t)),e}_addSymbolForTextProxy(t){const e=t.startOffset,n=t.endOffset,i=t.parent,r=Symbol("$textProxy:"+t.data);let o,a;return o=this._textProxyRegistry.get(e),o||(o=new Map,this._textProxyRegistry.set(e,o)),a=o.get(n),a||(a=new Map,o.set(n,a)),a.set(i,r),r}}function Qc(t){const e=t.split(":");return"insert"==e[0]?e[0]:"addMarker"==e[0]||"removeMarker"==e[0]?t:e.length>1?e[0]+":"+e[1]:e[0]}class Jc extends(Si()){_conversionApi;_firedEventsMap;constructor(t){super(),this._conversionApi={dispatcher:this,...t},this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const i=this._createConversionApi(n,t.getRefreshedItems());for(const e of t.getMarkersToRemove())this._convertMarkerRemove(e.name,e.range,i);const r=this._reduceChanges(t.getChanges());for(const t of r)"insert"===t.type?this._convertInsert(Yc._createFromPositionAndShift(t.position,t.length),i):"reinsert"===t.type?this._convertReinsert(Yc._createFromPositionAndShift(t.position,t.length),i):"remove"===t.type?this._convertRemove(t.position,t.length,t.name,i):this._convertAttribute(t.range,t.attributeKey,t.attributeOldValue,t.attributeNewValue,i);i.mapper.flushDeferredBindings();for(const t of i.mapper.flushUnboundMarkerNames()){const n=e.get(t).getRange();this._convertMarkerRemove(t,n,i),this._convertMarkerAdd(t,n,i)}for(const e of t.getMarkersToAdd())this._convertMarkerAdd(e.name,e.range,i);i.consumable.verifyAllConsumed("insert")}convert(t,e,n,i={}){const r=this._createConversionApi(n,void 0,i);this._convertInsert(t,r);for(const[t,n]of e)this._convertMarkerAdd(t,n,r);r.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const i=this._createConversionApi(n);this.fire("cleanSelection",{selection:t},i);const r=t.getFirstPosition().root;if(!i.mapper.toViewElement(r))return;const o=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this._addConsumablesForSelection(i.consumable,t,o),this.fire("selection",{selection:t},i),t.isCollapsed){for(const e of o)if(i.consumable.test(t,"addMarker:"+e.name)){const n=e.getRange();if(!tl(t.getFirstPosition(),e,i.mapper))continue;const r={item:t,markerName:e.name,markerRange:n};this.fire(`addMarker:${e.name}`,r,i)}for(const e of t.getAttributeKeys())if(i.consumable.test(t,"attribute:"+e)){const n={item:t,range:t.getFirstRange(),attributeKey:e,attributeOldValue:null,attributeNewValue:t.getAttribute(e)};this.fire(`attribute:${e}:$text`,n,i)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,t);for(const n of Array.from(t.getWalker({shallow:!0})).map(el))this._testAndFire("insert",n,e)}_convertRemove(t,e,n,i){this.fire(`remove:${n}`,{position:t,length:e},i)}_convertAttribute(t,e,n,i,r){this._addConsumablesForRange(r.consumable,t,`attribute:${e}`);for(const o of t){const t={item:o.item,range:Yc._createFromPositionAndShift(o.previousPosition,o.length),attributeKey:e,attributeOldValue:n,attributeNewValue:i};this._testAndFire(`attribute:${e}`,t,r)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const t of n.map(el))this._testAndFire("insert",{...t,reconversion:!0},e)}_convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;const i=`addMarker:${t}`;if(n.consumable.add(e,i),this.fire(i,{markerName:t,markerRange:e},n),n.consumable.consume(e,i)){this._addConsumablesForRange(n.consumable,e,i);for(const r of e.getItems()){if(!n.consumable.test(r,i))continue;const o={item:r,range:Yc._createOn(r),markerName:t,markerRange:e};this.fire(i,o,n)}}}_convertMarkerRemove(t,e,n){"$graveyard"!=e.root.rootName&&this.fire(`removeMarker:${t}`,{markerName:t,markerRange:e},n)}_reduceChanges(t){const e={changes:t};return this.fire("reduceChanges",e),e.changes}_addConsumablesForInsert(t,e){for(const n of e){const e=n.item;if(null===t.test(e,"insert")){t.add(e,"insert");for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n)}}return t}_addConsumablesForRange(t,e,n){for(const i of e.getItems())t.add(i,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const i of n)t.add(e,"addMarker:"+i.name);for(const n of e.getAttributeKeys())t.add(e,"attribute:"+n);return t}_testAndFire(t,e,n){const i=function(t,e){const n=e.item.is("element")?e.item.name:"$text";return`${t}:${n}`}(t,e),r=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,o=this._firedEventsMap.get(n),a=o.get(r);if(a){if(a.has(i))return;a.add(i)}else o.set(r,new Set([i]));this.fire(i,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:Yc._createOn(t)};for(const t of n.item.getAttributeKeys())n.attributeKey=t,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(t),this._testAndFire(`attribute:${t}`,n,e)}_createConversionApi(t,e=new Set,n={}){const i={...this._conversionApi,consumable:new Zc,writer:t,options:n,convertItem:t=>this._convertInsert(Yc._createOn(t),i),convertChildren:t=>this._convertInsert(Yc._createIn(t),i,{doNotAddConsumables:!0}),convertAttributes:t=>this._testAndFireAddAttributes(t,i),canReuseView:t=>!e.has(i.mapper.toModelElement(t))};return this._firedEventsMap.set(i,new Map),i}}function tl(t,e,n){const i=e.getRange(),r=Array.from(t.getAncestors());r.shift(),r.reverse();return!r.some((t=>{if(i.containsItem(t)){return!!n.toViewElement(t).getCustomProperty("addHighlight")}}))}function el(t){return{item:t.item,range:Yc._createFromPositionAndShift(t.previousPosition,t.length)}}class nl extends(Si(Oc)){_lastRangeBackward=!1;_attrs=new Map;_ranges=[];constructor(...t){super(),t.length&&this.setTo(...t)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const i of t._ranges)if(e.isEqual(i)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new Yc(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new Yc(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new Yc(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(...t){let[e,n,i]=t;if("object"==typeof n&&(i=n,n=void 0),null===e)this._setRanges([]);else if(e instanceof nl)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof Yc)this._setRanges([e],!!i&&!!i.backward);else if(e instanceof Hc)this._setRanges([new Yc(e)]);else if(e instanceof Nc){const t=!!i&&!!i.backward;let r;if("in"==n)r=Yc._createIn(e);else if("on"==n)r=Yc._createOn(e);else{if(void 0===n)throw new wi("model-selection-setto-required-second-parameter",[this,e]);r=new Yc(Hc._createAt(e,n))}this._setRanges([r],t)}else{if(!Xi(e))throw new wi("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,i&&!!i.backward)}}_setRanges(t,e=!1){const n=Array.from(t),i=n.some((e=>{if(!(e instanceof Yc))throw new wi("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every((t=>!t.isEqual(e)))}));(n.length!==this._ranges.length||i)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}))}setFocus(t,e){if(null===this.anchor)throw new wi("model-selection-setfocus-no-ranges",[this,t]);const n=Hc._createAt(t,e);if("same"==n.compareWith(this.focus))return;const i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new Yc(n,i)),this._lastRangeBackward=!0):(this._pushRange(new Yc(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=ol(e.start,t);sl(n,e)&&(yield n);for(const n of e.getWalker()){const i=n.item;"elementEnd"==n.type&&rl(i,t,e)&&(yield i)}const i=ol(e.end,t);cl(i,e)&&(yield i)}}containsEntireContent(t=this.anchor.root){const e=Hc._createAt(t,0),n=Hc._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new Yc(t.start,t.end))}_checkRange(t){for(let e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new wi("model-selection-range-intersects",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}_replaceAllRanges(t){this._removeAllRanges();for(const e of t)this._pushRange(e)}_removeAllRanges(){for(;this._ranges.length>0;)this._popRange()}_popRange(){this._ranges.pop()}}function il(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&!!t.parent)}function rl(t,e,n){return il(t,e)&&al(t,n)}function ol(t,e){const n=t.parent.root.document.model.schema,i=t.parent.getAncestors({parentFirst:!0,includeSelf:!0});let r=!1;const o=i.find((t=>!r&&(r=n.isLimit(t),!r&&il(t,e))));return i.forEach((t=>e.add(t))),o}function al(t,e){const n=function(t){const e=t.root.document.model.schema;let n=t.parent;for(;n;){if(e.isBlock(n))return n;n=n.parent}}(t);if(!n)return!0;return!e.containsRange(Yc._createOn(n),!0)}function sl(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.start.isTouching(Hc._createAt(t,t.maxOffset))&&al(t,e))}function cl(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.end.isTouching(Hc._createAt(t,0))&&al(t,e))}nl.prototype.is=function(t){return"selection"===t||"model:selection"===t};class ll extends(Si(Yc)){constructor(t,e){super(t,e),ul.call(this)}detach(){this.stopListening()}toRange(){return new Yc(this.start,this.end)}static fromRange(t){return new ll(t.start,t.end)}}function ul(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&hl.call(this,n)}),{priority:"low"})}function hl(t){const e=this.getTransformedByOperation(t),n=Yc._createFromRanges(e),i=!n.isEqual(this),r=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t);let o=null;if(i){"$graveyard"==n.root.rootName&&(o="remove"==t.type?t.sourcePosition:t.deletionPosition);const e=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",e,{deletionPosition:o})}else r&&this.fire("change:content",this.toRange(),{deletionPosition:o})}ll.prototype.is=function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t};const dl="selection:";class fl extends(Si(Oc)){_selection;constructor(t){super(),this._selection=new gl(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(...t){this._selection.setTo(...t)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return dl+t}static _isStoreAttributeKey(t){return t.startsWith(dl)}}fl.prototype.is=function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t};class gl extends nl{markers=new Ao({idProperty:"name"});_model;_document;_attributePriority=new Map;_selectionRestorePosition=null;_hasChangedRange=!1;_overriddenGravityRegister=new Set;_observedMarkers=new Set;constructor(t){super(),this._model=t.model,this._document=t,this.listenTo(this._model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),this.on("change:range",(()=>{this._validateSelectionRanges(this.getRanges())})),this.listenTo(this._model.markers,"update",((t,e,n,i)=>{this._updateMarker(e,i)})),this.listenTo(this._document,"change",((t,e)=>{!function(t,e){const n=t.document.differ;for(const i of n.getChanges()){if("insert"!=i.type)continue;const n=i.position.parent;i.length===n.maxOffset&&t.enqueueChange(e,(t=>{const e=Array.from(n.getAttributeKeys()).filter((t=>t.startsWith(dl)));for(const i of e)t.removeAttribute(i,n)}))}}(this._model,e)}))}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}setTo(...t){super.setTo(...t),this._updateAttributes(!0),this.updateMarkers()}setFocus(t,e){super.setFocus(t,e),this._updateAttributes(!0),this.updateMarkers()}setAttribute(t,e){if(this._setAttribute(t,e)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}removeAttribute(t){if(this._removeAttribute(t)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}overrideGravity(){const t=pi();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new wi("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(t){this._observedMarkers.add(t),this.updateMarkers()}_replaceAllRanges(t){this._validateSelectionRanges(t),super._replaceAllRanges(t)}_popRange(){this._ranges.pop().detach()}_pushRange(t){const e=this._prepareRange(t);e&&this._ranges.push(e)}_validateSelectionRanges(t){for(const e of t)if(!this._document._validateSelectionRange(e))throw new wi("document-selection-wrong-position",this,{range:e})}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=ll.fromRange(t);return e.on("change:range",((t,n,i)=>{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=i.deletionPosition;const t=this._ranges.indexOf(e);this._ranges.splice(t,1),e.detach()}})),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const e of this._model.markers){const n=e.name.split(":",1)[0];if(!this._observedMarkers.has(n))continue;const i=e.getRange();for(const n of this.getRanges())i.containsRange(n,!n.isCollapsed)&&t.push(e)}const n=Array.from(this.markers);for(const n of t)this.markers.has(n)||(this.markers.add(n),e=!0);for(const n of Array.from(this.markers))t.includes(n)||(this.markers.remove(n),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let i=!1;const r=Array.from(this.markers),o=this.markers.has(t);if(e){let n=!1;for(const t of this.getRanges())if(e.containsRange(t,!t.isCollapsed)){n=!0;break}n&&!o?(this.markers.add(t),i=!0):!n&&o&&(this.markers.remove(t),i=!0)}else o&&(this.markers.remove(t),i=!0);i&&this.fire("change:marker",{oldMarkers:r,directChange:!1})}_updateAttributes(t){const e=So(this._getSurroundingAttributes()),n=So(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[t,e]of this._attributePriority)"low"==e&&(this._attrs.delete(t),this._attributePriority.delete(t));this._setAttributesTo(e);const i=[];for(const[t,e]of this.getAttributes())n.has(t)&&n.get(t)===e||i.push(t);for(const[t]of n)this.hasAttribute(t)||i.push(t);i.length>0&&this.fire("change:attribute",{attributeKeys:i,directChange:!1})}_setAttribute(t,e,n=!0){const i=n?"normal":"low";if("low"==i&&"normal"==this._attributePriority.get(t))return!1;return super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,i),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(t))&&(this._attributePriority.set(t,n),!!super.hasAttribute(t)&&(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[e,n]of this.getAttributes())t.get(e)!==n&&this._removeAttribute(e,!1);for(const[n,i]of t){this._setAttribute(n,i,!1)&&e.add(n)}return e}*getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())if(e.startsWith(dl)){const n=e.substr(10);yield[n,t.getAttribute(e)]}}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;if("$graveyard"==t.root.rootName)return null;let n=null;if(this.isCollapsed){const i=t.textNode?t.textNode:t.nodeBefore,r=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=pl(i,e)),n||(n=pl(r,e)),!this.isGravityOverridden&&!n){let t=i;for(;t&&!n;)t=t.previousSibling,n=pl(t,e)}if(!n){let t=r;for(;t&&!n;)t=t.nextSibling,n=pl(t,e)}n||(n=this.getStoredAttributes())}else{const t=this.getFirstRange();for(const i of t){if(i.item.is("element")&&e.isObject(i.item)){n=pl(i.item,e);break}if("text"==i.type){n=i.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function pl(t,e){if(!t)return null;if(t instanceof jc||t instanceof Fc)return t.getAttributes();if(!e.isInline(t))return null;if(!e.isObject(t))return[];const n=[];for(const[i,r]of t.getAttributes())e.checkAttribute("$text",i)&&!1!==e.getAttributeProperties(i).copyFromObject&&n.push([i,r]);return n}class ml{_dispatchers;constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class bl extends ml{elementToElement(t){return this.add(function(t){const e=Cl(t.model),n=Al(t.view,"container");e.attributes.length&&(e.children=!0);return i=>{i.on(`insert:${e.name}`,vl(n,Dl(e)),{priority:t.converterPriority||"normal"}),(e.children||e.attributes.length)&&i.on("reduceChanges",Sl(e),{priority:"low"})}}(t))}elementToStructure(t){return this.add(function(t){const e=Cl(t.model),n=Al(t.view,"container");return e.children=!0,i=>{if(i._conversionApi.schema.checkChild(e.name,"$text"))throw new wi("conversion-element-to-structure-disallowed-text",i,{elementName:e.name});var r,o;i.on(`insert:${e.name}`,(r=n,o=Dl(e),(t,e,n)=>{if(!o(e.item,n.consumable,{preflight:!0}))return;const i=new Map;n.writer._registerSlotFactory(function(t,e,n){return(i,r)=>{const o=i.createContainerElement("$slot");let a=null;if("children"===r)a=Array.from(t.getChildren());else{if("function"!=typeof r)throw new wi("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:r});a=Array.from(t.getChildren()).filter((t=>r(t)))}return e.set(o,a),o}}(e.item,i,n));const a=r(e.item,n,e);if(n.writer._clearSlotFactory(),!a)return;!function(t,e,n){const i=Array.from(e.values()).flat(),r=new Set(i);if(r.size!=i.length)throw new wi("conversion-slot-filter-overlap",n.dispatcher,{element:t});if(r.size!=t.childCount)throw new wi("conversion-slot-filter-incomplete",n.dispatcher,{element:t})}(e.item,i,n),o(e.item,n.consumable);const s=n.mapper.toViewPosition(e.range.start);n.mapper.bindElements(e.item,a),n.writer.insert(s,a),n.convertAttributes(e.item),function(t,e,n,i){n.mapper.on("modelToViewPosition",a,{priority:"highest"});let r=null,o=null;for([r,o]of e)Il(t,o,n,i),n.writer.move(n.writer.createRangeIn(r),n.writer.createPositionBefore(r)),n.writer.remove(r);function a(t,e){const n=e.modelPosition.nodeAfter,i=o.indexOf(n);i<0||(e.viewPosition=e.mapper.findPositionIn(r,i))}n.mapper.off("modelToViewPosition",a)}(a,i,n,{reconversion:e.reconversion})}),{priority:t.converterPriority||"normal"}),i.on("reduceChanges",Sl(e),{priority:"low"})}}(t))}attributeToElement(t){return this.add(function(t){t=Pc(t);let e=t.model;"string"==typeof e&&(e={key:e});let n=`attribute:${e.key}`;e.name&&(n+=":"+e.name);if(e.values)for(const n of e.values)t.view[n]=Al(t.view[n],"attribute");else t.view=Al(t.view,"attribute");const i=xl(t);return e=>{e.on(n,kl(i),{priority:t.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=Pc(t);let e=t.model;"string"==typeof e&&(e={key:e});let n=`attribute:${e.key}`;e.name&&(n+=":"+e.name);if(e.values)for(const n of e.values)t.view[n]=El(t.view[n]);else t.view=El(t.view);const i=xl(t);return e=>{var r;e.on(n,(r=i,(t,e,n)=>{if(!n.consumable.test(e.item,t.name))return;const i=r(e.attributeOldValue,n,e),o=r(e.attributeNewValue,n,e);if(!i&&!o)return;n.consumable.consume(e.item,t.name);const a=n.mapper.toViewElement(e.item),s=n.writer;if(!a)throw new wi("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(null!==e.attributeOldValue&&i)if("class"==i.key){const t="string"==typeof i.value?i.value.split(/\s+/):i.value;for(const e of t)s.removeClass(e,a)}else if("style"==i.key)if("string"==typeof i.value){const t=new Pa(s.document.stylesProcessor);t.setTo(i.value);for(const[e]of t.getStylesEntries())s.removeStyle(e,a)}else{const t=Object.keys(i.value);for(const e of t)s.removeStyle(e,a)}else s.removeAttribute(i.key,a);if(null!==e.attributeNewValue&&o)if("class"==o.key){const t="string"==typeof o.value?o.value.split(/\s+/):o.value;for(const e of t)s.addClass(e,a)}else if("style"==o.key)if("string"==typeof o.value){const t=new Pa(s.document.stylesProcessor);t.setTo(o.value);for(const[e,n]of t.getStylesEntries())s.setStyle(e,n,a)}else{const t=Object.keys(o.value);for(const e of t)s.setStyle(e,o.value[e],a)}else s.setAttribute(o.key,o.value,a)}),{priority:t.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(t){const e=Al(t.view,"ui");return n=>{n.on(`addMarker:${t.model}`,yl(e),{priority:t.converterPriority||"normal"}),n.on(`removeMarker:${t.model}`,((t,e,n)=>{const i=n.mapper.markerNameToElements(e.markerName);if(i){for(const t of i)n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer.clear(n.writer.createRangeOn(t),t);n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add(function(t){return e=>{var n;e.on(`addMarker:${t.model}`,(n=t.view,(t,e,i)=>{if(!e.item)return;if(!(e.item instanceof nl||e.item instanceof fl||e.item.is("$textProxy")))return;const r=Tl(n,e,i);if(!r)return;if(!i.consumable.consume(e.item,t.name))return;const o=i.writer,a=wl(o,r),s=o.document.selection;if(e.item instanceof nl||e.item instanceof fl)o.wrap(s.getFirstRange(),a);else{const t=i.mapper.toViewRange(e.range),n=o.wrap(t,a);for(const t of n.getItems())if(t.is("attributeElement")&&t.isSimilar(a)){i.mapper.bindElementToMarker(t,e.markerName);break}}}),{priority:t.converterPriority||"normal"}),e.on(`addMarker:${t.model}`,function(t){return(e,n,i)=>{if(!n.item)return;if(!(n.item instanceof $c))return;const r=Tl(t,n,i);if(!r)return;if(!i.consumable.test(n.item,e.name))return;const o=i.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){i.consumable.consume(n.item,e.name);for(const t of Yc._createIn(n.item))i.consumable.consume(t.item,e.name);o.getCustomProperty("addHighlight")(o,r,i.writer),i.mapper.bindElementToMarker(o,n.markerName)}}}(t.view),{priority:t.converterPriority||"normal"}),e.on(`removeMarker:${t.model}`,function(t){return(e,n,i)=>{if(n.markerRange.isCollapsed)return;const r=Tl(t,n,i);if(!r)return;const o=wl(i.writer,r),a=i.mapper.markerNameToElements(n.markerName);if(a){for(const t of a)if(i.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("attributeElement"))i.writer.unwrap(i.writer.createRangeOn(t),o);else{t.getCustomProperty("removeHighlight")(t,r.id,i.writer)}i.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}markerToData(t){return this.add(function(t){t=Pc(t);const e=t.model;let n=t.view;n||(n=n=>({group:e,name:n.substr(t.model.length+1)}));return i=>{var r;i.on(`addMarker:${e}`,(r=n,(t,e,n)=>{const i=r(e.markerName,n);if(!i)return;const o=e.markerRange;n.consumable.consume(o,t.name)&&(_l(o,!1,n,e,i),_l(o,!0,n,e,i),t.stop())}),{priority:t.converterPriority||"normal"}),i.on(`removeMarker:${e}`,function(t){return(e,n,i)=>{const r=t(n.markerName,i);if(!r)return;const o=i.mapper.markerNameToElements(n.markerName);if(o){for(const t of o)i.mapper.unbindElementFromMarkerName(t,n.markerName),t.is("containerElement")?(a(`data-${r.group}-start-before`,t),a(`data-${r.group}-start-after`,t),a(`data-${r.group}-end-before`,t),a(`data-${r.group}-end-after`,t)):i.writer.clear(i.writer.createRangeOn(t),t);i.writer.clearClonedElementsGroup(n.markerName),e.stop()}function a(t,e){if(e.hasAttribute(t)){const n=new Set(e.getAttribute(t).split(","));n.delete(r.name),0==n.size?i.writer.removeAttribute(t,e):i.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(n),{priority:t.converterPriority||"normal"})}}(t))}}function wl(t,e){const n=t.createAttributeElement("span",e.attributes);return e.classes&&n._addClass(e.classes),"number"==typeof e.priority&&(n._priority=e.priority),n._id=e.id,n}function kl(t){return(e,n,i)=>{if(!i.consumable.test(n.item,e.name))return;const r=t(n.attributeOldValue,i,n),o=t(n.attributeNewValue,i,n);if(!r&&!o)return;i.consumable.consume(n.item,e.name);const a=i.writer,s=a.document.selection;if(n.item instanceof nl||n.item instanceof fl)a.wrap(s.getFirstRange(),o);else{let t=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&r&&(t=a.unwrap(t,r)),null!==n.attributeNewValue&&o&&a.wrap(t,o)}}}function vl(t,e=Ml){return(n,i,r)=>{if(!e(i.item,r.consumable,{preflight:!0}))return;const o=t(i.item,r,i);if(!o)return;e(i.item,r.consumable);const a=r.mapper.toViewPosition(i.range.start);r.mapper.bindElements(i.item,o),r.writer.insert(a,o),r.convertAttributes(i.item),Il(o,i.item.getChildren(),r,{reconversion:i.reconversion})}}function yl(t){return(e,n,i)=>{n.isOpening=!0;const r=t(n,i);n.isOpening=!1;const o=t(n,i);if(!r||!o)return;const a=n.markerRange;if(a.isCollapsed&&!i.consumable.consume(a,e.name))return;for(const t of a)if(!i.consumable.consume(t.item,e.name))return;const s=i.mapper,c=i.writer;c.insert(s.toViewPosition(a.start),r),i.mapper.bindElementToMarker(r,n.markerName),a.isCollapsed||(c.insert(s.toViewPosition(a.end),o),i.mapper.bindElementToMarker(o,n.markerName)),e.stop()}}function _l(t,e,n,i,r){const o=e?t.start:t.end,a=o.nodeAfter&&o.nodeAfter.is("element")?o.nodeAfter:null,s=o.nodeBefore&&o.nodeBefore.is("element")?o.nodeBefore:null;if(a||s){let t,o;e&&a||!e&&!s?(t=a,o=!0):(t=s,o=!1);const c=n.mapper.toViewElement(t);if(c)return void function(t,e,n,i,r,o){const a=`data-${o.group}-${e?"start":"end"}-${n?"before":"after"}`,s=t.hasAttribute(a)?t.getAttribute(a).split(","):[];s.unshift(o.name),i.writer.setAttribute(a,s.join(","),t),i.mapper.bindElementToMarker(t,r.markerName)}(c,e,o,n,i,r)}!function(t,e,n,i,r){const o=`${r.group}-${e?"start":"end"}`,a=r.name?{name:r.name}:null,s=n.writer.createUIElement(o,a);n.writer.insert(t,s),n.mapper.bindElementToMarker(s,i.markerName)}(n.mapper.toViewPosition(o),e,n,i,r)}function Cl(t){return"string"==typeof t&&(t={name:t}),{name:t.name,attributes:t.attributes?Jr(t.attributes):[],children:!!t.children}}function Al(t,e){return"function"==typeof t?t:(n,i)=>function(t,e,n){"string"==typeof t&&(t={name:t});let i;const r=e.writer,o=Object.assign({},t.attributes);if("container"==n)i=r.createContainerElement(t.name,o);else if("attribute"==n){const e={priority:t.priority||rs.DEFAULT_PRIORITY};i=r.createAttributeElement(t.name,o,e)}else i=r.createUIElement(t.name,o);if(t.styles){const e=Object.keys(t.styles);for(const n of e)r.setStyle(n,t.styles[n],i)}if(t.classes){const e=t.classes;if("string"==typeof e)r.addClass(e,i);else for(const t of e)r.addClass(t,i)}return i}(t,i,e)}function xl(t){return t.model.values?(e,n,i)=>{const r=t.view[e];return r?r(e,n,i):null}:t.view}function El(t){return"string"==typeof t?e=>({key:t,value:e}):"object"==typeof t?t.value?()=>t:e=>({key:t.key,value:e}):t}function Tl(t,e,n){const i="function"==typeof t?t(e,n):t;return i?(i.priority||(i.priority=10),i.id||(i.id=e.markerName),i):null}function Sl(t){const e=function(t){return(e,n)=>{if(!e.is("element",t.name))return!1;if("attribute"==n.type){if(t.attributes.includes(n.attributeKey))return!0}else if(t.children)return!0;return!1}}(t);return(t,n)=>{const i=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const t of n.changes){const r="attribute"==t.type?t.range.start.nodeAfter:t.position.parent;if(r&&e(r,t)){if(!n.reconvertedElements.has(r)){n.reconvertedElements.add(r);const t=Hc._createBefore(r);let e=i.length;for(let n=i.length-1;n>=0;n--){const r=i[n],o=("attribute"==r.type?r.range.start:r.position).compareWith(t);if("before"==o||"remove"==r.type&&"same"==o)break;e=n}i.splice(e,0,{type:"remove",name:r.name,position:t,length:1},{type:"reinsert",name:r.name,position:t,length:1})}}else i.push(t)}n.changes=i}}function Dl(t){return(e,n,i={})=>{const r=["insert"];for(const n of t.attributes)e.hasAttribute(n)&&r.push(`attribute:${n}`);return!!r.every((t=>n.test(e,t)))&&(i.preflight||r.forEach((t=>n.consume(e,t))),!0)}}function Il(t,e,n,i){for(const r of e)Bl(t.root,r,n,i)||n.convertItem(r)}function Bl(t,e,n,i){const{writer:r,mapper:o}=n;if(!i.reconversion)return!1;const a=o.toViewElement(e);return!(!a||a.root==t)&&(!!n.canReuseView(a)&&(r.move(r.createRangeOn(a),o.toViewPosition(Hc._createBefore(e))),!0))}function Ml(t,e,{preflight:n}={}){return n?e.test(t,"insert"):e.consume(t,"insert")}function Pl(t){const{schema:e,document:n}=t.model;for(const i of n.getRoots())if(i.isEmpty&&!e.checkChild(i,"$text")&&e.checkChild(i,"paragraph"))return t.insertElement("paragraph",i),!0;return!1}function Ll(t,e,n){const i=n.createContext(t);return!!n.checkChild(i,"paragraph")&&!!n.checkChild(i.push("paragraph"),e)}function Ol(t,e){const n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}class Nl extends ml{elementToElement(t){return this.add(Rl(t))}elementToAttribute(t){return this.add(function(t){t=Pc(t),$l(t);const e=zl(t,!1),n=Fl(t.view),i=n?`element:${n}`:"element";return n=>{n.on(i,e,{priority:t.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(t){t=Pc(t);let e=null;("string"==typeof t.view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});const e=t.view.key,n=void 0===t.view.value?/[\s\S]*/:t.view.value;let i;if("class"==e||"style"==e){const t="class"==e?"classes":"styles";i={[t]:n}}else i={attributes:{[e]:n}};t.view.name&&(i.name=t.view.name);return t.view=i,e}(t));$l(t,e);const n=zl(t,!0);return e=>{e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}elementToMarker(t){return this.add(function(t){const e=function(t){return(e,n)=>{const i="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":i})}}(t.model);return Rl({...t,model:e})}(t))}dataToMarker(t){return this.add(function(t){t=Pc(t),t.model||(t.model=e=>e?t.view+":"+e:t.view);const e={view:t.view,model:t.model},n=jl(Vl(e,"start")),i=jl(Vl(e,"end"));return r=>{r.on(`element:${t.view}-start`,n,{priority:t.converterPriority||"normal"}),r.on(`element:${t.view}-end`,i,{priority:t.converterPriority||"normal"});const o=mi.low,a=mi.highest,s=mi.get(t.converterPriority)/a;r.on("element",function(t){return(e,n,i)=>{const r=`data-${t.view}`;function o(e,r){for(const o of r){const r=t.model(o,i),a=i.writer.createElement("$marker",{"data-name":r});i.writer.insert(a,e),n.modelCursor.isEqual(e)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(e,1),n.modelRange=n.modelRange._getTransformedByInsertion(e,1)[0]}}(i.consumable.test(n.viewItem,{attributes:r+"-end-after"})||i.consumable.test(n.viewItem,{attributes:r+"-start-after"})||i.consumable.test(n.viewItem,{attributes:r+"-end-before"})||i.consumable.test(n.viewItem,{attributes:r+"-start-before"}))&&(n.modelRange||Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor)),i.consumable.consume(n.viewItem,{attributes:r+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(r+"-end-after").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(r+"-start-after").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(r+"-end-before").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(r+"-start-before").split(",")))}}(e),{priority:o+s})}}(t))}}function Rl(t){const e=jl(t=Pc(t)),n=Fl(t.view),i=n?`element:${n}`:"element";return n=>{n.on(i,e,{priority:t.converterPriority||"normal"})}}function Fl(t){return"string"==typeof t?t:"object"==typeof t&&"string"==typeof t.name?t.name:null}function jl(t){const e=new aa(t.view);return(n,i,r)=>{const o=e.match(i.viewItem);if(!o)return;const a=o.match;if(a.name=!0,!r.consumable.test(i.viewItem,a))return;const s=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,i.viewItem,r);s&&r.safeInsert(s,i.modelCursor)&&(r.consumable.consume(i.viewItem,a),r.convertChildren(i.viewItem,s),r.updateConversionResult(s,i))}}function $l(t,e=null){const n=null===e||(t=>t.getAttribute(e)),i="object"!=typeof t.model?t.model:t.model.key,r="object"!=typeof t.model||void 0===t.model.value?n:t.model.value;t.model={key:i,value:r}}function zl(t,e){const n=new aa(t.view);return(i,r,o)=>{if(!r.modelRange&&e)return;const a=n.match(r.viewItem);if(!a)return;if(!function(t,e){const n="function"==typeof t?t(e):t;if("object"==typeof n&&!Fl(n))return!1;return!n.classes&&!n.attributes&&!n.styles}(t.view,r.viewItem)?delete a.match.name:a.match.name=!0,!o.consumable.test(r.viewItem,a.match))return;const s=t.model.key,c="function"==typeof t.model.value?t.model.value(r.viewItem,o):t.model.value;if(null===c)return;r.modelRange||Object.assign(r,o.convertChildren(r.viewItem,r.modelCursor));const l=function(t,e,n,i){let r=!1;for(const o of Array.from(t.getItems({shallow:n})))i.schema.checkAttribute(o,e.key)&&(r=!0,o.hasAttribute(e.key)||i.writer.setAttribute(e.key,e.value,o));return r}(r.modelRange,{key:s,value:c},e,o);l&&(o.consumable.test(r.viewItem,{name:!0})&&(a.match.name=!0),o.consumable.consume(r.viewItem,a.match))}}function Vl(t,e){return{view:`${t.view}-${e}`,model:(e,n)=>{const i=e.getAttribute("name"),r=t.model(i,n);return n.writer.createElement("$marker",{"data-name":r})}}}function Hl(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.selection,i=e.schema,r=[];let o=!1;for(const t of n.getRanges()){const e=ql(t,i);e&&!e.isEqual(t)?(r.push(e),o=!0):r.push(t)}o&&t.setSelection(function(t){const e=[...t],n=new Set;let i=1;for(;i<e.length;){const t=e[i],r=e.slice(0,i);for(const[o,a]of r.entries())if(!n.has(o))if(t.isEqual(a))n.add(o);else if(t.isIntersecting(a)){n.add(o),n.add(i);const r=t.getJoined(a);e.push(r)}i++}return e.filter(((t,e)=>!n.has(e)))}(r),{backward:n.isBackward});return!1}(e,t)))}function ql(t,e){return t.isCollapsed?function(t,e){const n=t.start,i=e.getNearestSelectionRange(n);if(!i){const t=n.getAncestors().reverse().find((t=>e.isObject(t)));return t?Yc._createOn(t):null}if(!i.isCollapsed)return i;const r=i.start;if(n.isEqual(r))return null;return new Yc(r)}(t,e):function(t,e){const{start:n,end:i}=t,r=e.checkChild(n,"$text"),o=e.checkChild(i,"$text"),a=e.getLimitElement(n),s=e.getLimitElement(i);if(a===s){if(r&&o)return null;if(function(t,e,n){const i=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),r=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return i||r}(n,i,e)){const t=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),r=i.nodeBefore&&e.isSelectable(i.nodeBefore)?null:e.getNearestSelectionRange(i,"backward"),o=t?t.start:n,a=r?r.end:i;return new Yc(o,a)}}const c=a&&!a.is("rootElement"),l=s&&!s.is("rootElement");if(c||l){const t=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,r=c&&(!t||!Gl(n.nodeAfter,e)),o=l&&(!t||!Gl(i.nodeBefore,e));let u=n,h=i;return r&&(u=Hc._createBefore(Ul(a,e))),o&&(h=Hc._createAfter(Ul(s,e))),new Yc(u,h)}return null}(t,e)}function Ul(t,e){let n=t,i=n;for(;e.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function Gl(t,e){return t&&e.isSelectable(t)}class Wl extends(Vi()){model;view;mapper;downcastDispatcher;constructor(t,e){super(),this.model=t,this.view=new Lc(e),this.mapper=new Xc,this.downcastDispatcher=new Jc({mapper:this.mapper,schema:t.schema});const n=this.model.document,i=n.selection,r=this.model.markers;var o,a,s;this.listenTo(this.model,"_beforeChanges",(()=>{this.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(()=>{this.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(n,"change",(()=>{this.view.change((t=>{this.downcastDispatcher.convertChanges(n.differ,r,t),this.downcastDispatcher.convertSelection(i,r,t)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return(n,i)=>{const r=i.newSelection,o=[];for(const t of r.getRanges())o.push(e.toModelRange(t));const a=t.createSelection(o,{backward:r.isBackward});a.isEqual(t.document.selection)||t.change((t=>{t.setSelection(a)}))}}(this.model,this.mapper)),this.listenTo(this.view.document,"beforeinput",(o=this.mapper,a=this.model.schema,s=this.view,(t,e)=>{if(!s.document.isComposing||Jn.isAndroid)for(let t=0;t<e.targetRanges.length;t++){const n=e.targetRanges[t],i=o.toModelRange(n),r=ql(i,a);r&&!r.isEqual(i)&&(e.targetRanges[t]=o.toViewRange(r))}}),{priority:"high"}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=n.writer,r=n.mapper.toViewPosition(e.range.start),o=i.createText(e.item.data);i.insert(r,o)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((t,e,n)=>{n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),this.downcastDispatcher.on("remove",((t,e,n)=>{const i=n.mapper.toViewPosition(e.position),r=e.position.getShiftedBy(e.length),o=n.mapper.toViewPosition(r,{isPhantom:!0}),a=n.writer.createRange(i,o),s=n.writer.remove(a.getTrimmed());for(const t of n.writer.createRangeIn(s).getItems())n.mapper.unbindViewElement(t,{defer:!0})}),{priority:"low"}),this.downcastDispatcher.on("cleanSelection",((t,e,n)=>{const i=n.writer,r=i.document.selection;for(const t of r.getRanges())t.isCollapsed&&t.end.parent.isAttached()&&n.writer.mergeAttributes(t.start);i.setSelection(null)})),this.downcastDispatcher.on("selection",((t,e,n)=>{const i=e.selection;if(i.isCollapsed)return;if(!n.consumable.consume(i,"selection"))return;const r=[];for(const t of i.getRanges())r.push(n.mapper.toViewRange(t));n.writer.setSelection(r,{backward:i.isBackward})}),{priority:"low"}),this.downcastDispatcher.on("selection",((t,e,n)=>{const i=e.selection;if(!i.isCollapsed)return;if(!n.consumable.consume(i,"selection"))return;const r=n.writer,o=i.getFirstPosition(),a=n.mapper.toViewPosition(o),s=r.breakAttributes(a);r.setSelection(s)}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((t=>{if("$graveyard"==t.rootName)return null;const e=new Ha(this.view.document,t.name);return e.rootName=t.rootName,this.mapper.bindElements(t,e),e}))}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(t){const e="string"==typeof t?t:t.name,n=this.model.markers.get(e);if(!n)throw new wi("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change((()=>{this.model.markers._refresh(n)}))}reconvertItem(t){this.model.change((()=>{this.model.document.differ._refreshItem(t)}))}}class Kl{_consumables=new Map;add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new Xl(t),this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const t of n)"style"!=t&&"class"!=t&&e.attributes.push(t);const i=t.getClassNames();for(const t of i)e.classes.push(t);const r=t.getStyleNames();for(const t of r)e.styles.push(t);return e}static createFrom(t,e){if(e||(e=new Kl),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,Kl.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=Kl.createFrom(n,e);return e}}const Yl=["attributes","classes","styles"];class Xl{element;_canConsumeName;_consumables;constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e of Yl)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of Yl)if(e in t){const n=this._test(e,t[e]);if(!0!==n)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e of Yl)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of Yl)e in t&&this._revert(e,t[e])}_add(t,e){const n=Jr(e),i=this._consumables[t];for(const e of n){if("attributes"===t&&("class"===e||"style"===e))throw new wi("viewconsumable-invalid-attribute",this);if(i.set(e,!0),"styles"===t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))i.set(t,!0)}}_test(t,e){const n=Jr(e),i=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){const t=i.get(e);if(void 0===t)return null;if(!t)return!1}else{const t="class"==e?"classes":"styles",n=this._test(t,[...this._consumables[t].keys()]);if(!0!==n)return n}return!0}_consume(t,e){const n=Jr(e),i=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){if(i.set(e,!1),"styles"==t)for(const t of this.element.document.stylesProcessor.getRelatedStyles(e))i.set(t,!1)}else{const t="class"==e?"classes":"styles";this._consume(t,[...this._consumables[t].keys()])}}_revert(t,e){const n=Jr(e),i=this._consumables[t];for(const e of n)if("attributes"!==t||"class"!==e&&"style"!==e){!1===i.get(e)&&i.set(e,!0)}else{const t="class"==e?"classes":"styles";this._revert(t,[...this._consumables[t].keys()])}}}class Zl extends(Vi()){_sourceDefinitions={};_attributeProperties=Object.create(null);_customChildChecks=new Map;_customAttributeChecks=new Map;_genericCheckSymbol=Symbol("$generic");_compiledDefinitions;constructor(){super(),this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",((t,e)=>{e[0]=new Ql(e[0])}),{priority:"highest"}),this.on("checkChild",((t,e)=>{e[0]=new Ql(e[0]),e[1]=this.getDefinition(e[1])}),{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new wi("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new wi("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e="string"==typeof t?t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!!e&&!(!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}isSelectable(t){const e=this.getDefinition(t);return!!e&&!(!e.isSelectable&&!e.isObject)}isContent(t){const e=this.getDefinition(t);return!!e&&!(!e.isContent&&!e.isObject)}checkChild(t,e){return!!e&&this._checkContextMatch(t,e)}checkAttribute(t,e){const n=this.getDefinition(t.last);if(!n)return!1;const i=this._evaluateAttributeChecks(t,e);return void 0!==i?i:n.allowAttributes.includes(e)}checkMerge(t,e){if(t instanceof Hc){const e=t.nodeBefore,n=t.nodeAfter;if(!(e instanceof $c))throw new wi("schema-check-merge-no-element-before",this);if(!(n instanceof $c))throw new wi("schema-check-merge-no-element-after",this);return this.checkMerge(e,n)}if(this.isLimit(t)||this.isLimit(e))return!1;for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t,e){const n=void 0!==e?e:this._genericCheckSymbol,i=this._customChildChecks.get(n)||[];i.push(t),this._customChildChecks.set(n,i)}addAttributeCheck(t,e){const n=void 0!==e?e:this._genericCheckSymbol,i=this._customAttributeChecks.get(n)||[];i.push(t),this._customAttributeChecks.set(n,i)}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||Object.create(null)}getLimitElement(t){let e;if(t instanceof Hc)e=t.parent;else{e=(t instanceof Yc?[t]:Array.from(t.getRanges())).reduce(((t,e)=>{const n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n}),null)}for(;!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new Fc("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const t of n)for(const n of t)if(this.checkAttribute(n.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(t){for(const e of t)yield*e.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if("$graveyard"==t.root.rootName)return null;if(this.checkChild(t,"$text"))return new Yc(t);let n,i;const r=t.getAncestors().reverse().find((t=>this.isLimit(t)))||t.root;"both"!=e&&"backward"!=e||(n=new zc({boundaries:Yc._createIn(r),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(i=new zc({boundaries:Yc._createIn(r),startPosition:t}));for(const t of function*(t,e){let n=!1;for(;!n;){if(n=!0,t){const e=t.next();e.done||(n=!1,yield{walker:t,value:e.value})}if(e){const t=e.next();t.done||(n=!1,yield{walker:e,value:t.value})}}}(n,i)){const e=t.walker==n?"elementEnd":"elementStart",i=t.value;if(i.type==e&&this.isObject(i.item))return Yc._createOn(i.item);if(this.checkChild(i.nextPosition,"$text"))return new Yc(i.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(t,e,n){const i=n.model;for(const[r,o]of Object.entries(e))i.schema.checkAttribute(t,r)&&n.setAttribute(r,o,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))hu(this,n,e);else{const t=Yc._createIn(n).getPositions();for(const n of t){hu(this,n.nodeBefore||n.parent,e)}}}getAttributesWithProperty(t,e,n){const i={};for(const[r,o]of t.getAttributes()){const t=this.getAttributeProperties(r);void 0!==t[e]&&(void 0!==n&&n!==t[e]||(i[r]=o))}return i}createContext(t){return new Ql(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const i of n)t[i]=Jl(e[i],i);const i=Object.values(t);for(const e of i)tu(t,e),eu(t,e),nu(t,e),iu(t,e);for(const e of i)ru(t,e);for(const e of i)ou(t,e);for(const e of i)au(t,e);for(const e of i)su(t,e);for(const e of i)cu(t,e);this._compiledDefinitions=function(t){const e={};for(const n of Object.values(t))e[n.name]={name:n.name,isBlock:!!n.isBlock,isContent:!!n.isContent,isInline:!!n.isInline,isLimit:!!n.isLimit,isObject:!!n.isObject,isSelectable:!!n.isSelectable,allowIn:Array.from(n.allowIn).filter((e=>!!t[e])),allowChildren:Array.from(n.allowChildren).filter((e=>!!t[e])),allowAttributes:Array.from(n.allowAttributes)};return e}(t)}_checkContextMatch(t,e){const n=t.last;let i=this._evaluateChildChecks(t,e);if(i=void 0!==i?i:e.allowIn.includes(n.name),!i)return!1;const r=this.getDefinition(n),o=t.trimLast();return!!r&&(0==o.length||this._checkContextMatch(o,r))}_evaluateChildChecks(t,e){const n=this._customChildChecks.get(this._genericCheckSymbol)||[],i=this._customChildChecks.get(e.name)||[];for(const r of[...n,...i]){const n=r(t,e);if(void 0!==n)return n}}_evaluateAttributeChecks(t,e){const n=this._customAttributeChecks.get(this._genericCheckSymbol)||[],i=this._customAttributeChecks.get(e)||[];for(const r of[...n,...i]){const n=r(t,e);if(void 0!==n)return n}}*_getValidRangesForRange(t,e){let n=t.start,i=t.start;for(const r of t.getItems({shallow:!0}))r.is("element")&&(yield*this._getValidRangesForRange(Yc._createIn(r),e)),this.checkAttribute(r,e)||(n.isEqual(i)||(yield new Yc(n,i)),n=Hc._createAfter(r)),i=Hc._createAfter(r);n.isEqual(i)||(yield new Yc(n,i))}findOptimalInsertionRange(t,e){const n=t.getSelectedElement();if(n&&this.isObject(n)&&!this.isInline(n))return"before"==e||"after"==e?new Yc(Hc._createAt(n,e)):Yc._createOn(n);const i=xo(t.getSelectedBlocks());if(!i)return new Yc(t.focus);if(i.isEmpty)return new Yc(Hc._createAt(i,0));const r=Hc._createAfter(i);return t.focus.isTouching(r)?new Yc(r):new Yc(Hc._createBefore(i))}}class Ql{_items;constructor(t){if(t instanceof Ql)return t;let e;e="string"==typeof t?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(uu)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new Ql([t]);return e._items=[...this._items,...e._items],e}trimLast(){const t=new Ql([]);return t._items=this._items.slice(0,-1),t}getItem(t){return this._items[t]}*getNames(){yield*this._items.map((t=>t.name))}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function Jl(t,e){const n={name:e,allowIn:new Set,allowChildren:new Set,disallowIn:new Set,disallowChildren:new Set,allowContentOf:new Set,allowWhere:new Set,allowAttributes:new Set,disallowAttributes:new Set,allowAttributesOf:new Set,inheritTypesFrom:new Set};return function(t,e){for(const n of t){const t=Object.keys(n).filter((t=>t.startsWith("is")));for(const i of t)e[i]=!!n[i]}}(t,n),lu(t,n,"allowIn"),lu(t,n,"allowChildren"),lu(t,n,"disallowIn"),lu(t,n,"disallowChildren"),lu(t,n,"allowContentOf"),lu(t,n,"allowWhere"),lu(t,n,"allowAttributes"),lu(t,n,"disallowAttributes"),lu(t,n,"allowAttributesOf"),lu(t,n,"inheritTypesFrom"),function(t,e){for(const n of t){const t=n.inheritAllFrom;t&&(e.allowContentOf.add(t),e.allowWhere.add(t),e.allowAttributesOf.add(t),e.inheritTypesFrom.add(t))}}(t,n),n}function tu(t,e){for(const n of e.allowIn){const i=t[n];i?i.allowChildren.add(e.name):e.allowIn.delete(n)}}function eu(t,e){for(const n of e.allowChildren){const i=t[n];i?i.allowIn.add(e.name):e.allowChildren.delete(n)}}function nu(t,e){for(const n of e.disallowIn){const i=t[n];i?i.disallowChildren.add(e.name):e.disallowIn.delete(n)}}function iu(t,e){for(const n of e.disallowChildren){const i=t[n];i?i.disallowIn.add(e.name):e.disallowChildren.delete(n)}}function ru(t,e){for(const t of e.disallowChildren)e.allowChildren.delete(t);for(const t of e.disallowIn)e.allowIn.delete(t);for(const t of e.disallowAttributes)e.allowAttributes.delete(t)}function ou(t,e){for(const n of e.allowContentOf){const i=t[n];i&&(i.disallowChildren.forEach((n=>{e.allowChildren.has(n)||(e.disallowChildren.add(n),t[n].disallowIn.add(e.name))})),i.allowChildren.forEach((n=>{e.disallowChildren.has(n)||(e.allowChildren.add(n),t[n].allowIn.add(e.name))})))}}function au(t,e){for(const n of e.allowWhere){const i=t[n];i&&(i.disallowIn.forEach((n=>{e.allowIn.has(n)||(e.disallowIn.add(n),t[n].disallowChildren.add(e.name))})),i.allowIn.forEach((n=>{e.disallowIn.has(n)||(e.allowIn.add(n),t[n].allowChildren.add(e.name))})))}}function su(t,e){for(const n of e.allowAttributesOf){const i=t[n];if(!i)return;i.allowAttributes.forEach((t=>{e.disallowAttributes.has(t)||e.allowAttributes.add(t)}))}}function cu(t,e){for(const n of e.inheritTypesFrom){const i=t[n];if(i){const t=Object.keys(i).filter((t=>t.startsWith("is")));for(const n of t)n in e||(e[n]=i[n])}}}function lu(t,e,n){for(const i of t){let t=i[n];"string"==typeof t&&(t=[t]),Array.isArray(t)&&t.forEach((t=>e[n].add(t)))}}function uu(t){return"string"==typeof t||t.is("documentFragment")?{name:"string"==typeof t?t:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:t.is("element")?t.name:"$text",*getAttributeKeys(){yield*t.getAttributeKeys()},getAttribute:e=>t.getAttribute(e)}}function hu(t,e,n){for(const i of e.getAttributeKeys())t.checkAttribute(e,i)||n.removeAttribute(i,e)}class du extends(Si()){conversionApi;_splitParts=new Map;_cursorParents=new Map;_modelCursor=null;_emptyElementsToKeep=new Set;constructor(t){super(),this.conversionApi={...t,consumable:null,writer:null,store:null,convertItem:(t,e)=>this._convertItem(t,e),convertChildren:(t,e)=>this._convertChildren(t,e),safeInsert:(t,e)=>this._safeInsert(t,e),updateConversionResult:(t,e)=>this._updateConversionResult(t,e),splitToAllowedParent:(t,e)=>this._splitToAllowedParent(t,e),getSplitParts:t=>this._getSplitParts(t),keepEmptyElement:t=>this._keepEmptyElement(t)}}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(t,e){let n;for(const i of new Ql(t)){const t={};for(const e of i.getAttributeKeys())t[e]=i.getAttribute(e);const r=e.createElement(i.name,t);n&&e.insert(r,n),n=Hc._createAt(r,0)}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Kl.createFrom(t),this.conversionApi.store={};const{modelRange:i}=this._convertItem(t,this._modelCursor),r=e.createDocumentFragment();if(i){this._removeEmptyElements();for(const t of Array.from(this._modelCursor.parent.getChildren()))e.append(t,r);r.markers=function(t,e){const n=new Set,i=new Map,r=Yc._createIn(t).getItems();for(const t of r)t.is("element","$marker")&&n.add(t);for(const t of n){const n=t.getAttribute("data-name"),r=e.createPositionBefore(t);i.has(n)?i.get(n).end=r.clone():i.set(n,new Yc(r.clone())),e.remove(t)}return i}(r,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,r}_convertItem(t,e){const n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire(`element:${t.name}`,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof Yc))throw new wi("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:Hc._createAt(e,0);const i=new Yc(n);for(const e of Array.from(t.getChildren())){const t=this._convertItem(e,n);t.modelRange instanceof Yc&&(i.end=t.modelRange.end,n=t.modelCursor)}return{modelRange:i,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}_updateConversionResult(t,e){const n=this._getSplitParts(t),i=this.conversionApi.writer;e.modelRange||(e.modelRange=i.createRange(i.createPositionBefore(t),i.createPositionAfter(n[n.length-1])));const r=this._cursorParents.get(t);e.modelCursor=r?i.createPositionAt(r,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:i}=this.conversionApi;let r=n.findAllowedParent(e,t);if(r){if(r===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(r)&&(r=null)}if(!r)return Ll(e,t,n)?{position:Ol(e,i)}:null;const o=this.conversionApi.writer.split(e,r),a=[];for(const t of o.range.getWalker())if("elementEnd"==t.type)a.push(t.item);else{const e=a.pop(),n=t.item;this._registerSplitPair(e,n)}const s=o.range.end.parent;return this._cursorParents.set(t,s),{position:o.position,cursorParent:s}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_keepEmptyElement(t){this._emptyElementsToKeep.add(t)}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}class fu{getHtml(t){const e=Xn.document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class gu{domParser;domConverter;htmlWriter;skipComments=!0;constructor(t){this.domParser=new DOMParser,this.domConverter=new Gs(t,{renderingMode:"data"}),this.htmlWriter=new fu}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}_toDom(t){/<(?:html|body|head|meta)(?:\s[^>]*)?>/i.test(t.trim().slice(0,1e4))||(t=`<body>${t}</body>`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),i=e.body.childNodes;for(;i.length>0;)n.appendChild(i[0]);return n}}class pu extends(Si()){model;mapper;downcastDispatcher;upcastDispatcher;viewDocument;stylesProcessor;htmlProcessor;processor;_viewWriter;constructor(t,e){super(),this.model=t,this.mapper=new Xc,this.downcastDispatcher=new Jc({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=n.writer,r=n.mapper.toViewPosition(e.range.start),o=i.createText(e.item.data);i.insert(r,o)}),{priority:"lowest"}),this.downcastDispatcher.on("insert",((t,e,n)=>{n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item)}),{priority:"lowest"}),this.upcastDispatcher=new du({schema:t.schema}),this.viewDocument=new is(e),this.stylesProcessor=e,this.htmlProcessor=new gu(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new ps(this.viewDocument),this.upcastDispatcher.on("text",((t,e,{schema:n,consumable:i,writer:r})=>{let o=e.modelCursor;if(!i.test(e.viewItem))return;if(!n.checkChild(o,"$text")){if(!Ll(o,"$text",n))return;if(0==e.viewItem.data.trim().length)return;o=Ol(o,r)}i.consume(e.viewItem);const a=r.createText(e.viewItem.data);r.insert(a,o),e.modelRange=r.createRange(o,o.getShiftedBy(a.offsetSize)),e.modelCursor=e.modelRange.end}),{priority:"lowest"}),this.upcastDispatcher.on("element",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:i}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=i}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",((t,e,n)=>{if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){const{modelRange:t,modelCursor:i}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=t,e.modelCursor=i}}),{priority:"lowest"}),Vi().prototype.decorate.call(this,"init"),Vi().prototype.decorate.call(this,"set"),Vi().prototype.decorate.call(this,"get"),Vi().prototype.decorate.call(this,"toView"),Vi().prototype.decorate.call(this,"toModel"),this.on("init",(()=>{this.fire("ready")}),{priority:"lowest"}),this.on("ready",(()=>{this.model.enqueueChange({isUndoable:!1},Pl)}),{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new wi("datacontroller-get-non-existent-root",this);const i=this.model.document.getRoot(e);return i.isAttached()||ki("datacontroller-get-detached-root",this),"empty"!==n||this.model.hasContent(i,{ignoreWhitespaces:!0})?this.stringify(i,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();const r=Yc._createIn(t),o=new gs(n);this.mapper.bindElements(t,o);const a=t.is("documentFragment")?t.markers:function(t){const e=[],n=t.root.document;if(!n)return new Map;const i=Yc._createIn(t);for(const t of n.model.markers){const n=t.getRange(),r=n.isCollapsed,o=n.start.isEqual(i.start)||n.end.isEqual(i.end);if(r&&o)e.push([t.name,n]);else{const r=i.getIntersection(n);r&&e.push([t.name,r])}}return e.sort((([t,e],[n,i])=>{if("after"!==e.end.compareWith(i.start))return 1;if("before"!==e.start.compareWith(i.end))return-1;switch(e.start.compareWith(i.start)){case"before":return 1;case"after":return-1;default:switch(e.end.compareWith(i.end)){case"before":return 1;case"after":return-1;default:return n.localeCompare(t)}}})),new Map(e)}(t);return this.downcastDispatcher.convert(r,a,i,e),o}init(t){if(this.model.document.version)throw new wi("datacontroller-init-document-not-empty",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new wi("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(t=>{for(const n of Object.keys(e)){const i=this.model.document.getRoot(n);t.insert(this.parse(e[n],i),i,0)}})),Promise.resolve()}set(t,e={}){let n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new wi("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},(t=>{t.setSelection(null),t.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const e of Object.keys(n)){const i=this.model.document.getRoot(e);t.remove(t.createRangeIn(i)),t.insert(this.parse(n[e],i),i,0)}}))}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change((n=>this.upcastDispatcher.convert(t,n,e)))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRoot(e))return!1;return!0}}class mu{_helpers=new Map;_downcast;_upcast;constructor(t,e){this._downcast=Jr(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Jr(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new wi("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new wi("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of bu(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of bu(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of bu(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new wi("conversion-group-exists",this);const i=n?new bl(e):new Nl(e);this._helpers.set(t,i)}}function*bu(t){if(t.model.values)for(const e of t.model.values){const n={key:t.model.key,value:e},i=t.view[e],r=t.upcastAlso?t.upcastAlso[e]:void 0;yield*wu(n,i,r)}else yield*wu(t.model,t.view,t.upcastAlso)}function*wu(t,e,n){if(yield{model:t,view:e},n)for(const e of Jr(n))yield{model:t,view:e}}class ku{baseVersion;isDocumentOperation;batch;constructor(t){this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t,e){return new this(t.baseVersion)}}function vu(t,e){const n=Cu(e),i=n.reduce(((t,e)=>t+e.offsetSize),0),r=t.parent;xu(t);const o=t.index;return r._insertChild(o,n),Au(r,o+n.length),Au(r,o),new Yc(t,t.getShiftedBy(i))}function yu(t){if(!t.isFlat)throw new wi("operation-utils-remove-range-not-flat",this);const e=t.start.parent;xu(t.start),xu(t.end);const n=e._removeChildren(t.start.index,t.end.index-t.start.index);return Au(e,t.start.index),n}function _u(t,e){if(!t.isFlat)throw new wi("operation-utils-move-range-not-flat",this);const n=yu(t);return vu(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function Cu(t){const e=[];!function t(n){if("string"==typeof n)e.push(new Fc(n));else if(n instanceof jc)e.push(new Fc(n.data,n.getAttributes()));else if(n instanceof Nc)e.push(n);else if(Xi(n))for(const e of n)t(e);else{}}(t);for(let t=1;t<e.length;t++){const n=e[t],i=e[t-1];n instanceof Fc&&i instanceof Fc&&Eu(n,i)&&(e.splice(t-1,2,new Fc(i.data+n.data,i.getAttributes())),t--)}return e}function Au(t,e){const n=t.getChild(e-1),i=t.getChild(e);if(n&&i&&n.is("$text")&&i.is("$text")&&Eu(n,i)){const r=new Fc(n.data+i.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,r)}}function xu(t){const e=t.textNode,n=t.parent;if(e){const i=t.offset-e.startOffset,r=e.index;n._removeChildren(r,1);const o=new Fc(e.data.substr(0,i),e.getAttributes()),a=new Fc(e.data.substr(i),e.getAttributes());n._insertChild(r,[o,a])}}function Eu(t,e){const n=t.getAttributes(),i=e.getAttributes();for(const t of n){if(t[1]!==e.getAttribute(t[0]))return!1;i.next()}return i.next().done}class Tu extends ku{sourcePosition;howMany;targetPosition;constructor(t,e,n,i){super(i),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toNext",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNone"}get type(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}get affectedSelectable(){return[Yc._createFromPositionAndShift(this.sourcePosition,this.howMany),Yc._createFromPositionAndShift(this.targetPosition,0)]}clone(){return new Tu(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){const t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new Tu(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new wi("move-operation-nodes-do-not-exist",this);if(t===e&&n<i&&i<n+this.howMany)throw new wi("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==Yi(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){const t=this.sourcePosition.path.length-1;if(this.targetPosition.path[t]>=n&&this.targetPosition.path[t]<n+this.howMany)throw new wi("move-operation-node-into-itself",this)}}_execute(){_u(Yc._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}static get className(){return"MoveOperation"}static fromJSON(t,e){const n=Hc.fromJSON(t.sourcePosition,e),i=Hc.fromJSON(t.targetPosition,e);return new this(n,t.howMany,i,t.baseVersion)}}class Su extends ku{position;nodes;shouldReceiveAttributes;constructor(t,e,n){super(n),this.position=t.clone(),this.position.stickiness="toNone",this.nodes=new Rc(Cu(e)),this.shouldReceiveAttributes=!1}get type(){return"insert"}get howMany(){return this.nodes.maxOffset}get affectedSelectable(){return this.position.clone()}clone(){const t=new Rc([...this.nodes].map((t=>t._clone(!0)))),e=new Su(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const t=this.position.root.document.graveyard,e=new Hc(t,[0]);return new Tu(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new wi("insert-operation-position-invalid",this)}_execute(){const t=this.nodes;this.nodes=new Rc([...t].map((t=>t._clone(!0)))),vu(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const e of t.nodes)e.name?n.push($c.fromJSON(e)):n.push(Fc.fromJSON(e));const i=new Su(Hc.fromJSON(t.position,e),n,t.baseVersion);return i.shouldReceiveAttributes=t.shouldReceiveAttributes,i}}class Du extends ku{splitPosition;howMany;insertionPosition;graveyardPosition;constructor(t,e,n,i,r){super(r),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=i?i.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new Hc(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Yc(this.splitPosition,t)}get affectedSelectable(){const t=[Yc._createFromPositionAndShift(this.splitPosition,0),Yc._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(Yc._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new Du(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.splitPosition.root.document.graveyard,e=new Hc(t,[0]);return new Iu(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new wi("split-operation-position-invalid",this);if(!t.parent)throw new wi("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new wi("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new wi("split-operation-graveyard-position-invalid",this)}_execute(){const t=this.splitPosition.parent;if(this.graveyardPosition)_u(Yc._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{const e=t._clone();vu(this.insertionPosition,e)}_u(new Yc(Hc._createAt(t,this.splitPosition.offset),Hc._createAt(t,t.maxOffset)),this.moveTargetPosition)}toJSON(){const t=super.toJSON();return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t}static get className(){return"SplitOperation"}static getInsertionPosition(t){const e=t.path.slice(0,-1);return e[e.length-1]++,new Hc(t.root,e,"toPrevious")}static fromJSON(t,e){const n=Hc.fromJSON(t.splitPosition,e),i=Hc.fromJSON(t.insertionPosition,e),r=t.graveyardPosition?Hc.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,i,r,t.baseVersion)}}class Iu extends ku{sourcePosition;howMany;targetPosition;graveyardPosition;constructor(t,e,n,i,r){super(r),this.sourcePosition=t.clone(),this.sourcePosition.stickiness="toPrevious",this.howMany=e,this.targetPosition=n.clone(),this.targetPosition.stickiness="toNext",this.graveyardPosition=i.clone()}get type(){return"merge"}get deletionPosition(){return new Hc(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}get movedRange(){const t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Yc(this.sourcePosition,t)}get affectedSelectable(){const t=this.sourcePosition.parent;return[Yc._createOn(t),Yc._createFromPositionAndShift(this.targetPosition,0),Yc._createFromPositionAndShift(this.graveyardPosition,0)]}clone(){return new Iu(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new Hc(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new Du(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}_validate(){const t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new wi("merge-operation-source-position-invalid",this);if(!e.parent)throw new wi("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new wi("merge-operation-how-many-invalid",this)}_execute(){const t=this.sourcePosition.parent;_u(Yc._createIn(t),this.targetPosition),_u(Yc._createOn(t),this.graveyardPosition)}toJSON(){const t=super.toJSON();return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}static get className(){return"MergeOperation"}static fromJSON(t,e){const n=Hc.fromJSON(t.sourcePosition,e),i=Hc.fromJSON(t.targetPosition,e),r=Hc.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,i,r,t.baseVersion)}}class Bu extends ku{name;oldRange;newRange;affectsData;_markers;constructor(t,e,n,i,r,o){super(o),this.name=t,this.oldRange=e?e.clone():null,this.newRange=n?n.clone():null,this.affectsData=r,this._markers=i}get type(){return"marker"}get affectedSelectable(){const t=[];return this.oldRange&&t.push(this.oldRange.clone()),this.newRange&&(this.oldRange?t.push(...this.newRange.getDifference(this.oldRange)):t.push(this.newRange.clone())),t}clone(){return new Bu(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}getReversed(){return new Bu(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}_execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name)}toJSON(){const t=super.toJSON();return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}static get className(){return"MarkerOperation"}static fromJSON(t,e){return new Bu(t.name,t.oldRange?Yc.fromJSON(t.oldRange,e):null,t.newRange?Yc.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}const Mu=function(t,e){return yc(t,e)};class Pu extends ku{range;key;oldValue;newValue;constructor(t,e,n,i,r){super(r),this.range=t.clone(),this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===i?null:i}get type(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}get affectedSelectable(){return this.range.clone()}clone(){return new Pu(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Pu(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}toJSON(){const t=super.toJSON();return t.range=this.range.toJSON(),t}_validate(){if(!this.range.isFlat)throw new wi("attribute-operation-range-not-flat",this);for(const t of this.range.getItems({shallow:!0})){if(null!==this.oldValue&&!Mu(t.getAttribute(this.key),this.oldValue))throw new wi("attribute-operation-wrong-old-value",this,{item:t,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&t.hasAttribute(this.key))throw new wi("attribute-operation-attribute-exists",this,{node:t,key:this.key})}}_execute(){Mu(this.oldValue,this.newValue)||function(t,e,n){xu(t.start),xu(t.end);for(const i of t.getItems({shallow:!0})){const t=i.is("$textProxy")?i.textNode:i;null!==n?t._setAttribute(e,n):t._removeAttribute(e),Au(t.parent,t.index)}Au(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}static get className(){return"AttributeOperation"}static fromJSON(t,e){return new Pu(Yc.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Lu extends ku{get type(){return"noop"}get affectedSelectable(){return null}clone(){return new Lu(this.baseVersion)}getReversed(){return new Lu(this.baseVersion+1)}_execute(){}static get className(){return"NoOperation"}}class Ou extends ku{position;oldName;newName;constructor(t,e,n,i){super(i),this.position=t,this.position.stickiness="toNext",this.oldName=e,this.newName=n}get type(){return"rename"}get affectedSelectable(){return this.position.nodeAfter}clone(){return new Ou(this.position.clone(),this.oldName,this.newName,this.baseVersion)}getReversed(){return new Ou(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}_validate(){const t=this.position.nodeAfter;if(!(t instanceof $c))throw new wi("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new wi("rename-operation-wrong-name",this)}_execute(){this.position.nodeAfter.name=this.newName}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t}static get className(){return"RenameOperation"}static fromJSON(t,e){return new Ou(Hc.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}class Nu extends ku{root;key;oldValue;newValue;constructor(t,e,n,i,r){super(r),this.root=t,this.key=e,this.oldValue=void 0===n?null:n,this.newValue=void 0===i?null:i}get type(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}get affectedSelectable(){return this.root}clone(){return new Nu(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new Nu(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new wi("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new wi("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new wi("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}_execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}toJSON(){const t=super.toJSON();return t.root=this.root.toJSON(),t}static get className(){return"RootAttributeOperation"}static fromJSON(t,e){if(!e.getRoot(t.root))throw new wi("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new Nu(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}class Ru extends ku{rootName;elementName;isAdd;_document;constructor(t,e,n,i,r){if(super(r),this.rootName=t,this.elementName=e,this.isAdd=n,this._document=i,!this._document.getRoot(this.rootName)){this._document.createRoot(this.elementName,this.rootName)._isAttached=!1}}get type(){return this.isAdd?"addRoot":"detachRoot"}get affectedSelectable(){return this._document.getRoot(this.rootName)}clone(){return new Ru(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion)}getReversed(){return new Ru(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1)}_execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd}toJSON(){const t=super.toJSON();return delete t._document,t}static get className(){return"RootOperation"}static fromJSON(t,e){return new Ru(t.rootName,t.elementName,t.isAdd,e,t.baseVersion)}}const Fu={};Fu[Pu.className]=Pu,Fu[Su.className]=Su,Fu[Bu.className]=Bu,Fu[Tu.className]=Tu,Fu[Lu.className]=Lu,Fu[ku.className]=ku,Fu[Ou.className]=Ou,Fu[Nu.className]=Nu,Fu[Ru.className]=Ru,Fu[Du.className]=Du,Fu[Iu.className]=Iu;class ju{static fromJSON(t,e){return Fu[t.__className].fromJSON(t,e)}}const $u=new Map;function zu(t,e,n){let i=$u.get(t);i||(i=new Map,$u.set(t,i)),i.set(e,n)}function Vu(t){return[t]}function Hu(t,e,n={}){const i=function(t,e){const n=$u.get(t);return n&&n.has(e)?n.get(e):Vu}(t.constructor,e.constructor);try{return i(t=t.clone(),e,n)}catch(t){throw t}}function qu(t,e,n){t=t.slice(),e=e.slice();const i=new Uu(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(t),i.setOriginalOperations(e);const r=i.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:r};const o=new WeakMap;for(const e of t)o.set(e,0);const a={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length};let s=0;for(;s<t.length;){const n=t[s],r=o.get(n);if(r==e.length){s++;continue}const a=e[r],c=Hu(n,a,i.getContext(n,a,!0)),l=Hu(a,n,i.getContext(a,n,!1));i.updateRelation(n,a),i.setOriginalOperations(c,n),i.setOriginalOperations(l,a);for(const t of c)o.set(t,r+l.length);t.splice(s,1,...c),e.splice(r,1,...l)}if(Ku(t),Ku(e),n.padWithNoOps){const n=t.length-a.originalOperationsACount,i=e.length-a.originalOperationsBCount;Wu(t,i-n),Wu(e,n-i)}return Gu(t,a.nextBaseVersionB),Gu(e,a.nextBaseVersionA),{operationsA:t,operationsB:e,originalOperations:r}}class Uu{originalOperations;_history;_useRelations;_forceWeakRemove;_relations;constructor(t,e,n=!1){this.originalOperations=new Map,this._history=t.history,this._useRelations=e,this._forceWeakRemove=!!n,this._relations=new Map}setOriginalOperations(t,e=null){const n=e?this.originalOperations.get(e):null;for(const e of t)this.originalOperations.set(e,n||e)}updateRelation(t,e){if(t instanceof Tu)e instanceof Iu?t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter"):e instanceof Tu&&(t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter"));else if(t instanceof Du){if(e instanceof Iu)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof Tu)if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{const n=Yc._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.splitPosition)){const i=n.end.offset-t.splitPosition.offset,r=t.splitPosition.offset-n.start.offset;this._setRelation(t,e,{howMany:i,offset:r})}}}else if(t instanceof Iu)e instanceof Iu?(t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement")):e instanceof Du?t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource"):e instanceof Tu&&e.howMany>0&&(t.sourcePosition.isEqual(e.sourcePosition.getShiftedBy(e.howMany))&&this._setRelation(t,e,"mergeSourceAffected"),t.targetPosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeTargetWasBefore"));else if(t instanceof Bu){const n=t.newRange;if(!n)return;if(e instanceof Iu){const i=n.start.isEqual(e.targetPosition),r=n.start.isEqual(e.deletionPosition),o=n.end.isEqual(e.deletionPosition),a=n.end.isEqual(e.sourcePosition);(i||r||o||a)&&this._setRelation(t,e,{wasInLeftElement:i,wasStartBeforeMergedElement:r,wasEndBeforeMergedElement:o,wasInRightElement:a})}}}getContext(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove}}_wasUndone(t){const e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}_getRelation(t,e){const n=this.originalOperations.get(e),i=this._history.getUndoneOperation(n);if(!i)return null;const r=this.originalOperations.get(t),o=this._relations.get(r);return o&&o.get(i)||null}_setRelation(t,e,n){const i=this.originalOperations.get(t),r=this.originalOperations.get(e);let o=this._relations.get(i);o||(o=new Map,this._relations.set(i,o)),o.set(r,n)}}function Gu(t,e){for(const n of t)n.baseVersion=e++}function Wu(t,e){for(let n=0;n<e;n++)t.push(new Lu(0))}function Ku(t){const e=new Map;for(let n=0;n<t.length;n++){const i=t[n];i instanceof Bu&&(-1!==i.baseVersion?e.set(i.name,{op:i,ranges:i.newRange?[i.newRange]:[]}):(i.newRange&&e.get(i.name).ranges.push(i.newRange),t.splice(n,1),n--))}for(const{op:t,ranges:n}of e.values())n.length?t.newRange=Yc._createFromRanges(n):t.newRange=null}function Yu(t,e,n){const i=t.nodes.getNode(0).getAttribute(e);if(i==n)return null;const r=new Yc(t.position,t.position.getShiftedBy(t.howMany));return new Pu(r,e,i,n,0)}function Xu(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)}function Zu(t,e){const n=[];for(let i=0;i<t.length;i++){const r=t[i],o=new Tu(r.start,r.end.offset-r.start.offset,e,0);n.push(o);for(let e=i+1;e<t.length;e++)t[e]=t[e]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];e=e._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}zu(Pu,Pu,((t,e,n)=>{if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){const i=t.range.getDifference(e.range).map((e=>new Pu(e,t.key,t.oldValue,t.newValue,0))),r=t.range.getIntersection(e.range);return r&&n.aIsStrong&&i.push(new Pu(r,e.key,e.newValue,t.newValue,0)),0==i.length?[new Lu(0)]:i}return[t]})),zu(Pu,Su,((t,e)=>{if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){const n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map((e=>new Pu(e,t.key,t.oldValue,t.newValue,t.baseVersion)));if(e.shouldReceiveAttributes){const i=Yu(e,t.key,t.oldValue);i&&n.unshift(i)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),zu(Pu,Iu,((t,e)=>{const n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(Yc._createFromPositionAndShift(e.graveyardPosition,1));const i=t.range._getTransformedByMergeOperation(e);return i.isCollapsed||n.push(i),n.map((e=>new Pu(e,t.key,t.oldValue,t.newValue,t.baseVersion)))})),zu(Pu,Tu,((t,e)=>function(t,e){const n=Yc._createFromPositionAndShift(e.sourcePosition,e.howMany);let i=null,r=[];n.containsRange(t,!0)?i=t:t.start.hasSameParentAs(n.start)?(r=t.getDifference(n),i=t.getIntersection(n)):r=[t];const o=[];for(let t of r){t=t._getTransformedByDeletion(e.sourcePosition,e.howMany);const n=e.getMovedRangeStart(),i=t.start.hasSameParentAs(n),r=t._getTransformedByInsertion(n,e.howMany,i);o.push(...r)}i&&o.push(i._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]);return o}(t.range,e).map((e=>new Pu(e,t.key,t.oldValue,t.newValue,t.baseVersion))))),zu(Pu,Du,((t,e)=>{if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){const n=t.clone();return n.range=new Yc(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]})),zu(Su,Pu,((t,e)=>{const n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){const i=Yu(t,e.key,e.newValue);i&&n.push(i)}return n})),zu(Su,Su,((t,e,n)=>(t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]))),zu(Su,Tu,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),zu(Su,Du,((t,e)=>(t.position=t.position._getTransformedBySplitOperation(e),[t]))),zu(Su,Iu,((t,e)=>(t.position=t.position._getTransformedByMergeOperation(e),[t]))),zu(Bu,Su,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]))),zu(Bu,Bu,((t,e,n)=>{if(t.name==e.name){if(!n.aIsStrong)return[new Lu(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),zu(Bu,Iu,((t,e)=>(t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]))),zu(Bu,Tu,((t,e)=>{const n=[t];if(t.oldRange&&(t.oldRange=Yc._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){const i=t.newRange._getTransformedByMoveOperation(e);t.newRange=i[0];for(let e=1;e<i.length;e++){const r=t.clone();r.oldRange=null,r.newRange=i[e],r.baseVersion=-1,n.push(r)}}return n})),zu(Bu,Du,((t,e,n)=>{if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){const i=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=Hc._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement?t.newRange.start=Hc._createAt(e.moveTargetPosition):t.newRange.start=i.start,t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=Hc._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=Hc._createAt(e.insertionPosition):t.newRange.end=i.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),zu(Iu,Su,((t,e)=>(t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t]))),zu(Iu,Iu,((t,e,n)=>{if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){const n=e.graveyardPosition.path.slice();return n.push(0),t.sourcePosition=new Hc(e.graveyardPosition.root,n),t.howMany=0,[t]}return[new Lu(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){const i="$graveyard"==t.targetPosition.root.rootName,r="$graveyard"==e.targetPosition.root.rootName;if(r&&!i||!(i&&!r)&&n.aIsStrong){const n=e.targetPosition._getTransformedByMergeOperation(e),i=t.targetPosition._getTransformedByMergeOperation(e);return[new Tu(n,t.howMany,i,0)]}return[new Lu(0)]}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),zu(Iu,Tu,((t,e,n)=>{const i=Yc._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition)?[new Lu(0)]:(e.sourcePosition.getShiftedBy(e.howMany).isEqual(t.sourcePosition)?t.sourcePosition.stickiness="toNone":e.targetPosition.isEqual(t.sourcePosition)&&"mergeSourceAffected"==n.abRelation?t.sourcePosition.stickiness="toNext":e.sourcePosition.isEqual(t.targetPosition)?(t.targetPosition.stickiness="toNone",t.howMany-=e.howMany):e.targetPosition.isEqual(t.targetPosition)&&"mergeTargetWasBefore"==n.abRelation?(t.targetPosition.stickiness="toPrevious",t.howMany+=e.howMany):(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany)),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.sourcePosition.stickiness="toPrevious",t.targetPosition.stickiness="toNext",t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])})),zu(Iu,Du,((t,e,n)=>{if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){if(e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition)||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t]}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]})),zu(Tu,Su,((t,e)=>{const n=Yc._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t]})),zu(Tu,Tu,((t,e,n)=>{const i=Yc._createFromPositionAndShift(t.sourcePosition,t.howMany),r=Yc._createFromPositionAndShift(e.sourcePosition,e.howMany);let o,a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),o=t.targetPosition.isEqual(e.targetPosition)&&s?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Xu(t,e)&&Xu(e,t))return[e.getReversed()];if(i.containsPosition(e.targetPosition)&&i.containsRange(r,!0))return i.start=i.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),i.end=i.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Zu([i],o);if(r.containsPosition(t.targetPosition)&&r.containsRange(i,!0))return i.start=i.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),i.end=i.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),Zu([i],o);const c=Yi(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==c||"extension"==c)return i.start=i.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),i.end=i.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Zu([i],o);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;const l=[],u=i.getDifference(r);for(const t of u){t.start=t.start._getTransformedByDeletion(e.sourcePosition,e.howMany),t.end=t.end._getTransformedByDeletion(e.sourcePosition,e.howMany);const n="same"==Yi(t.start.getParentPath(),e.getMovedRangeStart().getParentPath()),i=t._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,n);l.push(...i)}const h=i.getIntersection(r);return null!==h&&a&&(h.start=h.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),h.end=h.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===l.length?l.push(h):1==l.length?r.start.isBefore(i.start)||r.start.isEqual(i.start)?l.unshift(h):l.push(h):l.splice(1,0,h)),0===l.length?[new Lu(t.baseVersion)]:Zu(l,o)})),zu(Tu,Du,((t,e,n)=>{let i=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=t.targetPosition._getTransformedBySplitOperation(e));const r=Yc._createFromPositionAndShift(t.sourcePosition,t.howMany);if(r.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=i,[t];if(r.start.hasSameParentAs(e.splitPosition)&&r.containsPosition(e.splitPosition)){let t=new Yc(e.splitPosition,r.end);t=t._getTransformedBySplitOperation(e);return Zu([new Yc(r.start,e.splitPosition),t],i)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(i=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(i=t.targetPosition);const o=[r._getTransformedBySplitOperation(e)];if(e.graveyardPosition){const i=r.start.isEqual(e.graveyardPosition)||r.containsPosition(e.graveyardPosition);t.howMany>1&&i&&!n.aWasUndone&&o.push(Yc._createFromPositionAndShift(e.insertionPosition,1))}return Zu(o,i)})),zu(Tu,Iu,((t,e,n)=>{const i=Yc._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new Lu(0)]}else if(!n.aWasUndone){const n=[];let i=e.graveyardPosition.clone(),r=e.targetPosition._getTransformedByMergeOperation(e);const o=t.targetPosition.getTransformedByOperation(e);t.howMany>1&&(n.push(new Tu(t.sourcePosition,t.howMany-1,o,0)),i=i._getTransformedByMove(t.sourcePosition,o,t.howMany-1),r=r._getTransformedByMove(t.sourcePosition,o,t.howMany-1));const a=e.deletionPosition._getCombined(t.sourcePosition,o),s=new Tu(i,1,a,0),c=s.getMovedRangeStart().path.slice();c.push(0);const l=new Hc(s.targetPosition.root,c);r=r._getTransformedByMove(i,a,1);const u=new Tu(r,e.howMany,l,0);return n.push(s),n.push(u),n}const r=Yc._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=r.start,t.howMany=r.end.offset-r.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),zu(Ou,Su,((t,e)=>(t.position=t.position._getTransformedByInsertOperation(e),[t]))),zu(Ou,Iu,((t,e)=>t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t]))),zu(Ou,Tu,((t,e)=>(t.position=t.position._getTransformedByMoveOperation(e),[t]))),zu(Ou,Ou,((t,e,n)=>{if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new Lu(0)];t.oldName=e.newName}return[t]})),zu(Ou,Du,((t,e)=>{if("same"==Yi(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){const e=new Ou(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,e]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),zu(Nu,Nu,((t,e,n)=>{if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new Lu(0)];t.oldValue=e.newValue}return[t]})),zu(Ru,Ru,((t,e)=>t.rootName===e.rootName&&t.isAdd===e.isAdd?[new Lu(0)]:[t])),zu(Du,Su,((t,e)=>(t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset<e.position.offset&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByInsertOperation(e),t.insertionPosition=t.insertionPosition._getTransformedByInsertOperation(e),[t]))),zu(Du,Iu,((t,e,n)=>{if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){const n=e.graveyardPosition.path.slice();n.push(0);const i=new Hc(e.graveyardPosition.root,n),r=Du.getInsertionPosition(new Hc(e.graveyardPosition.root,n)),o=new Du(i,0,r,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Du.getInsertionPosition(t.splitPosition),t.graveyardPosition=o.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[o,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Du.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),zu(Du,Tu,((t,e,n)=>{const i=Yc._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){const r=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&r){const n=t.splitPosition._getTransformedByMoveOperation(e),i=t.graveyardPosition._getTransformedByMoveOperation(e),r=i.path.slice();r.push(0);const o=new Hc(i.root,r);return[new Tu(n,t.howMany,o,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}const r=t.splitPosition.isEqual(e.targetPosition);if(r&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=Du.getInsertionPosition(t.splitPosition),[t];if(r&&n.abRelation&&n.abRelation.howMany){const{howMany:e,offset:i}=n.abRelation;return t.howMany+=e,t.splitPosition=t.splitPosition.getShiftedBy(i),[t]}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.splitPosition)){const n=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=n,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany),t.splitPosition=e.sourcePosition.clone(),t.insertionPosition=Du.getInsertionPosition(t.splitPosition),[t]}return e.sourcePosition.isEqual(e.targetPosition)||(t.splitPosition.hasSameParentAs(e.sourcePosition)&&t.splitPosition.offset<=e.sourcePosition.offset&&(t.howMany-=e.howMany),t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany)),t.splitPosition.stickiness="toNone",t.splitPosition=t.splitPosition._getTransformedByMoveOperation(e),t.splitPosition.stickiness="toNext",t.graveyardPosition?t.insertionPosition=t.insertionPosition._getTransformedByMoveOperation(e):t.insertionPosition=Du.getInsertionPosition(t.splitPosition),[t]})),zu(Du,Du,((t,e,n)=>{if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new Lu(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new Lu(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t]}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){const i="$graveyard"==t.splitPosition.root.rootName,r="$graveyard"==e.splitPosition.root.rootName;if(r&&!i||!(i&&!r)&&n.aIsStrong){const n=[];return e.howMany&&n.push(new Tu(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&n.push(new Tu(t.splitPosition,t.howMany,t.moveTargetPosition,0)),n}return[new Lu(0)]}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){const n=e.insertionPosition.path.slice();n.push(0);const i=new Hc(e.insertionPosition.root,n);return[t,new Tu(t.insertionPosition,1,i,0)]}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset<e.splitPosition.offset&&(t.howMany-=e.howMany),t.splitPosition=t.splitPosition._getTransformedBySplitOperation(e),t.insertionPosition=Du.getInsertionPosition(t.splitPosition),[t]}));class Qu extends(Si(Hc)){constructor(t,e,n="toNone"){if(super(t,e,n),!this.root.is("rootElement"))throw new wi("model-liveposition-root-not-rootelement",t);Ju.call(this)}detach(){this.stopListening()}toPosition(){return new Hc(this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function Ju(){this.listenTo(this.root.document.model,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&th.call(this,n)}),{priority:"low"})}function th(t){const e=this.getTransformedByOperation(t);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}Qu.prototype.is=function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t};class eh{operations;isUndoable;isLocal;isUndo;isTyping;constructor(t={}){"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},ki("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:i=!1,isTyping:r=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=i,this.isTyping=r}get type(){return ki("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}class nh{static _statesPriority=[void 0,"refresh","rename","move"];_markerCollection;_changesInElement=new Map;_elementsSnapshots=new Map;_elementChildrenSnapshots=new Map;_elementState=new Map;_changedMarkers=new Map;_changedRoots=new Map;_changeCount=0;_cachedChanges=null;_cachedChangesWithGraveyard=null;_refreshedItems=new Set;constructor(t){this._markerCollection=t}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(t){const e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const t of e.range.getItems({shallow:!0}))this._isInInsertedElement(t.parent)||this._markAttribute(t);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const t=this._isInInsertedElement(e.sourcePosition.parent),n=this._isInInsertedElement(e.targetPosition.parent);t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),n||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);const i=Yc._createFromPositionAndShift(e.sourcePosition,e.howMany);for(const t of i.getItems({shallow:!0}))this._setElementState(t,"move");break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const t=Yc._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getData();this.bufferMarkerChange(e.name,t,t)}this._setElementState(e.position.nodeAfter,"rename");break}case"split":{const t=e.splitPosition.parent;if(!this._isInInsertedElement(t)){this._markRemove(t,e.splitPosition.offset,e.howMany);const n=Yc._createFromPositionAndShift(e.splitPosition,e.howMany);for(const t of n.getItems({shallow:!0}))this._setElementState(t,"move")}this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&(this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1),this._setElementState(e.graveyardPosition.nodeAfter,"move"));break}case"merge":{const t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1);const n=e.graveyardPosition.parent;this._markInsert(n,e.graveyardPosition.offset,1),this._setElementState(t,"move");const i=e.targetPosition.parent;if(!this._isInInsertedElement(i)){this._markInsert(i,e.targetPosition.offset,t.maxOffset);const n=Yc._createFromPositionAndShift(e.sourcePosition,e.howMany);for(const t of n.getItems({shallow:!0}))this._setElementState(t,"move")}break}case"detachRoot":case"addRoot":{const t=e.affectedSelectable;if(!t._isLoaded)return;if(t.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!e.root._isLoaded)return;const t=e.root.rootName;this._bufferRootAttributeChange(t,e.key,e.oldValue,e.newValue);break}}this._cachedChanges=null}bufferMarkerChange(t,e,n){e.range&&e.range.root.is("rootElement")&&!e.range.root._isLoaded&&(e.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let i=this._changedMarkers.get(t);i?i.newMarkerData=n:(i={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,i)),null==i.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.oldMarkerData.range&&t.push({name:e,range:n.oldMarkerData.range});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.newMarkerData.range&&t.push({name:e,range:n.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map((([t,e])=>({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}})))}hasDataChanges(){if(this.getChanges().length)return!0;if(this._changedRoots.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,i=!t.range&&e.range,r=t.range&&e.range&&!t.range.isEqual(e.range);if(n||i||r)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const t of this._changesInElement.keys()){const n=this._changesInElement.get(t).sort(((t,e)=>t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offset<e.offset?-1:1)),i=this._elementChildrenSnapshots.get(t),r=rh(t.getChildren()),o=oh(i.length,n);let a=0,s=0;for(const n of o)if("i"===n){const n=this._getDiffActionForNode(r[a].node,"insert"),i=this._elementsSnapshots.get(r[a].node),o=this._getInsertDiff(t,a,n,r[a],i);e.push(o),a++}else if("r"===n){const n=this._getDiffActionForNode(i[s].node,"remove"),r=this._getRemoveDiff(t,a,n,i[s]);e.push(r),s++}else if("a"===n){const n=i[s].attributes,o=r[a].attributes;let c;if("$text"==r[a].name)c=new Yc(Hc._createAt(t,a),Hc._createAt(t,a+1));else{const e=t.offsetToIndex(a);c=new Yc(Hc._createAt(t,a),Hc._createAt(t.getChild(e),0))}const l=this._getAttributesDiff(c,n,o);e.push(...l),a++,s++}else a++,s++}e.sort(((t,e)=>t.position.root!=e.position.root?t.position.root.rootName<e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1));for(let t=1,n=0;t<e.length;t++){const i=e[n],r=e[t],o="remove"==i.type&&"remove"==r.type&&"$text"==i.name&&"$text"==r.name&&i.position.isEqual(r.position),a="insert"==i.type&&"insert"==r.type&&"$text"==i.name&&"$text"==r.name&&i.position.parent==r.position.parent&&i.position.offset+i.length==r.position.offset,s="attribute"==i.type&&"attribute"==r.type&&i.position.parent==r.position.parent&&i.range.isFlat&&r.range.isFlat&&i.position.offset+i.length==r.position.offset&&i.attributeKey==r.attributeKey&&i.attributeOldValue==r.attributeOldValue&&i.attributeNewValue==r.attributeNewValue;o||a||s?(i.length++,s&&(i.range.end=i.range.end.getShiftedBy(1)),e[t]=null):n=t}e=e.filter((t=>t));for(const t of e)delete t.changeCount,"attribute"==t.type&&(delete t.position,delete t.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(ah),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map((t=>{const e={...t};return void 0!==e.state&&delete e.attributes,e}))}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementChildrenSnapshots.clear(),this._elementsSnapshots.clear(),this._elementState.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems.clear(),this._cachedChanges=null}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t),this._setElementState(t,"refresh");const e=Yc._createOn(t);for(const t of this._markerCollection.getMarkersIntersectingRange(e)){const e=t.getData();this.bufferMarkerChange(t.name,e,e)}this._cachedChanges=null}_bufferRootLoad(t){if(t.isAttached()){this._bufferRootStateChange(t.rootName,!0),this._markInsert(t,0,t.maxOffset);for(const e of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,e,null,t.getAttribute(e));for(const e of this._markerCollection)if(e.getRange().root==t){const t=e.getData();this.bufferMarkerChange(e.name,{...t,range:null},t)}}}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t))return void this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});const n=this._changedRoots.get(t);void 0!==n.state?(delete n.state,void 0===n.attributes&&this._changedRoots.delete(t)):n.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,n,i){const r=this._changedRoots.get(t)||{name:t},o=r.attributes||{};if(o[e]){const t=o[e];i===t.oldValue?delete o[e]:t.newValue=i}else o[e]={oldValue:n,newValue:i};0===Object.entries(o).length?(delete r.attributes,void 0===r.state&&this._changedRoots.delete(t)):(r.attributes=o,this._changedRoots.set(t,r))}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const i={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshots(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let t=0;t<n.length;t++)n[t].howMany<1&&(n.splice(t,1),t--)}_setElementState(t,e){if(!t.is("element"))return;const n=nh._statesPriority.indexOf(this._elementState.get(t));nh._statesPriority.indexOf(e)>n&&this._elementState.set(t,e)}_getDiffActionForNode(t,e){if(!t.is("element"))return e;if(!this._elementsSnapshots.has(t))return e;const n=this._elementState.get(t);return n&&"move"!=n?n:e}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshots(t){if(this._elementChildrenSnapshots.has(t))return;const e=rh(t.getChildren());this._elementChildrenSnapshots.set(t,e);for(const t of e)this._elementsSnapshots.set(t.node,t)}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const n of e){const i=t.offset+t.howMany,r=n.offset+n.howMany;if("insert"==t.type&&("insert"==n.type&&(t.offset<=n.offset?n.offset+=t.howMany:t.offset<r&&(n.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==n.type&&t.offset<n.offset&&(n.offset+=t.howMany),"attribute"==n.type))if(t.offset<=n.offset)n.offset+=t.howMany;else if(t.offset<r){const r=n.howMany;n.howMany=t.offset-n.offset,e.unshift({type:"attribute",offset:i,howMany:r-n.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==n.type)if(i<=n.offset)n.offset-=t.howMany;else if(i<=r)if(t.offset<n.offset){const e=i-n.offset;n.offset=t.offset,n.howMany-=e,t.nodesToHandle-=e}else n.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=n.offset)t.nodesToHandle-=n.howMany,n.howMany=0;else if(t.offset<r){const e=r-t.offset;n.howMany-=e,t.nodesToHandle-=e}if("remove"==n.type&&(i<=n.offset?n.offset-=t.howMany:t.offset<n.offset&&(t.nodesToHandle+=n.howMany,n.howMany=0)),"attribute"==n.type)if(i<=n.offset)n.offset-=t.howMany;else if(t.offset<n.offset){const e=i-n.offset;n.offset=t.offset,n.howMany-=e}else if(t.offset<r)if(i<=r){const i=n.howMany;n.howMany=t.offset-n.offset;const r=i-n.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:r,count:this._changeCount++})}else n.howMany-=r-t.offset}if("attribute"==t.type){if("insert"==n.type)if(t.offset<n.offset&&i>n.offset){if(i>r){const t={type:"attribute",offset:r,howMany:i-r,count:this._changeCount++};this._handleChange(t,e),e.push(t)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offset<r&&(i>r?(t.nodesToHandle=i-r,t.offset=r):t.nodesToHandle=0);if("remove"==n.type&&t.offset<n.offset&&i>n.offset){const r={type:"attribute",offset:n.offset,howMany:i-n.offset,count:this._changeCount++};this._handleChange(r,e),e.push(r),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&i<=r?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&i>=r&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n,i,r){const o={type:"insert",position:Hc._createAt(t,e),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++,action:n};return"insert"!=n&&r&&(o.before={name:r.name,attributes:new Map(r.attributes)}),o}_getRemoveDiff(t,e,n,i){return{type:"remove",action:n,position:Hc._createAt(t,e),name:i.name,attributes:new Map(i.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const i=[];n=new Map(n);for(const[r,o]of e){const e=n.has(r)?n.get(r):null;e!==o&&i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:r,attributeOldValue:o,attributeNewValue:e,changeCount:this._changeCount++}),n.delete(r)}for(const[e,r]of n)i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:e,attributeOldValue:null,attributeNewValue:r,changeCount:this._changeCount++});return i}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),i=t.startOffset;if(n)for(const t of n)if("insert"==t.type&&i>=t.offset&&i<t.offset+t.howMany)return!0;return this._isInInsertedElement(e)}_removeAllNestedChanges(t,e,n){const i=new Yc(Hc._createAt(t,e),Hc._createAt(t,e+n));for(const t of i.getItems({shallow:!0}))t.is("element")&&(this._changesInElement.delete(t),this._removeAllNestedChanges(t,0,t.maxOffset))}}function ih(t){return{node:t,name:t.is("$text")?"$text":t.name,attributes:new Map(t.getAttributes())}}function rh(t){const e=[];for(const n of t)if(n.is("$text"))for(let t=0;t<n.data.length;++t)e.push(ih(n));else e.push(ih(n));return e}function oh(t,e){const n=[];let i=0,r=0;for(const t of e){if(t.offset>i){for(let e=0;e<t.offset-i;e++)n.push("e");r+=t.offset-i}if("insert"==t.type){for(let e=0;e<t.howMany;e++)n.push("i");i=t.offset+t.howMany}else if("remove"==t.type){for(let e=0;e<t.howMany;e++)n.push("r");i=t.offset,r+=t.howMany}else{if(t.howMany>1500)for(let e=0;e<t.howMany;e++)n.push("a");else n.push(..."a".repeat(t.howMany).split(""));i=t.offset+t.howMany,r+=t.howMany}}if(r<t)for(let e=0;e<t-r-i;e++)n.push("e");return n}function ah(t){const e="position"in t&&"$graveyard"==t.position.root.rootName,n="range"in t&&"$graveyard"==t.range.root.rootName;return!e&&!n}class sh{_operations=[];_undoPairs=new Map;_undoneOperations=new Set;_baseVersionToOperationIndex=new Map;_version=0;_gaps=new Map;get version(){return this._version}set version(t){this._operations.length&&t>this._version+1&&this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new wi("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];void 0===t&&(t=n.baseVersion);let i=e-1;for(const[e,n]of this._gaps)t>e&&t<n&&(t=n),i>e&&i<n&&(i=e-1);if(i<n.baseVersion||t>this.lastOperation.baseVersion)return[];let r=this._baseVersionToOperationIndex.get(t);void 0===r&&(r=0);let o=this._baseVersionToOperationIndex.get(i);return void 0===o&&(o=this._operations.length-1),this._operations.slice(r,o+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class ch extends $c{rootName;_document;_isAttached=!0;_isLoaded=!0;constructor(t,e,n="main"){super(e),this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}ch.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t):"rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t||"node"===t||"model:node"===t};const lh="$graveyard";class uh extends(Si()){model;history;selection;roots;differ;isReadOnly;_postFixers;_hasSelectionChangedFromTheLastChangeBlock;constructor(t){super(),this.model=t,this.history=new sh,this.selection=new fl(this),this.roots=new Ao({idProperty:"rootName"}),this.differ=new nh(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",lh),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&this.differ.bufferOperation(n)}),{priority:"high"}),this.listenTo(t,"applyOperation",((t,e)=>{const n=e[0];n.isDocumentOperation&&this.history.addOperation(n)}),{priority:"low"}),this.listenTo(this.selection,"change",(()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",((t,e,n,i,r)=>{const o={...e.getData(),range:i};this.differ.bufferMarkerChange(e.name,r,o),null===n&&e.on("change",((t,n)=>{const i=e.getData();this.differ.bufferMarkerChange(e.name,{...i,range:n},i)}))})),this.registerPostFixer((t=>{let e=!1;for(const n of this.roots)n.isAttached()||n.isEmpty||(t.remove(t.createRangeIn(n)),e=!0);for(const n of this.model.markers)n.getRange().root.isAttached()||(t.removeMarker(n),e=!0);return e}))}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(lh)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new wi("model-document-createroot-name-exists",this,{name:e});const n=new ch(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map((t=>t.rootName))}getRoots(t=!1){return this.roots.filter((e=>e!=this.graveyard&&(t||e.isAttached())&&e._isLoaded))}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=na(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,i=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(i)||e.createRange(i)}_validateSelectionRange(t){return hh(t.start)&&hh(t.end)}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break}while(e)}}function hh(t){const e=t.textNode;if(e){const n=e.data,i=t.offset-e.startOffset;return!Io(n,i)&&!Bo(n,i)}return!0}class dh extends(Si()){_markers=new Map;[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof fh?t.name:t;return this._markers.has(e)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,i=!1){const r=t instanceof fh?t.name:t;if(r.includes(","))throw new wi("markercollection-incorrect-marker-name",this);const o=this._markers.get(r);if(o){const t=o.getData(),a=o.getRange();let s=!1;return a.isEqual(e)||(o._attachLiveRange(ll.fromRange(e)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof i&&i!=o.affectsData&&(o._affectsData=i,s=!0),s&&this.fire(`update:${r}`,o,a,e,t),o}const a=ll.fromRange(e),s=new fh(r,a,n,i);return this._markers.set(r,s),this.fire(`update:${r}`,s,null,e,{...s.getData(),range:null}),s}_remove(t){const e=t instanceof fh?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire(`update:${e}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof fh?t.name:t,n=this._markers.get(e);if(!n)throw new wi("markercollection-refresh-marker-not-exists",this);const i=n.getRange();this.fire(`update:${e}`,n,i,i,n.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}class fh extends(Si(Oc)){name;_managedUsingOperations;_affectsData;_liveRange;constructor(t,e,n,i){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=i}get managedUsingOperations(){if(!this._liveRange)throw new wi("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new wi("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new wi("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new wi("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new wi("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}fh.prototype.is=function(t){return"marker"===t||"model:marker"===t};class gh extends ku{sourcePosition;howMany;constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new wi("detach-operation-on-document-node",this)}_execute(){yu(Yc._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class ph extends Oc{markers=new Map;_children=new Rc;constructor(t){super(),t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)n.name?e.push($c.fromJSON(n)):e.push(Fc.fromJSON(n));return new ph(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n=function(t){if("string"==typeof t)return[new Fc(t)];Xi(t)||(t=[t]);return Array.from(t).map((t=>"string"==typeof t?new Fc(t):t instanceof jc?new Fc(t.data,t.getAttributes()):t))}(e);for(const t of n)null!==t.parent&&t._remove(),t.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const t of n)t.parent=null;return n}}ph.prototype.is=function(t){return"documentFragment"===t||"model:documentFragment"===t};class mh{model;batch;constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new Fc(t,e)}createElement(t,e){return new $c(t,e)}createDocumentFragment(){return new ph}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof Fc&&""==t.data)return;const i=Hc._createAt(e,n);if(t.parent){if(yh(t.root,i.root))return void this.move(Yc._createOn(t),i);if(t.root.document)throw new wi("model-writer-insert-forbidden-move",this);this.remove(t)}const r=i.root.document?i.root.document.version:null,o=new Su(i,t,r);if(t instanceof Fc&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),t instanceof ph)for(const[e,n]of t.markers){const t=Hc._createAt(n.root,0),r={range:new Yc(n.start._getCombined(t,i),n.end._getCombined(t,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(e)?this.updateMarker(e,r):this.addMarker(e,r)}}insertText(t,e,n,i){e instanceof ph||e instanceof $c||e instanceof Hc?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,i)}insertElement(t,e,n,i){e instanceof ph||e instanceof $c||e instanceof Hc?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,i)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof ph||e instanceof $c?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof ph||e instanceof $c?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof Yc){const i=n.getMinimalFlatRanges();for(const n of i)bh(this,t,e,n)}else wh(this,t,e,n)}setAttributes(t,e){for(const[n,i]of So(t))this.setAttribute(n,i,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof Yc){const n=e.getMinimalFlatRanges();for(const e of n)bh(this,t,null,e)}else wh(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=t=>{for(const e of t.getAttributeKeys())this.removeAttribute(e,t)};if(t instanceof Yc)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof Yc))throw new wi("writer-move-invalid-range",this);if(!t.isFlat)throw new wi("writer-move-range-not-flat",this);const i=Hc._createAt(e,n);if(i.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!yh(t.root,i.root))throw new wi("writer-move-different-document",this);const r=t.root.document?t.root.document.version:null,o=new Tu(t.start,t.end.offset-t.start.offset,i,r);this.batch.addOperation(o),this.model.applyOperation(o)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof Yc?t:Yc._createOn(t)).getMinimalFlatRanges().reverse();for(const t of e)this._addOperationForAffectedMarkers("move",t),vh(t.start,t.end.offset-t.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof $c))throw new wi("writer-merge-no-element-before",this);if(!(n instanceof $c))throw new wi("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(...t){return this.model.createSelection(...t)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(Yc._createIn(n),Hc._createAt(e,"end")),this.remove(n)}_merge(t){const e=Hc._createAt(t.nodeBefore,"end"),n=Hc._createAt(t.nodeAfter,0),i=t.root.document.graveyard,r=new Hc(i,[0]),o=t.root.document.version,a=new Iu(n,t.nodeAfter.maxOffset,e,r,o);this.batch.addOperation(a),this.model.applyOperation(a)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof $c))throw new wi("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,i=new Ou(Hc._createBefore(t),t.name,e,n);this.batch.addOperation(i),this.model.applyOperation(i)}split(t,e){this._assertWriterUsedCorrectly();let n,i,r=t.parent;if(!r.parent)throw new wi("writer-split-element-no-parent",this);if(e||(e=r.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new wi("writer-split-invalid-limit-element",this);do{const e=r.root.document?r.root.document.version:null,o=r.maxOffset-t.offset,a=Du.getInsertionPosition(t),s=new Du(t,o,a,null,e);this.batch.addOperation(s),this.model.applyOperation(s),n||i||(n=r,i=t.parent.nextSibling),r=(t=this.createPositionAfter(t.parent)).parent}while(r!==e);return{position:t,range:new Yc(Hc._createAt(n,"end"),Hc._createAt(i,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new wi("writer-wrap-range-not-flat",this);const n=e instanceof $c?e:new $c(e);if(n.childCount>0)throw new wi("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new wi("writer-wrap-element-attached",this);this.insert(n,t.start);const i=new Yc(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(i,Hc._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new wi("writer-unwrap-element-no-parent",this);this.move(Yc._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new wi("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,i=e.range,r=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new wi("writer-addmarker-marker-exists",this);if(!i)throw new wi("writer-addmarker-no-range",this);return n?(kh(this,t,null,i,r),this.model.markers.get(t)):this.model.markers._set(t,i,n,r)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,i=this.model.markers.get(n);if(!i)throw new wi("writer-updatemarker-marker-not-exists",this);if(!e)return ki("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(i);const r="boolean"==typeof e.usingOperation,o="boolean"==typeof e.affectsData,a=o?e.affectsData:i.affectsData;if(!r&&!e.range&&!o)throw new wi("writer-updatemarker-wrong-options",this);const s=i.getRange(),c=e.range?e.range:s;r&&e.usingOperation!==i.managedUsingOperations?e.usingOperation?kh(this,n,null,c,a):(kh(this,n,s,null,a),this.model.markers._set(n,c,void 0,a)):i.managedUsingOperations?kh(this,n,s,c,a):this.model.markers._set(n,c,void 0,a)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new wi("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);kh(this,e,n.getRange(),null,n.affectsData)}addRoot(t,e="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new wi("writer-addroot-root-exists",this);const i=this.model.document,r=new Ru(t,e,!0,i,i.version);return this.batch.addOperation(r),this.model.applyOperation(r),this.model.document.getRoot(t)}detachRoot(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?this.model.document.getRoot(t):t;if(!e||!e.isAttached())throw new wi("writer-detachroot-no-root",this);for(const t of this.model.markers)t.getRange().root===e&&this.removeMarker(t);for(const t of e.getAttributeKeys())this.removeAttribute(t,e);this.remove(this.createRangeIn(e));const n=this.model.document,i=new Ru(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(i),this.model.applyOperation(i)}setSelection(...t){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...t)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else for(const[e,n]of So(t))this._setSelectionAttribute(e,n)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const i=fl._getStoreAttributeKey(t);this.setAttribute(i,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=fl._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new wi("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const i=n.getRange();let r=!1;if("move"===t){const t=e;r=t.containsPosition(i.start)||t.start.isEqual(i.start)||t.containsPosition(i.end)||t.end.isEqual(i.end)}else{const t=e,n=t.nodeBefore,o=t.nodeAfter,a=i.start.parent==n&&i.start.isAtEnd,s=i.end.parent==o&&0==i.end.offset,c=i.end.nodeAfter==o,l=i.start.nodeAfter==o;r=a||s||c||l}r&&this.updateMarker(n.name,{range:i})}}}function bh(t,e,n,i){const r=t.model,o=r.document;let a,s,c,l=i.start;for(const t of i.getWalker({shallow:!0}))c=t.item.getAttribute(e),a&&s!=c&&(s!=n&&u(),l=a),a=t.nextPosition,s=c;function u(){const i=new Yc(l,a),c=i.root.document?o.version:null,u=new Pu(i,e,s,n,c);t.batch.addOperation(u),r.applyOperation(u)}a instanceof Hc&&a!=l&&s!=n&&u()}function wh(t,e,n,i){const r=t.model,o=r.document,a=i.getAttribute(e);let s,c;if(a!=n){if(i.root===i){const t=i.document?o.version:null;c=new Nu(i,e,a,n,t)}else{s=new Yc(Hc._createBefore(i),t.createPositionAfter(i));const r=s.root.document?o.version:null;c=new Pu(s,e,a,n,r)}t.batch.addOperation(c),r.applyOperation(c)}}function kh(t,e,n,i,r){const o=t.model,a=o.document,s=new Bu(e,n,i,o.markers,!!r,a.version);t.batch.addOperation(s),o.applyOperation(s)}function vh(t,e,n,i){let r;if(t.root.document){const n=i.document,o=new Hc(n.graveyard,[0]);r=new Tu(t,e,o,n.version)}else r=new gh(t,e);n.addOperation(r),i.applyOperation(r)}function yh(t,e){return t===e||t instanceof ch&&e instanceof ch}function _h(t,e,n={}){if(e.isCollapsed)return;const i=e.getFirstRange();if("$graveyard"==i.root.rootName)return;const r=t.schema;t.change((t=>{if(!n.doNotResetEntireContent&&function(t,e){const n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;const i=e.getFirstRange();if(i.start.parent==i.end.parent)return!1;return t.checkChild(n,"paragraph")}(r,e))return void function(t,e){const n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),Eh(t,t.createPositionAt(n,0),e)}(t,e);const o={};if(!n.doNotAutoparagraph){const t=e.getSelectedElement();t&&Object.assign(o,r.getAttributesWithProperty(t,"copyOnReplace",!0))}const[a,s]=function(t){const e=t.root.document.model,n=t.start;let i=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){const n=function(t){const e=t.parent,n=e.root.document.model.schema,i=e.getAncestors({parentFirst:!0,includeSelf:!0});for(const t of i){if(n.isLimit(t))return null;if(n.isBlock(t))return t}}(i);if(n&&i.isTouching(e.createPositionAt(n,0))){const n=e.createSelection(t);e.modifySelection(n,{direction:"backward"});const r=n.getLastPosition(),o=e.createRange(r,i);e.hasContent(o,{ignoreMarkers:!0})||(i=r)}}return[Qu.fromPosition(n,"toPrevious"),Qu.fromPosition(i,"toNext")]}(i);a.isTouching(s)||t.remove(t.createRange(a,s)),n.leaveUnmerged||(!function(t,e,n){const i=t.model;if(!xh(t.model.schema,e,n))return;const[r,o]=function(t,e){const n=t.getAncestors(),i=e.getAncestors();let r=0;for(;n[r]&&n[r]==i[r];)r++;return[n[r],i[r]]}(e,n);if(!r||!o)return;!i.hasContent(r,{ignoreMarkers:!0})&&i.hasContent(o,{ignoreMarkers:!0})?Ah(t,e,n,r.parent):Ch(t,e,n,r.parent)}(t,a,s),r.removeDisallowedAttributes(a.parent.getChildren(),t)),Th(t,e,a),!n.doNotAutoparagraph&&function(t,e){const n=t.checkChild(e,"$text"),i=t.checkChild(e,"paragraph");return!n&&i}(r,a)&&Eh(t,a,e,o),a.detach(),s.detach()}))}function Ch(t,e,n,i){const r=e.parent,o=n.parent;if(r!=i&&o!=i){for(e=t.createPositionAfter(r),(n=t.createPositionBefore(o)).isEqual(e)||t.insert(o,e),t.merge(e);n.parent.isEmpty;){const e=n.parent;n=t.createPositionBefore(e),t.remove(e)}xh(t.model.schema,e,n)&&Ch(t,e,n,i)}}function Ah(t,e,n,i){const r=e.parent,o=n.parent;if(r!=i&&o!=i){for(e=t.createPositionAfter(r),(n=t.createPositionBefore(o)).isEqual(e)||t.insert(r,n);e.parent.isEmpty;){const n=e.parent;e=t.createPositionBefore(n),t.remove(n)}n=t.createPositionBefore(o),function(t,e){const n=e.nodeBefore,i=e.nodeAfter;n.name!=i.name&&t.rename(n,i.name);t.clearAttributes(n),t.setAttributes(Object.fromEntries(i.getAttributes()),n),t.merge(e)}(t,n),xh(t.model.schema,e,n)&&Ah(t,e,n,i)}}function xh(t,e,n){const i=e.parent,r=n.parent;return i!=r&&(!t.isLimit(i)&&!t.isLimit(r)&&function(t,e,n){const i=new Yc(t,e);for(const t of i.getWalker())if(n.isLimit(t.item))return!1;return!0}(e,n,t))}function Eh(t,e,n,i={}){const r=t.createElement("paragraph");t.model.schema.setAllowedAttributes(r,i,t),t.insert(r,e),Th(t,n,t.createPositionAt(r,0))}function Th(t,e,n){e instanceof fl?t.setSelection(n):e.setTo(n)}function Sh(t,e){const n=[];Array.from(t.getItems({direction:"backward"})).map((t=>e.createRangeOn(t))).filter((e=>(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end)))).forEach((t=>{n.push(t.start.parent),e.remove(t)})),n.forEach((t=>{let n=t;for(;n.parent&&n.isEmpty;){const t=e.createRangeOn(n);n=n.parent,e.remove(t)}}))}class Dh{model;writer;position;canMergeWith;schema;_documentFragment;_documentFragmentPosition;_firstNode=null;_lastNode=null;_lastAutoParagraph=null;_filterAttributesOf=[];_affectedStart=null;_affectedEnd=null;_nodeToSelect=null;constructor(t,e,n){this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0)}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new wi("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Yc._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Yc(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){this._checkAndSplitToAllowedPosition(t)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this.schema.isObject(t)||this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=Qu.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleDisallowedNode(t){t.is("element")&&this.handleNodes(t.getChildren())}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new wi("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=t:this._nodeToSelect=null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=Qu.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Qu.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof $c))return;if(!this._canMergeLeft(t))return;const e=Qu._createBefore(t);e.stickiness="toNext";const n=Qu.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=Qu._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Qu._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof $c))return;if(!this._canMergeRight(t))return;const e=Qu._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new wi("insertcontent-invalid-insertion-position",this);this.position=Hc._createAt(e.nodeBefore,"end");const n=Qu.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=Qu._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Qu._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof $c&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof $c&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_insertAutoParagraph(){this._insertPartialFragment();const t=this.writer.createElement("paragraph");this.writer.insert(t,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=t,this.position=this.writer.createPositionAt(t,0)}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const t=this.position.parent;this.position=this.writer.createPositionBefore(t),t.isEmpty&&t.parent===e&&this.writer.remove(t)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const t=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=t,this.canMergeWith.add(this.position.nodeAfter)}return this.schema.checkChild(this.position.parent,t)||this._insertAutoParagraph(),!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)||this.schema.checkChild(t,"paragraph")&&this.schema.checkChild("paragraph",e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function Ih(t,e,n,i={}){if(!t.schema.isObject(e))throw new wi("insertobject-element-not-an-object",t,{object:e});const r=n||t.document.selection;let o=r;i.findOptimalPosition&&t.schema.isBlock(e)&&(o=t.createSelection(t.schema.findOptimalInsertionRange(r,i.findOptimalPosition)));const a=xo(r.getSelectedBlocks()),s={};return a&&Object.assign(s,t.schema.getAttributesWithProperty(a,"copyOnReplace",!0)),t.change((n=>{o.isCollapsed||t.deleteContent(o,{doNotAutoparagraph:!0});let r=e;const a=o.anchor.parent;!t.schema.checkChild(a,e)&&t.schema.checkChild(a,"paragraph")&&t.schema.checkChild("paragraph",e)&&(r=n.createElement("paragraph"),n.insert(e,r)),t.schema.setAllowedAttributes(r,s,n);const c=t.insertContent(r,o);return c.isCollapsed||i.setSelection&&function(t,e,n,i){const r=t.model;if("on"==n)return void t.setSelection(e,"on");if("after"!=n)throw new wi("insertobject-invalid-place-parameter-value",r);let o=e.nextSibling;if(r.schema.isInline(e))return void t.setSelection(e,"after");const a=o&&r.schema.checkChild(o,"$text");!a&&r.schema.checkChild(e.parent,"paragraph")&&(o=t.createElement("paragraph"),r.schema.setAllowedAttributes(o,i,t),r.insertContent(o,t.createPositionAfter(e)));o&&t.setSelection(o,0)}(n,e,i.setSelection,s),c}))}function Bh(t,e){const{isForward:n,walker:i,unit:r,schema:o,treatEmojiAsSingleUnit:a}=t,{type:s,item:c,nextPosition:l}=e;if("text"==s)return"word"===t.unit?function(t,e){let n=t.position.textNode;n||(n=e?t.position.nodeAfter:t.position.nodeBefore);for(;n&&n.is("$text");){const i=t.position.offset-n.startOffset;if(Lh(n,i,e))n=e?t.position.nodeAfter:t.position.nodeBefore;else{if(Ph(n.data,i,e))break;t.next()}}return t.position}(i,n):function(t,e,n){const i=t.position.textNode;if(i){const r=i.data;let o=t.position.offset-i.startOffset;for(;Io(r,o)||"character"==e&&Bo(r,o)||n&&Po(r,o);)t.next(),o=t.position.offset-i.startOffset}return t.position}(i,r,a);if(s==(n?"elementStart":"elementEnd")){if(o.isSelectable(c))return Hc._createAt(c,n?"after":"before");if(o.checkChild(l,"$text"))return l}else{if(o.isLimit(c))return void i.skip((()=>!0));if(o.checkChild(l,"$text"))return l}}function Mh(t,e){const n=t.root,i=Hc._createAt(n,e?"end":0);return e?new Yc(t,i):new Yc(i,t)}function Ph(t,e,n){const i=e+(n?0:-1);return' ,.?!:;"-()'.includes(t.charAt(i))}function Lh(t,e,n){return e===(n?t.offsetSize:0)}class Oh extends(Vi()){markers;document;schema;_pendingChanges;_currentWriter;constructor(){super(),this.markers=new dh,this.document=new uh(this),this.schema=new Zl,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((t=>this.decorate(t))),this.on("applyOperation",((t,e)=>{e[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((()=>!0),"$marker"),Hl(this),this.document.registerPostFixer(Pl),this.on("insertContent",((t,[e,n])=>{t.return=function(t,e,n){return t.change((i=>{const r=n||t.document.selection;r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0});const o=new Dh(t,i,r.anchor),a=[];let s;if(e.is("documentFragment")){if(e.markers.size){const t=[];for(const[n,i]of e.markers){const{start:e,end:r}=i,o=e.isEqual(r);t.push({position:e,name:n,isCollapsed:o},{position:r,name:n,isCollapsed:o})}t.sort((({position:t},{position:e})=>t.isBefore(e)?1:-1));for(const{position:n,name:r,isCollapsed:o}of t){let t=null,s=null;const c=n.parent===e&&n.isAtStart,l=n.parent===e&&n.isAtEnd;c||l?o&&(s=c?"start":"end"):(t=i.createElement("$marker"),i.insert(t,n)),a.push({name:r,element:t,collapsed:s})}}s=e.getChildren()}else s=[e];o.handleNodes(s);let c=o.getSelectionRange();if(e.is("documentFragment")&&a.length){const t=c?ll.fromRange(c):null,e={};for(let t=a.length-1;t>=0;t--){const{name:n,element:r,collapsed:s}=a[t],c=!e[n];if(c&&(e[n]=[]),r){const t=i.createPositionAt(r,"before");e[n].push(t),i.remove(r)}else{const t=o.getAffectedRange();if(!t){s&&e[n].push(o.position);continue}s?e[n].push(t[s]):e[n].push(c?t.start:t.end)}}for(const[t,[n,r]]of Object.entries(e))n&&r&&n.root===r.root&&n.root.document&&!i.model.markers.has(t)&&i.addMarker(t,{usingOperation:!0,affectsData:!0,range:new Yc(n,r)});t&&(c=t.toRange(),t.detach())}c&&(r instanceof fl?i.setSelection(c):r.setTo(c));const l=o.getAffectedRange()||t.createRange(r.anchor);return o.destroy(),l}))}(this,e,n)})),this.on("insertObject",((t,[e,n,i])=>{t.return=Ih(this,e,n,i)})),this.on("canEditAt",(t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()}))}change(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new eh,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){wi.rethrowUnexpectedError(t,this)}}enqueueChange(t,e){try{t?"function"==typeof t?(e=t,t=new eh):t instanceof eh||(t=new eh(t)):t=new eh,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){wi.rethrowUnexpectedError(t,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...i){const r=Nh(e,n);return this.fire("insertContent",[t,r,n,...i])}insertObject(t,e,n,i,...r){const o=Nh(e,n);return this.fire("insertObject",[t,o,i,i,...r])}deleteContent(t,e){_h(this,t,e)}modifySelection(t,e){!function(t,e,n={}){const i=t.schema,r="backward"!=n.direction,o=n.unit?n.unit:"character",a=!!n.treatEmojiAsSingleUnit,s=e.focus,c=new zc({boundaries:Mh(s,r),singleCharacters:!0,direction:r?"forward":"backward"}),l={walker:c,schema:i,isForward:r,unit:o,treatEmojiAsSingleUnit:a};let u;for(;u=c.next();){if(u.done)return;const n=Bh(l,u.value);if(n)return void(e instanceof fl?t.change((t=>{t.setSelectionFocus(n)})):e.setFocus(n))}}(this,t,e)}getSelectedContent(t){return function(t,e){return t.change((t=>{const n=t.createDocumentFragment(),i=e.getFirstRange();if(!i||i.isCollapsed)return n;const r=i.start.root,o=i.start.getCommonPath(i.end),a=r.getNodeByPath(o);let s;s=i.start.parent==i.end.parent?i:t.createRange(t.createPositionAt(a,i.start.path[o.length]),t.createPositionAt(a,i.end.path[o.length]+1));const c=s.end.offset-s.start.offset;for(const e of s.getItems({shallow:!0}))e.is("$textProxy")?t.appendText(e.data,e.getAttributes(),n):t.append(t.cloneElement(e,!0),n);if(s!=i){const e=i._getTransformedByMove(s.start,t.createPositionAt(n,0),c)[0],r=t.createRange(t.createPositionAt(n,0),e.start);Sh(t.createRange(e.end,t.createPositionAt(n,"end")),t),Sh(r,t)}return n}))}(this,t)}hasContent(t,e={}){const n=t instanceof Yc?t:Yc._createIn(t);if(n.isCollapsed)return!1;const{ignoreWhitespaces:i=!1,ignoreMarkers:r=!1}=e;if(!r)for(const t of this.markers.getMarkersIntersectingRange(n))if(t.affectsData)return!0;for(const t of n.getItems())if(this.schema.isContent(t)){if(!t.is("$textProxy"))return!0;if(!i)return!0;if(-1!==t.data.search(/\S/))return!0}return!1}canEditAt(t){const e=Nh(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new Hc(t,e,n)}createPositionAt(t,e){return Hc._createAt(t,e)}createPositionAfter(t){return Hc._createAfter(t)}createPositionBefore(t){return Hc._createBefore(t)}createRange(t,e){return new Yc(t,e)}createRangeIn(t){return Yc._createIn(t)}createRangeOn(t){return Yc._createOn(t)}createSelection(...t){return new nl(...t)}createBatch(t){return new eh(t)}createOperationFromJSON(t){return ju.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){const e=this._pendingChanges[0].batch;this._currentWriter=new mh(this,e);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return t}}function Nh(t,e){if(t)return t instanceof nl||t instanceof fl?t:t instanceof Nc?e||0===e?new nl(t,e):t.is("rootElement")?new nl(t,"in"):new nl(t,"on"):new nl(t)}class Rh extends Js{domEventType="click";onDomEvent(t){this.fire(t.type,t)}}class Fh extends Js{domEventType=["mousedown","mouseup","mouseover","mouseout"];onDomEvent(t){this.fire(t.type,t)}}class jh{document;constructor(t){this.document=t}createDocumentFragment(t){return new gs(this.document,t)}createElement(t,e,n){return new Ra(this.document,t,e,n)}createText(t){return new ra(this.document,t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const i=n.getChildIndex(t);return this.removeChildren(i,1,n),this.insertChild(i,e,n),!0}return!1}unwrapElement(t){const e=t.parent;if(e){const n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}rename(t,e){const n=new Ra(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){q(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return Ua._createAt(t,e)}createPositionAfter(t){return Ua._createAfter(t)}createPositionBefore(t){return Ua._createBefore(t)}createRange(t,e){return new Ga(t,e)}createRangeOn(t){return Ga._createOn(t)}createRangeIn(t){return Ga._createIn(t)}createSelection(...t){return new Ka(...t)}}const $h=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,zh=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,Vh=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Hh=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,qh=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Uh=/\w+\((?:[^()]|\([^()]*\))*\)|\S+/gi,Gh=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function Wh(t){return t.startsWith("#")?$h.test(t):t.startsWith("rgb")?zh.test(t)||Vh.test(t):t.startsWith("hsl")?Hh.test(t)||qh.test(t):Gh.has(t.toLowerCase())}const Kh=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Yh(t){return Kh.includes(t)}const Xh=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function Zh(t){return Xh.test(t)}const Qh=/^[+-]?[0-9]*([.][0-9]+)?%$/;function Jh(t){return Qh.test(t)}const td=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function ed(t){return td.includes(t)}const nd=["center","top","bottom","left","right"];function id(t){return nd.includes(t)}const rd=["fixed","scroll","local"];function od(t){return rd.includes(t)}const ad=/^url\(/;function sd(t){return ad.test(t)}function cd(t=""){if(""===t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};const e=dd(t),n=e[0],i=e[2]||n,r=e[1]||n;return{top:n,bottom:i,right:r,left:e[3]||r}}function ld(t){return e=>{const{top:n,right:i,bottom:r,left:o}=e,a=[];return[n,i,o,r].every((t=>!!t))?a.push([t,ud(e)]):(n&&a.push([t+"-top",n]),i&&a.push([t+"-right",i]),r&&a.push([t+"-bottom",r]),o&&a.push([t+"-left",o])),a}}function ud({top:t,right:e,bottom:n,left:i}){const r=[];return i!==e?r.push(t,e,n,i):n!==t?r.push(t,e,n):e!==t?r.push(t,e):r.push(t),r.join(" ")}function hd(t){return e=>({path:t,value:cd(e)})}function dd(t){const e=t.trim().slice(0,1500).matchAll(Uh);return Array.from(e).map((t=>t[0]))}function fd(t){t.setNormalizer("background",(t=>{const e={},n=dd(t);for(const t of n)ed(t)?(e.repeat=e.repeat||[],e.repeat.push(t)):id(t)?(e.position=e.position||[],e.position.push(t)):od(t)?e.attachment=t:Wh(t)?e.color=t:sd(t)&&(e.image=t);return{path:"background",value:e}})),t.setNormalizer("background-color",(t=>({path:"background.color",value:t}))),t.setReducer("background",(t=>{const e=[];return e.push(["background-color",t.color]),e})),t.setStyleRelation("background",["background-color"])}function gd(t){t.setNormalizer("border",(t=>{const{color:e,style:n,width:i}=yd(t);return{path:"border",value:{color:cd(e),style:cd(n),width:cd(i)}}})),t.setNormalizer("border-top",pd("top")),t.setNormalizer("border-right",pd("right")),t.setNormalizer("border-bottom",pd("bottom")),t.setNormalizer("border-left",pd("left")),t.setNormalizer("border-color",md("color")),t.setNormalizer("border-width",md("width")),t.setNormalizer("border-style",md("style")),t.setNormalizer("border-top-color",wd("color","top")),t.setNormalizer("border-top-style",wd("style","top")),t.setNormalizer("border-top-width",wd("width","top")),t.setNormalizer("border-right-color",wd("color","right")),t.setNormalizer("border-right-style",wd("style","right")),t.setNormalizer("border-right-width",wd("width","right")),t.setNormalizer("border-bottom-color",wd("color","bottom")),t.setNormalizer("border-bottom-style",wd("style","bottom")),t.setNormalizer("border-bottom-width",wd("width","bottom")),t.setNormalizer("border-left-color",wd("color","left")),t.setNormalizer("border-left-style",wd("style","left")),t.setNormalizer("border-left-width",wd("width","left")),t.setExtractor("border-top",kd("top")),t.setExtractor("border-right",kd("right")),t.setExtractor("border-bottom",kd("bottom")),t.setExtractor("border-left",kd("left")),t.setExtractor("border-top-color","border.color.top"),t.setExtractor("border-right-color","border.color.right"),t.setExtractor("border-bottom-color","border.color.bottom"),t.setExtractor("border-left-color","border.color.left"),t.setExtractor("border-top-width","border.width.top"),t.setExtractor("border-right-width","border.width.right"),t.setExtractor("border-bottom-width","border.width.bottom"),t.setExtractor("border-left-width","border.width.left"),t.setExtractor("border-top-style","border.style.top"),t.setExtractor("border-right-style","border.style.right"),t.setExtractor("border-bottom-style","border.style.bottom"),t.setExtractor("border-left-style","border.style.left"),t.setReducer("border-color",ld("border-color")),t.setReducer("border-style",ld("border-style")),t.setReducer("border-width",ld("border-width")),t.setReducer("border-top",_d("top")),t.setReducer("border-right",_d("right")),t.setReducer("border-bottom",_d("bottom")),t.setReducer("border-left",_d("left")),t.setReducer("border",function(){return e=>{const n=vd(e,"top"),i=vd(e,"right"),r=vd(e,"bottom"),o=vd(e,"left"),a=[n,i,r,o],s={width:t(a,"width"),style:t(a,"style"),color:t(a,"color")},c=Cd(s,"all");if(c.length)return c;return[...Object.entries(s).reduce(((t,[e,n])=>(n&&(t.push([`border-${e}`,n]),a.forEach((t=>delete t[e]))),t)),[]),...Cd(n,"top"),...Cd(i,"right"),...Cd(r,"bottom"),...Cd(o,"left")]};function t(t,e){return t.map((t=>t[e])).reduce(((t,e)=>t==e?t:null))}}()),t.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),t.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),t.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),t.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),t.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),t.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"])}function pd(t){return e=>{const{color:n,style:i,width:r}=yd(e),o={};return void 0!==n&&(o.color={[t]:n}),void 0!==i&&(o.style={[t]:i}),void 0!==r&&(o.width={[t]:r}),{path:"border",value:o}}}function md(t){return e=>({path:"border",value:bd(e,t)})}function bd(t,e){return{[e]:cd(t)}}function wd(t,e){return n=>({path:"border",value:{[t]:{[e]:n}}})}function kd(t){return(e,n)=>{if(n.border)return vd(n.border,t)}}function vd(t,e){const n={};return t.width&&t.width[e]&&(n.width=t.width[e]),t.style&&t.style[e]&&(n.style=t.style[e]),t.color&&t.color[e]&&(n.color=t.color[e]),n}function yd(t){const e={},n=dd(t);for(const t of n)Zh(t)||/thin|medium|thick/.test(t)?e.width=t:Yh(t)?e.style=t:e.color=t;return e}function _d(t){return e=>Cd(e,t)}function Cd(t,e){const n=[];if(t&&t.width&&n.push("width"),t&&t.style&&n.push("style"),t&&t.color&&n.push("color"),3==n.length){const i=n.map((e=>t[e])).join(" ");return["all"==e?["border",i]:[`border-${e}`,i]]}return"all"==e?[]:n.map((n=>[`border-${e}-${n}`,t[n]]))}function Ad(t){t.setNormalizer("margin",hd("margin")),t.setNormalizer("margin-top",(t=>({path:"margin.top",value:t}))),t.setNormalizer("margin-right",(t=>({path:"margin.right",value:t}))),t.setNormalizer("margin-bottom",(t=>({path:"margin.bottom",value:t}))),t.setNormalizer("margin-left",(t=>({path:"margin.left",value:t}))),t.setReducer("margin",ld("margin")),t.setStyleRelation("margin",["margin-top","margin-right","margin-bottom","margin-left"])}function xd(t){t.setNormalizer("padding",hd("padding")),t.setNormalizer("padding-top",(t=>({path:"padding.top",value:t}))),t.setNormalizer("padding-right",(t=>({path:"padding.right",value:t}))),t.setNormalizer("padding-bottom",(t=>({path:"padding.bottom",value:t}))),t.setNormalizer("padding-left",(t=>({path:"padding.left",value:t}))),t.setReducer("padding",ld("padding")),t.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}class Ed{_commands;constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new wi("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}const Td="contentEditing",Sd="common";class Dd{keystrokeInfos=new Map;_editor;constructor(t){this._editor=t;const e=t.config.get("menuBar.isVisible"),n=t.locale.t;this.addKeystrokeInfoCategory({id:Td,label:n("Content editing keystrokes"),description:n("These keyboard shortcuts allow for quick access to content editing features.")});const i=[{label:n("Close contextual balloons, dropdowns, and dialogs"),keystroke:"Esc"},{label:n("Open the accessibility help dialog"),keystroke:"Alt+0"},{label:n("Move focus between form fields (inputs, buttons, etc.)"),keystroke:[["Tab"],["Shift+Tab"]]},{label:n("Move focus to the toolbar, navigate between toolbars"),keystroke:"Alt+F10",mayRequireFn:!0},{label:n("Navigate through the toolbar or menu bar"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]},{label:n("Execute the currently focused button. Executing buttons that interact with the editor content moves the focus back to the content."),keystroke:[["Enter"],["Space"]]}];e&&i.push({label:n("Move focus to the menu bar, navigate between menu bars"),keystroke:"Alt+F9",mayRequireFn:!0}),this.addKeystrokeInfoCategory({id:"navigation",label:n("User interface and content navigation keystrokes"),description:n("Use the following keystrokes for more efficient navigation in the CKEditor 5 user interface."),groups:[{id:"common",keystrokes:i}]})}addKeystrokeInfoCategory({id:t,label:e,description:n,groups:i}){this.keystrokeInfos.set(t,{id:t,label:e,description:n,groups:new Map}),this.addKeystrokeInfoGroup({categoryId:t,id:Sd}),i&&i.forEach((e=>{this.addKeystrokeInfoGroup({categoryId:t,...e})}))}addKeystrokeInfoGroup({categoryId:t=Td,id:e,label:n,keystrokes:i}){const r=this.keystrokeInfos.get(t);if(!r)throw new wi("accessibility-unknown-keystroke-info-category",this._editor,{groupId:e,categoryId:t});r.groups.set(e,{id:e,label:n,keystrokes:i||[]})}addKeystrokeInfos({categoryId:t=Td,groupId:e=Sd,keystrokes:n}){if(!this.keystrokeInfos.has(t))throw new wi("accessibility-unknown-keystroke-info-category",this._editor,{categoryId:t,keystrokes:n});const i=this.keystrokeInfos.get(t);if(!i.groups.has(e))throw new wi("accessibility-unknown-keystroke-info-group",this._editor,{groupId:e,categoryId:t,keystrokes:n});i.groups.get(e).keystrokes.push(...n)}}class Id extends(Vi()){accessibility;commands;config;conversion;data;editing;locale;model;plugins;keystrokes;t;static defaultConfig;static builtinPlugins;_context;_readOnlyLocks;constructor(t={}){if(super(),"sanitizeHtml"in t)throw new wi("editor-config-sanitizehtml-not-supported");const e=this.constructor,{translations:n,...i}=e.defaultConfig||{},{translations:r=n,...o}=t,a=t.language||i.language;this._context=t.context||new zo({language:a,translations:r}),this._context._addEditor(this,!t.context);const s=Array.from(e.builtinPlugins||[]);this.config=new Ji(o,i),this.config.define("plugins",s),this.config.define(this._context._getEditorConfig()),this.plugins=new $o(this,s,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new Ed,this.set("state","initializing"),this.once("ready",(()=>this.state="ready"),{priority:"high"}),this.once("destroy",(()=>this.state="destroyed"),{priority:"high"}),this.model=new Oh,this.on("change:isReadOnly",(()=>{this.model.document.isReadOnly=this.isReadOnly}));const c=new La;this.data=new pu(this.model,c),this.editing=new Wl(this.model,c),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new mu([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Ho(this),this.keystrokes.listenTo(this.editing.view.document),this.accessibility=new Dd(this)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new wi("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new wi("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new wi("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}setData(t){this.data.set(t)}getData(t){return this.data.get(t)}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],i=t.get("extraPlugins")||[],r=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(i),n,r)}destroy(){let t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((t=>this.once("ready",t)))),t.then((()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()})).then((()=>this.plugins.destroy())).then((()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()})).then((()=>this._context._removeEditor(this)))}execute(t,...e){try{return this.commands.execute(t,...e)}catch(t){wi.rethrowUnexpectedError(t,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}static Context=zo;static EditorWatchdog=Hn;static ContextWatchdog=Gn}function Bd(t){return class extends t{sourceElement;updateSourceElement(t){if(!this.sourceElement)throw new wi("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!e&&!n)return void _r(this.sourceElement,"");const i="string"==typeof t?t:this.data.get();_r(this.sourceElement,i)}}}function Md(t,e){if(e.ckeditorInstance)throw new wi("editor-source-element-already-used",t);e.ckeditorInstance=t,t.once("destroy",(()=>{delete e.ckeditorInstance}))}Bd.updateSourceElement=Bd(Object).prototype.updateSourceElement;class Pd extends Vo{_actions;static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new Ao({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new wi("pendingactions-add-invalid-message",this);const e=new(Vi());return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const Ld={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',colorPalette:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.209 18.717A8.5 8.5 0 1 1 18.686 9.6h-.008l.002.12a3 3 0 0 1-2.866 2.997h-.268l-.046-.002v.002h-4.791a2 2 0 1 0 0 4 1 1 0 1 1-.128 1.992 8.665 8.665 0 0 1-.372.008Zm-3.918-7.01a1.25 1.25 0 1 0-2.415-.648 1.25 1.25 0 0 0 2.415.647ZM5.723 8.18a1.25 1.25 0 1 0 .647-2.414 1.25 1.25 0 0 0-.647 2.414ZM9.76 6.155a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Zm4.028 1.759a1.25 1.25 0 1 0 .647-2.415 1.25 1.25 0 0 0-.647 2.415Z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',history:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66 9.118a.693.693 0 0 1 .956.032l3.65 3.411 2.422-2.238a.695.695 0 0 1 .945 0L17.5 13.6V2.5h-15v11.1l4.16-4.482ZM17.8 1c.652 0 1.2.47 1.2 1.1v14.362c0 .64-.532 1.038-1.184 1.038H2.184C1.532 17.5 1 17.103 1 16.462V2.1C1 1.47 1.537 1 2.2 1h15.6Zm-5.655 6a2.128 2.128 0 0 1 .157-2.364A2.133 2.133 0 1 1 12.145 7Z"/></svg>',imageUpload:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h9.494a2.97 2.97 0 0 1-.414-.287 2.998 2.998 0 0 1-1.055-2.03 3.003 3.003 0 0 1 .693-2.185l.383-.455-.02.018-3.65-3.41a.695.695 0 0 0-.957-.034L1.5 13.6V2.5h15v5.535a2.97 2.97 0 0 1 1.412.932l.088.105V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.146 2.146 0 0 0-2.049 1.992 2.14 2.14 0 0 0 1.28 2.096 2.13 2.13 0 0 0 2.644-3.11 2.134 2.134 0 0 0-1.875-.978Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/><path d="M15.522 19.1a.79.79 0 0 0 .79-.79v-5.373l2.059 2.455a.79.79 0 1 0 1.211-1.015l-3.352-3.995a.79.79 0 0 0-.995-.179.784.784 0 0 0-.299.221l-3.35 3.99a.79.79 0 1 0 1.21 1.017l1.936-2.306v5.185c0 .436.353.79.79.79Z"/></svg>',imageAssetManager:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1c-.662 0-1.2.47-1.2 1.1v14.248c0 .64.533 1.152 1.185 1.152h6.623v-7.236L6.617 9.15a.694.694 0 0 0-.957-.033L1.602 13.55V2.553l14.798.003V9.7H18V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.723 2.805a2.094 2.094 0 0 0-1.621.832 2.127 2.127 0 0 0 1.136 3.357 2.13 2.13 0 0 0 2.611-1.506 2.133 2.133 0 0 0-.76-2.244 2.13 2.13 0 0 0-1.366-.44Z"/><path clip-rule="evenodd" d="M19.898 12.369v6.187a.844.844 0 0 1-.844.844h-8.719a.844.844 0 0 1-.843-.844v-7.312a.844.844 0 0 1 .843-.844h2.531a.843.843 0 0 1 .597.248l.838.852h4.75c.223 0 .441.114.6.272a.844.844 0 0 1 .247.597Zm-1.52.654-4.377.02-1.1-1.143H11v6h7.4l-.023-4.877Z"/></svg>',imageUrl:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.201 1C.538 1 0 1.47 0 2.1v14.363c0 .64.534 1.037 1.186 1.037h7.029a5.401 5.401 0 0 1 .615-4.338l.762-1.232-2.975-2.78a.696.696 0 0 0-.957-.033L1.5 13.6V2.5h15v6.023c.449.131.887.32 1.307.573l.058.033c.046.028.09.057.135.086V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713 2.803a2.15 2.15 0 0 0-1.611.834 2.118 2.118 0 0 0-.438 1.158 2.14 2.14 0 0 0 1.277 2.096 2.132 2.132 0 0 0 2.645-3.11 2.13 2.13 0 0 0-1.873-.978Z"/><path d="M16.63 10.294a3.003 3.003 0 0 0-4.142.887l-.117.177a.647.647 0 0 0-.096.492.664.664 0 0 0 .278.418.7.7 0 0 0 .944-.234 1.741 1.741 0 0 1 2.478-.463 1.869 1.869 0 0 1 .476 2.55.637.637 0 0 0-.071.5.646.646 0 0 0 .309.396.627.627 0 0 0 .869-.19l.027-.041a3.226 3.226 0 0 0-.956-4.492Zm-6.061 3.78-.044.066a3.228 3.228 0 0 0 .82 4.403 3.005 3.005 0 0 0 4.275-.798l.13-.197a.626.626 0 0 0 .092-.475.638.638 0 0 0-.268-.402.713.713 0 0 0-.99.26l-.018.029a1.741 1.741 0 0 1-2.477.461 1.87 1.87 0 0 1-.475-2.55l.029-.047a.647.647 0 0 0 .086-.485.66.66 0 0 0-.275-.408l-.04-.027a.609.609 0 0 0-.845.17Z"/><path d="M15.312 13.925c.24-.36.154-.838-.19-1.067-.346-.23-.82-.124-1.059.236l-1.268 1.907c-.239.36-.153.838.192 1.067.345.23.818.123 1.057-.236l1.268-1.907Z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',textAlternative:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.035 1C2.446 1 2 1.54 2 2.098V10.5h1.5v-8h13v8H18V2.098C18 1.539 17.48 1 16.9 1H3.035Zm10.453 2.61a1.885 1.885 0 0 0-1.442.736 1.89 1.89 0 0 0 1.011 2.976 1.903 1.903 0 0 0 2.253-1.114 1.887 1.887 0 0 0-1.822-2.598ZM7.463 8.163a.611.611 0 0 0-.432.154L5.071 10.5h5.119L7.88 8.348a.628.628 0 0 0-.417-.185Zm6.236 1.059a.62.62 0 0 0-.42.164L12.07 10.5h2.969l-.92-1.113a.618.618 0 0 0-.42-.165ZM.91 11.5a.91.91 0 0 0-.91.912v6.877c0 .505.405.91.91.91h18.178a.91.91 0 0 0 .912-.91v-6.877a.908.908 0 0 0-.912-.912H.91ZM3.668 13h1.947l2.135 5.7H5.898l-.28-.946H3.601l-.278.945H1.516L3.668 13Zm4.947 0h1.801v4.3h2.7v1.4h-4.5V13h-.001Zm4.5 0h5.4v1.4h-1.798v4.3h-1.701v-4.3h-1.9V13h-.001Zm-8.517 1.457-.614 2.059h1.262l-.648-2.059Z"/></svg>',loupe:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.68 13.74h-.001l4.209 4.208a1 1 0 1 0 1.414-1.414l-4.267-4.268a6 6 0 1 0-1.355 1.474ZM13 9a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/></svg>',previousArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>',nextArrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeCustom:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:v="https://vecta.io/nano" viewBox="0 0 20 20"><path d="M.95 1.43a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h.75v6.3H.95a.95.95 0 0 0-.95.95v3.1a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-.65h1.932l1.539-1.5H5v-.95a.95.95 0 0 0-.95-.95H3.2v-6.3h.85A.95.95 0 0 0 5 5.48v-.55h10v.55a.95.95 0 0 0 .95.95h3.1a.95.95 0 0 0 .95-.95v-3.1a.95.95 0 0 0-.95-.95h-3.1a.95.95 0 0 0-.95.95v1.05H5V2.38a.95.95 0 0 0-.95-.95H.95zm.55 3.5v-2h2v2h-2zm0 9.3v2h2v-2h-2zm15-11.3v2h2v-2h-2z"/><path d="M8.139 20.004v-2.388l7.045-7.048 2.391 2.391-7.046 7.046h-2.39zm11.421-9.101a.64.64 0 0 1-.138.206l-1.165 1.168-2.391-2.391 1.167-1.163a.63.63 0 0 1 .206-.138.635.635 0 0 1 .243-.049.63.63 0 0 1 .449.187l1.491 1.488c.059.059.108.129.138.206s.049.16.049.243a.6.6 0 0 1-.049.243z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M13 5.5H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2ZM13 7a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-8A.5.5 0 0 1 2 7h11Z"/></svg>',objectSizeSmall:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M7 9.5H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2ZM7 11a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4A.5.5 0 0 1 2 11h5Z"/></svg>',objectSizeMedium:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 16.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1ZM1 15v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 13v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 11v1H0v-1h1Zm19 0v1h-1v-1h1ZM1 9v1H0V9h1Zm19 0v1h-1V9h1ZM1 7v1H0V7h1Zm19 0v1h-1V7h1ZM1 5v1H0V5h1Zm19 0v1h-1V5h1Zm0-2v1h-1V3h1ZM1 3v1H0V3h1Zm13.5-1.5v1h-1v-1h1Zm2 0v1h-1v-1h1Zm2 0v1h-1v-1h1Zm-8 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm-2 0v1h-1v-1h1Zm8 0v1h-1v-1h1Zm-10 0v1h-1v-1h1Z"/><path d="M10 7.5H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2ZM10 9a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6A.5.5 0 0 1 2 9h8Z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>',dragIndicator:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 3.25a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M5 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/><path d="M12 16.75a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0"/></svg>',redo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',undo:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',bulletedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>',numberedList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',todoList:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>',codeBlock:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.87 12.61a.75.75 0 0 1-.089.976l-.085.07-3.154 2.254 3.412 2.414a.75.75 0 0 1 .237.95l-.057.095a.75.75 0 0 1-.95.237l-.096-.058-4.272-3.022-.003-1.223 4.01-2.867a.75.75 0 0 1 1.047.174zm2.795-.231.095.057 4.011 2.867-.003 1.223-4.272 3.022-.095.058a.75.75 0 0 1-.88-.151l-.07-.086-.058-.095a.75.75 0 0 1 .15-.88l.087-.07 3.412-2.414-3.154-2.253-.085-.071a.75.75 0 0 1 .862-1.207zM16 0a2 2 0 0 1 2 2v9.354l-.663-.492-.837-.001V2a.5.5 0 0 0-.5-.5H2a.5.5 0 0 0-.5.5v15a.5.5 0 0 0 .5.5h3.118L7.156 19H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h14zM5.009 15l.003 1H3v-1h2.009zm2.188-2-1.471 1H5v-1h2.197zM10 11v.095L8.668 12H7v-1h3zm4-2v1H7V9h7zm0-2v1H7V7h7zm-4-2v1H5V5h5zM6 3v1H3V3h3z"/></svg>',browseFiles:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',heading1:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 9v10h-2v-8h-2V9h4zM4 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1V11H4v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H3a1 1 0 0 1 1 1v4.5z"/></svg>',heading2:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm16.076 8.343V18.5h-6.252c.067-.626.27-1.22.61-1.78.338-.561 1.006-1.305 2.005-2.232.804-.749 1.297-1.257 1.479-1.523.245-.368.368-.732.368-1.092 0-.398-.107-.703-.32-.917-.214-.214-.51-.32-.886-.32-.372 0-.669.111-.889.336-.22.224-.347.596-.38 1.117l-1.778-.178c.106-.982.438-1.686.997-2.114.558-.427 1.257-.64 2.095-.64.918 0 1.64.247 2.164.742.525.495.787 1.11.787 1.847 0 .419-.075.818-.225 1.197-.15.378-.388.775-.714 1.19-.216.275-.605.67-1.168 1.187-.563.516-.92.859-1.07 1.028a3.11 3.11 0 0 0-.365.495h3.542z"/></svg>',heading3:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V11H3v4.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1H2a1 1 0 0 1 1 1v4.5zm9.989 7.53 1.726-.209c.055.44.203.777.445 1.01.24.232.533.349.876.349.368 0 .678-.14.93-.42.251-.279.377-.655.377-1.13 0-.448-.12-.803-.362-1.066a1.153 1.153 0 0 0-.882-.393c-.228 0-.501.044-.819.133l.197-1.453c.482.012.85-.092 1.105-.315.253-.222.38-.517.38-.885 0-.313-.093-.563-.279-.75-.186-.185-.434-.278-.743-.278a1.07 1.07 0 0 0-.78.317c-.216.212-.347.52-.394.927l-1.644-.28c.114-.562.287-1.012.517-1.348.231-.337.553-.601.965-.794a3.24 3.24 0 0 1 1.387-.289c.876 0 1.579.28 2.108.838.436.457.653.973.653 1.549 0 .817-.446 1.468-1.339 1.955.533.114.96.37 1.28.768.319.398.478.878.478 1.441 0 .817-.298 1.513-.895 2.088-.596.576-1.339.864-2.228.864-.842 0-1.54-.243-2.094-.727-.555-.485-.876-1.118-.965-1.901z"/></svg>',heading4:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm13.55 10v-1.873h-3.81v-1.561l4.037-5.91h1.498v5.904h1.156v1.567h-1.156V18.5H17.05zm0-3.44v-3.18l-2.14 3.18h2.14z"/></svg>',heading5:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm9.578 7.607 1.777-.184c.05.402.201.72.45.955a1.223 1.223 0 0 0 1.81-.101c.258-.303.387-.759.387-1.368 0-.572-.128-1-.384-1.286-.256-.285-.59-.428-1-.428-.512 0-.971.226-1.377.679l-1.448-.21.915-4.843h4.716v1.67H15.56l-.28 1.58a2.697 2.697 0 0 1 1.219-.298 2.68 2.68 0 0 1 2.012.863c.55.576.825 1.323.825 2.241a3.36 3.36 0 0 1-.666 2.05c-.605.821-1.445 1.232-2.52 1.232-.86 0-1.56-.23-2.101-.692-.542-.461-.866-1.081-.971-1.86z"/></svg>',heading6:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 8.5h5V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v11.5a1 1 0 0 1-1 1h-.5a1 1 0 0 1-1-1V11h-5v4.5a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h.5a1 1 0 0 1 1 1v4.5zm15.595 2.973-1.726.19c-.043-.355-.153-.617-.33-.787-.178-.169-.409-.253-.692-.253-.377 0-.695.169-.956.507-.26.339-.424 1.043-.492 2.114.445-.525.997-.787 1.657-.787.745 0 1.383.284 1.914.85.531.568.797 1.3.797 2.197 0 .952-.28 1.716-.838 2.291-.559.576-1.276.864-2.152.864-.94 0-1.712-.365-2.317-1.095-.605-.73-.908-1.927-.908-3.59 0-1.705.316-2.935.946-3.688.63-.753 1.45-1.13 2.457-1.13.706 0 1.291.198 1.755.594.463.395.758.97.885 1.723zm-4.043 3.891c0 .58.133 1.028.4 1.343.266.315.57.473.914.473.33 0 .605-.13.825-.388.22-.258.33-.68.33-1.27 0-.604-.118-1.047-.355-1.329a1.115 1.115 0 0 0-.89-.422c-.342 0-.632.134-.869.403s-.355.666-.355 1.19z"/></svg>',horizontalLine:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',html:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M17 0a2 2 0 0 1 2 2v7a1 1 0 0 1 1 1v5a1 1 0 0 1-.883.993l-.118.006L19 17a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2l-.001-1.001-.116-.006A1 1 0 0 1 0 15v-5a1 1 0 0 1 .999-1L1 2a2 2 0 0 1 2-2h14zm.499 15.999h-15L2.5 17a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5l-.001-1.001zm-3.478-6.013-.014.014H14v.007l-1.525 1.525-1.46-1.46-.015.013V10h-1v5h1v-3.53l1.428 1.43.048.043.131-.129L14 11.421V15h1v-5h-.965l-.014-.014zM2 10H1v5h1v-2h2v2h1v-5H4v2H2v-2zm7 0H6v1h1v4h1v-4h1v-1zm8 0h-1v5h3v-1h-2v-4zm0-8.5H3a.5.5 0 0 0-.5.5l-.001 6.999h15L17.5 2a.5.5 0 0 0-.5-.5zM10 7v1H4V7h6zm3-2v1H4V5h9zm-3-2v1H4V3h6z"/></svg>',indent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',outdent:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',table:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5.5v3h4v-3H3Zm0 4v3h4v-3H3Zm0 4v3h4v-3H3Zm5 3h4v-3H8v3Zm5 0h4v-3h-4v3Zm4-4v-3h-4v3h4Zm0-4v-3h-4v3h4Zm1.5 8A1.5 1.5 0 0 1 17 18H3a1.5 1.5 0 0 1-1.5-1.5V3c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13.5Zm-6.5-4v-3H8v3h4Zm0-4v-3H8v3h4Z"/></svg>'};class Od extends Ao{_parentElement;constructor(t=[]){super(t,{idProperty:"viewUid"}),this.on("add",((t,e,n)=>{this._renderViewIntoCollectionParent(e,n)})),this.on("remove",((t,e)=>{e.element&&this._parentElement&&e.element.remove()})),this._parentElement=null}destroy(){this.map((t=>t.destroy()))}setParent(t){this._parentElement=t;for(const t of this)this._renderViewIntoCollectionParent(t)}delegate(...t){if(!t.length||!t.every((t=>"string"==typeof t)))throw new wi("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const i of t)n.delegate(i).to(e);this.on("add",((n,i)=>{for(const n of t)i.delegate(n).to(e)})),this.on("remove",((n,i)=>{for(const n of t)i.stopDelegating(n,e)}))}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}class Nd extends(Si()){ns;tag;text;attributes;children;eventListeners;_isRendered;_revertData;constructor(t){super(),Object.assign(this,Gd(Ud(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new wi("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)Qd(n)?yield n:Jd(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,i)=>new Fd({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:i}),if:(n,i,r)=>new jd({observable:t,emitter:e,attribute:n,valueIfTrue:i,callback:r})}}static extend(t,e){if(t._isRendered)throw new wi("template-extend-render",[this,t]);Xd(t,Gd(Ud(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new wi("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),$d(this.text)?this._bindToObservable({schema:this.text,updater:Vd(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,n=t.revertData;for(const i in this.attributes){const r=e.getAttribute(i),o=this.attributes[i];n&&(n.attributes[i]=r);const a=ef(o)?o[0].ns:null;if($d(o)){const s=ef(o)?o[0].value:o;n&&nf(i)&&s.unshift(r),this._bindToObservable({schema:s,updater:Hd(e,i,a),data:t})}else if("style"==i&&"string"!=typeof o[0])this._renderStyleAttribute(o[0],t);else{n&&r&&nf(i)&&o.unshift(r);const t=o.map((t=>t&&t.value||t)).reduce(((t,e)=>t.concat(e)),[]).reduce(Kd,"");Zd(t)||e.setAttributeNS(a,i,t)}}}_renderStyleAttribute(t,e){const n=e.node;for(const i in t){const r=t[i];$d(r)?this._bindToObservable({schema:[r],updater:qd(n,i),data:e}):n.style[i]=r}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,i=t.isApplying;let r=0;for(const o of this.children)if(tf(o)){if(!i){o.setParent(e);for(const t of o)n.appendChild(t.element)}}else if(Qd(o))i||(o.isRendered||o.render(),n.appendChild(o.element));else if(nr(o))n.appendChild(o);else if(i){const e={children:[],bindings:[],attributes:{}};t.revertData.children.push(e),o._renderNode({intoFragment:!1,node:n.childNodes[r++],isApplying:!0,revertData:e})}else n.appendChild(o.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map((n=>{const[i,r]=e.split("@");return n.activateDomEventListener(i,r,t)}));t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const i=n.revertData;zd(t,e,n);const r=t.filter((t=>!Zd(t))).filter((t=>t.observable)).map((i=>i.activateAttributeListener(t,e,n)));i&&i.bindings.push(r)}_revertTemplateFromNode(t,e){for(const t of e.bindings)for(const e of t)e();if(e.text)return void(t.textContent=e.text);const n=t;for(const t in e.attributes){const i=e.attributes[t];null===i?n.removeAttribute(t):n.setAttribute(t,i)}for(let t=0;t<e.children.length;++t)this._revertTemplateFromNode(n.childNodes[t],e.children[t])}}class Rd{attribute;observable;emitter;callback;constructor(t){this.attribute=t.attribute,this.observable=t.observable,this.emitter=t.emitter,this.callback=t.callback}getValue(t){const e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}activateAttributeListener(t,e,n){const i=()=>zd(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,i),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,i)}}}class Fd extends Rd{eventNameOrFunction;constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,n){const i=(t,n)=>{e&&!n.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(n):this.observable.fire(this.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,i),()=>{this.emitter.stopListening(n.node,t,i)}}}class jd extends Rd{valueIfTrue;constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!Zd(super.getValue(t))&&(this.valueIfTrue||!0)}}function $d(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some($d):t instanceof Rd)}function zd(t,e,{node:n}){const i=function(t,e){return t.map((t=>t instanceof Rd?t.getValue(e):t))}(t,n);let r;r=1==t.length&&t[0]instanceof jd?i[0]:i.reduce(Kd,""),Zd(r)?e.remove():e.set(r)}function Vd(t){return{set(e){t.textContent=e},remove(){t.textContent=""}}}function Hd(t,e,n){return{set(i){t.setAttributeNS(n,e,i)},remove(){t.removeAttributeNS(n,e)}}}function qd(t,e){return{set(n){t.style[e]=n},remove(){t.style[e]=null}}}function Ud(t){return Vn(t,(t=>{if(t&&(t instanceof Rd||Jd(t)||Qd(t)||tf(t)))return t}))}function Gd(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=Jr(t.text)}(t),t.on&&(t.eventListeners=function(t){for(const e in t)Wd(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(const e in t)t[e].value&&(t[e].value=Jr(t[e].value)),Wd(t,e)}(t.attributes);const e=[];if(t.children)if(tf(t.children))e.push(t.children);else for(const n of t.children)Jd(n)||Qd(n)||nr(n)?e.push(n):e.push(new Nd(n));t.children=e}return t}function Wd(t,e){t[e]=Jr(t[e])}function Kd(t,e){return Zd(e)?t:Zd(t)?e:`${t} ${e}`}function Yd(t,e){for(const n in e)t[n]?t[n].push(...e[n]):t[n]=e[n]}function Xd(t,e){if(e.attributes&&(t.attributes||(t.attributes={}),Yd(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),Yd(t.eventListeners,e.eventListeners)),e.text&&t.text.push(...e.text),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new wi("ui-template-extend-children-mismatch",t);let n=0;for(const i of e.children)Xd(t.children[n++],i)}}function Zd(t){return!t&&0!==t}function Qd(t){return t instanceof af}function Jd(t){return t instanceof Nd}function tf(t){return t instanceof Od}function ef(t){return a(t[0])&&t[0].ns}function nf(t){return"class"==t||"style"==t}var rf=n(7676),of={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(rf.A,of);rf.A.locals;class af extends(or(Vi())){element;isRendered;locale;t;template;_viewCollections;_unboundChildren;_bindTemplate;constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new Ao,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",((e,n)=>{n.locale=t,n.t=t&&t.t})),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Nd.bind(this,this)}createCollection(t){const e=new Od(t);return this._viewCollections.add(e),e}registerChild(t){Xi(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){Xi(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Nd(t)}extendTemplate(t){Nd.extend(this.template,t)}render(){if(this.isRendered)throw new wi("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map((t=>t.destroy())),this.template&&this.template._revertData&&this.template.revert(this.element)}}function sf({emitter:t,activator:e,callback:n,contextElements:i,listenerOptions:r}){t.listenTo(document,"mousedown",((t,r)=>{if(!e())return;const o="function"==typeof r.composedPath?r.composedPath():[],a="function"==typeof i?i():i;for(const t of a)if(t.contains(r.target)||o.includes(t))return;n()}),r)}function cf(t){return class extends t{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...t){super(...t),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function lf({view:t}){t.listenTo(t.element,"submit",((e,n)=>{n.preventDefault(),t.fire("submit")}),{useCapture:!0})}function uf({keystrokeHandler:t,focusTracker:e,gridItems:n,numberOfColumns:i,uiLanguageDirection:r}){const o="number"==typeof i?()=>i:i;function a(t){return i=>{const r=n.find((t=>t.element===e.focusedElement)),o=n.getIndex(r),a=t(o,n);n.get(a).focus(),i.stopPropagation(),i.preventDefault()}}function s(t,e){return t===e-1?0:t+1}function c(t,e){return 0===t?e-1:t-1}t.set("arrowright",a(((t,e)=>"rtl"===r?c(t,e.length):s(t,e.length)))),t.set("arrowleft",a(((t,e)=>"rtl"===r?s(t,e.length):c(t,e.length)))),t.set("arrowup",a(((t,e)=>{let n=t-o();return n<0&&(n=t+o()*Math.floor(e.length/o()),n>e.length-1&&(n-=o())),n}))),t.set("arrowdown",a(((t,e)=>{let n=t+o();return n>e.length-1&&(n=t%o()),n})))}var hf=n(7621),df={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(hf.A,df);hf.A.locals;class ff extends af{static presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];constructor(){super();const t=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",t.if("isVisible","ck-hidden",(t=>!t)),"ck-reset_all-excluded",t.if("isColorInherited","ck-icon_inherit-color")],viewBox:t.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(()=>{this._updateXMLContent(),this._colorFillPaths()})),this.on("change:fillColor",(()=>{this._colorFillPaths()}))}_updateXMLContent(){if(this.content){const t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");e&&(this.viewBox=e);for(const{name:e,value:n}of Array.from(t.attributes))ff.presentationalAttributeNames.includes(e)&&this.element.setAttribute(e,n);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((t=>{t.style.fill=this.fillColor}))}}class gf extends af{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:t.to("style"),id:t.to("id")},children:[{text:t.to("text")}]})}}var pf=n(9715),mf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(pf.A,mf);pf.A.locals;class bf extends af{children;labelView;iconView;keystrokeView;_focusDelayed=null;constructor(t,e=new gf){super(t);const n=this.bindTemplate,i=pi();this.set("_ariaPressed",!1),this.set("_ariaChecked",!1),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${i}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(e),this.iconView=new ff,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const r={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",(t=>!t)),n.if("isVisible","ck-hidden",(t=>!t)),n.to("isOn",(t=>t?"ck-on":"ck-off")),n.if("withText","ck-button_with-text"),n.if("withKeystroke","ck-button_with-keystroke")],role:n.to("role"),type:n.to("type",(t=>t||"button")),tabindex:n.to("tabindex"),"aria-checked":n.to("_ariaChecked"),"aria-pressed":n.to("_ariaPressed"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,(t=>!t)),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to((t=>{this.isEnabled?this.fire("execute"):t.preventDefault()}))}};this.bind("_ariaPressed").to(this,"isOn",this,"isToggleable",this,"role",((t,e,n)=>!(!e||wf(n))&&String(!!t))),this.bind("_ariaChecked").to(this,"isOn",this,"isToggleable",this,"role",((t,e,n)=>!(!e||!wf(n))&&String(!!t))),Jn.isSafari&&(this._focusDelayed||(this._focusDelayed=Do((()=>this.focus()),0)),r.on.mousedown=n.to((()=>{this._focusDelayed()})),r.on.mouseup=n.to((()=>{this._focusDelayed.cancel()}))),this.setTemplate(r)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(t){return t.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),t}_createKeystrokeView(){const t=new af;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(t=>Xr(t)))}]}),t}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=Xr(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}function wf(t){switch(t){case"radio":case"checkbox":case"option":case"switch":case"menuitemcheckbox":case"menuitemradio":return!0;default:return!1}}var kf=n(7913),vf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(kf.A,vf);kf.A.locals;class yf extends af{children;iconView;constructor(t,e={}){super(t);const n=this.bindTemplate;this.set("label",e.label||""),this.set("class",e.class||null),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:this.children}),e.icon&&(this.iconView=new ff,this.iconView.content=e.icon,this.children.add(this.iconView));const i=new af(t);i.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"],role:"presentation"},children:[{text:n.to("label")}]}),this.children.add(i)}}class _f extends(Si()){focusables;focusTracker;keystrokeHandler;actions;constructor(t){if(super(),this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];"string"==typeof n&&(n=[n]);for(const i of n)t.keystrokeHandler.set(i,((t,n)=>{this[e](),n()}),t.keystrokeHandlerOptions)}this.on("forwardCycle",(()=>this.focusFirst()),{priority:"low"}),this.on("backwardCycle",(()=>this.focusLast()),{priority:"low"})}get first(){return this.focusables.find(Cf)||null}get last(){return this.focusables.filter(Cf).slice(-1)[0]||null}get next(){return this._getDomFocusableItem(1)}get previous(){return this._getDomFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(((e,n)=>{const i=e.element===this.focusTracker.focusedElement;return i&&(t=n),i})),t)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const t=this.next;t&&this.focusables.getIndex(t)===this.current||t===this.first?this.fire("forwardCycle"):this._focus(t,1)}focusPrevious(){const t=this.previous;t&&this.focusables.getIndex(t)===this.current||t===this.last?this.fire("backwardCycle"):this._focus(t,-1)}chain(t){const e=()=>null===this.current?null:this.focusables.get(this.current);this.listenTo(t,"forwardCycle",(t=>{const n=e();this.focusNext(),n!==e()&&t.stop()}),{priority:"low"}),this.listenTo(t,"backwardCycle",(t=>{const n=e();this.focusPrevious(),n!==e()&&t.stop()}),{priority:"low"})}unchain(t){this.stopListening(t)}_focus(t,e){t&&this.focusTracker.focusedElement!==t.element&&t.focus(e)}_getDomFocusableItem(t){const e=this.focusables.length;if(!e)return null;const n=this.current;if(null===n)return this[1===t?"first":"last"];let i=this.focusables.get(n),r=(n+e+t)%e;do{const n=this.focusables.get(r);if(Cf(n)){i=n;break}r=(r+e+t)%e}while(r!==n);return i}}function Cf(t){return Af(t)&&Sr(t.element)}function Af(t){return!(!("focus"in t)||"function"!=typeof t.focus)}function xf(t){return class extends t{_onDragBound=this._onDrag.bind(this);_onDragEndBound=this._onDragEnd.bind(this);_lastDraggingCoordinates={x:0,y:0};constructor(...t){super(...t),this.on("render",(()=>{this._attachListeners()})),this.set("isDragging",!1)}_attachListeners(){this.listenTo(this.element,"mousedown",this._onDragStart.bind(this)),this.listenTo(this.element,"touchstart",this._onDragStart.bind(this))}_attachDragListeners(){this.listenTo(Xn.document,"mouseup",this._onDragEndBound),this.listenTo(Xn.document,"touchend",this._onDragEndBound),this.listenTo(Xn.document,"mousemove",this._onDragBound),this.listenTo(Xn.document,"touchmove",this._onDragBound)}_detachDragListeners(){this.stopListening(Xn.document,"mouseup",this._onDragEndBound),this.stopListening(Xn.document,"touchend",this._onDragEndBound),this.stopListening(Xn.document,"mousemove",this._onDragBound),this.stopListening(Xn.document,"touchmove",this._onDragBound)}_onDragStart(t,e){if(!this._isHandleElementPressed(e))return;this._attachDragListeners();let n=0,i=0;e instanceof MouseEvent?(n=e.clientX,i=e.clientY):(n=e.touches[0].clientX,i=e.touches[0].clientY),this._lastDraggingCoordinates={x:n,y:i},this.isDragging=!0}_onDrag(t,e){if(!this.isDragging)return void this._detachDragListeners();let n=0,i=0;e instanceof MouseEvent?(n=e.clientX,i=e.clientY):(n=e.touches[0].clientX,i=e.touches[0].clientY),e.preventDefault(),this.fire("drag",{deltaX:Math.round(n-this._lastDraggingCoordinates.x),deltaY:Math.round(i-this._lastDraggingCoordinates.y)}),this._lastDraggingCoordinates={x:n,y:i}}_onDragEnd(){this._detachDragListeners(),this.isDragging=!1}_isHandleElementPressed(t){return!!this.dragHandleElement&&(this.dragHandleElement===t.target||t.target instanceof HTMLElement&&this.dragHandleElement.contains(t.target))}}}var Ef=n(9822),Tf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Ef.A,Tf);Ef.A.locals;class Sf extends af{children;keystrokes;focusCycler;_focusTracker;_focusables;constructor(t){super(t),this.children=this.createCollection(),this.keystrokes=new To,this._focusTracker=new Eo,this._focusables=new Od,this.focusCycler=new _f({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__actions"]},children:this.children})}render(){super.render(),this.keystrokes.listenTo(this.element)}setButtons(t){for(const e of t){const t=new bf(this.locale);let n;for(n in t.on("execute",(()=>e.onExecute())),e.onCreate&&e.onCreate(t),e)"onExecute"!=n&&"onCreate"!=n&&t.set(n,e[n]);this.children.add(t)}this._updateFocusCyclableItems()}focus(t){-1===t?this.focusCycler.focusLast():this.focusCycler.focusFirst()}_updateFocusCyclableItems(){Array.from(this.children).forEach((t=>{this._focusables.add(t),this._focusTracker.add(t.element)}))}}class Df extends af{children;constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog__content"]},children:this.children})}reset(){for(;this.children.length;)this.children.remove(0)}}var If=n(9819),Bf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(If.A,Bf);If.A.locals;const Mf="screen-center",Pf="editor-center",Lf="editor-top-side",Of="editor-top-center",Nf="editor-bottom-center",Rf="editor-above-center",Ff="editor-below-center",jf=Cr("px");class $f extends(xf(af)){parts;headerView;closeButtonView;actionsView;static defaultOffset=15;contentView;keystrokes;focusTracker;wasMoved=!1;_getCurrentDomRoot;_getViewportOffset;_focusables;_focusCycler;constructor(t,{getCurrentDomRoot:e,getViewportOffset:n}){super(t);const i=this.bindTemplate,r=t.t;this.set("className",""),this.set("ariaLabel",r("Editor dialog")),this.set("isModal",!1),this.set("position",Mf),this.set("_isVisible",!1),this.set("_isTransparent",!1),this.set("_top",0),this.set("_left",0),this._getCurrentDomRoot=e,this._getViewportOffset=n,this.decorate("moveTo"),this.parts=this.createCollection(),this.keystrokes=new To,this.focusTracker=new Eo,this._focusables=new Od,this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-dialog-overlay",i.if("isModal","ck-dialog-overlay__transparent",(t=>!t)),i.if("_isVisible","ck-hidden",(t=>!t))],tabindex:"-1"},children:[{tag:"div",attributes:{tabindex:"-1",class:["ck","ck-dialog",i.to("className")],role:"dialog","aria-label":i.to("ariaLabel"),style:{top:i.to("_top",(t=>jf(t))),left:i.to("_left",(t=>jf(t))),visibility:i.if("_isTransparent","hidden")}},children:this.parts}]})}render(){super.render(),this.keystrokes.set("Esc",((t,e)=>{this.fire("close",{source:"escKeyPress"}),e()})),this.on("drag",((t,{deltaX:e,deltaY:n})=>{this.wasMoved=!0,this.moveBy(e,n)})),this.listenTo(Xn.window,"resize",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.listenTo(Xn.document,"scroll",(()=>{this._isVisible&&!this.wasMoved&&this.updatePosition()})),this.on("change:_isVisible",((t,e,n)=>{n&&(this._isTransparent=!0,setTimeout((()=>{this.updatePosition(),this._isTransparent=!1,this.focus()}),10))})),this.keystrokes.listenTo(this.element)}get dragHandleElement(){return this.headerView?this.headerView.element:null}setupParts({icon:t,title:e,hasCloseButton:n=!0,content:i,actionButtons:r}){e&&(this.headerView=new yf(this.locale,{icon:t}),n&&(this.closeButtonView=this._createCloseButton(),this.headerView.children.add(this.closeButtonView)),this.headerView.label=e,this.ariaLabel=e,this.parts.add(this.headerView,0)),i&&(i instanceof af&&(i=[i]),this.contentView=new Df(this.locale),this.contentView.children.addMany(i),this.parts.add(this.contentView)),r&&(this.actionsView=new Sf(this.locale),this.actionsView.setButtons(r),this.parts.add(this.actionsView)),this._updateFocusCyclableItems()}focus(){this._focusCycler.focusFirst()}moveTo(t,e){const n=this._getViewportRect(),i=this._getDialogRect();t+i.width>n.right&&(t=n.right-i.width),t<n.left&&(t=n.left),e<n.top&&(e=n.top),this._moveTo(t,e)}_moveTo(t,e){this._left=t,this._top=e}moveBy(t,e){this.moveTo(this._left+t,this._top+e)}_moveOffScreen(){this._moveTo(-9999,-9999)}updatePosition(){if(!this.element||!this.element.parentNode)return;const t=this._getViewportRect();let e,n=this.position;this._getCurrentDomRoot()?e=this._getVisibleDomRootRect(t):n=Mf;const i=$f.defaultOffset,r=this._getDialogRect();switch(n){case Lf:if(e){const t="ltr"===this.locale.contentLanguageDirection?e.right-r.width-i:e.left+i;this.moveTo(t,e.top+i)}else this._moveOffScreen();break;case Pf:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),Math.round(e.top+e.height/2-r.height/2)):this._moveOffScreen();break;case Mf:this.moveTo(Math.round((t.width-r.width)/2),Math.round((t.height-r.height)/2));break;case Of:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),e.top+i):this._moveOffScreen();break;case Nf:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),e.bottom-r.height-i):this._moveOffScreen();break;case Rf:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),e.top-r.height-i):this._moveOffScreen();break;case Ff:e?this.moveTo(Math.round(e.left+e.width/2-r.width/2),e.bottom+i):this._moveOffScreen()}}_getVisibleDomRootRect(t){let e=new mr(this._getCurrentDomRoot()).getVisible();return e?(e=t.getIntersection(e),e||null):null}_getDialogRect(){return new mr(this.element.firstElementChild)}_getViewportRect(){return function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);const e=new mr(Xn.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e.left+=t.left,e.right-=t.right,e.width-=t.left+t.right,e}(this._getViewportOffset())}_updateFocusCyclableItems(){const t=[];if(this.contentView)for(const e of this.contentView.children)Af(e)&&t.push(e);this.actionsView&&t.push(this.actionsView),this.closeButtonView&&t.push(this.closeButtonView),t.forEach((t=>{var e;this._focusables.add(t),this.focusTracker.add(t.element),Af(e=t)&&"focusCycler"in e&&e.focusCycler instanceof _f&&this._focusCycler.chain(t.focusCycler)}))}_createCloseButton(){const t=new bf(this.locale),e=this.locale.t;return t.set({label:e("Close"),tooltip:!0,icon:Ld.cancel}),t.on("execute",(()=>this.fire("close",{source:"closeButton"}))),t}}class zf extends Oo{view;static _visibleDialogPlugin;_onHide;static get pluginName(){return"Dialog"}constructor(t){super(t);const e=t.t;this._initShowHideListeners(),this._initFocusToggler(),this._initMultiRootIntegration(),this.set({id:null,isOpen:!1}),t.accessibility.addKeystrokeInfos({categoryId:"navigation",keystrokes:[{label:e("Move focus in and out of an active dialog window"),keystroke:"Ctrl+F6",mayRequireFn:!0}]})}_initShowHideListeners(){this.on("show",((t,e)=>{this._show(e)})),this.on("show",((t,e)=>{e.onShow&&e.onShow(this)}),{priority:"low"}),this.on("hide",(()=>{zf._visibleDialogPlugin&&zf._visibleDialogPlugin._hide()})),this.on("hide",(()=>{this._onHide&&(this._onHide(this),this._onHide=void 0)}),{priority:"low"})}_initFocusToggler(){const t=this.editor;t.keystrokes.set("Ctrl+F6",((e,n)=>{this.isOpen&&!this.view.isModal&&(this.view.focusTracker.isFocused?t.editing.view.focus():this.view.focus(),n())}))}_initMultiRootIntegration(){const t=this.editor.model;t.document.on("change:data",(()=>{if(!this.view)return;const e=t.document.differ.getChangedRoots();for(const t of e)t.state&&this.view.updatePosition()}))}show(t){this.hide(),this.fire(`show:${t.id}`,t)}_show({id:t,icon:e,title:n,hasCloseButton:i=!0,content:r,actionButtons:o,className:a,isModal:s,position:c,onHide:l}){const u=this.editor;this.view=new $f(u.locale,{getCurrentDomRoot:()=>u.editing.view.getDomRoot(u.model.document.selection.anchor.root.rootName),getViewportOffset:()=>u.ui.viewportOffset});const h=this.view;h.on("close",(()=>{this.hide()})),u.ui.view.body.add(h),u.keystrokes.listenTo(h.element),c||(c=s?Mf:Pf),h.set({position:c,_isVisible:!0,className:a,isModal:s}),h.setupParts({icon:e,title:n,hasCloseButton:i,content:r,actionButtons:o}),this.id=t,l&&(this._onHide=l),this.isOpen=!0,zf._visibleDialogPlugin=this}hide(){zf._visibleDialogPlugin&&zf._visibleDialogPlugin.fire(`hide:${zf._visibleDialogPlugin.id}`)}_hide(){if(!this.view)return;const t=this.editor,e=this.view;e.contentView&&e.contentView.reset(),t.ui.view.body.remove(e),t.ui.focusTracker.remove(e.element),t.keystrokes.stopListening(e.element),e.destroy(),t.editing.view.focus(),this.id=null,this.isOpen=!1,zf._visibleDialogPlugin=null}}var Vf=n(278),Hf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Vf.A,Hf);Vf.A.locals;class qf extends bf{_checkIconHolderView=new Uf;constructor(t,e=new gf){super(t,e),this.set({hasCheckSpace:!1,_hasCheck:this.isToggleable});const n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-list-item-button",n.if("isToggleable","ck-list-item-button_toggleable")]}}),this.bind("_hasCheck").to(this,"hasCheckSpace",this,"isToggleable",((t,e)=>t||e))}render(){super.render(),this._hasCheck&&this.children.add(this._checkIconHolderView,0),this._watchCheckIconHolderMount()}_watchCheckIconHolderMount(){this._checkIconHolderView.bind("isOn").to(this,"isOn",(t=>this.isToggleable&&t)),this.on("change:_hasCheck",((t,e,n)=>{const{children:i,_checkIconHolderView:r}=this;n?i.add(r,0):i.remove(r)}))}}class Uf extends af{children;_checkIconView=this._createCheckIconView();constructor(){super();const t=this.bindTemplate;this.children=this.createCollection(),this.set("isOn",!1),this.setTemplate({tag:"span",children:this.children,attributes:{class:["ck","ck-list-item-button__check-holder",t.to("isOn",(t=>t?"ck-on":"ck-off"))]}})}render(){super.render(),this.isOn&&this.children.add(this._checkIconView,0),this._watchCheckIconMount()}_watchCheckIconMount(){this.on("change:isOn",((t,e,n)=>{const{children:i,_checkIconView:r}=this;n&&!i.has(r)?i.add(r):!n&&i.has(r)&&i.remove(r)}))}_createCheckIconView(){const t=new ff;return t.content=Ld.check,t.extendTemplate({attributes:{class:"ck-list-item-button__check-icon"}}),t}}var Gf=n(977),Wf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Gf.A,Wf);Gf.A.locals;class Kf extends qf{constructor(t){super(t),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var Yf=n(7801),Xf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Yf.A,Xf);Yf.A.locals;class Zf extends af{id;constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${pi()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}var Qf=n(8527),Jf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Qf.A,Jf);Qf.A.locals;class tg extends Od{locale;_bodyCollectionContainer;constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Nd({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection,role:"application"},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=Qi(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}var eg=n(4391),ng={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(eg.A,ng);eg.A.locals;class ig extends bf{toggleSwitchView;constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new af;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}class rg extends(ag(bf)){}class og extends(ag(qf)){}function ag(t){return class extends t{buttonView;_fileInputView;constructor(...t){super(...t),this.buttonView=this,this._fileInputView=new sg(this.locale),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",(()=>{this._fileInputView.open()})),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}}class sg extends af{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to((()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""}))}})}open(){this.element.click()}}const cg='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';var lg=n(25),ug={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(lg.A,ug);lg.A.locals;class hg extends af{buttonView;children;constructor(t,e){super(t);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),e&&this.children.addMany(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const t=new bf(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:cg}),t.extendTemplate({attributes:{"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("label").to(this),t.bind("isOn").to(this,"isCollapsed",(t=>!t)),t.on("execute",(()=>{this.isCollapsed=!this.isCollapsed})),t}}function dg(t,e){const n=t.t,i={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return e.map((t=>{const e=i[t.label];return e&&e!=t.label&&(t.label=e),t}))}function fg(t){return t.map(gg).filter((t=>!!t))}function gg(t){return"string"==typeof t?{model:t,label:t,hasBorder:!1,view:{name:"span",styles:{color:t}}}:{model:t.color,label:t.label||t.color,hasBorder:void 0!==t.hasBorder&&t.hasBorder,view:{name:"span",styles:{color:`${t.color}`}}}}class pg extends bf{constructor(t){super(t);const e=this.bindTemplate;this.set("color",void 0),this.set("hasBorder",!1),this.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',this.extendTemplate({attributes:{style:{backgroundColor:e.to("color",(t=>Jn.isMediaForcedColors?null:t))},class:["ck","ck-color-grid__tile",e.if("hasBorder","ck-color-selector__color-tile_bordered")]}})}render(){super.render(),this.iconView.fillColor="hsl(0, 0%, 100%)"}}var mg=n(7317),bg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(mg.A,bg);mg.A.locals;class wg extends af{columns;items;focusTracker;keystrokes;constructor(t,e){super(t);const n=e&&e.colorDefinitions?e.colorDefinitions:[];this.columns=e&&e.columns?e.columns:5;const i={gridTemplateColumns:`repeat( ${this.columns}, 1fr)`};this.set("selectedColor",void 0),this.items=this.createCollection(),this.focusTracker=new Eo,this.keystrokes=new To,this.items.on("add",((t,e)=>{e.isOn=e.color===this.selectedColor})),n.forEach((t=>{const e=new pg;e.set({color:t.color,label:t.label,tooltip:!0,hasBorder:t.options.hasBorder}),e.on("execute",(()=>{this.fire("execute",{value:t.color,hasBorder:t.options.hasBorder,label:t.label})})),this.items.add(e)})),this.setTemplate({tag:"div",children:this.items,attributes:{class:["ck","ck-color-grid"],style:i}}),this.on("change:selectedColor",((t,e,n)=>{for(const t of this.items)t.isOn=t.color===n}))}focus(){this.items.length&&this.items.first.focus()}focusLast(){this.items.length&&this.items.last.focus()}render(){super.render();for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element),uf({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}}var kg=n(6931);const vg=function(t){var e,n,i=[],r=1;if("string"==typeof t)if(kg[t])i=kg[t].slice(),n="rgb";else if("transparent"===t)r=0,n="rgb",i=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var o=t.slice(1);r=1,(c=o.length)<=4?(i=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],4===c&&(r=parseInt(o[3]+o[3],16)/255)):(i=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],8===c&&(r=parseInt(o[6]+o[7],16)/255)),i[0]||(i[0]=0),i[1]||(i[1]=0),i[2]||(i[2]=0),n="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var a=e[1],s="rgb"===a;n=o=a.replace(/a$/,"");var c="cmyk"===o?4:"gray"===o?1:3;i=e[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(t,e){if(/%$/.test(t))return e===c?parseFloat(t)/100:"rgb"===o?255*parseFloat(t)/100:parseFloat(t);if("h"===o[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==yg[t])return yg[t]}return parseFloat(t)})),a===o&&i.push(1),r=s||void 0===i[c]?1:i[c],i=i.slice(0,c)}else t.length>10&&/[0-9](?:\s|\/)/.test(t)&&(i=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),n=t.match(/([a-z])/gi).join("").toLowerCase());else isNaN(t)?Array.isArray(t)||t.length?(i=[t[0],t[1],t[2]],n="rgb",r=4===t.length?t[3]:1):t instanceof Object&&(null!=t.r||null!=t.red||null!=t.R?(n="rgb",i=[t.r||t.red||t.R||0,t.g||t.green||t.G||0,t.b||t.blue||t.B||0]):(n="hsl",i=[t.h||t.hue||t.H||0,t.s||t.saturation||t.S||0,t.l||t.lightness||t.L||t.b||t.brightness]),r=t.a||t.alpha||t.opacity||1,null!=t.opacity&&(r/=100)):(n="rgb",i=[t>>>16,(65280&t)>>>8,255&t]);return{space:n,values:i,alpha:r}};var yg={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};var _g=n(9047);function Cg(t,e){if(!t)return"";const n=Ag(t);if(!n)return"";if(n.space===e)return t;if(i=n,!Object.keys(_g).includes(i.space))return"";var i;const r=_g[n.space][e];if(!r)return"";return function(t,e){switch(e){case"hex":return`#${t}`;case"rgb":return`rgb( ${t[0]}, ${t[1]}, ${t[2]} )`;case"hsl":return`hsl( ${t[0]}, ${t[1]}%, ${t[2]}% )`;case"hwb":return`hwb( ${t[0]}, ${t[1]}, ${t[2]} )`;case"lab":return`lab( ${t[0]}% ${t[1]} ${t[2]} )`;case"lch":return`lch( ${t[0]}% ${t[1]} ${t[2]} )`;default:return""}}(r("hex"===n.space?n.hexValue:n.values),e)}function Ag(t){if(t.startsWith("#")){const e=vg(t);return{space:"hex",values:e.values,hexValue:t,alpha:e.alpha}}const e=vg(t);return e.space?e:null}var xg=n(4962),Eg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(xg.A,Eg);xg.A.locals;class Tg extends af{fieldView;labelView;statusView;fieldWrapperChildren;constructor(t,e){super(t);const n=`ck-labeled-field-view-${pi()}`,i=`ck-labeled-field-view-status-${pi()}`;this.fieldView=e(this,n,i),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(i),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",((t,e)=>t||e));const r=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",r.to("class"),r.if("isEnabled","ck-disabled",(t=>!t)),r.if("isEmpty","ck-labeled-field-view_empty"),r.if("isFocused","ck-labeled-field-view_focused"),r.if("placeholder","ck-labeled-field-view_placeholder"),r.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(t){const e=new Zf(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new af(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(t=>!t))],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(t){this.fieldView.focus(t)}}class Sg extends af{focusTracker;constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("tabIndex",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.set("ariaLabel",void 0),this.focusTracker=new Eo,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),tabindex:e.to("tabIndex"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById"),"aria-label":e.to("ariaLabel")},on:{input:e.to(((...t)=>{this.fire("input",...t),this._updateIsEmpty()})),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",((t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()}))}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(t){this.element.value=t||0===t?t:""}}var Dg=n(253),Ig={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Dg.A,Ig);Dg.A.locals;class Bg extends Sg{constructor(t){super(t),this.set("inputMode","text");const e=this.bindTemplate;this.extendTemplate({attributes:{inputmode:e.to("inputMode")}})}}class Mg extends Bg{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}class Pg extends Bg{constructor(t,{min:e,max:n,step:i}={}){super(t);const r=this.bindTemplate;this.set("min",e),this.set("max",n),this.set("step",i),this.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:r.to("min"),max:r.to("max"),step:r.to("step")}})}}var Lg=n(1671),Og={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Lg.A,Og);Lg.A.locals;class Ng extends af{children;constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",(t=>`ck-dropdown__panel_${t}`)),e.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:e.to((t=>{"input"!==t.target.tagName.toLocaleLowerCase()&&t.preventDefault()}))}})}focus(){if(this.children.length){const t=this.children.first;"function"==typeof t.focus?t.focus():ki("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}var Rg=n(8149),Fg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Rg.A,Fg);Rg.A.locals;class jg extends af{buttonView;panelView;focusTracker;keystrokes;listView;toolbarView;menuView;constructor(t,e,n){super(t);const i=this.bindTemplate;this.buttonView=e,this.panelView=n,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new To,this.focusTracker=new Eo,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",i.to("class"),i.if("isEnabled","ck-disabled",(t=>!t))],id:i.to("id"),"aria-describedby":i.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":i.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",(()=>{this.isOpen=!this.isOpen})),this.on("change:isOpen",((t,e,n)=>{if(n)if("auto"===this.panelPosition){const t=jg._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=t?t.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition})),this.keystrokes.listenTo(this.element);const t=(t,e)=>{this.isOpen&&(this.isOpen=!1,e())};this.keystrokes.set("arrowdown",((t,e)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())})),this.keystrokes.set("arrowright",((t,e)=>{this.isOpen&&e()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:t,north:e,southEast:n,southWest:i,northEast:r,northWest:o,southMiddleEast:a,southMiddleWest:s,northMiddleEast:c,northMiddleWest:l}=jg.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[n,i,a,s,t,r,o,c,l,e]:[i,n,s,a,t,o,r,l,c,e]}static defaultPanelPositions={south:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"}),southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),southMiddleEast:(t,e)=>({top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"}),southMiddleWest:(t,e)=>({top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"}),north:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}),northMiddleEast:(t,e)=>({top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"}),northMiddleWest:(t,e)=>({top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"})};static _getOptimalPosition=Dr}class $g extends bf{arrowView;constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",(t=>String(t)))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new ff;return t.content=cg,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}var zg=n(4767),Vg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(zg.A,Vg);zg.A.locals;var Hg=n(9554),qg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Hg.A,qg);Hg.A.locals;class Ug extends af{children;constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",(t=>!t))],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Gg extends af{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class Wg extends af{labelView;items;children;constructor(t,e=new Zf){super(t);const n=this.bindTemplate,i=new Xg(t);this.set({label:"",isVisible:!0}),this.labelView=e,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,i]),i.set({role:"group",ariaLabelledBy:e.id}),i.focusTracker.destroy(),i.keystrokes.destroy(),this.items=i.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",n.if("isVisible","ck-hidden",(t=>!t))]},children:this.children})}focus(){if(this.items){const t=this.items.find((t=>!(t instanceof Gg)));t&&t.focus()}}}var Kg=n(5199),Yg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Kg.A,Yg);Kg.A.locals;class Xg extends af{focusables;items;focusTracker;keystrokes;_focusCycler;_listItemGroupToChangeListeners=new WeakMap;constructor(t){super(t);const e=this.bindTemplate;this.focusables=new Od,this.items=this.createCollection(),this.focusTracker=new Eo,this.keystrokes=new To,this._focusCycler=new _f({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:e.to("role"),"aria-label":e.to("ariaLabel"),"aria-labelledby":e.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const t of this.items)t instanceof Wg?this._registerFocusableItemsGroup(t):t instanceof Ug&&this._registerFocusableListItem(t);this.items.on("change",((t,e)=>{for(const t of e.removed)t instanceof Wg?this._deregisterFocusableItemsGroup(t):t instanceof Ug&&this._deregisterFocusableListItem(t);for(const t of Array.from(e.added).reverse())t instanceof Wg?this._registerFocusableItemsGroup(t,e.index):this._registerFocusableListItem(t,e.index)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(t,e){this.focusTracker.add(t.element),this.focusables.add(t,e)}_deregisterFocusableListItem(t){this.focusTracker.remove(t.element),this.focusables.remove(t)}_getOnGroupItemsChangeCallback(t){return(e,n)=>{for(const t of n.removed)this._deregisterFocusableListItem(t);for(const e of Array.from(n.added).reverse())this._registerFocusableListItem(e,this.items.getIndex(t)+n.index)}}_registerFocusableItemsGroup(t,e){Array.from(t.items).forEach(((t,n)=>{const i=void 0!==e?e+n:void 0;this._registerFocusableListItem(t,i)}));const n=this._getOnGroupItemsChangeCallback(t);this._listItemGroupToChangeListeners.set(t,n),t.items.on("change",n)}_deregisterFocusableItemsGroup(t){for(const e of t.items)this._deregisterFocusableListItem(e);t.items.off("change",this._listItemGroupToChangeListeners.get(t)),this._listItemGroupToChangeListeners.delete(t)}}var Zg=n(2171),Qg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Zg.A,Qg);Zg.A.locals;var Jg=n(3710),tp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Jg.A,tp);Jg.A.locals;const ep=Cr("px"),np={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}};class ip extends af{content;_pinWhenIsVisibleCallback;_resizeObserver;constructor(t){super(t);const e=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this._resizeObserver=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",(t=>`ck-balloon-panel_${t}`)),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",ep),left:e.to("left",ep)}},children:this.content})}destroy(){this.hide(),super.destroy()}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(t){const e=rp(t.target);if(e&&!Sr(e))return!1;this.show();const n=ip.defaultPositions,i=Object.assign({},{element:this.element,positions:[n.southArrowNorth,n.southArrowNorthMiddleWest,n.southArrowNorthMiddleEast,n.southArrowNorthWest,n.southArrowNorthEast,n.northArrowSouth,n.northArrowSouthMiddleWest,n.northArrowSouthMiddleEast,n.northArrowSouthWest,n.northArrowSouthEast,n.viewportStickyNorth],limiter:Xn.document.body,fitInViewport:!0},t),r=ip._getOptimalPosition(i)||np,o=parseInt(r.left),a=parseInt(r.top),s=r.name,c=r.config||{},{withArrow:l=!0}=c;return this.top=a,this.left=o,this.position=s,this.withArrow=l,!0}pin(t){this.unpin(),this._startPinning(t)&&(this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(t):this._stopPinning()},this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback))}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(t){if(!this.attachTo(t))return!1;let e=rp(t.target);const n=t.limiter?rp(t.limiter):Xn.document.body;if(this.listenTo(Xn.document,"scroll",((i,r)=>{const o=r.target,a=e&&o.contains(e),s=n&&o.contains(n);!a&&!s&&e&&n||this.attachTo(t)}),{useCapture:!0}),this.listenTo(Xn.window,"resize",(()=>{this.attachTo(t)})),!this._resizeObserver&&(e&&dr(e)&&(e=e.parentElement),e)){const t=()=>{Sr(e)||this.unpin()};this._resizeObserver=new yr(e,t)}return!0}_stopPinning(){this.stopListening(Xn.document,"scroll"),this.stopListening(Xn.window,"resize"),this._resizeObserver&&(this._resizeObserver.destroy(),this._resizeObserver=null)}static generatePositions(t={}){const{sideOffset:e=ip.arrowSideOffset,heightOffset:n=ip.arrowHeightOffset,stickyVerticalOffset:i=ip.stickyVerticalOffset,config:r}=t;return{northWestArrowSouthWest:(t,n)=>({top:o(t,n),left:t.left-e,name:"arrow_sw",...r&&{config:r}}),northWestArrowSouthMiddleWest:(t,n)=>({top:o(t,n),left:t.left-.25*n.width-e,name:"arrow_smw",...r&&{config:r}}),northWestArrowSouth:(t,e)=>({top:o(t,e),left:t.left-e.width/2,name:"arrow_s",...r&&{config:r}}),northWestArrowSouthMiddleEast:(t,n)=>({top:o(t,n),left:t.left-.75*n.width+e,name:"arrow_sme",...r&&{config:r}}),northWestArrowSouthEast:(t,n)=>({top:o(t,n),left:t.left-n.width+e,name:"arrow_se",...r&&{config:r}}),northArrowSouthWest:(t,n)=>({top:o(t,n),left:t.left+t.width/2-e,name:"arrow_sw",...r&&{config:r}}),northArrowSouthMiddleWest:(t,n)=>({top:o(t,n),left:t.left+t.width/2-.25*n.width-e,name:"arrow_smw",...r&&{config:r}}),northArrowSouth:(t,e)=>({top:o(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s",...r&&{config:r}}),northArrowSouthMiddleEast:(t,n)=>({top:o(t,n),left:t.left+t.width/2-.75*n.width+e,name:"arrow_sme",...r&&{config:r}}),northArrowSouthEast:(t,n)=>({top:o(t,n),left:t.left+t.width/2-n.width+e,name:"arrow_se",...r&&{config:r}}),northEastArrowSouthWest:(t,n)=>({top:o(t,n),left:t.right-e,name:"arrow_sw",...r&&{config:r}}),northEastArrowSouthMiddleWest:(t,n)=>({top:o(t,n),left:t.right-.25*n.width-e,name:"arrow_smw",...r&&{config:r}}),northEastArrowSouth:(t,e)=>({top:o(t,e),left:t.right-e.width/2,name:"arrow_s",...r&&{config:r}}),northEastArrowSouthMiddleEast:(t,n)=>({top:o(t,n),left:t.right-.75*n.width+e,name:"arrow_sme",...r&&{config:r}}),northEastArrowSouthEast:(t,n)=>({top:o(t,n),left:t.right-n.width+e,name:"arrow_se",...r&&{config:r}}),southWestArrowNorthWest:t=>({top:a(t),left:t.left-e,name:"arrow_nw",...r&&{config:r}}),southWestArrowNorthMiddleWest:(t,n)=>({top:a(t),left:t.left-.25*n.width-e,name:"arrow_nmw",...r&&{config:r}}),southWestArrowNorth:(t,e)=>({top:a(t),left:t.left-e.width/2,name:"arrow_n",...r&&{config:r}}),southWestArrowNorthMiddleEast:(t,n)=>({top:a(t),left:t.left-.75*n.width+e,name:"arrow_nme",...r&&{config:r}}),southWestArrowNorthEast:(t,n)=>({top:a(t),left:t.left-n.width+e,name:"arrow_ne",...r&&{config:r}}),southArrowNorthWest:t=>({top:a(t),left:t.left+t.width/2-e,name:"arrow_nw",...r&&{config:r}}),southArrowNorthMiddleWest:(t,n)=>({top:a(t),left:t.left+t.width/2-.25*n.width-e,name:"arrow_nmw",...r&&{config:r}}),southArrowNorth:(t,e)=>({top:a(t),left:t.left+t.width/2-e.width/2,name:"arrow_n",...r&&{config:r}}),southArrowNorthMiddleEast:(t,n)=>({top:a(t),left:t.left+t.width/2-.75*n.width+e,name:"arrow_nme",...r&&{config:r}}),southArrowNorthEast:(t,n)=>({top:a(t),left:t.left+t.width/2-n.width+e,name:"arrow_ne",...r&&{config:r}}),southEastArrowNorthWest:t=>({top:a(t),left:t.right-e,name:"arrow_nw",...r&&{config:r}}),southEastArrowNorthMiddleWest:(t,n)=>({top:a(t),left:t.right-.25*n.width-e,name:"arrow_nmw",...r&&{config:r}}),southEastArrowNorth:(t,e)=>({top:a(t),left:t.right-e.width/2,name:"arrow_n",...r&&{config:r}}),southEastArrowNorthMiddleEast:(t,n)=>({top:a(t),left:t.right-.75*n.width+e,name:"arrow_nme",...r&&{config:r}}),southEastArrowNorthEast:(t,n)=>({top:a(t),left:t.right-n.width+e,name:"arrow_ne",...r&&{config:r}}),westArrowEast:(t,e)=>({top:t.top+t.height/2-e.height/2,left:t.left-e.width-n,name:"arrow_e",...r&&{config:r}}),eastArrowWest:(t,e)=>({top:t.top+t.height/2-e.height/2,left:t.right+n,name:"arrow_w",...r&&{config:r}}),viewportStickyNorth:(t,e,n,o)=>{const a=o||n;return t.getIntersection(a)?a.height-t.height>i?null:{top:a.top+i,left:t.left+t.width/2-e.width/2,name:"arrowless",config:{withArrow:!1,...r}}:null}};function o(t,e){return t.top-e.height-n}function a(t){return t.bottom+n}}static arrowSideOffset=25;static arrowHeightOffset=10;static stickyVerticalOffset=20;static _getOptimalPosition=Dr;static defaultPositions=ip.generatePositions()}function rp(t){return U(t)?t:fr(t)?t.commonAncestorContainer:"function"==typeof t?rp(t()):null}var op=n(3610),ap={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(op.A,ap);op.A.locals;var sp=n(7218),cp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(sp.A,cp);sp.A.locals;class lp extends af{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class up extends af{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function hp(t){if(Array.isArray(t))return{items:t,removeItems:[]};const e={items:[],removeItems:[]};return t?{...e,...t}:e}var dp=n(9677),fp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(dp.A,fp);dp.A.locals;const gp=(()=>({alignLeft:Ld.alignLeft,bold:Ld.bold,importExport:Ld.importExport,paragraph:Ld.paragraph,plus:Ld.plus,text:Ld.text,threeVerticalDots:Ld.threeVerticalDots,pilcrow:Ld.pilcrow,dragIndicator:Ld.dragIndicator}))();class pp extends af{options;items;focusTracker;keystrokes;itemsView;children;focusables;_focusCycler;_behavior;constructor(t,e){super(t);const n=this.bindTemplate,i=this.t;this.options=e||{},this.set("ariaLabel",i("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Eo,this.keystrokes=new To,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new mp(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const r="rtl"===t.uiLanguageDirection;this._focusCycler=new _f({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[r?"arrowright":"arrowleft","arrowup"],focusNext:[r?"arrowleft":"arrowright","arrowdown"]}});const o=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var a;this.options.shouldGroupWhenFull&&this.options.isFloating&&o.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:o,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(a=this,a.bindTemplate.to((t=>{t.target===a.element&&t.preventDefault()})))}}),this._behavior=this.options.shouldGroupWhenFull?new wp(this):new bp(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",((t,e)=>{this.focusTracker.add(e.element)})),this.items.on("remove",((t,e)=>{this.focusTracker.remove(e.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n))}_buildItemsFromConfig(t,e,n){const i=hp(t),r=n||i.removeItems;return this._cleanItemsConfiguration(i.items,e,r).map((t=>a(t)?this._createNestedToolbarDropdown(t,e,r):"|"===t?new lp:"-"===t?new up:e.create(t))).filter((t=>!!t))}_cleanItemsConfiguration(t,e,n){const i=t.filter(((t,i,r)=>"|"===t||-1===n.indexOf(t)&&("-"===t?!this.options.shouldGroupWhenFull||(ki("toolbarview-line-break-ignored-when-grouping-items",r),!1):!(!a(t)&&!e.has(t))||(ki("toolbarview-item-unavailable",{item:t}),!1))));return this._cleanSeparatorsAndLineBreaks(i)}_cleanSeparatorsAndLineBreaks(t){const e=t=>"-"!==t&&"|"!==t,n=t.length,i=t.findIndex(e);if(-1===i)return[];const r=n-t.slice().reverse().findIndex(e);return t.slice(i,r).filter(((t,n,i)=>{if(e(t))return!0;return!(n>0&&i[n-1]===t)}))}_createNestedToolbarDropdown(t,e,n){let{label:i,icon:r,items:o,tooltip:a=!0,withText:s=!1}=t;if(o=this._cleanItemsConfiguration(o,e,n),!o.length)return null;const c=Ep(this.locale);return i||ki("toolbarview-nested-toolbar-dropdown-missing-label",t),c.class="ck-toolbar__nested-toolbar-dropdown",c.buttonView.set({label:i,tooltip:a,withText:!!s}),!1!==r?c.buttonView.icon=gp[r]||r||Ld.threeVerticalDots:c.buttonView.withText=!0,Tp(c,(()=>c.toolbarView._buildItemsFromConfig(o,e,n))),c}}class mp extends af{children;constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class bp{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((t=>t)),t.focusables.bindTo(t.items).using((t=>Af(t)?t:null)),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class wp{view;viewChildren;viewFocusables;viewItemsView;viewFocusTracker;viewLocale;ungroupedItems;groupedItems;groupedItemsDropdown;resizeObserver=null;cachedPadding=null;shouldUpdateGroupingOnNextResize=!1;viewElement;constructor(t){this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),t.itemsView.children.bindTo(this.ungroupedItems).using((t=>t)),this.ungroupedItems.on("change",this._updateFocusCyclableItems.bind(this)),t.children.on("change",this._updateFocusCyclableItems.bind(this)),t.items.on("change",((t,e)=>{const n=e.index,i=Array.from(e.added);for(const t of e.removed)n>=this.ungroupedItems.length?this.groupedItems.remove(t):this.ungroupedItems.remove(t);for(let t=n;t<n+i.length;t++){const e=i[t-n];t>this.ungroupedItems.length?this.groupedItems.add(e,t-this.ungroupedItems.length):this.ungroupedItems.add(e,t)}this._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Sr(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new mr(t.lastChild),i=new mr(t);if(!this.cachedPadding){const n=Xn.window.getComputedStyle(t),i="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(n[i])}return"ltr"===e?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}_enableGroupingOnResize(){let t;this.resizeObserver=new yr(this.viewElement,(e=>{t&&t===e.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)})),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",(()=>{this._updateGrouping()}))}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new lp),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=Ep(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",Tp(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:Ld.threeVerticalDots}),n}_updateFocusCyclableItems(){this.viewFocusables.clear(),this.ungroupedItems.map((t=>{Af(t)&&this.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}var kp=n(1792),vp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(kp.A,vp);kp.A.locals;class yp extends af{children;actionView;arrowView;keystrokes;focusTracker;constructor(t,e){super(t);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(e),this.arrowView=this._createArrowView(),this.keystrokes=new To,this.focusTracker=new Eo,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",(t=>!t)),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",((t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())})),this.keystrokes.set("arrowleft",((t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(t){const e=t||new bf;return t||e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const t=new bf,e=t.bindTemplate;return t.icon=cg,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",(t=>String(t)))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}var _p=n(1666),Cp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(_p.A,Cp);_p.A.locals;var Ap=n(3629),xp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Ap.A,xp);Ap.A.locals;function Ep(t,e=$g){const n="function"==typeof e?new e(t):e,i=new Ng(t),r=new jg(t,n,i);return n.bind("isEnabled").to(r),n instanceof yp?n.arrowView.bind("isOn").to(r,"isOpen"):n.bind("isOn").to(r,"isOpen"),function(t){(function(t){sf({emitter:t,activator:()=>t.isRendered&&t.isOpen,callback:()=>{t.isOpen=!1},contextElements:()=>[t.element,...t.focusTracker.elements]})})(t),function(t){t.on("execute",(e=>{e.source instanceof ig||(t.isOpen=!1)}))}(t),function(t){t.focusTracker.on("change:isFocused",((e,n,i)=>{!i&&t.isOpen&&(t.isOpen=!1)}))}(t),function(t){t.keystrokes.set("arrowdown",((e,n)=>{t.isOpen&&(t.panelView.focus(),n())})),t.keystrokes.set("arrowup",((e,n)=>{t.isOpen&&(t.panelView.focusLast(),n())}))}(t),function(t){t.on("change:isOpen",((e,n,i)=>{if(i)return;t.focusTracker.elements.some((t=>t.contains(Xn.document.activeElement)))&&t.buttonView.focus()}))}(t),function(t){t.on("change:isOpen",((e,n,i)=>{i&&t.panelView.focus()}),{priority:"low"})}(t)}(r),r}function Tp(t,e,n={}){t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.isOpen?Sp(t,e,n):t.once("change:isOpen",(()=>Sp(t,e,n)),{priority:"highest"}),n.enableActiveItemFocusOnDropdownOpen&&Bp(t,(()=>t.toolbarView.items.find((t=>t.isOn))))}function Sp(t,e,n){const i=t.locale,r=i.t,o=t.toolbarView=new pp(i),a="function"==typeof e?e():e;o.ariaLabel=n.ariaLabel||r("Dropdown toolbar"),n.maxWidth&&(o.maxWidth=n.maxWidth),n.class&&(o.class=n.class),n.isCompact&&(o.isCompact=n.isCompact),n.isVertical&&(o.isVertical=!0),a instanceof Od?o.items.bindTo(a).using((t=>t)):o.items.addMany(a),t.panelView.children.add(o),o.items.delegate("execute").to(t)}function Dp(t,e,n={}){t.isOpen?Ip(t,e,n):t.once("change:isOpen",(()=>Ip(t,e,n)),{priority:"highest"}),Bp(t,(()=>t.listView.items.find((t=>t instanceof Ug&&t.children.first.isOn))))}function Ip(t,e,n){const i=t.locale,r=t.listView=new Xg(i),o="function"==typeof e?e():e;r.ariaLabel=n.ariaLabel,r.role=n.role,Mp(t,r.items,o,i),t.panelView.children.add(r),r.items.delegate("execute").to(t)}function Bp(t,e){t.on("change:isOpen",(()=>{if(!t.isOpen)return;const n=e();n&&("function"==typeof n.focus?n.focus():ki("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}))}),{priority:mi.low-10})}function Mp(t,e,n,i){e.on("change",(()=>{const t=[...e].reduce(((t,e)=>(e instanceof Ug&&e.children.first instanceof qf&&t.push(e.children.first),t)),[]),n=t.some((t=>t.isToggleable));t.forEach((t=>{t.hasCheckSpace=n}))})),e.bindTo(n).using((e=>{if("separator"===e.type)return new Gg(i);if("group"===e.type){const n=new Wg(i);return n.set({label:e.label}),Mp(t,n.items,e.items,i),n.items.delegate("execute").to(t),n}if("button"===e.type||"switchbutton"===e.type){const t="menuitemcheckbox"===e.model.role||"menuitemradio"===e.model.role,n=new Ug(i);let r;return"button"===e.type?(r=new qf(i),r.set({isToggleable:t})):r=new ig(i),r.bind(...Object.keys(e.model)).to(e.model),r.delegate("execute").to(n),n.children.add(r),n}return null}))}const Pp=(t,e,n)=>{const i=new Mg(t.locale);return i.set({id:e,ariaDescribedById:n}),i.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),i.bind("hasError").to(t,"errorText",(t=>!!t)),i.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(i),i},Lp=(t,e,n)=>{const i=new Pg(t.locale);return i.set({id:e,ariaDescribedById:n,inputMode:"numeric"}),i.bind("isReadOnly").to(t,"isEnabled",(t=>!t)),i.bind("hasError").to(t,"errorText",(t=>!!t)),i.on("input",(()=>{t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(i),i},Op=(t,e,n)=>{const i=Ep(t.locale);return i.set({id:e,ariaDescribedById:n}),i.bind("isEnabled").to(t),i},Np=(t,e=0,n=1)=>t>n?n:t<e?e:t,Rp=(t,e=0,n=Math.pow(10,e))=>Math.round(n*t)/n,Fp=(Math.PI,t=>("#"===t[0]&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?Rp(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:8===t.length?Rp(parseInt(t.substring(6,8),16)/255,2):1})),jp=({h:t,s:e,v:n,a:i})=>{const r=(200-e)*n/100;return{h:Rp(t),s:Rp(r>0&&r<200?e*n/100/(r<=100?r:200-r)*100:0),l:Rp(r/2),a:Rp(i,2)}},$p=t=>{const{h:e,s:n,l:i}=jp(t);return`hsl(${e}, ${n}%, ${i}%)`},zp=({h:t,s:e,v:n,a:i})=>{t=t/360*6,e/=100,n/=100;const r=Math.floor(t),o=n*(1-e),a=n*(1-(t-r)*e),s=n*(1-(1-t+r)*e),c=r%6;return{r:Rp(255*[n,a,o,o,s,n][c]),g:Rp(255*[s,n,n,a,o,o][c]),b:Rp(255*[o,o,s,n,n,a][c]),a:Rp(i,2)}},Vp=t=>{const e=t.toString(16);return e.length<2?"0"+e:e},Hp=({r:t,g:e,b:n,a:i})=>{const r=i<1?Vp(Rp(255*i)):"";return"#"+Vp(t)+Vp(e)+Vp(n)+r},qp=({r:t,g:e,b:n,a:i})=>{const r=Math.max(t,e,n),o=r-Math.min(t,e,n),a=o?r===t?(e-n)/o:r===e?2+(n-t)/o:4+(t-e)/o:0;return{h:Rp(60*(a<0?a+6:a)),s:Rp(r?o/r*100:0),v:Rp(r/255*100),a:i}},Up=(t,e)=>{if(t===e)return!0;for(const n in t)if(t[n]!==e[n])return!1;return!0},Gp={},Wp=t=>{let e=Gp[t];return e||(e=document.createElement("template"),e.innerHTML=t,Gp[t]=e),e},Kp=(t,e,n)=>{t.dispatchEvent(new CustomEvent(e,{bubbles:!0,detail:n}))};let Yp=!1;const Xp=t=>"touches"in t,Zp=(t,e)=>{const n=Xp(e)?e.touches[0]:e,i=t.el.getBoundingClientRect();Kp(t.el,"move",t.getMove({x:Np((n.pageX-(i.left+window.pageXOffset))/i.width),y:Np((n.pageY-(i.top+window.pageYOffset))/i.height)}))};class Qp{constructor(t,e,n,i){const r=Wp(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(r.content.cloneNode(!0));const o=t.querySelector(`[part=${e}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=i,this.nodes=[o.firstChild,o]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(Yp?"touchmove":"mousemove",this),e(Yp?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!(t=>!(Yp&&!Xp(t)||(Yp||(Yp=Xp(t)),0)))(t)||!Yp&&0!=t.button)return;this.el.focus(),Zp(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),Zp(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((t,e)=>{const n=e.keyCode;n>40||t.xy&&n<37||n<33||(e.preventDefault(),Kp(t.el,"move",t.getMove({x:39===n?.01:37===n?-.01:34===n?.05:33===n?-.05:35===n?1:36===n?-1:0,y:40===n?.01:38===n?-.01:0},!0)))})(this,t)}}style(t){t.forEach(((t,e)=>{for(const n in t)this.nodes[e].style.setProperty(n,t[n])}))}}class Jp extends Qp{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:t/360*100+"%",color:$p({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Rp(t)}`)}getMove(t,e){return{h:e?Np(this.h+360*t.x,0,360):360*t.x}}}class tm extends Qp{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:100-t.v+"%",left:`${t.s}%`,color:$p(t)},{"background-color":$p({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Rp(t.s)}%, Brightness ${Rp(t.v)}%`)}getMove(t,e){return{s:e?Np(this.hsva.s+100*t.x,0,100):100*t.x,v:e?Np(this.hsva.v-100*t.y,0,100):Math.round(100-100*t.y)}}}const em=Symbol("same"),nm=Symbol("color"),im=Symbol("hsva"),rm=Symbol("update"),om=Symbol("parts"),am=Symbol("css"),sm=Symbol("sliders");class cm extends HTMLElement{static get observedAttributes(){return["color"]}get[am](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[sm](){return[tm,Jp]}get color(){return this[nm]}set color(t){if(!this[em](t)){const e=this.colorModel.toHsva(t);this[rm](e),this[nm]=t}}constructor(){super();const t=Wp(`<style>${this[am].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[om]=this[sm].map((t=>new t(e)))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const i=this.colorModel.fromAttr(n);this[em](i)||(this.color=i)}handleEvent(t){const e=this[im],n={...e,...t.detail};let i;this[rm](n),Up(n,e)||this[em](i=this.colorModel.fromHsva(n))||(this[nm]=i,Kp(this,"color-changed",{value:i}))}[em](t){return this.color&&this.colorModel.equal(t,this.color)}[rm](t){this[im]=t,this[om].forEach((e=>e.update(t)))}}const lm={defaultColor:"#000",toHsva:t=>qp(Fp(t)),fromHsva:({h:t,s:e,v:n})=>Hp(zp({h:t,s:e,v:n,a:1})),equal:(t,e)=>t.toLowerCase()===e.toLowerCase()||Up(Fp(t),Fp(e)),fromAttr:t=>t};class um extends cm{get colorModel(){return lm}}var hm=n(1905),dm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(hm.A,dm);hm.A.locals;class fm extends af{hexInputRow;_debounceColorPickerEvent;_config;constructor(t,e={}){super(t),this.set({color:"",_hexColor:""}),this.hexInputRow=this._createInputRow();const n=this.createCollection();e.hideInput||n.add(this.hexInputRow),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker"],tabindex:-1},children:n}),this._config=e,this._debounceColorPickerEvent=L((t=>{this.set("color",t),this.fire("colorSelected",{color:this.color})}),150,{leading:!0}),this.on("set:color",((t,e,n)=>{t.return=Cg(n,this._config.format||"hsl")})),this.on("change:color",(()=>{this._hexColor=gm(this.color)})),this.on("change:_hexColor",(()=>{document.activeElement!==this.picker&&this.picker.setAttribute("color",this._hexColor),gm(this.color)!=gm(this._hexColor)&&(this.color=this._hexColor)}))}render(){var t,e;if(super.render(),t="hex-color-picker",e=um,void 0===customElements.get(t)&&customElements.define(t,e),this.picker=Xn.document.createElement("hex-color-picker"),this.picker.setAttribute("class","hex-color-picker"),this.picker.setAttribute("tabindex","-1"),this._createSlidersView(),this.element){this.hexInputRow.element?this.element.insertBefore(this.picker,this.hexInputRow.element):this.element.appendChild(this.picker);const t=document.createElement("style");t.textContent='[role="slider"]:focus [part$="pointer"] {border: 1px solid #fff;outline: 1px solid var(--ck-color-focus-border);box-shadow: 0 0 0 2px #fff;}',this.picker.shadowRoot.appendChild(t)}this.picker.addEventListener("color-changed",(t=>{const e=t.detail.value;this._debounceColorPickerEvent(e)}))}focus(){if(!this._config.hideInput&&(Jn.isGecko||Jn.isiOS||Jn.isSafari)){this.hexInputRow.children.get(1).focus()}this.slidersView.first.focus()}_createSlidersView(){const t=[...this.picker.shadowRoot.children].filter((t=>"slider"===t.getAttribute("role"))).map((t=>new pm(t)));this.slidersView=this.createCollection(),t.forEach((t=>{this.slidersView.add(t)}))}_createInputRow(){const t=this._createColorInput();return new bm(this.locale,t)}_createColorInput(){const t=new Tg(this.locale,Pp),{t:e}=this.locale;return t.set({label:e("HEX"),class:"color-picker-hex-input"}),t.fieldView.bind("value").to(this,"_hexColor",(e=>t.isFocused?t.fieldView.value:e.startsWith("#")?e.substring(1):e)),t.fieldView.on("input",(()=>{const e=t.fieldView.element.value;if(e){const t=wm(e);t&&this._debounceColorPickerEvent(t)}})),t}isValid(){const{t}=this.locale;return!!this._config.hideInput||(this.resetValidationStatus(),!!this.hexInputRow.getParsedColor()||(this.hexInputRow.inputView.errorText=t('Please enter a valid color (e.g. "ff0000").'),!1))}resetValidationStatus(){this.hexInputRow.inputView.errorText=null}}function gm(t){let e=function(t){if(!t)return"";const e=Ag(t);return e?"hex"===e.space?e.hexValue:Cg(t,"hex"):"#000"}(t);return e||(e="#000"),4===e.length&&(e="#"+[e[1],e[1],e[2],e[2],e[3],e[3]].join("")),e.toLowerCase()}class pm extends af{constructor(t){super(),this.element=t}focus(){this.element.focus()}}class mm extends af{constructor(t){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__hash-view"]},children:"#"})}}class bm extends af{children;inputView;constructor(t,e){super(t),this.inputView=e,this.children=this.createCollection([new mm,this.inputView]),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-picker__row"]},children:this.children})}getParsedColor(){return wm(this.inputView.fieldView.element.value)}}function wm(t){if(!t)return null;const e=t.trim().replace(/^#/,"");return[3,4,6,8].includes(e.length)&&/^(([0-9a-fA-F]{2}){3,4}|([0-9a-fA-F]){3,4})$/.test(e)?`#${e}`:null}class km extends(Vi(Ao)){constructor(t){super(t),this.set("isEmpty",!0),this.on("change",(()=>{this.set("isEmpty",0===this.length)}))}add(t,e){return this.find((e=>e.color===t.color))?this:super.add(t,e)}hasColor(t){return!!this.find((e=>e.color===t))}}class vm extends af{items;colorDefinitions;focusTracker;columns;documentColors;documentColorsCount;staticColorsGrid;documentColorsGrid;colorPickerButtonView;removeColorButtonView;_focusables;_documentColorsLabel;_removeButtonLabel;_colorPickerLabel;constructor(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:r,documentColorsCount:o,colorPickerLabel:a,focusTracker:s,focusables:c}){super(t);const l=this.bindTemplate;this.set("isVisible",!0),this.focusTracker=s,this.items=this.createCollection(),this.colorDefinitions=e,this.columns=n,this.documentColors=new km,this.documentColorsCount=o,this._focusables=c,this._removeButtonLabel=i,this._colorPickerLabel=a,this._documentColorsLabel=r,this.setTemplate({tag:"div",attributes:{class:["ck-color-grids-fragment",l.if("isVisible","ck-hidden",(t=>!t))]},children:this.items}),this.removeColorButtonView=this._createRemoveColorButton(),this.items.add(this.removeColorButtonView)}updateDocumentColors(t,e){const n=t.document,i=this.documentColorsCount;this.documentColors.clear();for(const r of n.getRoots()){const n=t.createRangeIn(r);for(const t of n.getItems())if(t.is("$textProxy")&&t.hasAttribute(e)&&(this._addColorToDocumentColors(t.getAttribute(e)),this.documentColors.length>=i))return}}updateSelectedColors(){const t=this.documentColorsGrid,e=this.staticColorsGrid,n=this.selectedColor;e.selectedColor=n,t&&(t.selectedColor=n)}render(){if(super.render(),this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount){const t=Nd.bind(this.documentColors,this.documentColors),e=new af(this.locale);e.setTemplate({tag:"span",attributes:{class:["ck","ck-color-grid__label",t.if("isEmpty","ck-hidden")]},children:[{text:this._documentColorsLabel}]}),this.items.add(e),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}this._createColorPickerButton(),this._addColorSelectorElementsToFocusTracker()}focus(){this.removeColorButtonView.focus()}destroy(){super.destroy()}addColorPickerButton(){this.colorPickerButtonView&&(this.items.add(this.colorPickerButtonView),this.focusTracker.add(this.colorPickerButtonView.element),this._focusables.add(this.colorPickerButtonView))}_addColorSelectorElementsToFocusTracker(){this.focusTracker.add(this.removeColorButtonView.element),this._focusables.add(this.removeColorButtonView),this.staticColorsGrid&&(this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid)),this.documentColorsGrid&&(this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid))}_createColorPickerButton(){this.colorPickerButtonView=new bf,this.colorPickerButtonView.set({label:this._colorPickerLabel,withText:!0,icon:Ld.colorPalette,class:"ck-color-selector__color-picker"}),this.colorPickerButtonView.on("execute",(()=>{this.fire("colorPicker:show")}))}_createRemoveColorButton(){const t=new bf;return t.set({withText:!0,icon:Ld.eraser,label:this._removeButtonLabel}),t.class="ck-color-selector__remove-color",t.on("execute",(()=>{this.fire("execute",{value:null,source:"removeColorButton"})})),t.render(),t}_createStaticColorsGrid(){const t=new wg(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return t.on("execute",((t,e)=>{this.fire("execute",{value:e.value,source:"staticColorsGrid"})})),t}_createDocumentColorsGrid(){const t=Nd.bind(this.documentColors,this.documentColors),e=new wg(this.locale,{columns:this.columns});return e.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),e.items.bindTo(this.documentColors).using((t=>{const e=new pg;return e.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&e.set({label:t.label,tooltip:!0}),e.on("execute",(()=>{this.fire("execute",{value:t.color,source:"documentColorsGrid"})})),e})),this.documentColors.on("change:isEmpty",((t,n,i)=>{i&&(e.selectedColor=null)})),e}_addColorToDocumentColors(t){const e=this.colorDefinitions.find((e=>e.color===t));e?this.documentColors.add(Object.assign({},e)):this.documentColors.add({color:t,label:t,options:{hasBorder:!1}})}}class ym extends af{items;colorPickerView;saveButtonView;cancelButtonView;actionBarView;focusTracker;keystrokes;_focusables;_colorPickerViewConfig;constructor(t,{focusTracker:e,focusables:n,keystrokes:i,colorPickerViewConfig:r}){super(t),this.items=this.createCollection(),this.focusTracker=e,this.keystrokes=i,this.set("isVisible",!1),this.set("selectedColor",void 0),this._focusables=n,this._colorPickerViewConfig=r;const o=this.bindTemplate,{saveButtonView:a,cancelButtonView:s}=this._createActionButtons();this.saveButtonView=a,this.cancelButtonView=s,this.actionBarView=this._createActionBarView({saveButtonView:a,cancelButtonView:s}),this.setTemplate({tag:"div",attributes:{class:["ck-color-picker-fragment",o.if("isVisible","ck-hidden",(t=>!t))]},children:this.items})}render(){super.render();const t=new fm(this.locale,{...this._colorPickerViewConfig});this.colorPickerView=t,this.colorPickerView.render(),this.selectedColor&&(t.color=this.selectedColor),this.listenTo(this,"change:selectedColor",((e,n,i)=>{t.color=i})),this.items.add(this.colorPickerView),this.items.add(this.actionBarView),this._addColorPickersElementsToFocusTracker(),this._stopPropagationOnArrowsKeys(),this._executeOnEnterPress(),this._executeUponColorChange()}destroy(){super.destroy()}focus(){this.colorPickerView.focus()}resetValidationStatus(){this.colorPickerView.resetValidationStatus()}_executeOnEnterPress(){this.keystrokes.set("enter",(t=>{this.isVisible&&this.focusTracker.focusedElement!==this.cancelButtonView.element&&this.colorPickerView.isValid()&&(this.fire("execute",{value:this.selectedColor}),t.stopPropagation(),t.preventDefault())}))}_stopPropagationOnArrowsKeys(){const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}_addColorPickersElementsToFocusTracker(){for(const t of this.colorPickerView.slidersView)this.focusTracker.add(t.element),this._focusables.add(t);const t=this.colorPickerView.hexInputRow.children.get(1);t.element&&(this.focusTracker.add(t.element),this._focusables.add(t)),this.focusTracker.add(this.saveButtonView.element),this._focusables.add(this.saveButtonView),this.focusTracker.add(this.cancelButtonView.element),this._focusables.add(this.cancelButtonView)}_createActionBarView({saveButtonView:t,cancelButtonView:e}){const n=new af,i=this.createCollection();return i.add(t),i.add(e),n.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector_action-bar"]},children:i}),n}_createActionButtons(){const t=this.locale,e=t.t,n=new bf(t),i=new bf(t);return n.set({icon:Ld.check,class:"ck-button-save",type:"button",withText:!1,label:e("Accept")}),i.set({icon:Ld.cancel,class:"ck-button-cancel",type:"button",withText:!1,label:e("Cancel")}),n.on("execute",(()=>{this.colorPickerView.isValid()&&this.fire("execute",{source:"colorPickerSaveButton",value:this.selectedColor})})),i.on("execute",(()=>{this.fire("colorPicker:cancel")})),{saveButtonView:n,cancelButtonView:i}}_executeUponColorChange(){this.colorPickerView.on("colorSelected",((t,e)=>{this.fire("execute",{value:e.color,source:"colorPicker"}),this.set("selectedColor",e.color)}))}}var _m=n(6309),Cm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(_m.A,Cm);_m.A.locals;class Am extends af{focusTracker;keystrokes;items;colorGridsFragmentView;colorPickerFragmentView;_focusCycler;_focusables;_colorPickerViewConfig;constructor(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:r,documentColorsCount:o,colorPickerLabel:a,colorPickerViewConfig:s}){super(t),this.items=this.createCollection(),this.focusTracker=new Eo,this.keystrokes=new To,this._focusables=new Od,this._colorPickerViewConfig=s,this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.colorGridsFragmentView=new vm(t,{colors:e,columns:n,removeButtonLabel:i,documentColorsLabel:r,documentColorsCount:o,colorPickerLabel:a,focusTracker:this.focusTracker,focusables:this._focusables}),this.colorPickerFragmentView=new ym(t,{focusables:this._focusables,focusTracker:this.focusTracker,keystrokes:this.keystrokes,colorPickerViewConfig:s}),this.set("_isColorGridsFragmentVisible",!0),this.set("_isColorPickerFragmentVisible",!1),this.set("selectedColor",void 0),this.colorGridsFragmentView.bind("isVisible").to(this,"_isColorGridsFragmentVisible"),this.colorPickerFragmentView.bind("isVisible").to(this,"_isColorPickerFragmentVisible"),this.on("change:selectedColor",((t,e,n)=>{this.colorGridsFragmentView.set("selectedColor",n),this.colorPickerFragmentView.set("selectedColor",n)})),this.colorGridsFragmentView.on("change:selectedColor",((t,e,n)=>{this.set("selectedColor",n)})),this.colorPickerFragmentView.on("change:selectedColor",((t,e,n)=>{this.set("selectedColor",n)})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-color-selector"]},children:this.items})}render(){super.render(),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}appendUI(){this._appendColorGridsFragment(),this._colorPickerViewConfig&&this._appendColorPickerFragment()}showColorPickerFragment(){this.colorPickerFragmentView.colorPickerView&&!this._isColorPickerFragmentVisible&&(this._isColorPickerFragmentVisible=!0,this.colorPickerFragmentView.focus(),this.colorPickerFragmentView.resetValidationStatus(),this._isColorGridsFragmentVisible=!1)}showColorGridsFragment(){this._isColorGridsFragmentVisible||(this._isColorGridsFragmentVisible=!0,this.colorGridsFragmentView.focus(),this._isColorPickerFragmentVisible=!1)}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}updateDocumentColors(t,e){this.colorGridsFragmentView.updateDocumentColors(t,e)}updateSelectedColors(){this.colorGridsFragmentView.updateSelectedColors()}_appendColorGridsFragment(){this.items.length||(this.items.add(this.colorGridsFragmentView),this.colorGridsFragmentView.delegate("execute").to(this),this.colorGridsFragmentView.delegate("colorPicker:show").to(this))}_appendColorPickerFragment(){2!==this.items.length&&(this.items.add(this.colorPickerFragmentView),this.colorGridsFragmentView.colorPickerButtonView&&this.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{this.showColorPickerFragment()})),this.colorGridsFragmentView.addColorPickerButton(),this.colorPickerFragmentView.delegate("execute").to(this),this.colorPickerFragmentView.delegate("colorPicker:cancel").to(this))}}class xm{editor;_components=new Map;constructor(t){this.editor=t}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(Em(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new wi("componentfactory-item-missing",this,{name:t});return this._components.get(Em(t)).callback(this.editor.locale)}has(t){return this._components.has(Em(t))}}function Em(t){return String(t).toLowerCase()}var Tm=n(9205),Sm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Tm.A,Sm);Tm.A.locals;const Dm="ck-tooltip";class Im extends(or()){tooltipTextView;balloonPanelView;static defaultBalloonPositions=ip.generatePositions({heightOffset:5,sideOffset:13});_currentElementWithTooltip=null;_currentTooltipPosition=null;_mutationObserver=null;_pinTooltipDebounced;_unpinTooltipDebounced;_watchdogExcluded;static _editors=new Set;static _instance=null;constructor(t){if(super(),Im._editors.add(t),Im._instance)return Im._instance;Im._instance=this,this.tooltipTextView=new af(t.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new ip(t.locale),this.balloonPanelView.class=Dm,this.balloonPanelView.content.add(this.tooltipTextView),this._mutationObserver=function(t){const e=new MutationObserver((()=>{t()}));return{attach(t){e.observe(t,{attributes:!0,attributeFilter:["data-cke-tooltip-text","data-cke-tooltip-position"]})},detach(){e.disconnect()}}}((()=>{this._updateTooltipPosition()})),this._pinTooltipDebounced=L(this._pinTooltip,600),this._unpinTooltipDebounced=L(this._unpinTooltip,400),this.listenTo(Xn.document,"keydown",this._onKeyDown.bind(this),{useCapture:!0}),this.listenTo(Xn.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Xn.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Xn.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Xn.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Xn.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(t){const e=t.ui.view&&t.ui.view.body;Im._editors.delete(t),this.stopListening(t.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),Im._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Im._instance=null)}static getPositioningFunctions(t){const e=Im.defaultBalloonPositions;return{s:[e.southArrowNorth,e.southArrowNorthEast,e.southArrowNorthWest],n:[e.northArrowSouth],e:[e.eastArrowWest],w:[e.westArrowEast],sw:[e.southArrowNorthEast],se:[e.southArrowNorthWest]}[t]}_onKeyDown(t,e){"Escape"===e.key&&this._currentElementWithTooltip&&(this._unpinTooltip(),e.stopPropagation())}_onEnterOrFocus(t,{target:e}){const n=Bm(e);n?n!==this._currentElementWithTooltip&&(this._unpinTooltip(),"focus"!==t.name||n.matches(":hover")?this._pinTooltipDebounced(n,Mm(n)):this._pinTooltip(n,Mm(n))):"focus"===t.name&&this._unpinTooltip()}_onLeaveOrBlur(t,{target:e,relatedTarget:n}){if("mouseleave"===t.name){if(!U(e))return;const t=this.balloonPanelView.element,i=t&&(t===n||t.contains(n)),r=!i&&e===t;if(i)return void this._unpinTooltipDebounced.cancel();if(!r&&this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;const o=Bm(e),a=Bm(n);(r||o&&o!==a)&&this._unpinTooltipDebounced()}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltipDebounced()}}_onScroll(t,{target:e}){this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(t,{text:e,position:n,cssClass:i}){this._unpinTooltip();const r=xo(Im._editors.values()).ui.view.body;r.has(this.balloonPanelView)||r.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.class=[Dm,i].filter((t=>t)).join(" "),this.balloonPanelView.pin({target:t,positions:Im.getPositioningFunctions(n)}),this._mutationObserver.attach(t);for(const t of Im._editors)this.listenTo(t.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=t,this._currentTooltipPosition=n}_unpinTooltip(){this._unpinTooltipDebounced.cancel(),this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const t of Im._editors)this.stopListening(t.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this.tooltipTextView.text="",this._mutationObserver.detach()}_updateTooltipPosition(){if(!this._currentElementWithTooltip)return;const t=Mm(this._currentElementWithTooltip);Sr(this._currentElementWithTooltip)&&t.text?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Im.getPositioningFunctions(t.position)}):this._unpinTooltip()}}function Bm(t){return U(t)?t.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}function Mm(t){return{text:t.dataset.ckeTooltipText,position:t.dataset.ckeTooltipPosition||"s",cssClass:t.dataset.ckeTooltipClass||""}}class Pm extends(or()){editor;_balloonView;_showBalloonThrottled;_lastFocusedEditableElement;constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=O(this._showBalloon.bind(this),50,{leading:!0}),t.on("ready",this._handleEditorReady.bind(this))}destroy(){const t=this._balloonView;t&&(t.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const t=this.editor;(!!t.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(t){function e(t){return t.length>=40&&t.length<=255?"VALID":"INVALID"}if(!t)return"INVALID";let n="";try{n=atob(t)}catch(t){return"INVALID"}const i=n.split("-"),r=i[0],o=i[1];if(!o)return e(t);try{atob(o)}catch(n){try{if(atob(r),!atob(r).length)return e(t)}catch(n){return e(t)}}if(r.length<40||r.length>255)return"INVALID";let a="";try{atob(r),a=atob(o)}catch(t){return"INVALID"}if(8!==a.length)return"INVALID";const s=Number(a.substring(0,4)),c=Number(a.substring(4,6))-1,l=Number(a.substring(6,8)),u=new Date(s,c,l);return u<Ci||isNaN(Number(u))?"INVALID":"VALID"}(t.config.get("licenseKey")))&&t.ui.view&&(t.ui.focusTracker.on("change:isFocused",((t,e,n)=>{this._updateLastFocusedEditableElement(),n?this._showBalloon():this._hideBalloon()})),t.ui.focusTracker.on("change:focusedElement",((t,e,n)=>{this._updateLastFocusedEditableElement(),n&&this._showBalloon()})),t.ui.on("update",(()=>{this._showBalloonThrottled()})))}_createBalloonView(){const t=this.editor,e=this._balloonView=new ip,n=Nm(t),i=new Lm(t.locale,n.label);e.content.add(i),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=function(t,e){const n=Nm(t),i="right"===n.side?function(t,e){return Om(t,e,((t,n)=>t.left+t.width-n.width-e.horizontalOffset))}(e,n):function(t,e){return Om(t,e,(t=>t.left+e.horizontalOffset))}(e,n);return{target:e,positions:[i]}}(this.editor,this._lastFocusedEditableElement);t&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(t))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const t=this.editor,e=t.ui.focusTracker.isFocused,n=t.ui.focusTracker.focusedElement;if(!e||!n)return void(this._lastFocusedEditableElement=null);const i=Array.from(t.ui.getEditableElementsNames()).map((e=>t.ui.getEditableElement(e)));i.includes(n)?this._lastFocusedEditableElement=n:this._lastFocusedEditableElement=i[0]}}class Lm extends af{constructor(t,e){super(t);const n=new ff,i=this.bindTemplate;n.set({content:'<svg xmlns="http://www.w3.org/2000/svg" width="53" height="10" viewBox="0 0 53 10"><path fill="#1C2331" d="M31.724 1.492a15.139 15.139 0 0 0 .045 1.16 2.434 2.434 0 0 0-.687-.34 3.68 3.68 0 0 0-1.103-.166 2.332 2.332 0 0 0-1.14.255 1.549 1.549 0 0 0-.686.87c-.15.41-.225.98-.225 1.712 0 .939.148 1.659.444 2.161.297.503.792.754 1.487.754.452.015.9-.094 1.294-.316.296-.174.557-.4.771-.669l.14.852h1.282V.007h-1.623v1.485ZM31 6.496a1.77 1.77 0 0 1-.494.061.964.964 0 0 1-.521-.127.758.758 0 0 1-.296-.466 3.984 3.984 0 0 1-.093-.992 4.208 4.208 0 0 1 .098-1.052.753.753 0 0 1 .307-.477 1.08 1.08 0 0 1 .55-.122c.233-.004.466.026.69.089l.483.144v2.553c-.11.076-.213.143-.307.2a1.73 1.73 0 0 1-.417.189ZM35.68 0l-.702.004c-.322.002-.482.168-.48.497l.004.581c.002.33.164.493.486.49l.702-.004c.322-.002.481-.167.48-.496L36.165.49c-.002-.33-.164-.493-.486-.491ZM36.145 2.313l-1.612.01.034 5.482 1.613-.01-.035-5.482ZM39.623.79 37.989.8 38 2.306l-.946.056.006 1.009.949-.006.024 2.983c.003.476.143.844.419 1.106.275.26.658.39 1.148.387.132 0 .293-.01.483-.03.19-.02.38-.046.57-.08.163-.028.324-.068.482-.119l-.183-1.095-.702.004a.664.664 0 0 1-.456-.123.553.553 0 0 1-.14-.422l-.016-2.621 1.513-.01-.006-1.064-1.514.01-.01-1.503ZM46.226 2.388c-.41-.184-.956-.274-1.636-.27-.673.004-1.215.101-1.627.29-.402.179-.72.505-.888.91-.18.419-.268.979-.264 1.68.004.688.1 1.24.285 1.655.172.404.495.724.9.894.414.18.957.268 1.63.264.68-.004 1.224-.099 1.632-.284.4-.176.714-.501.878-.905.176-.418.263-.971.258-1.658-.004-.702-.097-1.261-.28-1.677a1.696 1.696 0 0 0-.888-.9Zm-.613 3.607a.77.77 0 0 1-.337.501 1.649 1.649 0 0 1-1.317.009.776.776 0 0 1-.343-.497 4.066 4.066 0 0 1-.105-1.02 4.136 4.136 0 0 1 .092-1.03.786.786 0 0 1 .337-.507 1.59 1.59 0 0 1 1.316-.008.79.79 0 0 1 .344.502c.078.337.113.683.105 1.03.012.343-.019.685-.092 1.02ZM52.114 2.07a2.67 2.67 0 0 0-1.128.278c-.39.191-.752.437-1.072.73l-.157-.846-1.273.008.036 5.572 1.623-.01-.024-3.78c.35-.124.646-.22.887-.286.26-.075.53-.114.8-.118l.45-.003.144-1.546-.286.001ZM22.083 7.426l-1.576-2.532a2.137 2.137 0 0 0-.172-.253 1.95 1.95 0 0 0-.304-.29.138.138 0 0 1 .042-.04 1.7 1.7 0 0 0 .328-.374l1.75-2.71c.01-.015.025-.028.024-.048-.01-.01-.021-.007-.031-.007L20.49 1.17a.078.078 0 0 0-.075.045l-.868 1.384c-.23.366-.46.732-.688 1.099a.108.108 0 0 1-.112.06c-.098-.005-.196-.001-.294-.002-.018 0-.038.006-.055-.007.002-.02.002-.039.005-.058a4.6 4.6 0 0 0 .046-.701V1.203c0-.02-.009-.032-.03-.03h-.033L16.93 1.17c-.084 0-.073-.01-.073.076v6.491c-.001.018.006.028.025.027h1.494c.083 0 .072.007.072-.071v-2.19c0-.055-.003-.11-.004-.166a3.366 3.366 0 0 0-.05-.417h.06c.104 0 .209.002.313-.002a.082.082 0 0 1 .084.05c.535.913 1.07 1.824 1.607 2.736a.104.104 0 0 0 .103.062c.554-.003 1.107-.002 1.66-.002l.069-.003-.019-.032-.188-.304ZM27.112 6.555c-.005-.08-.004-.08-.082-.08h-2.414c-.053 0-.106-.003-.159-.011a.279.279 0 0 1-.246-.209.558.558 0 0 1-.022-.15c0-.382 0-.762-.002-1.143 0-.032.007-.049.042-.044h2.504c.029.003.037-.012.034-.038V3.814c0-.089.013-.078-.076-.078h-2.44c-.07 0-.062.003-.062-.06v-.837c0-.047.004-.093.013-.14a.283.283 0 0 1 .241-.246.717.717 0 0 1 .146-.011h2.484c.024.002.035-.009.036-.033l.003-.038.03-.496c.01-.183.024-.365.034-.548.005-.085.003-.087-.082-.094-.218-.018-.437-.038-.655-.05a17.845 17.845 0 0 0-.657-.026 72.994 72.994 0 0 0-1.756-.016 1.7 1.7 0 0 0-.471.064 1.286 1.286 0 0 0-.817.655c-.099.196-.149.413-.145.633v3.875c0 .072.003.144.011.216a1.27 1.27 0 0 0 .711 1.029c.228.113.48.167.734.158.757-.005 1.515.002 2.272-.042.274-.016.548-.034.82-.053.03-.002.043-.008.04-.041-.008-.104-.012-.208-.019-.312a69.964 69.964 0 0 1-.05-.768ZM16.14 7.415l-.127-1.075c-.004-.03-.014-.04-.044-.037a13.125 13.125 0 0 1-.998.073c-.336.01-.672.02-1.008.016-.116-.001-.233-.014-.347-.039a.746.746 0 0 1-.45-.262c-.075-.1-.132-.211-.167-.33a3.324 3.324 0 0 1-.126-.773 9.113 9.113 0 0 1-.015-.749c0-.285.022-.57.065-.852.023-.158.066-.312.127-.46a.728.728 0 0 1 .518-.443 1.64 1.64 0 0 1 .397-.048c.628-.001 1.255.003 1.882.05.022.001.033-.006.036-.026l.003-.031.06-.55c.019-.177.036-.355.057-.532.004-.034-.005-.046-.04-.056a5.595 5.595 0 0 0-1.213-.21 10.783 10.783 0 0 0-.708-.02c-.24-.003-.48.01-.719.041a3.477 3.477 0 0 0-.625.14 1.912 1.912 0 0 0-.807.497c-.185.2-.33.433-.424.688a4.311 4.311 0 0 0-.24 1.096c-.031.286-.045.572-.042.86-.006.43.024.86.091 1.286.04.25.104.497.193.734.098.279.26.53.473.734.214.205.473.358.756.446.344.11.702.17 1.063.177a8.505 8.505 0 0 0 1.578-.083 6.11 6.11 0 0 0 .766-.18c.03-.008.047-.023.037-.057a.157.157 0 0 1-.003-.025Z"/><path fill="#AFE229" d="M6.016 6.69a1.592 1.592 0 0 0-.614.21c-.23.132-.422.32-.56.546-.044.072-.287.539-.287.539l-.836 1.528.009.006c.038.025.08.046.123.063.127.046.26.07.395.073.505.023 1.011-.007 1.517-.003.29.009.58.002.869-.022a.886.886 0 0 0 .395-.116.962.962 0 0 0 .312-.286c.056-.083.114-.163.164-.249.24-.408.48-.816.718-1.226.075-.128.148-.257.222-.386l.112-.192a1.07 1.07 0 0 0 .153-.518l-1.304.023s-1.258-.005-1.388.01Z"/><path fill="#771BFF" d="m2.848 9.044.76-1.39.184-.352c-.124-.067-.245-.14-.367-.21-.346-.204-.706-.384-1.045-.6a.984.984 0 0 1-.244-.207c-.108-.134-.136-.294-.144-.46-.021-.409-.002-.818-.009-1.227-.003-.195 0-.39.003-.585.004-.322.153-.553.427-.713l.833-.488c.22-.13.44-.257.662-.385.05-.029.105-.052.158-.077.272-.128.519-.047.76.085l.044.028c.123.06.242.125.358.196.318.178.635.357.952.537.095.056.187.117.275.184.194.144.254.35.266.578.016.284.007.569.006.853-.001.28.004.558 0 .838.592-.003 1.259 0 1.259 0l.723-.013c-.003-.292-.007-.584-.007-.876 0-.524.015-1.048-.016-1.571-.024-.42-.135-.8-.492-1.067a5.02 5.02 0 0 0-.506-.339A400.52 400.52 0 0 0 5.94.787C5.722.664 5.513.524 5.282.423 5.255.406 5.228.388 5.2.373 4.758.126 4.305-.026 3.807.21c-.097.046-.197.087-.29.14A699.896 699.896 0 0 0 .783 1.948c-.501.294-.773.717-.778 1.31-.004.36-.009.718-.001 1.077.016.754-.017 1.508.024 2.261.016.304.07.6.269.848.127.15.279.28.448.382.622.4 1.283.734 1.92 1.11l.183.109Z"/></svg>\n',isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/powered-by-ckeditor/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:i.to((t=>t.preventDefault()))}}]})}}function Om(t,e,n){return(i,r)=>{const o=new mr(t);if(o.width<350||o.height<50)return null;let a;a="inside"===e.position?o.bottom-r.height:o.bottom-r.height/2,a-=e.verticalOffset;const s=n(o,r),c=i.clone().moveTo(s,a).getIntersection(r.clone().moveTo(s,a)).getVisible();return!c||c.getArea()<r.getArea()?null:{top:a,left:s,name:`position_${e.position}-side_${e.side}`,config:{withArrow:!1}}}}function Nm(t){const e=t.config.get("ui.poweredBy"),n=e&&e.position||"border";return{position:n,label:"Powered by",verticalOffset:"inside"===n?5:0,horizontalOffset:5,side:"ltr"===t.locale.contentLanguageDirection?"right":"left",...e}}var Rm=n(1801),Fm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Rm.A,Fm);Rm.A.locals;const jm={POLITE:"polite",ASSERTIVE:"assertive"};class $m{editor;view;constructor(t){this.editor=t,t.once("ready",(()=>{for(const t of Object.values(jm))this.announce("",t)}))}announce(t,e=jm.POLITE){const n=this.editor;if(!n.ui.view)return;this.view||(this.view=new zm(n.locale),n.ui.view.body.add(this.view));const{politeness:i,isUnsafeHTML:r}="string"==typeof e?{politeness:e}:e;let o=this.view.regionViews.find((t=>t.politeness===i));o||(o=new Vm(n,i),this.view.regionViews.add(o)),o.announce({announcement:t,isUnsafeHTML:r})}}class zm extends af{regionViews;constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class Vm extends af{politeness;_domConverter;_pruneAnnouncementsInterval;constructor(t,e){super(t.locale),this.setTemplate({tag:"div",attributes:{"aria-live":e,"aria-relevant":"additions"},children:[{tag:"ul",attributes:{class:["ck","ck-aria-live-region-list"]}}]}),t.on("destroy",(()=>{null!==this._pruneAnnouncementsInterval&&(clearInterval(this._pruneAnnouncementsInterval),this._pruneAnnouncementsInterval=null)})),this.politeness=e,this._domConverter=t.data.htmlProcessor.domConverter,this._pruneAnnouncementsInterval=setInterval((()=>{this.element&&this._listElement.firstChild&&this._listElement.firstChild.remove()}),5e3)}announce({announcement:t,isUnsafeHTML:e}){if(!t.trim().length)return;const n=document.createElement("li");e?this._domConverter.setContentOf(n,t):n.innerText=t,this._listElement.appendChild(n)}get _listElement(){return this.element.querySelector("ul")}}var Hm=n(9481),qm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Hm.A,qm);Hm.A.locals;class Um extends Ug{constructor(t,e){super(t);const n=this.bindTemplate;this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item"]},on:{mouseenter:n.to("mouseenter")}}),this.delegate("mouseenter").to(e)}}const Gm={toggleMenusAndFocusItemsOnHover(t){t.on("menu:mouseenter",(e=>{if(t.isFocusBorderEnabled||t.isOpen){if(t.isOpen)for(const n of t.menus){const t=e.path[0],i=t instanceof Um&&t.children.first===n;n.isOpen=(e.path.includes(n)||i)&&n.isEnabled}e.source.focus()}}))},focusCycleMenusOnArrows(t){const e="rtl"===t.locale.uiLanguageDirection;function n(e,n){const i=t.children.getIndex(e),r=e.isOpen,o=t.children.length,a=t.children.get((i+o+n)%o);e.isOpen=!1,r&&(a.isOpen=!0),a.buttonView.focus()}t.on("menu:arrowright",(t=>{n(t.source,e?-1:1)})),t.on("menu:arrowleft",(t=>{n(t.source,e?1:-1)}))},closeMenusWhenTheBarCloses(t){t.on("change:isOpen",(()=>{t.isOpen||t.menus.forEach((t=>{t.isOpen=!1}))}))},closeMenuWhenAnotherOnTheSameLevelOpens(t){t.on("menu:change:isOpen",((e,n,i)=>{i&&t.menus.filter((t=>e.source.parentMenuView===t.parentMenuView&&e.source!==t&&t.isOpen)).forEach((t=>{t.isOpen=!1}))}))},closeOnClickOutside(t){sf({emitter:t,activator:()=>t.isOpen,callback:()=>t.close(),contextElements:()=>t.children.map((t=>t.element))})},enableFocusHighlightOnInteraction(t){let e=!1;t.on("change:isOpen",((n,i,r)=>{r||(e||(t.isFocusBorderEnabled=!1),e=!1)})),t.listenTo(t.element,"keydown",(()=>{e=!0}),{useCapture:!0}),t.listenTo(t.element,"keyup",(()=>{e=!1}),{useCapture:!0}),t.listenTo(t.element,"focus",(()=>{e&&(t.isFocusBorderEnabled=!0)}),{useCapture:!0})}},Wm={openAndFocusPanelOnArrowDownKey(t){t.keystrokes.set("arrowdown",((e,n)=>{t.focusTracker.focusedElement===t.buttonView.element&&(t.isOpen||(t.isOpen=!0),t.panelView.focus(),n())}))},openOnArrowRightKey(t){const e="rtl"===t.locale.uiLanguageDirection?"arrowleft":"arrowright";t.keystrokes.set(e,((e,n)=>{t.focusTracker.focusedElement===t.buttonView.element&&t.isEnabled&&(t.isOpen||(t.isOpen=!0),t.panelView.focus(),n())}))},openOnButtonClick(t){t.buttonView.on("execute",(()=>{t.isOpen=!0}))},toggleOnButtonClick(t){t.buttonView.on("execute",(()=>{t.isOpen=!t.isOpen}))},openAndFocusOnEnterKeyPress(t){t.keystrokes.set("enter",((e,n)=>{t.focusTracker.focusedElement===t.buttonView.element&&(t.isOpen=!0,t.panelView.focus(),n())}))},closeOnArrowLeftKey(t){const e="rtl"===t.locale.uiLanguageDirection?"arrowright":"arrowleft";t.keystrokes.set(e,((e,n)=>{t.isOpen&&(t.isOpen=!1,t.focus(),n())}))},closeOnEscKey(t){t.keystrokes.set("esc",((e,n)=>{t.isOpen&&(t.isOpen=!1,t.focus(),n())}))},closeOnParentClose(t){t.parentMenuView.on("change:isOpen",((e,n,i)=>{i||e.source!==t.parentMenuView||(t.isOpen=!1)}))}},Km={southEast:t=>({top:t.bottom,left:t.left,name:"se"}),southWest:(t,e)=>({top:t.bottom,left:t.left-e.width+t.width,name:"sw"}),northEast:(t,e)=>({top:t.top-e.height,left:t.left,name:"ne"}),northWest:(t,e)=>({top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}),eastSouth:t=>({top:t.top,left:t.right-5,name:"es"}),eastNorth:(t,e)=>({top:t.top-e.height,left:t.right-5,name:"en"}),westSouth:(t,e)=>({top:t.top,left:t.left-e.width+5,name:"ws"}),westNorth:(t,e)=>({top:t.top-e.height,left:t.left-e.width+5,name:"wn"})},Ym=[{menuId:"file",label:"File",groups:[{groupId:"export",items:["menuBar:exportPdf","menuBar:exportWord"]},{groupId:"import",items:["menuBar:importWord"]},{groupId:"revisionHistory",items:["menuBar:revisionHistory"]}]},{menuId:"edit",label:"Edit",groups:[{groupId:"undo",items:["menuBar:undo","menuBar:redo"]},{groupId:"selectAll",items:["menuBar:selectAll"]},{groupId:"findAndReplace",items:["menuBar:findAndReplace"]}]},{menuId:"view",label:"View",groups:[{groupId:"sourceEditing",items:["menuBar:sourceEditing"]},{groupId:"showBlocks",items:["menuBar:showBlocks"]},{groupId:"previewMergeFields",items:["menuBar:previewMergeFields"]},{groupId:"restrictedEditing",items:["menuBar:restrictedEditing"]}]},{menuId:"insert",label:"Insert",groups:[{groupId:"insertMainWidgets",items:["menuBar:insertImage","menuBar:ckbox","menuBar:ckfinder","menuBar:insertTable"]},{groupId:"insertInline",items:["menuBar:link","menuBar:comment","menuBar:insertMergeField"]},{groupId:"insertMinorWidgets",items:["menuBar:mediaEmbed","menuBar:insertTemplate","menuBar:specialCharacters","menuBar:blockQuote","menuBar:codeBlock","menuBar:htmlEmbed"]},{groupId:"insertStructureWidgets",items:["menuBar:horizontalLine","menuBar:pageBreak","menuBar:tableOfContents"]},{groupId:"restrictedEditingException",items:["menuBar:restrictedEditingException"]}]},{menuId:"format",label:"Format",groups:[{groupId:"textAndFont",items:[{menuId:"text",label:"Text",groups:[{groupId:"basicStyles",items:["menuBar:bold","menuBar:italic","menuBar:underline","menuBar:strikethrough","menuBar:superscript","menuBar:subscript","menuBar:code"]},{groupId:"textPartLanguage",items:["menuBar:textPartLanguage"]}]},{menuId:"font",label:"Font",groups:[{groupId:"fontProperties",items:["menuBar:fontSize","menuBar:fontFamily"]},{groupId:"fontColors",items:["menuBar:fontColor","menuBar:fontBackgroundColor"]},{groupId:"highlight",items:["menuBar:highlight"]}]},"menuBar:heading"]},{groupId:"list",items:["menuBar:bulletedList","menuBar:numberedList","menuBar:multiLevelList","menuBar:todoList"]},{groupId:"indent",items:["menuBar:alignment","menuBar:indent","menuBar:outdent"]},{groupId:"caseChange",items:["menuBar:caseChange"]},{groupId:"removeFormat",items:["menuBar:removeFormat"]}]},{menuId:"tools",label:"Tools",groups:[{groupId:"aiTools",items:["menuBar:aiAssistant","menuBar:aiCommands"]},{groupId:"tools",items:["menuBar:trackChanges","menuBar:commentsArchive"]}]},{menuId:"help",label:"Help",groups:[{groupId:"help",items:["menuBar:accessibilityHelp"]}]}];function Xm({normalizedConfig:t,locale:e,componentFactory:n,extraItems:i}){const r=Pc(t);return Zm(t,r,i),function(t,e){const n=e.removeItems,i=[];e.items=e.items.filter((({menuId:t})=>!n.includes(t)||(i.push(t),!1))),eb(e.items,(t=>{t.groups=t.groups.filter((({groupId:t})=>!n.includes(t)||(i.push(t),!1)));for(const e of t.groups)e.items=e.items.filter((t=>{const e=ob(t);return!n.includes(e)||(i.push(e),!1)}))}));for(const e of n)i.includes(e)||ki("menu-bar-item-could-not-be-removed",{menuBarConfig:t,itemName:e})}(t,r),Zm(t,r,r.addItems),function(t,e,n){eb(e.items,(i=>{for(const r of i.groups)r.items=r.items.filter((r=>{const o="string"==typeof r&&!n.has(r);return o&&!e.isUsingDefaultConfig&&ki("menu-bar-item-unavailable",{menuBarConfig:t,parentMenuConfig:Pc(i),componentName:r}),!o}))}))}(t,r,n),Jm(t,r),function(t,e){const n=e.t,i={File:n({string:"File",id:"MENU_BAR_MENU_FILE"}),Edit:n({string:"Edit",id:"MENU_BAR_MENU_EDIT"}),View:n({string:"View",id:"MENU_BAR_MENU_VIEW"}),Insert:n({string:"Insert",id:"MENU_BAR_MENU_INSERT"}),Format:n({string:"Format",id:"MENU_BAR_MENU_FORMAT"}),Tools:n({string:"Tools",id:"MENU_BAR_MENU_TOOLS"}),Help:n({string:"Help",id:"MENU_BAR_MENU_HELP"}),Text:n({string:"Text",id:"MENU_BAR_MENU_TEXT"}),Font:n({string:"Font",id:"MENU_BAR_MENU_FONT"})};eb(t.items,(t=>{t.label in i&&(t.label=i[t.label])}))}(r,e),r}function Zm(t,e,n){const i=[];if(0!=n.length){for(const t of n){const n=ib(t.position),o=rb(t.position);if("object"==typeof(r=t)&&"menu"in r)if(o){const r=e.items.findIndex((t=>t.menuId===o));if(-1!=r)"before"===n?(e.items.splice(r,0,t.menu),i.push(t)):"after"===n&&(e.items.splice(r+1,0,t.menu),i.push(t));else{Qm(e,t.menu,o,n)&&i.push(t)}}else"start"===n?(e.items.unshift(t.menu),i.push(t)):"end"===n&&(e.items.push(t.menu),i.push(t));else if(nb(t))eb(e.items,(e=>{if(e.menuId===o)"start"===n?(e.groups.unshift(t.group),i.push(t)):"end"===n&&(e.groups.push(t.group),i.push(t));else{const r=e.groups.findIndex((t=>t.groupId===o));-1!==r&&("before"===n?(e.groups.splice(r,0,t.group),i.push(t)):"after"===n&&(e.groups.splice(r+1,0,t.group),i.push(t)))}}));else{Qm(e,t.item,o,n)&&i.push(t)}}var r;for(const e of n)i.includes(e)||ki("menu-bar-item-could-not-be-added",{menuBarConfig:t,addedItemConfig:e})}}function Qm(t,e,n,i){let r=!1;return eb(t.items,(t=>{for(const{groupId:o,items:a}of t.groups){if(r)return;if(o===n)"start"===i?(a.unshift(e),r=!0):"end"===i&&(a.push(e),r=!0);else{const t=a.findIndex((t=>ob(t)===n));-1!==t&&("before"===i?(a.splice(t,0,e),r=!0):"after"===i&&(a.splice(t+1,0,e),r=!0))}}})),r}function Jm(t,e){const n=e.isUsingDefaultConfig;let i=!1;e.items=e.items.filter((e=>!!e.groups.length||(tb(t,e,n),!1))),e.items.length?(eb(e.items,(e=>{e.groups=e.groups.filter((t=>!!t.items.length||(i=!0,!1)));for(const r of e.groups)r.items=r.items.filter((e=>!(ab(e)&&!e.groups.length)||(tb(t,e,n),i=!0,!1)))})),i&&Jm(t,e)):tb(t,t,n)}function tb(t,e,n){n||ki("menu-bar-menu-empty",{menuBarConfig:t,emptyMenuConfig:e})}function eb(t,e){if(Array.isArray(t))for(const e of t)n(e);function n(t){e(t);for(const e of t.groups)for(const t of e.items)ab(t)&&n(t)}}function nb(t){return"object"==typeof t&&"group"in t}function ib(t){return t.startsWith("start")?"start":t.startsWith("end")?"end":t.startsWith("after")?"after":"before"}function rb(t){const e=t.match(/^[^:]+:(.+)/);return e?e[1]:null}function ob(t){return"string"==typeof t?t:t.menuId}function ab(t){return"object"==typeof t&&"menuId"in t}class sb extends(Vi()){editor;componentFactory;focusTracker;tooltipManager;poweredBy;ariaLiveAnnouncer;isReady=!1;_editableElementsMap=new Map;_focusableToolbarDefinitions=[];_extraMenuBarElements=[];_lastFocusedForeignElement=null;constructor(t){super();const e=t.editing.view;this.editor=t,this.componentFactory=new xm(t),this.focusTracker=new Eo,this.tooltipManager=new Im(t),this.poweredBy=new Pm(t),this.ariaLiveAnnouncer=new $m(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",(()=>{this._bindBodyCollectionWithFocusTracker(),this.isReady=!0})),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null,this.editor.keystrokes.stopListening(t);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);const n=()=>{this.editor.editing.view.getDomRoot(t)||this.editor.keystrokes.listenTo(e)};this.isReady?n():this.once("ready",n)}removeEditableElement(t){const e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(t,e={}){t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",(()=>{this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)})),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}extendMenuBar(t){this._extraMenuBarElements.push(t)}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_initMenuBar(t){const e=t.element;this.focusTracker.add(e),this.editor.keystrokes.listenTo(e);const n=function(t){let e;return e="items"in t&&t.items?{items:t.items,removeItems:[],addItems:[],isVisible:!0,isUsingDefaultConfig:!1,...t}:{items:Pc(Ym),addItems:[],removeItems:[],isVisible:!0,isUsingDefaultConfig:!0,...t},e}(this.editor.config.get("menuBar")||{});t.fillFromConfig(n,this.componentFactory,this._extraMenuBarElements),this.editor.keystrokes.set("Esc",((t,n)=>{e.contains(this.editor.ui.focusTracker.focusedElement)&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):this.editor.editing.view.focus(),n())})),this.editor.keystrokes.set("Alt+F9",((n,i)=>{e.contains(this.editor.ui.focusTracker.focusedElement)||(this._saveLastFocusedForeignElement(),t.isFocusBorderEnabled=!0,t.focus(),i())}))}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const t=this.editor;let e;t.keystrokes.set("Alt+F10",((t,n)=>{this._saveLastFocusedForeignElement();const i=this._getCurrentFocusedToolbarDefinition();i&&e||(e=this._getFocusableCandidateToolbarDefinitions());for(let t=0;t<e.length;t++){const t=e.shift();if(e.push(t),t!==i&&this._focusFocusableCandidateToolbar(t)){i&&i.options.afterBlur&&i.options.afterBlur();break}}n()})),t.keystrokes.set("Esc",((e,n)=>{const i=this._getCurrentFocusedToolbarDefinition();i&&(this._lastFocusedForeignElement?(this._lastFocusedForeignElement.focus(),this._lastFocusedForeignElement=null):t.editing.view.focus(),i.options.afterBlur&&i.options.afterBlur(),n())}))}_saveLastFocusedForeignElement(){const t=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(t)&&!Array.from(this.editor.editing.view.domRoots.values()).includes(t)&&(this._lastFocusedForeignElement=t)}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:i}=e;(Sr(n.element)||i.beforeFocus)&&t.push(e)}return t.sort(((t,e)=>cb(t)-cb(e))),t}_getCurrentFocusedToolbarDefinition(){for(const t of this._focusableToolbarDefinitions)if(t.toolbarView.element&&t.toolbarView.element.contains(this.focusTracker.focusedElement))return t;return null}_focusFocusableCandidateToolbar(t){const{toolbarView:e,options:{beforeFocus:n}}=t;return n&&n(),!!Sr(e.element)&&(e.focus(),!0)}_handleScrollToTheSelection(t,e){const n={top:0,bottom:0,left:0,right:0,...this.viewportOffset};e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}_bindBodyCollectionWithFocusTracker(){const t=this.view.body;for(const e of t)this.focusTracker.add(e.element);t.on("add",((t,e)=>{this.focusTracker.add(e.element)})),t.on("remove",((t,e)=>{this.focusTracker.remove(e.element)}))}}function cb(t){const{toolbarView:e,options:n}=t;let i=10;return Sr(e.element)&&i--,n.isContextual&&i--,i}var lb=n(1185),ub={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(lb.A,ub);lb.A.locals;class hb extends af{body;menuBarView;constructor(t){super(t),this.body=new tg(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class db extends af{name=null;_editingView;_editableElement;_hasExternalElement;constructor(t,e,n){super(t),this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(()=>this._updateIsFocusedClasses())),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;function e(e){t.change((n=>{const i=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",i)}))}t.isRenderingInProgress?function n(i){t.once("change:isRenderingInProgress",((t,r,o)=>{o?n(i):e(i)}))}(this):e(this)}}class fb extends db{_options;constructor(t,e,n,i={}){super(t,e,n),this._options=i,this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}})}render(){super.render();const t=this._editingView;t.change((e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this.getEditableAriaLabel(),n)}))}getEditableAriaLabel(){const t=this.locale.t,e=this._options.label,n=this._editableElement,i=this.name;if("string"==typeof e)return e;if("object"==typeof e)return e[i];if("function"==typeof e)return e(this);if(n){const t=n.getAttribute("aria-label");if(t)return t}return t("Rich Text Editor. Editing area: %0",i)}}class gb extends Vo{static get pluginName(){return"Notification"}init(){this.on("show:warning",((t,e)=>{window.alert(e.message)}),{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){const e=t.namespace?`show:${t.type}:${t.namespace}`:`show:${t.type}`;this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}class pb extends(Vi()){constructor(t,e){super(),e&&Zs(this,e),t&&this.set(t)}}var mb=n(991),bb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(mb.A,bb);mb.A.locals;var wb=n(5380),kb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(wb.A,kb);wb.A.locals;const vb=Cr("px");class yb extends Oo{positionLimiter;visibleStack;_viewToStack=new Map;_idToStack=new Map;_view=null;_rotatorView=null;_fakePanelsView=null;static get pluginName(){return"ContextualBalloon"}constructor(t){super(t),this.positionLimiter=()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},this.decorate("getPositionOptions"),this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new wi("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new wi("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition()}getPositionOptions(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new wi("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new ip(this.editor.locale),this.editor.ui.view.body.add(this._view),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find((e=>e[1]===t))[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new _b(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>1)),t.on("change:isNavigationVisible",(()=>this.updatePosition()),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",((t,n)=>{if(n<2)return"";const i=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[i,n])})),t.buttonNextView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()})),t.buttonPrevView.on("execute",(()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()})),t}_createFakePanelsView(){const t=new Cb(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",((t,e)=>!e&&t>=2?Math.min(t-1,2):0)),t.listenTo(this.view,"change:top",(()=>t.updatePosition())),t.listenTo(this.view,"change:left",(()=>t.updatePosition())),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:i=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this.getPositionOptions()),this._fakePanelsView.updatePosition(),i&&(this._singleViewMode=!0)}}class _b extends af{focusTracker;buttonPrevView;buttonNextView;content;constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Eo,this.buttonPrevView=this._createButtonView(e("Previous"),Ld.previousArrow),this.buttonNextView=this._createButtonView(e("Next"),Ld.nextArrow),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",(t=>t?"":"ck-hidden"))]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new bf(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class Cb extends af{content;_balloonPanelView;constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",(t=>t?"":"ck-hidden"))],style:{top:n.to("top",vb),left:n.to("left",vb),width:n.to("width",vb),height:n.to("height",vb)}},children:this.content}),this.on("change:numberOfPanels",((t,e,n,i)=>{n>i?this._addPanels(n-i):this._removePanels(i-n),this.updatePosition()}))}_addPanels(t){for(;t--;){const t=new af;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}_removePanels(t){for(;t--;){const t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:i}=new mr(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:i})}}}var Ab=n(8298),xb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Ab.A,xb);Ab.A.locals;var Eb=/[\\^$.*+?()[\]{}|]/g,Tb=RegExp(Eb.source);const Sb=function(t){return(t=ya(t))&&Tb.test(t)?t.replace(Eb,"\\$&"):t};var Db=n(8107),Ib={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Db.A,Ib);Db.A.locals;var Bb=n(5727),Mb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Bb.A,Mb);Bb.A.locals;const Pb=function(t){return function(e){return null==t?void 0:t[e]}};Pb({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});var Lb=/[&<>"']/g;RegExp(Lb.source);var Ob=n(9529),Nb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Ob.A,Nb);Ob.A.locals;var Rb=n(109),Fb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Rb.A,Fb);Rb.A.locals;const jb=Cr("px");class $b extends Oo{toolbarView;focusTracker;_balloonConfig;_resizeObserver=null;_balloon;_fireSelectionChangeDebounced;static get pluginName(){return"BalloonToolbar"}static get requires(){return[yb]}constructor(t){super(t),this._balloonConfig=hp(t.config.get("balloonToolbar")),this.toolbarView=this._createToolbarView(),this.focusTracker=new Eo,this._trackFocusableEditableElements(),this.focusTracker.add(this.toolbarView.element),t.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this.show(!0),afterBlur:()=>this.hide(),isContextual:!0}),this._balloon=t.plugins.get(yb),this._fireSelectionChangeDebounced=L((()=>this.fire("_selectionChangeDebounced")),200),this.decorate("show")}init(){const t=this.editor,e=t.model.document.selection;this.listenTo(this.focusTracker,"change:isFocused",((t,e,n)=>{const i=this._balloon.visibleView===this.toolbarView;!n&&i?this.hide():n&&this.show()})),this.listenTo(e,"change:range",((t,n)=>{(n.directChange||e.isCollapsed)&&this.hide(),this._fireSelectionChangeDebounced()})),this.listenTo(this,"_selectionChangeDebounced",(()=>{this.editor.editing.view.document.isFocused&&this.show()})),this._balloonConfig.shouldNotGroupWhenFull||this.listenTo(t,"ready",(()=>{const e=t.ui.view.editable.element;this._resizeObserver=new yr(e,(t=>{this.toolbarView.maxWidth=jb(.9*t.contentRect.width)}))})),this.listenTo(this.toolbarView,"groupedItemsUpdate",(()=>{this._updatePosition()})),t.ui.once("ready",(()=>{this.toolbarView.fillFromConfig(this._balloonConfig,this.editor.ui.componentFactory)}))}_createToolbarView(){const t=this.editor.locale.t,e=!this._balloonConfig.shouldNotGroupWhenFull,n=new pp(this.editor.locale,{shouldGroupWhenFull:e,isFloating:!0});return n.ariaLabel=t("Editor contextual toolbar"),n.render(),n}show(t=!1){const e=this.editor,n=e.model.document.selection,i=e.model.schema;this._balloon.hasView(this.toolbarView)||n.isCollapsed&&!t||function(t,e){if(1===t.rangeCount)return!1;return[...t.getRanges()].every((t=>{const n=t.getContainedElement();return n&&e.isSelectable(n)}))}(n,i)||Array.from(this.toolbarView.items).every((t=>void 0!==t.isEnabled&&!t.isEnabled))||(this.listenTo(this.editor.ui,"update",(()=>{this._updatePosition()})),this._balloon.add({view:this.toolbarView,position:this._getBalloonPositionData(),balloonClassName:"ck-toolbar-container"}))}hide(){this._balloon.hasView(this.toolbarView)&&(this.stopListening(this.editor.ui,"update"),this._balloon.remove(this.toolbarView))}_trackFocusableEditableElements(){const{editor:t,focusTracker:e}=this,{editing:n}=t;n.view.addObserver(class extends Xs{observe(t){e.add(t)}stopObserving(t){e.remove(t)}})}_getBalloonPositionData(){const t=this.editor.editing.view,e=t.document,n=e.selection,i=e.selection.isBackward;return{target:()=>{const e=i?n.getFirstRange():n.getLastRange(),r=mr.getDomRangeRects(t.domConverter.viewRangeToDom(e));return i?r[0]:(r.length>1&&0===r[r.length-1].width&&r.pop(),r[r.length-1])},positions:this._getBalloonPositions(i)}}_updatePosition(){this._balloon.updatePosition(this._getBalloonPositionData())}destroy(){super.destroy(),this.stopListening(),this._fireSelectionChangeDebounced.cancel(),this.toolbarView.destroy(),this.focusTracker.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_getBalloonPositions(t){const e=Jn.isSafari&&Jn.isiOS?ip.generatePositions({heightOffset:Math.max(ip.arrowHeightOffset,Math.round(20/Xn.window.visualViewport.scale))}):ip.defaultPositions;return t?[e.northWestArrowSouth,e.northWestArrowSouthWest,e.northWestArrowSouthEast,e.northWestArrowSouthMiddleEast,e.northWestArrowSouthMiddleWest,e.southWestArrowNorth,e.southWestArrowNorthWest,e.southWestArrowNorthEast,e.southWestArrowNorthMiddleWest,e.southWestArrowNorthMiddleEast]:[e.southEastArrowNorth,e.southEastArrowNorthEast,e.southEastArrowNorthWest,e.southEastArrowNorthMiddleEast,e.southEastArrowNorthMiddleWest,e.northEastArrowSouth,e.northEastArrowSouthEast,e.northEastArrowSouthWest,e.northEastArrowSouthMiddleEast,e.northEastArrowSouthMiddleWest]}}var zb=n(2710),Vb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(zb.A,Vb);zb.A.locals;const Hb=Cr("px");class qb extends bf{constructor(t){super(t);const e=this.bindTemplate;this.isVisible=!1,this.isToggleable=!0,this.set("top",0),this.set("left",0),this.extendTemplate({attributes:{class:"ck-block-toolbar-button",style:{top:e.to("top",(t=>Hb(t))),left:e.to("left",(t=>Hb(t)))}}})}}const Ub=Cr("px");class Gb extends Oo{toolbarView;panelView;buttonView;_resizeObserver=null;_blockToolbarConfig;static get pluginName(){return"BlockToolbar"}constructor(t){super(t),this._blockToolbarConfig=hp(this.editor.config.get("blockToolbar")),this.toolbarView=this._createToolbarView(),this.panelView=this._createPanelView(),this.buttonView=this._createButtonView(),sf({emitter:this.panelView,contextElements:[this.panelView.element,this.buttonView.element],activator:()=>this.panelView.isVisible,callback:()=>this._hidePanel()})}init(){const t=this.editor,e=t.t,n=e("Click to edit block"),i=e("Drag to move"),r=e("Edit block"),o=t.plugins.has("DragDropBlockToolbar"),a=o?`${n}\n${i}`:r;this.buttonView.label=a,o&&(this.buttonView.element.dataset.ckeTooltipClass="ck-tooltip_multi-line"),this.listenTo(t.model.document.selection,"change:range",((t,e)=>{e.directChange&&this._hidePanel()})),this.listenTo(t.ui,"update",(()=>this._updateButton())),this.listenTo(t,"change:isReadOnly",(()=>this._updateButton()),{priority:"low"}),this.listenTo(t.ui.focusTracker,"change:isFocused",(()=>this._updateButton())),this.listenTo(this.buttonView,"change:isVisible",((t,e,n)=>{n?this.buttonView.listenTo(window,"resize",(()=>this._updateButton())):(this.buttonView.stopListening(window,"resize"),this._hidePanel())})),this._repositionButtonOnScroll(),t.ui.addToolbar(this.toolbarView,{beforeFocus:()=>this._showPanel(),afterBlur:()=>this._hidePanel()}),t.ui.once("ready",(()=>{this.toolbarView.fillFromConfig(this._blockToolbarConfig,this.editor.ui.componentFactory);for(const t of this.toolbarView.items)t.on("execute",(()=>this._hidePanel(!0)),{priority:"high"})}))}destroy(){super.destroy(),this.panelView.destroy(),this.buttonView.destroy(),this.toolbarView.destroy(),this._resizeObserver&&this._resizeObserver.destroy()}_createToolbarView(){const t=this.editor.locale.t,e=!this._blockToolbarConfig.shouldNotGroupWhenFull,n=new pp(this.editor.locale,{shouldGroupWhenFull:e,isFloating:!0});return n.ariaLabel=t("Editor block content toolbar"),n}_createPanelView(){const t=this.editor,e=new ip(t.locale);return e.content.add(this.toolbarView),e.class="ck-toolbar-container",t.ui.view.body.add(e),this.toolbarView.keystrokes.set("Esc",((t,e)=>{this._hidePanel(!0),e()})),e}_createButtonView(){const t=this.editor,e=t.t,n=new qb(t.locale),i=this._blockToolbarConfig.icon,r=gp[i]||i||gp.dragIndicator;return n.set({label:e("Edit block"),icon:r,withText:!1}),n.bind("isOn").to(this.panelView,"isVisible"),n.bind("tooltip").to(this.panelView,"isVisible",(t=>!t)),this.listenTo(n,"execute",(()=>{this.panelView.isVisible?this._hidePanel(!0):this._showPanel()})),this.listenTo(n,"change:isEnabled",((t,e,n)=>{!n&&this.panelView.isVisible&&this._hidePanel(!1)})),t.ui.view.body.add(n),n}_updateButton(){const t=this.editor,e=t.model,n=t.editing.view;if(!t.ui.focusTracker.isFocused)return void this._hideButton();if(!t.model.canEditAt(t.model.document.selection))return void this._hideButton();const i=Array.from(e.document.selection.getSelectedBlocks())[0];if(!i||Array.from(this.toolbarView.items).every((t=>!t.isEnabled)))return void this._hideButton();const r=n.domConverter.mapViewToDom(t.editing.mapper.toViewElement(i));this.buttonView.isVisible=!0,this._setupToolbarResize(),this._attachButtonToElement(r),this.panelView.isVisible&&this._showPanel()}_hideButton(){this.buttonView.isVisible=!1}_showPanel(){if(!this.buttonView.isVisible)return;const t=this.panelView.isVisible;this.panelView.show();const e=this._getSelectedEditableElement();this.toolbarView.maxWidth=this._getToolbarMaxWidth(e),this.panelView.pin({target:this.buttonView.element,limiter:e}),t||this.toolbarView.items.get(0).focus()}_getSelectedEditableElement(){const t=this.editor.model.document.selection.getFirstRange().root.rootName;return this.editor.ui.getEditableElement(t)}_hidePanel(t){this.panelView.isVisible=!1,t&&this.editor.editing.view.focus()}_repositionButtonOnScroll(){const{buttonView:t}=this;let e=!1;const n=(t,n)=>{if(e)return;const i=this._getSelectedEditableElement();(n.target===Xn.document||cr(i).includes(n.target))&&(e=!0,Xn.window.requestAnimationFrame((()=>{this._updateButton(),e=!1})))};t.on("change:isVisible",((e,i,r)=>{r?t.listenTo(Xn.document,"scroll",n,{useCapture:!0,usePassive:!0}):t.stopListening(Xn.document,"scroll",n)}))}_attachButtonToElement(t){const e=this.buttonView.element,n=this._getSelectedEditableElement(),i=window.getComputedStyle(t),r=new mr(n),o=parseInt(i.paddingTop,10),a=parseInt(i.lineHeight,10)||1.2*parseInt(i.fontSize,10),s=new mr(e),c=new mr(t);let l;l="ltr"===this.editor.locale.uiLanguageDirection?r.left-s.width:r.right;const u=c.top+o+(a-s.height)/2;s.moveTo(l,u);const h=s.toAbsoluteRect();this.buttonView.top=h.top,this.buttonView.left=h.left,this._clipButtonToViewport(this.buttonView,n)}_clipButtonToViewport(t,e){const n=new mr(t.element),i=new mr(e).getVisible(),r=(...e)=>{t.element.style.clipPath=e.length?`polygon(${e.join(",")})`:""},o=e=>{t.isEnabled=!e,t.element.style.pointerEvents=e?"none":""};if(i&&i.bottom<n.bottom){const t=Math.min(n.height,n.bottom-i.bottom);o(t>=n.height),r("0 0","100% 0",`100% calc(100% - ${Ub(t)})`,`0 calc(100% - ${Ub(t)}`)}else if(i&&i.top>n.top){const t=Math.min(n.height,i.top-n.top);o(t>=n.height),r(`0 ${Ub(t)}`,`100% ${Ub(t)}`,"100% 100%","0 100%")}else o(!1),r()}_setupToolbarResize(){const t=this._getSelectedEditableElement();this._blockToolbarConfig.shouldNotGroupWhenFull||(this._resizeObserver&&this._resizeObserver.element!==t&&(this._resizeObserver.destroy(),this._resizeObserver=null),this._resizeObserver||(this._resizeObserver=new yr(t,(()=>{this.toolbarView.maxWidth=this._getToolbarMaxWidth(t)}))))}_getToolbarMaxWidth(t){const e=new mr(t),n=new mr(this.buttonView.element),i="rtl"===this.editor.locale.uiLanguageDirection?n.left-e.right+n.width:e.left-n.left;return Ub(e.width+i)}}var Wb=n(3344),Kb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Wb.A,Kb);Wb.A.locals;class Yb extends qf{arrowView;constructor(t){super(t);const e=this.bindTemplate;this.set({withText:!0,role:"menuitem"}),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__button"],"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",(t=>String(t))),"data-cke-tooltip-disabled":e.to("isOn")},on:{mouseenter:e.to("mouseenter")}})}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new ff;return t.content=cg,t.extendTemplate({attributes:{class:"ck-menu-bar__menu__button__arrow"}}),t}}var Xb=n(9108),Zb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Xb.A,Zb);Xb.A.locals;class Qb extends af{children;constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-menu-bar__menu__panel",e.to("position",(t=>`ck-menu-bar__menu__panel_position_${t}`)),e.if("isVisible","ck-hidden",(t=>!t))],tabindex:"-1"},children:this.children,on:{selectstart:e.to((t=>{"input"!==t.target.tagName.toLocaleLowerCase()&&t.preventDefault()}))}})}focus(t=1){this.children.length&&(1===t?this.children.first.focus():this.children.last.focus())}}var Jb=n(4),tw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Jb.A,tw);Jb.A.locals;class ew extends af{buttonView;panelView;focusTracker;keystrokes;constructor(t){super(t);const e=this.bindTemplate;this.buttonView=new Yb(t),this.buttonView.delegate("mouseenter").to(this),this.buttonView.bind("isOn","isEnabled").to(this,"isOpen","isEnabled"),this.panelView=new Qb(t),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new To,this.focusTracker=new Eo,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("panelPosition","w"),this.set("class",void 0),this.set("parentMenuView",null),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar__menu",e.to("class"),e.if("isEnabled","ck-disabled",(t=>!t)),e.if("parentMenuView","ck-menu-bar__menu_top-level",(t=>!t))]},children:[this.buttonView,this.panelView]})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.keystrokes.listenTo(this.element),Wm.closeOnEscKey(this),this._repositionPanelOnOpen()}_attachBehaviors(){this.parentMenuView?(Wm.openOnButtonClick(this),Wm.openOnArrowRightKey(this),Wm.closeOnArrowLeftKey(this),Wm.openAndFocusOnEnterKeyPress(this),Wm.closeOnParentClose(this)):(this._propagateArrowKeystrokeEvents(),Wm.openAndFocusPanelOnArrowDownKey(this),Wm.toggleOnButtonClick(this))}_propagateArrowKeystrokeEvents(){this.keystrokes.set("arrowright",((t,e)=>{this.fire("arrowright"),e()})),this.keystrokes.set("arrowleft",((t,e)=>{this.fire("arrowleft"),e()}))}_repositionPanelOnOpen(){this.on("change:isOpen",((t,e,n)=>{if(!n)return;const i=ew._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=i?i.name:this._panelPositions[0].name}))}focus(){this.buttonView.focus()}get _panelPositions(){const{southEast:t,southWest:e,northEast:n,northWest:i,westSouth:r,eastSouth:o,westNorth:a,eastNorth:s}=Km;return"ltr"===this.locale.uiLanguageDirection?this.parentMenuView?[o,s,r,a]:[t,e,n,i]:this.parentMenuView?[r,a,o,s]:[e,t,i,n]}static _getOptimalPosition=Dr}class nw extends Xg{constructor(t){super(t),this.role="menu",this.items.on("change",this._setItemsCheckSpace.bind(this))}_setItemsCheckSpace(){const t=Array.from(this.items).some((t=>{const e=iw(t);return e&&e.isToggleable}));this.items.forEach((e=>{const n=iw(e);n&&(n.hasCheckSpace=t)}))}}function iw(t){return t instanceof Ug?t.children.map((t=>function(t){return"object"==typeof t&&"buttonView"in t&&t.buttonView instanceof bf}(t)?t.buttonView:t)).find((t=>t instanceof qf)):null}class rw extends og{constructor(t){super(t),this.set({withText:!0,withKeystroke:!0,tooltip:!1,role:"menuitem"}),this.extendTemplate({attributes:{class:["ck-menu-bar__menu__item__button"]}})}}var ow=n(497),aw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(ow.A,aw);ow.A.locals;const sw=["mouseenter","arrowleft","arrowright","change:isOpen"];class cw extends af{children;menus=[];constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set({isOpen:!1,isFocusBorderEnabled:!1}),this._setupIsOpenUpdater(),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-menu-bar",n.if("isFocusBorderEnabled","ck-menu-bar_focus-border-enabled")],"aria-label":e("Editor menu bar"),role:"menubar"},children:this.children})}fillFromConfig(t,e,n=[]){const i=Xm({normalizedConfig:t,locale:this.locale,componentFactory:e,extraItems:n}).items.map((t=>this._createMenu({componentFactory:e,menuDefinition:t})));this.children.addMany(i)}render(){super.render(),Gm.toggleMenusAndFocusItemsOnHover(this),Gm.closeMenusWhenTheBarCloses(this),Gm.closeMenuWhenAnotherOnTheSameLevelOpens(this),Gm.focusCycleMenusOnArrows(this),Gm.closeOnClickOutside(this),Gm.enableFocusHighlightOnInteraction(this)}focus(){this.children.first&&this.children.first.focus()}close(){for(const t of this.children)t.isOpen=!1}registerMenu(t,e=null){e?(t.delegate(...sw).to(e),t.parentMenuView=e):t.delegate(...sw).to(this,(t=>"menu:"+t)),t._attachBehaviors(),this.menus.push(t)}_createMenu({componentFactory:t,menuDefinition:e,parentMenuView:n}){const i=this.locale,r=new ew(i);return this.registerMenu(r,n),r.buttonView.set({label:e.label}),r.once("change:isOpen",(()=>{const n=new nw(i);n.ariaLabel=e.label,r.panelView.children.add(n),n.items.addMany(this._createMenuItems({menuDefinition:e,parentMenuView:r,componentFactory:t}))})),r}_createMenuItems({menuDefinition:t,parentMenuView:e,componentFactory:n}){const i=this.locale,r=[];for(const o of t.groups){for(const t of o.items){const o=new Um(i,e);if(a(t))o.children.add(this._createMenu({componentFactory:n,menuDefinition:t,parentMenuView:e}));else{const i=this._createMenuItemContentFromFactory({componentName:t,componentFactory:n,parentMenuView:e});if(!i)continue;o.children.add(i)}r.push(o)}o!==t.groups[t.groups.length-1]&&r.push(new Gg(i))}return r}_createMenuItemContentFromFactory({componentName:t,parentMenuView:e,componentFactory:n}){const i=n.create(t);return i instanceof ew||i instanceof Kf||i instanceof rw?(this._registerMenuTree(i,e),i.on("execute",(()=>{this.close()})),i):(ki("menu-bar-component-unsupported",{componentName:t,componentView:i}),null)}_registerMenuTree(t,e){if(!(t instanceof ew))return void t.delegate("mouseenter").to(e);this.registerMenu(t,e);const n=t.panelView.children.filter((t=>t instanceof nw))[0];if(!n)return void t.delegate("mouseenter").to(e);const i=n.items.filter((t=>t instanceof Ug));for(const e of i)this._registerMenuTree(e.children.get(0),t)}_setupIsOpenUpdater(){let t;this.on("menu:change:isOpen",((e,n,i)=>{clearTimeout(t),i?this.isOpen=!0:t=setTimeout((()=>{this.isOpen=Array.from(this.children).some((t=>t.isOpen))}),0)}))}}class lw extends sb{view;constructor(t,e){super(t),this.view=e}get element(){return this.view.editable.element}init(){const t=this.editor,e=this.view,n=t.editing.view,i=e.editable,r=n.document.getRoot();i.name=r.rootName,e.render();const o=i.element;this.setEditableElement(i.name,o),i.bind("isFocused").to(this.focusTracker),n.attachDomRoot(o),this._initPlaceholder(),this._initMenuBar(this.view.menuBarView),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;e.getDomRoot(t.editable.name)&&e.detachDomRoot(t.editable.name),t.destroy()}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.config.get("placeholder");if(i){const t="string"==typeof i?i:i[n.rootName];t&&(n.placeholder=t)}Xo({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}}class uw extends hb{editable;menuBarView;constructor(t,e,n,i){super(t),this.editable=new fb(t,e,n,{label:i}),this.menuBarView=new cw(t),this.menuBarView.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:t.uiLanguageDirection}})}render(){super.render(),this.registerChild(this.editable),this.registerChild(this.menuBarView)}}class hw extends(Bd(Id)){ui;constructor(t,e={}){if(!dw(t)&&void 0!==e.initialData)throw new wi("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return dw(t)?lr(t):t}(t)),dw(t)&&(this.sourceElement=t,Md(this,t));const n=this.config.get("plugins");n.push($b),this.config.set("plugins",n),this.config.define("balloonToolbar",this.config.get("toolbar")),this.model.document.createRoot();const i=new uw(this.locale,this.editing.view,this.sourceElement,this.config.get("label"));this.ui=new lw(this,i),function(t){if(!at(t.updateSourceElement))throw new wi("attachtoform-missing-elementapi-interface",t);const e=t.sourceElement;if(function(t){return!!t&&"textarea"===t.tagName.toLowerCase()}(e)&&e.form){let n;const i=e.form,r=()=>t.updateSourceElement();at(i.submit)&&(n=i.submit,i.submit=()=>{r(),n.apply(i)}),i.addEventListener("submit",r),t.on("destroy",(()=>{i.removeEventListener("submit",r),n&&(i.submit=n)}))}}(this)}destroy(){const t=this.getData();return this.ui.destroy(),super.destroy().then((()=>{this.sourceElement&&this.updateSourceElement(t)}))}static create(t,e={}){return new Promise((n=>{if(dw(t)&&"TEXTAREA"===t.tagName)throw new wi("editor-wrong-element",null);const i=new this(t,e);n(i.initPlugins().then((()=>i.ui.init())).then((()=>i.data.init(i.config.get("initialData")))).then((()=>i.fire("ready"))).then((()=>i)))}))}}function dw(t){return U(t)}var fw=n(9826),gw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(fw.A,gw);fw.A.locals;var pw=n(2722),mw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(pw.A,mw);pw.A.locals;var bw=n(9627),ww={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(bw.A,ww);bw.A.locals;class kw extends af{children;_findInputView;_replaceInputView;_findButtonView;_findPrevButtonView;_findNextButtonView;_advancedOptionsCollapsibleView;_matchCaseSwitchView;_wholeWordsOnlySwitchView;_replaceButtonView;_replaceAllButtonView;_inputsDivView;_actionButtonsDivView;_focusTracker;_keystrokes;_focusables;focusCycler;constructor(t){super(t);const e=t.t;this.children=this.createCollection(),this.set("matchCount",0),this.set("highlightOffset",0),this.set("isDirty",!1),this.set("_areCommandsEnabled",{}),this.set("_resultsCounterText",""),this.set("_matchCase",!1),this.set("_wholeWordsOnly",!1),this.bind("_searchResultsFound").to(this,"matchCount",this,"isDirty",((t,e)=>t>0&&!e)),this._findInputView=this._createInputField(e("Find in text…")),this._findPrevButtonView=this._createButton({label:e("Previous result"),class:"ck-button-prev",icon:Ld.previousArrow,keystroke:"Shift+F3",tooltip:!0}),this._findNextButtonView=this._createButton({label:e("Next result"),class:"ck-button-next",icon:Ld.previousArrow,keystroke:"F3",tooltip:!0}),this._replaceInputView=this._createInputField(e("Replace with…"),"ck-labeled-field-replace"),this._inputsDivView=this._createInputsDiv(),this._matchCaseSwitchView=this._createMatchCaseSwitch(),this._wholeWordsOnlySwitchView=this._createWholeWordsOnlySwitch(),this._advancedOptionsCollapsibleView=this._createAdvancedOptionsCollapsible(),this._replaceAllButtonView=this._createButton({label:e("Replace all"),class:"ck-button-replaceall",withText:!0}),this._replaceButtonView=this._createButton({label:e("Replace"),class:"ck-button-replace",withText:!0}),this._findButtonView=this._createButton({label:e("Find"),class:"ck-button-find ck-button-action",withText:!0}),this._actionButtonsDivView=this._createActionButtonsDiv(),this._focusTracker=new Eo,this._keystrokes=new To,this._focusables=new Od,this.focusCycler=new _f({focusables:this._focusables,focusTracker:this._focusTracker,keystrokeHandler:this._keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.addMany([this._inputsDivView,this._advancedOptionsCollapsibleView,this._actionButtonsDivView]),this.setTemplate({tag:"form",attributes:{class:["ck","ck-find-and-replace-form"],tabindex:"-1"},children:this.children})}render(){super.render(),lf({view:this}),this._initFocusCycling(),this._initKeystrokeHandling()}destroy(){super.destroy(),this._focusTracker.destroy(),this._keystrokes.destroy()}focus(t){-1===t?this.focusCycler.focusLast():this.focusCycler.focusFirst()}reset(){this._findInputView.errorText=null,this.isDirty=!0}get _textToFind(){return this._findInputView.fieldView.element.value}get _textToReplace(){return this._replaceInputView.fieldView.element.value}_createInputsDiv(){const t=this.locale,e=t.t,n=new af(t);return this._findInputView.fieldView.on("input",(()=>{this.isDirty=!0})),this._findPrevButtonView.delegate("execute").to(this,"findPrevious"),this._findNextButtonView.delegate("execute").to(this,"findNext"),this._findPrevButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",(({findPrevious:t})=>t)),this._findNextButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",(({findNext:t})=>t)),this._injectFindResultsCounter(),this._replaceInputView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",(({replace:t},e)=>t&&e)),this._replaceInputView.bind("infoText").to(this._replaceInputView,"isEnabled",this._replaceInputView,"isFocused",((t,n)=>t||!n?"":e("Tip: Find some text first in order to replace it."))),n.setTemplate({tag:"div",attributes:{class:["ck","ck-find-and-replace-form__inputs"]},children:[this._findInputView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView]}),n}_onFindButtonExecute(){if(this._textToFind)this.isDirty=!1,this.fire("findNext",{searchText:this._textToFind,matchCase:this._matchCase,wholeWords:this._wholeWordsOnly});else{const t=this.t;this._findInputView.errorText=t("Text to find must not be empty.")}}_injectFindResultsCounter(){const t=this.locale,e=t.t,n=this.bindTemplate,i=new af(this.locale);this.bind("_resultsCounterText").to(this,"highlightOffset",this,"matchCount",((t,n)=>e("%0 of %1",[t,n]))),i.setTemplate({tag:"span",attributes:{class:["ck","ck-results-counter",n.if("isDirty","ck-hidden")]},children:[{text:n.to("_resultsCounterText")}]});const r=()=>{const e=this._findInputView.fieldView.element;if(!e||!Sr(e))return;const n=new mr(i.element).width,r="ltr"===t.uiLanguageDirection?"paddingRight":"paddingLeft";e.style[r]=n?`calc( 2 * var(--ck-spacing-standard) + ${n}px )`:""};this.on("change:_resultsCounterText",r,{priority:"low"}),this.on("change:isDirty",r,{priority:"low"}),this._findInputView.template.children[0].children.push(i)}_createAdvancedOptionsCollapsible(){const t=this.locale.t,e=new hg(this.locale,[this._matchCaseSwitchView,this._wholeWordsOnlySwitchView]);return e.set({label:t("Advanced options"),isCollapsed:!0}),e}_createActionButtonsDiv(){const t=new af(this.locale);return this._replaceButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",(({replace:t},e)=>t&&e)),this._replaceAllButtonView.bind("isEnabled").to(this,"_areCommandsEnabled",this,"_searchResultsFound",(({replaceAll:t},e)=>t&&e)),this._replaceButtonView.on("execute",(()=>{this.fire("replace",{searchText:this._textToFind,replaceText:this._textToReplace})})),this._replaceAllButtonView.on("execute",(()=>{this.fire("replaceAll",{searchText:this._textToFind,replaceText:this._textToReplace}),this.focus()})),this._findButtonView.on("execute",this._onFindButtonExecute.bind(this)),t.setTemplate({tag:"div",attributes:{class:["ck","ck-find-and-replace-form__actions"]},children:[this._replaceAllButtonView,this._replaceButtonView,this._findButtonView]}),t}_createMatchCaseSwitch(){const t=this.locale.t,e=new ig(this.locale);return e.set({label:t("Match case"),withText:!0}),e.bind("isOn").to(this,"_matchCase"),e.on("execute",(()=>{this._matchCase=!this._matchCase,this.isDirty=!0})),e}_createWholeWordsOnlySwitch(){const t=this.locale.t,e=new ig(this.locale);return e.set({label:t("Whole words only"),withText:!0}),e.bind("isOn").to(this,"_wholeWordsOnly"),e.on("execute",(()=>{this._wholeWordsOnly=!this._wholeWordsOnly,this.isDirty=!0})),e}_initFocusCycling(){[this._findInputView,this._findPrevButtonView,this._findNextButtonView,this._replaceInputView,this._advancedOptionsCollapsibleView.buttonView,this._matchCaseSwitchView,this._wholeWordsOnlySwitchView,this._replaceAllButtonView,this._replaceButtonView,this._findButtonView].forEach((t=>{this._focusables.add(t),this._focusTracker.add(t.element)}))}_initKeystrokeHandling(){const t=t=>t.stopPropagation(),e=t=>{t.stopPropagation(),t.preventDefault()};this._keystrokes.listenTo(this.element),this._keystrokes.set("f3",(t=>{e(t),this._findNextButtonView.fire("execute")})),this._keystrokes.set("shift+f3",(t=>{e(t),this._findPrevButtonView.fire("execute")})),this._keystrokes.set("enter",(t=>{const n=t.target;n===this._findInputView.fieldView.element?(this._areCommandsEnabled.findNext?this._findNextButtonView.fire("execute"):this._findButtonView.fire("execute"),e(t)):n!==this._replaceInputView.fieldView.element||this.isDirty||(this._replaceButtonView.fire("execute"),e(t))})),this._keystrokes.set("shift+enter",(t=>{t.target===this._findInputView.fieldView.element&&(this._areCommandsEnabled.findPrevious?this._findPrevButtonView.fire("execute"):this._findButtonView.fire("execute"),e(t))})),this._keystrokes.set("arrowright",t),this._keystrokes.set("arrowleft",t),this._keystrokes.set("arrowup",t),this._keystrokes.set("arrowdown",t)}_createButton(t){const e=new bf(this.locale);return e.set(t),e}_createInputField(t,e){const n=new Tg(this.locale,Pp);return n.label=t,n.class=e,n}}const vw='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.87 13.786 1.532-1.286 3.857 4.596a1 1 0 1 1-1.532 1.286l-3.857-4.596z"/><path d="M16.004 8.5a6.5 6.5 0 0 1-9.216 5.905c-1.154-.53-.863-1.415-.663-1.615.194-.194.564-.592 1.635-.141a4.5 4.5 0 0 0 5.89-5.904l-.104-.227 1.332-1.331c.045-.046.196-.041.224.007a6.47 6.47 0 0 1 .902 3.306zm-3.4-5.715c.562.305.742 1.106.354 1.494-.388.388-.995.414-1.476.178a4.5 4.5 0 0 0-6.086 5.882l.114.236-1.348 1.349c-.038.037-.17.022-.198-.023a6.5 6.5 0 0 1 5.54-9.9 6.469 6.469 0 0 1 3.1.784z"/><path d="M4.001 11.93.948 8.877a.2.2 0 0 1 .141-.341h6.106a.2.2 0 0 1 .141.341L4.283 11.93a.2.2 0 0 1-.282 0zm11.083-6.789 3.053 3.053a.2.2 0 0 1-.14.342H11.89a.2.2 0 0 1-.14-.342l3.052-3.053a.2.2 0 0 1 .282 0z"/></svg>';class yw extends Oo{static get requires(){return[zf]}static get pluginName(){return"FindAndReplaceUI"}formView;constructor(t){super(t),t.config.define("findAndReplace.uiType","dialog"),this.formView=null}init(){const t=this.editor,e="dropdown"===t.config.get("findAndReplace.uiType"),n=t.commands.get("find"),i=this.editor.t;t.ui.componentFactory.add("findAndReplace",(()=>{let i;return e?(i=this._createDropdown(),i.bind("isEnabled").to(n)):i=this._createDialogButtonForToolbar(),t.keystrokes.set("Ctrl+F",((e,r)=>{if(n.isEnabled){if(i instanceof jg){const t=i.buttonView;t.isOn||t.fire("execute")}else i.isOn?t.plugins.get("Dialog").view.focus():i.fire("execute");r()}})),i})),e||t.ui.componentFactory.add("menuBar:findAndReplace",(()=>this._createDialogButtonForMenuBar())),t.accessibility.addKeystrokeInfos({keystrokes:[{label:i("Find in the document"),keystroke:"CTRL+F"}]})}_createDropdown(){const t=this.editor,e=t.locale.t,n=Ep(t.locale);return n.once("change:isOpen",(()=>{this.formView=this._createFormView(),this.formView.children.add(new yf(t.locale,{label:e("Find and replace")}),0),n.panelView.children.add(this.formView)})),n.on("change:isOpen",((t,e,n)=>{n?this._setupFormView():this.fire("searchReseted")}),{priority:"low"}),n.buttonView.set({icon:vw,label:e("Find and replace"),keystroke:"CTRL+F",tooltip:!0}),n}_createDialogButtonForToolbar(){const t=this.editor,e=this._createButton(bf),n=t.plugins.get("Dialog");return e.set({tooltip:!0}),e.bind("isOn").to(n,"id",(t=>"findAndReplace"===t)),e.on("execute",(()=>{e.isOn?n.hide():this._showDialog()})),e}_createDialogButtonForMenuBar(){const t=this._createButton(Kf),e=this.editor.plugins.get("Dialog"),n=this.editor.plugins.get("Dialog");return t.set({role:"menuitemcheckbox",isToggleable:!0}),t.bind("isOn").to(n,"id",(t=>"findAndReplace"===t)),t.on("execute",(()=>{"findAndReplace"!==e.id?this._showDialog():e.hide()})),t}_createButton(t){const e=this.editor,n=e.commands.get("find"),i=new t(e.locale),r=e.locale.t;return i.bind("isEnabled").to(n),i.set({icon:vw,label:r("Find and replace"),keystroke:"CTRL+F"}),i}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),n=t.locale.t;this.formView||(this.formView=this._createFormView()),e.show({id:"findAndReplace",title:n("Find and replace"),content:this.formView,position:Lf,onShow:()=>{this._setupFormView()},onHide:()=>{this.fire("searchReseted")}})}_createFormView(){const t=this.editor,e=new(cf(kw))(t.locale),n=t.commands,i=this.editor.plugins.get("FindAndReplaceEditing").state;e.bind("highlightOffset").to(i,"highlightedOffset"),e.listenTo(i.results,"change",(()=>{e.matchCount=i.results.length}));const r=n.get("findNext"),o=n.get("findPrevious"),a=n.get("replace"),s=n.get("replaceAll");return e.bind("_areCommandsEnabled").to(r,"isEnabled",o,"isEnabled",a,"isEnabled",s,"isEnabled",((t,e,n,i)=>({findNext:t,findPrevious:e,replace:n,replaceAll:i}))),e.delegate("findNext","findPrevious","replace","replaceAll").to(this),e.on("change:isDirty",((t,e,n)=>{n&&this.fire("searchReseted")})),e}_setupFormView(){this.formView.disableCssTransitions(),this.formView.reset(),this.formView._findInputView.fieldView.select(),this.formView.enableCssTransitions()}}class _w extends Ro{_state;constructor(t,e){super(t),this.isEnabled=!0,this.affectsData=!1,this._state=e}execute(t,{matchCase:e,wholeWords:n}={}){const{editor:i}=this,{model:r}=i,o=i.plugins.get("FindAndReplaceUtils");let a,s="";a="string"==typeof t?(...i)=>({results:o.findByTextCallback(t,{matchCase:e,wholeWords:n})(...i),searchText:t}):t;const c=a;a=(...t)=>{const e=c(...t);return e&&"searchText"in e&&(s=e.searchText),e};const l=r.document.getRootNames().reduce(((t,e)=>o.updateFindResultFromRange(r.createRangeIn(r.document.getRoot(e)),r,a,t)),null);return this._state.clear(r),this._state.results.addMany(l),this._state.highlightedResult=l.get(0),this._state.searchText=s,a&&(this._state.lastSearchCallback=a),a&&(this._state.lastSearchCallback=a),this._state.matchCase=!!e,this._state.matchWholeWords=!!n,{results:l,findCallback:a}}}class Cw extends Ro{_state;constructor(t,e){super(t),this.isEnabled=!0,this._state=e,this._isEnabledBasedOnSelection=!1}_replace(t,e){const{model:n}=this.editor,i=e.marker.getRange();n.canEditAt(i)&&n.change((r=>{if("$graveyard"===i.root.rootName)return void this._state.results.remove(e);let o={};for(const t of i.getItems())if(t.is("$text")||t.is("$textProxy")){o=t.getAttributes();break}n.insertContent(r.createText(t,o),i),this._state.results.has(e)&&this._state.results.remove(e)}))}}class Aw extends Cw{execute(t,e){this._replace(t,e)}}class xw extends Cw{execute(t,e){const{editor:n}=this,{model:i}=n,r=n.plugins.get("FindAndReplaceUtils"),o=e instanceof Ao?e:i.document.getRootNames().reduce(((t,n)=>r.updateFindResultFromRange(i.createRangeIn(i.document.getRoot(n)),i,r.findByTextCallback(e,this._state),t)),null);o.length&&i.change((()=>{[...o].forEach((e=>{this._replace(t,e)}))}))}}class Ew extends Ro{_state;constructor(t,e){super(t),this.affectsData=!1,this._state=e,this.isEnabled=!1,this.listenTo(this._state.results,"change",(()=>{this.isEnabled=this._state.results.length>1}))}refresh(){this.isEnabled=this._state.results.length>1}execute(){const t=this._state.results,e=t.getIndex(this._state.highlightedResult),n=e+1>=t.length?0:e+1;this._state.highlightedResult=this._state.results.get(n)}}class Tw extends Ew{execute(){const t=this._state.results.getIndex(this._state.highlightedResult),e=t-1<0?this._state.results.length-1:t-1;this._state.highlightedResult=this._state.results.get(e)}}class Sw extends(Vi()){constructor(t){super(),this.set("results",new Ao),this.set("highlightedResult",null),this.set("highlightedOffset",0),this.set("searchText",""),this.set("replaceText",""),this.set("lastSearchCallback",null),this.set("matchCase",!1),this.set("matchWholeWords",!1),this.results.on("change",((e,{removed:n,index:i})=>{if(Array.from(n).length){let e=!1;if(t.change((i=>{for(const r of n)this.highlightedResult===r&&(e=!0),t.markers.has(r.marker.name)&&i.removeMarker(r.marker)})),e){const t=i>=this.results.length?0:i;this.highlightedResult=this.results.get(t)}}})),this.on("change:highlightedResult",(()=>{this.refreshHighlightOffset()}))}clear(t){this.searchText="",t.change((e=>{if(this.highlightedResult){const n=this.highlightedResult.marker.name.split(":")[1],i=t.markers.get(`findResultHighlighted:${n}`);i&&e.removeMarker(i)}[...this.results].forEach((({marker:t})=>{e.removeMarker(t)}))})),this.results.clear()}refreshHighlightOffset(){const{highlightedResult:t,results:e}=this,n={before:-1,same:0,after:1,different:1};this.highlightedOffset=t?Array.from(e).sort(((t,e)=>n[t.marker.getStart().compareWith(e.marker.getStart())])).indexOf(t)+1:0}}class Dw extends Oo{static get pluginName(){return"FindAndReplaceUtils"}updateFindResultFromRange(t,e,n,i){const r=i||new Ao;return e.change((i=>{[...t].forEach((({type:t,item:o})=>{if("elementStart"===t&&e.schema.checkChild(o,"$text")){let t=n({item:o,text:this.rangeToText(e.createRangeIn(o))});if(!t)return;"results"in t&&(t=t.results),t.forEach((t=>{const e=`findResult:${pi()}`,n=i.addMarker(e,{usingOperation:!1,affectsData:!1,range:i.createRange(i.createPositionAt(o,t.start),i.createPositionAt(o,t.end))}),a=function(t,e){const n=t.find((({marker:t})=>e.getStart().isBefore(t.getStart())));return n?t.getIndex(n):t.length}(r,n);(t=>r.find((e=>{const{marker:n}=e,i=n.getRange(),r=t.getRange();return i.isEqual(r)})))(n)||r.add({id:e,label:t.label,marker:n},a)}))}}))})),r}rangeToText(t){return Array.from(t.getItems()).reduce(((t,e)=>e.is("$text")||e.is("$textProxy")?t+e.data:`${t}\n`),"")}findByTextCallback(t,e){let n="gu";e.matchCase||(n+="i");let i=`(${Sb(t)})`;if(e.wholeWords){const e="[^a-zA-ZÀ-ɏḀ-ỿ]";new RegExp("^"+e).test(t)||(i=`(^|${e}|_)${i}`),new RegExp(e+"$").test(t)||(i=`${i}(?=_|${e}|$)`)}const r=new RegExp(i,n);return function({text:t}){return[...t.matchAll(r)].map(Iw)}}}function Iw(t){const e=t.length-1;let n=t.index;return 3===t.length&&(n+=t[1].length),{label:t[e],start:n,end:n+t[e].length}}var Bw=n(4341),Mw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Bw.A,Mw);Bw.A.locals;class Pw extends Oo{static get requires(){return[Dw]}static get pluginName(){return"FindAndReplaceEditing"}state;init(){this.state=new Sw(this.editor.model),this.set("_isSearchActive",!1),this._defineConverters(),this._defineCommands(),this.listenTo(this.state,"change:highlightedResult",((t,e,n,i)=>{const{model:r}=this.editor;r.change((t=>{if(i){const e=i.marker.name.split(":")[1],n=r.markers.get(`findResultHighlighted:${e}`);n&&t.removeMarker(n)}if(n){const e=n.marker.name.split(":")[1];t.addMarker(`findResultHighlighted:${e}`,{usingOperation:!1,affectsData:!1,range:n.marker.getRange()})}}))}));const t=L(((t,e,n)=>{if(n){const t=this.editor.editing.view.domConverter,e=this.editor.editing.mapper.toViewRange(n.marker.getRange());Pr({target:t.viewRangeToDom(e),viewportOffset:40})}}).bind(this),32);this.listenTo(this.state,"change:highlightedResult",t,{priority:"low"}),this.listenTo(this.editor,"destroy",t.cancel),this.on("change:_isSearchActive",((t,e,n)=>{n?this.listenTo(this.editor.model.document,"change:data",this._onDocumentChange):this.stopListening(this.editor.model.document,"change:data",this._onDocumentChange)}))}find(t,e){return this._isSearchActive=!0,this.editor.execute("find",t,e),this.state.results}stop(){this.state.clear(this.editor.model),this._isSearchActive=!1}_defineCommands(){this.editor.commands.add("find",new _w(this.editor,this.state)),this.editor.commands.add("findNext",new Ew(this.editor,this.state)),this.editor.commands.add("findPrevious",new Tw(this.editor,this.state)),this.editor.commands.add("replace",new Aw(this.editor,this.state)),this.editor.commands.add("replaceAll",new xw(this.editor,this.state))}_defineConverters(){const{editor:t}=this;t.conversion.for("editingDowncast").markerToHighlight({model:"findResult",view:({markerName:t})=>{const[,e]=t.split(":");return{name:"span",classes:["ck-find-result"],attributes:{"data-find-result":e}}}}),t.conversion.for("editingDowncast").markerToHighlight({model:"findResultHighlighted",view:({markerName:t})=>{const[,e]=t.split(":");return{name:"span",classes:["ck-find-result_selected"],attributes:{"data-find-result":e}}}})}_onDocumentChange=()=>{const t=new Set,e=new Set,n=this.editor.model,{results:i}=this.state,r=n.document.differ.getChanges(),o=n.document.differ.getChangedMarkers();r.forEach((i=>{i.position&&("$text"===i.name||i.position.nodeAfter&&n.schema.isInline(i.position.nodeAfter)?(t.add(i.position.parent),[...n.markers.getMarkersAtPosition(i.position)].forEach((t=>{e.add(t.name)}))):"insert"===i.type&&i.position.nodeAfter&&t.add(i.position.nodeAfter))})),o.forEach((({name:t,data:{newRange:n}})=>{n&&"$graveyard"===n.start.root.rootName&&e.add(t)})),t.forEach((t=>{[...n.markers.getMarkersIntersectingRange(n.createRangeIn(t))].forEach((t=>e.add(t.name)))})),e.forEach((t=>{i.has(t)&&(i.get(t)===this.state.highlightedResult&&(this.state.highlightedResult=null),i.remove(t))}));const a=[],s=this.editor.plugins.get("FindAndReplaceUtils");t.forEach((t=>{const e=s.updateFindResultFromRange(n.createRangeOn(t),n,this.state.lastSearchCallback,i);a.push(...e)})),o.forEach((t=>{if(t.data.newRange){const e=s.updateFindResultFromRange(t.data.newRange,n,this.state.lastSearchCallback,i);a.push(...e)}})),!this.state.highlightedResult&&a.length?this.state.highlightedResult=a[0]:this.state.refreshHighlightOffset()}}class Lw extends(Vi()){total;_reader;_data;constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=t=>{this.loaded=t.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return t?(this.total=t.size,new Promise(((n,i)=>{e.onload=()=>{const t=e.result;this._data=t,n(t)},e.onerror=()=>{i("error")},e.onabort=()=>{i("aborted")},this._reader.readAsDataURL(t)}))):new Promise(((t,e)=>{e("error")}))}abort(){this._reader.abort()}}class Ow extends Oo{loaders=new Ao;_loadersMap=new Map;_pendingAction=null;static get pluginName(){return"FileRepository"}static get requires(){return[Pd]}init(){this.loaders.on("change",(()=>this._updatePendingAction())),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0))}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return ki("filerepository-no-upload-adapter"),null;const e=new Nw(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then((t=>{this._loadersMap.set(t,e)})).catch((()=>{})),e.on("change:uploaded",(()=>{let t=0;for(const e of this.loaders)t+=e.uploaded;this.uploaded=t})),e.on("change:uploadTotal",(()=>{let t=0;for(const e of this.loaders)e.uploadTotal&&(t+=e.uploadTotal);this.uploadTotal=t})),e}destroyLoader(t){const e=t instanceof Nw?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach(((t,n)=>{t===e&&this._loadersMap.delete(n)}))}_updatePendingAction(){const t=this.editor.plugins.get(Pd);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=t=>`${e("Upload in progress")} ${parseInt(t)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class Nw extends(Vi()){id;_filePromiseWrapper;_adapter;_reader;constructor(t,e){super(),this.id=pi(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new Lw,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",((t,e)=>e?t/e*100:0)),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((t=>this._filePromiseWrapper?t:null)):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new wi("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((t=>this._reader.read(t))).then((t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t})).catch((t=>{if("aborted"===t)throw this.status="aborted","aborted";throw this.status="error",this._reader.error?this._reader.error:t}))}upload(){if("idle"!=this.status)throw new wi("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((()=>this._adapter.upload())).then((t=>(this.uploadResponse=t,this.status="idle",t))).catch((t=>{if("aborted"===this.status)throw"aborted";throw this.status="error",t}))}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((()=>{})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise(((n,i)=>{e.rejecter=i,e.isFulfilled=!1,t.then((t=>{e.isFulfilled=!0,n(t)})).catch((t=>{e.isFulfilled=!0,i(t)}))})),e}}const Rw="ckCsrfToken",Fw="abcdefghijklmnopqrstuvwxyz0123456789";function jw(){let t=function(t){t=t.toLowerCase();const e=document.cookie.split(";");for(const n of e){const e=n.split("=");if(decodeURIComponent(e[0].trim().toLowerCase())===t)return decodeURIComponent(e[1])}return null}(Rw);return t&&40==t.length||(t=function(t){let e="";const n=new Uint8Array(t);window.crypto.getRandomValues(n);for(let t=0;t<n.length;t++){const i=Fw.charAt(n[t]%36);e+=Math.random()>.5?i.toUpperCase():i}return e}(40),function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path=/"}(Rw,t)),t}class $w{loader;url;t;xhr;constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then((t=>new Promise(((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const i=this.xhr,r=this.loader,o=(0,this.t)("Cannot upload file:")+` ${n.name}.`;i.addEventListener("error",(()=>e(o))),i.addEventListener("abort",(()=>e())),i.addEventListener("load",(()=>{const n=i.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:o);t({default:n.url})})),i.upload&&i.upload.addEventListener("progress",(t=>{t.lengthComputable&&(r.uploadTotal=t.total,r.uploaded=t.loaded)}))}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",jw()),this.xhr.send(e)}}class zw{model;limit;_isLocked;_size;_batch=null;_changeCallback;_selectionChangeCallback;constructor(t,e=20){this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(t,e)=>{e.isLocal&&e.isUndoable&&e!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class Vw extends Ro{_buffer;constructor(t,e){super(t),this._buffer=new zw(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,i=t.text||"",r=i.length;let o=n.selection;if(t.selection?o=t.selection:t.range&&(o=e.createSelection(t.range)),!e.canEditAt(o))return;const a=t.resultRange;e.enqueueChange(this._buffer.batch,(t=>{this._buffer.lock();const s=Array.from(n.selection.getAttributes());e.deleteContent(o),i&&e.insertContent(t.createText(i,s),o),a?t.setSelection(a):o.is("documentSelection")||t.setSelection(o),this._buffer.unlock(),this._buffer.input(r)}))}}const Hw=["insertText","insertReplacementText"],qw=[...Hw,"insertCompositionText"];class Uw extends Xs{focusObserver;constructor(t){super(t),this.focusObserver=t.getObserver(xc);const e=Jn.isAndroid?qw:Hw,n=t.document;n.on("beforeinput",((i,r)=>{if(!this.isEnabled)return;const{data:o,targetRanges:a,inputType:s,domEvent:c}=r;if(!e.includes(s))return;this.focusObserver.flush();const l=new fi(n,"insertText");n.fire(l,new Qs(t,c,{text:o,selection:t.createSelection(a)})),l.stop.called&&i.stop()})),Jn.isAndroid||n.on("compositionend",((e,{data:i,domEvent:r})=>{this.isEnabled&&i&&n.fire("insertText",new Qs(t,r,{text:i}))}),{priority:"lowest"})}observe(){}stopObserving(){}}class Gw extends Oo{_compositionQueue;static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,i=t.editing.mapper,r=e.document.selection;this._compositionQueue=new Ww(t),n.addObserver(Uw);const o=new Vw(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",o),t.commands.add("input",o),this.listenTo(n.document,"insertText",((o,a)=>{n.document.isComposing||a.preventDefault(),Jn.isAndroid&&n.document.isComposing&&this._compositionQueue.flush("next beforeinput");const{text:s,selection:c}=a;let l;l=c?Array.from(c.getRanges()).map((t=>i.toModelRange(t))):Array.from(r.getRanges());let u=s;if(Jn.isAndroid){const t=Array.from(l[0].getItems()).reduce(((t,e)=>t+(e.is("$textProxy")?e.data:"")),"");if(t&&(t.length<=u.length?u.startsWith(t)&&(u=u.substring(t.length),l[0].start=l[0].start.getShiftedBy(t.length)):t.startsWith(u)&&(l[0].start=l[0].start.getShiftedBy(u.length),u="")),0==u.length&&l[0].isCollapsed)return}const h={text:u,selection:e.createSelection(l)};Jn.isAndroid&&n.document.isComposing?this._compositionQueue.push(h):(t.execute("insertText",h),n.scrollToTheSelection())})),Jn.isAndroid?this.listenTo(n.document,"keydown",((t,i)=>{!r.isCollapsed&&229==i.keyCode&&n.document.isComposing&&Kw(e,o)})):this.listenTo(n.document,"compositionstart",(()=>{r.isCollapsed||Kw(e,o)})),Jn.isAndroid?(this.listenTo(n.document,"mutations",((t,{mutations:e})=>{if(n.document.isComposing)for(const{node:t}of e){const e=Yw(t,i),n=i.toModelElement(e);if(this._compositionQueue.isComposedElement(n))return void this._compositionQueue.flush("mutations")}})),this.listenTo(n.document,"compositionend",(()=>{this._compositionQueue.flush("composition end")})),this.listenTo(n.document,"compositionend",(()=>{const t=[];for(const e of this._compositionQueue.flushComposedElements()){const n=i.toViewElement(e);n&&t.push({type:"children",node:n})}t.length&&n.document.fire("mutations",{mutations:t})}),{priority:"lowest"})):this.listenTo(n.document,"compositionend",(()=>{n.document.fire("mutations",{mutations:[]})}),{priority:"lowest"})}destroy(){super.destroy(),this._compositionQueue.destroy()}}class Ww{editor;flushDebounced=L((()=>this.flush("timeout")),50);_queue=[];_compositionElements=new Set;constructor(t){this.editor=t}destroy(){for(this.flushDebounced.cancel(),this._compositionElements.clear();this._queue.length;)this.shift()}get length(){return this._queue.length}push(t){const e={text:t.text};if(t.selection){e.selectionRanges=[];for(const n of t.selection.getRanges())e.selectionRanges.push(ll.fromRange(n)),this._compositionElements.add(n.start.parent)}this._queue.push(e),this.flushDebounced()}shift(){const t=this._queue.shift(),e={text:t.text};if(t.selectionRanges){const n=t.selectionRanges.map((t=>function(t){const e=t.toRange();if(t.detach(),"$graveyard"==e.root.rootName)return null;return e}(t))).filter((t=>!!t));n.length&&(e.selection=this.editor.model.createSelection(n))}return e}flush(t){const e=this.editor,n=e.model,i=e.editing.view;if(this.flushDebounced.cancel(),!this._queue.length)return;const r=e.commands.get("insertText").buffer;n.enqueueChange(r.batch,(()=>{for(r.lock();this._queue.length;){const t=this.shift();e.execute("insertText",t)}r.unlock()})),i.scrollToTheSelection()}isComposedElement(t){return this._compositionElements.has(t)}flushComposedElements(){const t=Array.from(this._compositionElements);return this._compositionElements.clear(),t}}function Kw(t,e){if(!e.isEnabled)return;const n=e.buffer;n.lock(),t.enqueueChange(n.batch,(()=>{t.deleteContent(t.document.selection)})),n.unlock()}function Yw(t,e){let n=t.is("$text")?t.parent:t;for(;!e.toModelElement(n);)n=n.parent;return n}class Xw extends Ro{direction;_buffer;constructor(t,e){super(t),this.direction=e,this._buffer=new zw(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,(i=>{this._buffer.lock();const r=i.createSelection(t.selection||n.selection);if(!e.canEditAt(r))return;const o=t.sequence||1,a=r.isCollapsed;if(r.isCollapsed&&e.modifySelection(r,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(o))return void this._replaceEntireContentWithParagraph(i);if(this._shouldReplaceFirstBlockWithParagraph(r,o))return void this.editor.execute("paragraph",{selection:r});if(r.isCollapsed)return;let s=0;r.getFirstRange().getMinimalFlatRanges().forEach((t=>{s+=Ki(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),e.deleteContent(r,{doNotResetEntireContent:a,direction:this.direction}),this._buffer.input(s),i.setSelection(r),this._buffer.unlock()}))}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(i)))return!1;if(!e.schema.checkChild(i,"paragraph"))return!1;const r=i.getChild(0);return!r||!r.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n),r=t.createElement("paragraph");t.remove(t.createRangeIn(i)),t.insert(r,i),t.setSelection(r,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;const i=t.getFirstPosition(),r=n.schema.getLimitElement(i),o=r.getChild(0);return i.parent==o&&(!!t.containsEntireContent(o)&&(!!n.schema.checkChild(r,"paragraph")&&"paragraph"!=o.name))}}const Zw="word",Qw="selection",Jw="backward",tk="forward",ek={deleteContent:{unit:Qw,direction:Jw},deleteContentBackward:{unit:"codePoint",direction:Jw},deleteWordBackward:{unit:Zw,direction:Jw},deleteHardLineBackward:{unit:Qw,direction:Jw},deleteSoftLineBackward:{unit:Qw,direction:Jw},deleteContentForward:{unit:"character",direction:tk},deleteWordForward:{unit:Zw,direction:tk},deleteHardLineForward:{unit:Qw,direction:tk},deleteSoftLineForward:{unit:Qw,direction:tk}};class nk extends Xs{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",(()=>{n++})),e.on("keyup",(()=>{n=0})),e.on("beforeinput",((i,r)=>{if(!this.isEnabled)return;const{targetRanges:o,domEvent:a,inputType:s}=r,c=ek[s];if(!c)return;const l={direction:c.direction,unit:c.unit,sequence:n};l.unit==Qw&&(l.selectionToRemove=t.createSelection(o[0])),"deleteContentBackward"===s&&(Jn.isAndroid&&(l.sequence=1),function(t){if(1!=t.length||t[0].isCollapsed)return!1;const e=t[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let n=0;for(const{nextPosition:t,item:i}of e){if(t.parent.is("$text")){const e=t.parent.data,i=t.offset;if(Io(e,i)||Bo(e,i)||Po(e,i))continue;n++}else(i.is("containerElement")||i.is("emptyElement"))&&n++;if(n>1)return!0}return!1}(o)&&(l.unit=Qw,l.selectionToRemove=t.createSelection(o)));const u=new Xa(e,"delete",o[0]);e.fire(u,new Qs(t,a,l)),u.stop.called&&i.stop()})),Jn.isBlink&&function(t){const e=t.view,n=e.document;let i=null,r=!1;function o(t){return t==Gr.backspace||t==Gr.delete}function a(t){return t==Gr.backspace?Jw:tk}n.on("keydown",((t,{keyCode:e})=>{i=e,r=!1})),n.on("keyup",((s,{keyCode:c,domEvent:l})=>{const u=n.selection,h=t.isEnabled&&c==i&&o(c)&&!u.isCollapsed&&!r;if(i=null,h){const t=u.getFirstRange(),i=new Xa(n,"delete",t),r={unit:Qw,direction:a(c),selectionToRemove:u};n.fire(i,new Qs(e,l,r))}})),n.on("beforeinput",((t,{inputType:e})=>{const n=ek[e];o(i)&&n&&n.direction==a(i)&&(r=!0)}),{priority:"high"}),n.on("beforeinput",((t,{inputType:e,data:n})=>{i==Gr.delete&&"insertText"==e&&""==n&&t.stop()}),{priority:"high"})}(this)}observe(){}stopObserving(){}}class ik extends Oo{_undoOnBackspace;static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,i=t.model.document;e.addObserver(nk),this._undoOnBackspace=!1;const r=new Xw(t,"forward");t.commands.add("deleteForward",r),t.commands.add("forwardDelete",r),t.commands.add("delete",new Xw(t,"backward")),this.listenTo(n,"delete",((i,r)=>{n.isComposing||r.preventDefault();const{direction:o,sequence:a,selectionToRemove:s,unit:c}=r,l="forward"===o?"deleteForward":"delete",u={sequence:a};if("selection"==c){const e=Array.from(s.getRanges()).map((e=>t.editing.mapper.toModelRange(e)));u.selection=t.model.createSelection(e)}else u.unit=c;t.execute(l,u),e.scrollToTheSelection()}),{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",((e,n)=>{this._undoOnBackspace&&"backward"==n.direction&&1==n.sequence&&"codePoint"==n.unit&&(this._undoOnBackspace=!1,t.execute("undo"),n.preventDefault(),e.stop())}),{context:"$capture"}),this.listenTo(i,"change",(()=>{this._undoOnBackspace=!1})))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class rk extends Oo{static get requires(){return[Gw,ik]}static get pluginName(){return"Typing"}}function ok(t,e){let n=t.start;return{text:Array.from(t.getWalker({ignoreElementEnd:!1})).reduce(((t,{item:i})=>i.is("$text")||i.is("$textProxy")?t+i.data:(n=e.createPositionAfter(i),"")),""),range:e.createRange(n,t.end)}}class ak extends(Vi()){model;testCallback;_hasMatch;constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))})),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",((e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))})),this.listenTo(t,"change:data",((t,e)=>{!e.isUndo&&e.isLocal&&this._evaluateTextBeforeSelection("data",{batch:e})}))}_evaluateTextBeforeSelection(t,e={}){const n=this.model,i=n.document.selection,r=n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),{text:o,range:a}=ok(r,n),s=this.testCallback(o);if(!s&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!s,s){const n=Object.assign(e,{text:o,range:a});"object"==typeof s&&Object.assign(n,s),this.fire(`matched:${t}`,n)}}}class sk extends Oo{attributes;_overrideUid;_isNextGravityRestorationSkipped=!1;static get pluginName(){return"TwoStepCaretMovement"}constructor(t){super(t),this.attributes=new Set,this._overrideUid=null}init(){const t=this.editor,e=t.model,n=t.editing.view,i=t.locale,r=e.document.selection;this.listenTo(n.document,"arrowKey",((t,e)=>{if(!r.isCollapsed)return;if(e.shiftKey||e.altKey||e.ctrlKey)return;const n=e.keyCode==Gr.arrowright,o=e.keyCode==Gr.arrowleft;if(!n&&!o)return;const a=i.contentLanguageDirection;let s=!1;s="ltr"===a&&n||"rtl"===a&&o?this._handleForwardMovement(e):this._handleBackwardMovement(e),!0===s&&t.stop()}),{context:"$text",priority:"highest"}),this.listenTo(r,"change:range",((t,e)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!e.directChange&&fk(r.getFirstPosition(),this.attributes)||this._restoreGravity())})),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return!this._isGravityOverridden&&((!r.isAtStart||!ck(i,e))&&(!!fk(r,e)&&(hk(t),ck(i,e)&&fk(r,e,!0)?uk(n,e):this._overrideGravity(),!0)))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden?(hk(t),this._restoreGravity(),fk(r,e,!0)?uk(n,e):lk(n,e,r),!0):r.isAtStart?!!ck(i,e)&&(hk(t),lk(n,e,r),!0):!ck(i,e)&&fk(r,e,!0)?(hk(t),lk(n,e,r),!0):!!dk(r,e)&&(r.isAtEnd&&!ck(i,e)&&fk(r,e)?(hk(t),lk(n,e,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view.document;t.editing.view.addObserver(Fh);let r=!1;this.listenTo(i,"mousedown",(()=>{r=!0})),this.listenTo(i,"selectionChange",(()=>{const t=this.attributes;if(!r)return;if(r=!1,!n.isCollapsed)return;if(!ck(n,t))return;const i=n.getFirstPosition();fk(i,t)&&(i.isAtStart||fk(i,t,!0)?uk(e,t):this._isGravityOverridden||this._overrideGravity())}))}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection,n=this.attributes;this.listenTo(t,"insertContent",(()=>{const i=e.getFirstPosition();ck(e,n)&&fk(i,n)&&uk(t,n)}),{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view;let r=!1,o=!1;this.listenTo(i.document,"delete",((t,e)=>{r="backward"===e.direction}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{if(!r)return;const t=n.getFirstPosition();o=ck(n,this.attributes)&&!dk(t,this.attributes)}),{priority:"high"}),this.listenTo(e,"deleteContent",(()=>{r&&(r=!1,o||t.model.enqueueChange((()=>{const t=n.getFirstPosition();ck(n,this.attributes)&&fk(t,this.attributes)&&(t.isAtStart||fk(t,this.attributes,!0)?uk(e,this.attributes):this._isGravityOverridden||this._overrideGravity())})))}),{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change((t=>t.overrideSelectionGravity()))}_restoreGravity(){this.editor.model.change((t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null}))}}function ck(t,e){for(const n of e)if(t.hasAttribute(n))return!0;return!1}function lk(t,e,n){const i=n.nodeBefore;t.change((n=>{if(i){const e=[],r=t.schema.isObject(i)&&t.schema.isInline(i);for(const[n,o]of i.getAttributes())!t.schema.checkAttribute("$text",n)||r&&!1===t.schema.getAttributeProperties(n).copyFromObject||e.push([n,o]);n.setSelectionAttribute(e)}else n.removeSelectionAttribute(e)}))}function uk(t,e){t.change((t=>{t.removeSelectionAttribute(e)}))}function hk(t){t.preventDefault()}function dk(t,e){return fk(t.getShiftedBy(-1),e)}function fk(t,e,n=!1){const{nodeBefore:i,nodeAfter:r}=t;for(const t of e){const e=i?i.getAttribute(t):void 0,o=r?r.getAttribute(t):void 0;if((!n||void 0!==e&&void 0!==o)&&o!==e)return!0}return!1}const gk={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:vk('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:vk("'"),to:[null,"",null,""]},quotesPrimaryEnGb:{from:vk("'"),to:[null,"",null,""]},quotesSecondaryEnGb:{from:vk('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:vk('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:vk("'"),to:[null,"",null,""]}},pk={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},mk=["symbols","mathematical","typography","quotes"];function bk(t){return"string"==typeof t?new RegExp(`(${Sb(t)})$`):t}function wk(t){return"string"==typeof t?()=>[t]:t instanceof Array?()=>t:t}function kk(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function vk(t){return new RegExp(`(^|\\s)(${t})([^${t}]*)(${t})$`)}function yk(t,e,n,i){return i.createRange(_k(t,e,n,!0,i),_k(t,e,n,!1,i))}function _k(t,e,n,i,r){let o=t.textNode||(i?t.nodeBefore:t.nodeAfter),a=null;for(;o&&o.getAttribute(e)==n;)a=o,o=i?o.previousSibling:o.nextSibling;return a?r.createPositionAt(a,i?"before":"after"):t}function Ck(t,e,n,i){const r=t.editing.view,o=new Set;r.document.registerPostFixer((r=>{const a=t.model.document.selection;let s=!1;if(a.hasAttribute(e)){const c=yk(a.getFirstPosition(),e,a.getAttribute(e),t.model),l=t.editing.mapper.toViewRange(c);for(const t of l.getItems())t.is("element",n)&&!t.hasClass(i)&&(r.addClass(i,t),o.add(t),s=!0)}return s})),t.conversion.for("editingDowncast").add((t=>{function e(){r.change((t=>{for(const e of o.values())t.removeClass(i,e),o.delete(e)}))}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"})}))}function Ak(t,e,n,i){let r,o=null;"function"==typeof i?r=i:(o=t.commands.get(i),r=()=>{t.execute(i)}),t.model.document.on("change:data",((a,s)=>{if(o&&!o.isEnabled||!e.isEnabled)return;const c=xo(t.model.document.selection.getRanges());if(!c.isCollapsed)return;if(s.isUndo||!s.isLocal)return;const l=Array.from(t.model.document.differ.getChanges()),u=l[0];if(1!=l.length||"insert"!==u.type||"$text"!=u.name||1!=u.length)return;const h=u.position.parent;if(h.is("element","codeBlock"))return;if(h.is("element","listItem")&&"function"!=typeof i&&!["numberedList","bulletedList","todoList"].includes(i))return;if(o&&!0===o.value)return;const d=h.getChild(0),f=t.model.createRangeOn(d);if(!f.containsRange(c)&&!c.end.isEqual(f.end))return;const g=n.exec(d.data.substr(0,c.end.offset));g&&t.model.enqueueChange((e=>{const n=e.createPositionAt(h,0),i=e.createPositionAt(h,g[0].length),o=new ll(n,i);if(!1!==r({match:g})){e.remove(o);const n=t.model.document.selection.getFirstRange(),i=e.createRangeIn(h);!h.isEmpty||i.isEqual(n)||i.containsRange(n,!0)||e.remove(h)}o.detach(),t.model.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}))}))}function xk(t,e,n,i){let r,o;n instanceof RegExp?r=n:o=n,o=o||(t=>{let e;const n=[],i=[];for(;null!==(e=r.exec(t))&&!(e&&e.length<4);){let{index:t,1:r,2:o,3:a}=e;const s=r+o+a;t+=e[0].length-s.length;const c=[t,t+r.length],l=[t+r.length+o.length,t+r.length+o.length+a.length];n.push(c),n.push(l),i.push([t+r.length,t+r.length+o.length])}return{remove:n,format:i}}),t.model.document.on("change:data",((n,r)=>{if(r.isUndo||!r.isLocal||!e.isEnabled)return;const a=t.model,s=a.document.selection;if(!s.isCollapsed)return;const c=Array.from(a.document.differ.getChanges()),l=c[0];if(1!=c.length||"insert"!==l.type||"$text"!=l.name||1!=l.length)return;const u=s.focus,h=u.parent,{text:d,range:f}=function(t,e){let n=t.start;const i=Array.from(t.getItems()).reduce(((t,i)=>!i.is("$text")&&!i.is("$textProxy")||i.getAttribute("code")?(n=e.createPositionAfter(i),""):t+i.data),"");return{text:i,range:e.createRange(n,t.end)}}(a.createRange(a.createPositionAt(h,0),u),a),g=o(d),p=Ek(f.start,g.format,a),m=Ek(f.start,g.remove,a);p.length&&m.length&&a.enqueueChange((e=>{if(!1!==i(e,p)){for(const t of m.reverse())e.remove(t);a.enqueueChange((()=>{t.plugins.get("Delete").requestUndoOnBackspace()}))}}))}))}function Ek(t,e,n){return e.filter((t=>void 0!==t[0]&&void 0!==t[1])).map((e=>n.createRange(t.getShiftedBy(e[0]),t.getShiftedBy(e[1]))))}class Tk extends Oo{static get requires(){return[ik]}static get pluginName(){return"Autoformat"}afterInit(){const t=this.editor,e=this.editor.t;this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats(),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Revert autoformatting action"),keystroke:"Backspace"}]})}_addListAutoformats(){const t=this.editor.commands;t.get("bulletedList")&&Ak(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&Ak(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&Ak(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&Ak(this.editor,this,/^\[\s?x\s?\]\s$/,(()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")}))}_addBasicStylesAutoformats(){const t=this.editor.commands;if(t.get("bold")){const t=Sk(this.editor,"bold");xk(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),xk(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(t.get("italic")){const t=Sk(this.editor,"italic");xk(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),xk(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(t.get("code")){const t=Sk(this.editor,"code");xk(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(t.get("strikethrough")){const t=Sk(this.editor,"strikethrough");xk(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const t=this.editor.commands.get("heading");t&&t.modelElements.filter((t=>t.match(/^heading[1-6]$/))).forEach((e=>{const n=e[7],i=new RegExp(`^(#{${n}})\\s$`);Ak(this.editor,this,i,(()=>{if(!t.isEnabled||t.value===e)return!1;this.editor.execute("heading",{value:e})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Ak(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&Ak(t,this,/^```$/,(()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Ak(this.editor,this,/^---$/,"horizontalLine")}}function Sk(t,e){return(n,i)=>{if(!t.commands.get(e).isEnabled)return!1;const r=t.model.schema.getValidRanges(i,e);for(const t of r)n.setAttribute(e,!0,t);n.removeSelectionAttribute(e)}}class Dk extends Ro{attributeKey;constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,i=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(n.isCollapsed)i?t.setSelectionAttribute(this.attributeKey,!0):t.removeSelectionAttribute(this.attributeKey);else{const r=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of r)i?t.setAttribute(this.attributeKey,i,e):t.removeAttribute(this.attributeKey,e)}}))}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const t of n.getRanges())for(const n of t.getItems())if(e.checkAttribute(n,this.attributeKey))return n.hasAttribute(this.attributeKey);return!1}}const Ik="bold";class Bk extends Oo{static get pluginName(){return"BoldEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Ik}),t.model.schema.setAttributeProperties(Ik,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Ik,view:"strong",upcastAlso:["b",t=>{const e=t.getStyle("font-weight");return e&&("bold"==e||Number(e)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(Ik,new Dk(t,Ik)),t.keystrokes.set("CTRL+B",Ik),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Bold text"),keystroke:"CTRL+B"}]})}}function Mk({editor:t,commandName:e,plugin:n,icon:i,label:r,keystroke:o}){return a=>{const s=t.commands.get(e),c=new a(t.locale);return c.set({label:r,icon:i,keystroke:o,isToggleable:!0}),c.bind("isEnabled").to(s,"isEnabled"),c.bind("isOn").to(s,"value"),c instanceof Kf?c.set({role:"menuitemcheckbox"}):c.set({tooltip:!0}),n.listenTo(c,"execute",(()=>{t.execute(e),t.editing.view.focus()})),c}}const Pk="bold";class Lk extends Oo{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.locale.t,n=Mk({editor:t,commandName:Pk,plugin:this,icon:Ld.bold,label:e("Bold"),keystroke:"CTRL+B"});t.ui.componentFactory.add(Pk,(()=>n(bf))),t.ui.componentFactory.add("menuBar:"+Pk,(()=>n(Kf)))}}const Ok="code";class Nk extends Oo{static get pluginName(){return"CodeEditing"}static get requires(){return[sk]}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Ok}),t.model.schema.setAttributeProperties(Ok,{isFormatting:!0,copyOnEnter:!1}),t.conversion.attributeToElement({model:Ok,view:"code",upcastAlso:{styles:{"word-wrap":"break-word"}}}),t.commands.add(Ok,new Dk(t,Ok)),t.plugins.get(sk).registerAttribute(Ok),Ck(t,Ok,"code","ck-code_selected"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Move out of an inline code style"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}}var Rk=n(4199),Fk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Rk.A,Fk);Rk.A.locals;const jk="code";class $k extends Oo{static get pluginName(){return"CodeUI"}init(){const t=this.editor,e=t.locale.t,n=Mk({editor:t,commandName:jk,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 5.7 5.2 3.9v1.3l-5.6 4c-.1.2-.3.2-.5.2-.3-.1-.6-.7-.6-1l.3-.4 4.7-3.5L11.5 7l-.2-.2c-.1-.3-.1-.6 0-.8.2-.2.5-.4.8-.4a.8.8 0 0 1 .4.1zm-5.2 0L2 9.6v1.3l5.6 4c.1.2.3.2.5.2.3-.1.7-.7.6-1 0-.1 0-.3-.2-.4l-5-3.5L8.2 7l.2-.2c.1-.3.1-.6 0-.8-.2-.2-.5-.4-.8-.4a.8.8 0 0 0-.3.1z"/></svg>',label:e("Code")});t.ui.componentFactory.add(jk,(()=>n(bf))),t.ui.componentFactory.add("menuBar:"+jk,(()=>n(Kf)))}}const zk="italic";class Vk extends Oo{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:zk}),t.model.schema.setAttributeProperties(zk,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:zk,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(zk,new Dk(t,zk)),t.keystrokes.set("CTRL+I",zk),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Italic text"),keystroke:"CTRL+I"}]})}}const Hk="italic";class qk extends Oo{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.locale.t,n=Mk({editor:t,commandName:Hk,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",label:e("Italic")});t.ui.componentFactory.add(Hk,(()=>n(bf))),t.ui.componentFactory.add("menuBar:"+Hk,(()=>n(Kf)))}}const Uk="strikethrough";class Gk extends Oo{static get pluginName(){return"StrikethroughEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:Uk}),t.model.schema.setAttributeProperties(Uk,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Uk,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(Uk,new Dk(t,Uk)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Strikethrough text"),keystroke:"CTRL+SHIFT+X"}]})}}const Wk="strikethrough";class Kk extends Oo{static get pluginName(){return"StrikethroughUI"}init(){const t=this.editor,e=t.locale.t,n=Mk({editor:t,commandName:Wk,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',keystroke:"CTRL+SHIFT+X",label:e("Strikethrough")});t.ui.componentFactory.add(Wk,(()=>n(bf))),t.ui.componentFactory.add("menuBar:"+Wk,(()=>n(Kf)))}}const Yk="subscript";class Xk extends Oo{static get pluginName(){return"SubscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Yk}),t.model.schema.setAttributeProperties(Yk,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Yk,view:"sub",upcastAlso:[{styles:{"vertical-align":"sub"}}]}),t.commands.add(Yk,new Dk(t,Yk))}}const Zk="subscript";class Qk extends Oo{static get pluginName(){return"SubscriptUI"}init(){const t=this.editor,e=t.locale.t,n=Mk({editor:t,commandName:Zk,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82zm8.147 7.829h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309z"/></svg>',label:e("Subscript")});t.ui.componentFactory.add(Zk,(()=>n(bf))),t.ui.componentFactory.add("menuBar:"+Zk,(()=>n(Kf)))}}const Jk="superscript";class tv extends Oo{static get pluginName(){return"SuperscriptEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Jk}),t.model.schema.setAttributeProperties(Jk,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Jk,view:"sup",upcastAlso:[{styles:{"vertical-align":"super"}}]}),t.commands.add(Jk,new Dk(t,Jk))}}const ev="superscript";class nv extends Oo{static get pluginName(){return"SuperscriptUI"}init(){const t=this.editor,e=t.locale.t,n=Mk({editor:t,commandName:ev,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.677 8.678h2.549c.254 0 .447.05.58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393c-.105.108-.266.162-.48.162h-3.594c-.245 0-.435-.066-.572-.197a.621.621 0 0 1-.205-.463c0-.114.044-.265.132-.453a1.62 1.62 0 0 1 .288-.444c.433-.436.824-.81 1.172-1.122.348-.312.597-.517.747-.615.267-.183.49-.368.667-.553.177-.185.312-.375.405-.57.093-.194.139-.384.139-.57a1.008 1.008 0 0 0-.554-.917 1.197 1.197 0 0 0-.56-.133c-.426 0-.761.182-1.005.546a2.332 2.332 0 0 0-.164.39 1.609 1.609 0 0 1-.258.488c-.096.114-.237.17-.423.17a.558.558 0 0 1-.405-.156.568.568 0 0 1-.161-.427c0-.218.05-.446.151-.683.101-.238.252-.453.452-.646s.454-.349.762-.467a2.998 2.998 0 0 1 1.081-.178c.498 0 .923.076 1.274.228a1.916 1.916 0 0 1 1.004 1.032 1.984 1.984 0 0 1-.156 1.794c-.2.32-.405.572-.613.754-.208.182-.558.468-1.048.857-.49.39-.826.691-1.008.906a2.703 2.703 0 0 0-.24.309zM7.03 10.349l3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53l3.818 3.82z"/></svg>',label:e("Superscript")});t.ui.componentFactory.add(ev,(()=>n(bf))),t.ui.componentFactory.add("menuBar:"+ev,(()=>n(Kf)))}}const iv="underline";class rv extends Oo{static get pluginName(){return"UnderlineEditing"}init(){const t=this.editor,e=this.editor.t;t.model.schema.extend("$text",{allowAttributes:iv}),t.model.schema.setAttributeProperties(iv,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:iv,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(iv,new Dk(t,iv)),t.keystrokes.set("CTRL+U","underline"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Underline text"),keystroke:"CTRL+U"}]})}}const ov="underline";class av extends Oo{static get pluginName(){return"UnderlineUI"}init(){const t=this.editor,e=t.locale.t,n=Mk({editor:t,commandName:ov,plugin:this,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',label:e("Underline"),keystroke:"CTRL+U"});t.ui.componentFactory.add(ov,(()=>n(bf))),t.ui.componentFactory.add("menuBar:"+ov,(()=>n(Kf)))}}function*sv(t,e){for(const n of e)n&&t.getAttributeProperties(n[0]).copyOnEnter&&(yield n)}class cv extends Ro{execute(){this.editor.model.change((t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})}))}enterBlock(t){const e=this.editor.model,n=e.document.selection,i=e.schema,r=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(i.isLimit(a)||i.isLimit(s))return r||a!=s||e.deleteContent(n),!1;if(r){const e=sv(t.model.schema,n.getAttributes());return lv(t,o.start),t.setSelectionAttribute(e),!0}{const i=!(o.start.isAtStart&&o.end.isAtEnd),r=a==s;if(e.deleteContent(n,{leaveUnmerged:i}),i){if(r)return lv(t,n.focus),!0;t.setSelection(s,0)}}return!1}}function lv(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}const uv={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class hv extends Xs{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",((t,e)=>{n=e.shiftKey})),e.on("beforeinput",((i,r)=>{if(!this.isEnabled)return;let o=r.inputType;Jn.isSafari&&n&&"insertParagraph"==o&&(o="insertLineBreak");const a=r.domEvent,s=uv[o];if(!s)return;const c=new Xa(e,"enter",r.targetRanges[0]);e.fire(c,new Qs(t,a,{isSoft:s.isSoft})),c.stop.called&&i.stop()}))}observe(){}stopObserving(){}}class dv extends Oo{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document,i=this.editor.t;e.addObserver(hv),t.commands.add("enter",new cv(t)),this.listenTo(n,"enter",((i,r)=>{n.isComposing||r.preventDefault(),r.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:i("Insert a hard break (a new paragraph)"),keystroke:"Enter"}]})}}class fv extends Ro{execute(){const t=this.editor.model,e=t.document;t.change((n=>{!function(t,e,n){const i=n.isCollapsed,r=n.getFirstRange(),o=r.start.parent,a=r.end.parent,s=o==a;if(i){const i=sv(t.schema,n.getAttributes());gv(t,e,r.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(i)}else{const i=!(r.start.isAtStart&&r.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:i}),s?gv(t,e,n.focus):i&&e.setSelection(a,0)}}(t,n,e.selection),this.fire("afterExecute",{writer:n})}))}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;const n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;const i=e.getFirstRange(),r=i.start.parent,o=i.end.parent;if((pv(r,t)||pv(o,t))&&r!==o)return!1;return!0}(t.schema,e.selection)}}function gv(t,e,n){const i=e.createElement("softBreak");t.insertContent(i,n),e.setSelection(i,"after")}function pv(t,e){return!t.is("rootElement")&&(e.isLimit(t)||pv(t.parent,e))}class mv extends Oo{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,e=t.model.schema,n=t.conversion,i=t.editing.view,r=i.document,o=this.editor.t;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(t,{writer:e})=>e.createEmptyElement("br")}),i.addObserver(hv),t.commands.add("shiftEnter",new fv(t)),this.listenTo(r,"enter",((e,n)=>{r.isComposing||n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),i.scrollToTheSelection())}),{priority:"low"}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert a soft break (a <code>&lt;br&gt;</code> element)"),keystroke:"Shift+Enter"}]})}}class bv extends Ro{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,i=e.document.selection,r=Array.from(i.getSelectedBlocks()),o=void 0===t.forceValue?!this.value:t.forceValue;e.change((t=>{if(o){const e=r.filter((t=>wv(t)||vv(n,t)));this._applyQuote(t,e)}else this._removeQuote(t,r.filter(wv))}))}_getValue(){const t=xo(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!wv(t))}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=xo(t.getSelectedBlocks());return!!n&&vv(e,n)}_removeQuote(t,e){kv(t,e).reverse().forEach((e=>{if(e.start.isAtStart&&e.end.isAtEnd)return void t.unwrap(e.start.parent);if(e.start.isAtStart){const n=t.createPositionBefore(e.start.parent);return void t.move(e,n)}e.end.isAtEnd||t.split(e.end);const n=t.createPositionAfter(e.end.parent);t.move(e,n)}))}_applyQuote(t,e){const n=[];kv(t,e).reverse().forEach((e=>{let i=wv(e.start);i||(i=t.createElement("blockQuote"),t.wrap(e,i)),n.push(i)})),n.reverse().reduce(((e,n)=>e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n))}}function wv(t){return"blockQuote"==t.parent.name?t.parent:null}function kv(t,e){let n,i=0;const r=[];for(;i<e.length;){const o=e[i],a=e[i+1];n||(n=t.createPositionBefore(o)),a&&o.nextSibling==a||(r.push(t.createRange(n,t.createPositionAfter(o))),n=null),i++}return r}function vv(t,e){const n=t.checkChild(e.parent,"blockQuote"),i=t.checkChild(["$root","blockQuote"],e);return n&&i}class yv extends Oo{static get pluginName(){return"BlockQuoteEditing"}static get requires(){return[dv,ik]}init(){const t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new bv(t)),e.register("blockQuote",{inheritAllFrom:"$container"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer((n=>{const i=t.model.document.differ.getChanges();for(const t of i)if("insert"==t.type){const i=t.position.nodeAfter;if(!i)continue;if(i.is("element","blockQuote")&&i.isEmpty)return n.remove(i),!0;if(i.is("element","blockQuote")&&!e.checkChild(t.position,i))return n.unwrap(i),!0;if(i.is("element")){const t=n.createRangeIn(i);for(const i of t.getItems())if(i.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(i),i))return n.unwrap(i),!0}}else if("remove"==t.type){const e=t.position.parent;if(e.is("element","blockQuote")&&e.isEmpty)return n.remove(e),!0}return!1}));const n=this.editor.editing.view.document,i=t.model.document.selection,r=t.commands.get("blockQuote");this.listenTo(n,"enter",((e,n)=>{if(!i.isCollapsed||!r.value)return;i.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"}),this.listenTo(n,"delete",((e,n)=>{if("backward"!=n.direction||!i.isCollapsed||!r.value)return;const o=i.getLastPosition().parent;o.isEmpty&&!o.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}),{context:"blockquote"})}}var _v=n(8708),Cv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(_v.A,Cv);_v.A.locals;class Av extends Oo{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor;t.ui.componentFactory.add("blockQuote",(()=>{const t=this._createButton(bf);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:blockQuote",(()=>{const t=this._createButton(Kf);return t.set({role:"menuitemcheckbox"}),t}))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("blockQuote"),r=new t(e.locale),o=n.t;return r.set({label:o("Block quote"),icon:Ld.quote,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value"),this.listenTo(r,"execute",(()=>{e.execute("blockQuote"),e.editing.view.focus()})),r}}class xv extends Ro{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=xo(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Ev(e,t.schema)}execute(t={}){const e=this.editor.model,n=e.document,i=t.selection||n.selection;e.canEditAt(i)&&e.change((t=>{const n=i.getSelectedBlocks();for(const i of n)!i.is("element","paragraph")&&Ev(i,e.schema)&&t.rename(i,"paragraph")}))}}function Ev(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}class Tv extends Ro{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let i=t.position;e.canEditAt(i)&&e.change((t=>{if(i=this._findPositionToInsertParagraph(i,t),!i)return;const r=t.createElement("paragraph");n&&e.schema.setAllowedAttributes(r,n,t),e.insertContent(r,i),t.setSelection(r,"in")}))}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const i=n.schema.findAllowedParent(t,"paragraph");if(!i)return null;const r=t.parent,o=n.schema.checkChild(r,"$text");return r.isEmpty||o&&t.isAtEnd?n.createPositionAfter(r):!r.isEmpty&&o&&t.isAtStart?n.createPositionBefore(r):e.split(t,i).position}}class Sv extends Oo{static get pluginName(){return"Paragraph"}init(){const t=this.editor,e=t.model;t.commands.add("paragraph",new xv(t)),t.commands.add("insertParagraph",new Tv(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:(t,{writer:e})=>Sv.paragraphLikeElements.has(t.name)?t.isEmpty?null:e.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}static paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"])}class Dv extends Ro{modelElements;constructor(t,e){super(t),this.modelElements=e}refresh(){const t=xo(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((e=>Iv(t,e,this.editor.model.schema)))}execute(t){const e=this.editor.model,n=e.document,i=t.value;e.change((t=>{const r=Array.from(n.selection.getSelectedBlocks()).filter((t=>Iv(t,i,e.schema)));for(const e of r)e.is("element",i)||t.rename(e,i)}))}}function Iv(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}const Bv="paragraph";class Mv extends Oo{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[Sv]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const i of e)"paragraph"!==i.model&&(t.model.schema.register(i.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(i),n.push(i.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new Dv(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",((e,i)=>{const r=t.model.document.selection.getFirstPosition().parent;n.some((t=>r.is("element",t.model)))&&!r.is("element",Bv)&&0===r.childCount&&i.writer.rename(r,Bv)}))}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:mi.low+1})}}function Pv(t){const e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading 1"),"Heading 2":e("Heading 2"),"Heading 3":e("Heading 3"),"Heading 4":e("Heading 4"),"Heading 5":e("Heading 5"),"Heading 6":e("Heading 6")};return t.config.get("heading.options").map((t=>{const e=n[t.title];return e&&e!=t.title&&(t.title=e),t}))}var Lv=n(6269),Ov={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Lv.A,Ov);Lv.A.locals;class Nv extends Oo{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=Pv(t),i=e("Choose heading"),r=e("Heading");t.ui.componentFactory.add("heading",(e=>{const o={},a=new Ao,s=t.commands.get("heading"),c=t.commands.get("paragraph"),l=[s];for(const t of n){const e={type:"button",model:new pb({label:t.title,class:t.class,role:"menuitemradio",withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(c,"value"),e.model.set("commandName","paragraph"),l.push(c)):(e.model.bind("isOn").to(s,"value",(e=>e===t.model)),e.model.set({commandName:"heading",commandValue:t.model})),a.add(e),o[t.model]=t.title}const u=Ep(e);return Dp(u,a,{ariaLabel:r,role:"menu"}),u.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),u.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),u.bind("isEnabled").toMany(l,"isEnabled",((...t)=>t.some((t=>t)))),u.buttonView.bind("label").to(s,"value",c,"value",((t,e)=>{const n=e?"paragraph":t;return"boolean"==typeof n?i:o[n]?o[n]:i})),u.buttonView.bind("ariaLabel").to(s,"value",c,"value",((t,e)=>{const n=e?"paragraph":t;return"boolean"==typeof n?r:o[n]?`${o[n]}, ${r}`:r})),this.listenTo(u,"execute",(e=>{const{commandName:n,commandValue:i}=e.source;t.execute(n,i?{value:i}:void 0),t.editing.view.focus()})),u})),t.ui.componentFactory.add("menuBar:heading",(i=>{const r=new ew(i),o=t.commands.get("heading"),a=t.commands.get("paragraph"),s=[o],c=new nw(i);r.set({class:"ck-heading-dropdown"}),c.set({ariaLabel:e("Heading"),role:"menu"}),r.buttonView.set({label:e("Heading")}),r.panelView.children.add(c);for(const e of n){const n=new Um(i,r),l=new Kf(i);n.children.add(l),c.items.add(n),l.set({isToggleable:!0,label:e.title,role:"menuitemradio",class:e.class}),l.delegate("execute").to(r),l.on("execute",(()=>{const n="paragraph"===e.model?"paragraph":"heading";t.execute(n,{value:e.model}),t.editing.view.focus()})),"paragraph"===e.model?(l.bind("isOn").to(a,"value"),s.push(a)):l.bind("isOn").to(o,"value",(t=>t===e.model))}return r.bind("isEnabled").toMany(s,"isEnabled",((...t)=>t.some((t=>t)))),r}))}}const Rv=(()=>({heading1:Ld.heading1,heading2:Ld.heading2,heading3:Ld.heading3,heading4:Ld.heading4,heading5:Ld.heading5,heading6:Ld.heading6}))();class Fv extends Js{domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];constructor(t){super(t);const e=this.document;function n(t){return(n,i)=>{i.preventDefault();const r=i.dropRange?[i.dropRange]:null,o=new fi(e,t);e.fire(o,{dataTransfer:i.dataTransfer,method:n.name,targetRanges:r,target:i.target,domEvent:i.domEvent}),o.stop.called&&i.stopPropagation()}}this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"})}onDomEvent(t){const e="clipboardData"in t?t.clipboardData:t.dataTransfer,n="drop"==t.type||"paste"==t.type,i={dataTransfer:new Sc(e,{cacheFiles:n})};if("drop"==t.type||"dragover"==t.type){const e=hr(t);i.dropRange=e&&this.view.domConverter.domRangeToView(e)}this.fire(t.type,t,i)}}const jv=["figcaption","li"],$v=["ol","ul"];function zv(t){if(t.is("$text")||t.is("$textProxy"))return t.data;if(t.is("element","img")&&t.hasAttribute("alt"))return t.getAttribute("alt");if(t.is("element","br"))return"\n";let e="",n=null;for(const i of t.getChildren())e+=Vv(i,n)+zv(i),n=i;return e}function Vv(t,e){return e?t.is("element","li")&&!t.isEmpty&&t.getChild(0).is("containerElement")||$v.includes(t.name)&&$v.includes(e.name)?"\n\n":t.is("containerElement")||e.is("containerElement")?jv.includes(t.name)||jv.includes(e.name)?"\n":t.is("element")&&t.getCustomProperty("dataPipeline:transparentRendering")||e.is("element")&&e.getCustomProperty("dataPipeline:transparentRendering")?"":"\n\n":"":""}const Hv=function(t,e){return t&&eo(t,e,Se)};const qv=function(t,e,n,i){var r=n.length,o=r,a=!i;if(null==t)return!o;for(t=Object(t);r--;){var s=n[r];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++r<o;){var c=(s=n[r])[0],l=t[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in t))return!1}else{var h=new Ht;if(i)var d=i(l,u,c,t,e,h);if(!(void 0===d?yc(u,l,3,i,h):d))return!1}}return!0};const Uv=function(t){return t==t&&!a(t)};const Gv=function(t){for(var e=Se(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,Uv(r)]}return e};const Wv=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}};const Kv=function(t){var e=Gv(t);return 1==e.length&&e[0][2]?Wv(e[0][0],e[0][1]):function(n){return n===t||qv(n,t,e)}};const Yv=function(t,e){return null!=t&&e in Object(t)};const Xv=function(t,e,n){for(var i=-1,r=(e=_a(e,t)).length,o=!1;++i<r;){var a=Aa(e[i]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&ue(r)&&le(a,r)&&(ne(t)||ee(t))};const Zv=function(t,e){return null!=t&&Xv(t,e,Yv)};const Qv=function(t,e){return ha(t)&&Uv(e)?Wv(Aa(t),e):function(n){var i=Ia(n,t);return void 0===i&&i===e?Zv(n,t):yc(e,i,3)}};const Jv=function(t){return function(e){return null==e?void 0:e[t]}};const ty=function(t){return function(e){return xa(e,t)}};const ey=function(t){return ha(t)?Jv(Aa(t)):ty(t)};const ny=function(t){return"function"==typeof t?t:null==t?so:"object"==typeof t?ne(t)?Qv(t[0],t[1]):Kv(t):ey(t)};const iy=function(t,e){var n={};return e=ny(e,3),Hv(t,(function(t,i,r){Gt(n,i,e(t,i,r))})),n};class ry extends Oo{_markersToCopy=new Map;static get pluginName(){return"ClipboardMarkersUtils"}_registerMarkerToCopy(t,e){this._markersToCopy.set(t,e)}_copySelectedFragmentWithMarkers(t,e,n=t=>t.model.getSelectedContent(t.model.document.selection)){return this.editor.model.change((i=>{const r=i.model.document.selection;i.setSelection(e);const o=this._insertFakeMarkersIntoSelection(i,i.model.document.selection,t),a=n(i),s=this._removeFakeMarkersInsideElement(i,a);for(const[t,e]of Object.entries(o)){s[t]||=i.createRangeIn(a);for(const t of e)i.remove(t)}a.markers.clear();for(const[t,e]of Object.entries(s))a.markers.set(t,e);return i.setSelection(r),a}))}_pasteMarkersIntoTransformedElement(t,e){const n=this._getPasteMarkersFromRangeMap(t);return this.editor.model.change((t=>{const i=this._insertFakeMarkersElements(t,n),r=e(t),o=this._removeFakeMarkersInsideElement(t,r);for(const e of Object.values(i).flat())t.remove(e);for(const[e,n]of Object.entries(o))t.model.markers.has(e)||t.addMarker(e,{usingOperation:!0,affectsData:!0,range:n});return r}))}_pasteFragmentWithMarkers(t){const e=this._getPasteMarkersFromRangeMap(t.markers);t.markers.clear();for(const n of e)t.markers.set(n.name,n.range);return this.editor.model.insertContent(t)}_forceMarkersCopy(t,e,n={allowedActions:"all",copyPartiallySelected:!0,duplicateOnPaste:!0}){const i=this._markersToCopy.get(t);this._markersToCopy.set(t,n),e(),i?this._markersToCopy.set(t,i):this._markersToCopy.delete(t)}_isMarkerCopyable(t,e){const n=this._getMarkerClipboardConfig(t);if(!n)return!1;if(!e)return!0;const{allowedActions:i}=n;return"all"===i||i.includes(e)}_hasMarkerConfiguration(t){return!!this._getMarkerClipboardConfig(t)}_getMarkerClipboardConfig(t){const[e]=t.split(":");return this._markersToCopy.get(e)||null}_insertFakeMarkersIntoSelection(t,e,n){const i=this._getCopyableMarkersFromSelection(t,e,n);return this._insertFakeMarkersElements(t,i)}_getCopyableMarkersFromSelection(t,e,n){const i=Array.from(e.getRanges()),r=new Set(i.flatMap((e=>Array.from(t.model.markers.getMarkersIntersectingRange(e)))));return Array.from(r).filter((t=>{if(!this._isMarkerCopyable(t.name,n))return!1;const{copyPartiallySelected:e}=this._getMarkerClipboardConfig(t.name);if(!e){const e=t.getRange();return i.some((t=>t.containsRange(e,!0)))}return!0})).map((t=>({name:"dragstart"===n?this._getUniqueMarkerName(t.name):t.name,range:t.getRange()})))}_getPasteMarkersFromRangeMap(t,e=null){const{model:n}=this.editor;return(t instanceof Map?Array.from(t.entries()):Object.entries(t)).flatMap((([t,i])=>{if(!this._hasMarkerConfiguration(t))return[{name:t,range:i}];if(this._isMarkerCopyable(t,e)){const e=this._getMarkerClipboardConfig(t),r=n.markers.has(t)&&"$graveyard"===n.markers.get(t).getRange().root.rootName;return(e.duplicateOnPaste||r)&&(t=this._getUniqueMarkerName(t)),[{name:t,range:i}]}return[]}))}_insertFakeMarkersElements(t,e){const n={},i=e.flatMap((t=>{const{start:e,end:n}=t.range;return[{position:e,marker:t,type:"start"},{position:n,marker:t,type:"end"}]})).sort((({position:t},{position:e})=>t.isBefore(e)?1:-1));for(const{position:e,marker:r,type:o}of i){const i=t.createElement("$marker",{"data-name":r.name,"data-type":o});n[r.name]||(n[r.name]=[]),n[r.name].push(i),t.insert(i,e)}return n}_removeFakeMarkersInsideElement(t,e){const n=this._getAllFakeMarkersFromElement(t,e).reduce(((e,n)=>{const i=n.markerElement&&t.createPositionBefore(n.markerElement);let r=e[n.name],o=!1;if(r&&r.start&&r.end){this._getMarkerClipboardConfig(n.name).duplicateOnPaste?e[this._getUniqueMarkerName(n.name)]=e[n.name]:o=!0,r=null}return o||(e[n.name]={...r,[n.type]:i}),n.markerElement&&t.remove(n.markerElement),e}),{});return iy(n,(n=>new Yc(n.start||t.createPositionFromPath(e,[0]),n.end||t.createPositionAt(e,"end"))))}_getAllFakeMarkersFromElement(t,e){const n=Array.from(t.createRangeIn(e)).flatMap((({item:t})=>{if(!t.is("element","$marker"))return[];const e=t.getAttribute("data-name"),n=t.getAttribute("data-type");return[{markerElement:t,name:e,type:n}]})),i=[],r=[];for(const t of n){if("end"===t.type){n.some((e=>e.name===t.name&&"start"===e.type))||i.push({markerElement:null,name:t.name,type:"start"})}if("start"===t.type){n.some((e=>e.name===t.name&&"end"===e.type))||r.unshift({markerElement:null,name:t.name,type:"end"})}}return[...i,...n,...r]}_getUniqueMarkerName(t){const e=t.split(":"),n=pi().substring(1,6);return 3===e.length?`${e.slice(0,2).join(":")}:${n}`:`${e.join(":")}:${n}`}}class oy extends Oo{static get pluginName(){return"ClipboardPipeline"}static get requires(){return[ry]}init(){this.editor.editing.view.addObserver(Fv),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(t,e,n){const i=this.editor.plugins.get("ClipboardMarkersUtils");this.editor.model.enqueueChange({isUndoable:"cut"===n},(()=>{const r=i._copySelectedFragmentWithMarkers(n,e);this.fire("outputTransformation",{dataTransfer:t,content:r,method:n})}))}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=this.editor.plugins.get("ClipboardMarkersUtils");this.listenTo(i,"clipboardInput",((e,n)=>{"paste"!=n.method||t.model.canEditAt(t.model.document.selection)||e.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",((t,e)=>{const i=e.dataTransfer;let r;if(e.content)r=e.content;else{let t="";i.getData("text/html")?t=function(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((t,e)=>1==e.length?" ":e)).replace(/<!--[\s\S]*?-->/g,"")}(i.getData("text/html")):i.getData("text/plain")&&(((o=(o=i.getData("text/plain")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||o.includes("<br>"))&&(o=`<p>${o}</p>`),t=o),r=this.editor.data.htmlProcessor.toView(t)}var o;const a=new fi(this,"inputTransformation");this.fire(a,{content:r,dataTransfer:i,targetRanges:e.targetRanges,method:e.method}),a.stop.called&&t.stop(),n.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",((t,n)=>{if(n.content.isEmpty)return;const i=this.editor.data.toModel(n.content,"$clipboardHolder");0!=i.childCount&&(t.stop(),e.change((()=>{this.fire("contentInsertion",{content:i,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges})})))}),{priority:"low"}),this.listenTo(this,"contentInsertion",((t,e)=>{e.resultRange=r._pasteFragmentWithMarkers(e.content)}),{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,i=(t,n)=>{const i=n.dataTransfer;n.preventDefault(),this._fireOutputTransformationEvent(i,e.selection,t.name)};this.listenTo(n,"copy",i,{priority:"low"}),this.listenTo(n,"cut",((e,n)=>{t.model.canEditAt(t.model.document.selection)?i(e,n):n.preventDefault()}),{priority:"low"}),this.listenTo(this,"outputTransformation",((e,i)=>{const r=t.data.toView(i.content);n.fire("clipboardOutput",{dataTransfer:i.dataTransfer,content:r,method:i.method})}),{priority:"low"}),this.listenTo(n,"clipboardOutput",((n,i)=>{i.content.isEmpty||(i.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",zv(i.content))),"cut"==i.method&&t.model.deleteContent(e.selection)}),{priority:"low"})}}class ay extends(Si()){_stack=[];add(t,e){const n=this._stack,i=n[0];this._insertDescriptor(t);const r=n[0];i===r||sy(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}remove(t,e){const n=this._stack,i=n[0];this._removeDescriptor(t);const r=n[0];i===r||sy(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t.id));if(sy(t,e[n]))return;n>-1&&e.splice(n,1);let i=0;for(;e[i]&&cy(e[i],t);)i++;e.splice(i,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex((e=>e.id===t));n>-1&&e.splice(n,1)}}function sy(t,e){return t&&e&&t.priority==e.priority&&ly(t.classes)==ly(e.classes)}function cy(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&ly(t.classes)>ly(e.classes)}function ly(t){return Array.isArray(t)?t.sort().join(","):t}const uy='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',hy="ck-widget_selected";function dy(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function fy(t,e,n={}){if(!t.is("containerElement"))throw new wi("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass("ck-widget",t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=vy,e.setCustomProperty("widgetLabel",[],t),n.label&&function(t,e){const n=t.getCustomProperty("widgetLabel");n.push(e)}(t,n.label),n.hasSelectionHandle&&function(t,e){const n=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(t){const e=this.toDomElement(t),n=new ff;return n.set("content",uy),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),my(t,e),t}function gy(t,e,n){if(e.classes&&n.addClass(Jr(e.classes),t),e.attributes)for(const i in e.attributes)n.setAttribute(i,e.attributes[i],t)}function py(t,e,n){if(e.classes&&n.removeClass(Jr(e.classes),t),e.attributes)for(const i in e.attributes)n.removeAttribute(i,t)}function my(t,e,n=gy,i=py){const r=new ay;r.on("change:top",((e,r)=>{r.oldDescriptor&&i(t,r.oldDescriptor,r.writer),r.newDescriptor&&n(t,r.newDescriptor,r.writer)}));e.setCustomProperty("addHighlight",((t,e,n)=>r.add(e,n)),t),e.setCustomProperty("removeHighlight",((t,e,n)=>r.remove(e,n)),t)}function by(t,e,n={}){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("role","textbox",t),e.setAttribute("tabindex","-1",t),n.label&&e.setAttribute("aria-label",n.label,t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",((n,i,r)=>{e.setAttribute("contenteditable",r?"false":"true",t)})),t.on("change:isFocused",((n,i,r)=>{r?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),my(t,e),t}function wy(t,e){const n=t.getSelectedElement();if(n){const i=Ay(t);if(i)return e.createRange(e.createPositionAt(n,i))}return e.schema.findOptimalInsertionRange(t)}function ky(t,e){return(n,i)=>{const{mapper:r,viewPosition:o}=i,a=r.findMappedViewAncestor(o);if(!e(a))return;const s=r.toModelElement(a);i.modelPosition=t.createPositionAt(s,o.isAtStart?"before":"after")}}function vy(){return null}function yy(t){const e=t=>{const{width:e,paddingLeft:n,paddingRight:i}=t.ownerDocument.defaultView.getComputedStyle(t);return parseFloat(e)-(parseFloat(n)||0)-(parseFloat(i)||0)},n=t.parentElement;if(!n)return 0;let i=e(n);let r=0,o=n;for(;isNaN(i);){if(o=o.parentElement,++r>5)return 0;i=e(o)}return i}const _y="widget-type-around";function Cy(t,e,n){return!!t&&dy(t)&&!n.isInline(e)}function Ay(t){return t.getAttribute(_y)}var xy=n(8508),Ey={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(xy.A,Ey);xy.A.locals;const Ty=["before","after"],Sy=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,Dy="ck-widget__type-around_disabled";class Iy extends Oo{_currentFakeCaretModelElement=null;static get pluginName(){return"WidgetTypeAround"}static get requires(){return[dv,ik]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",((n,i,r)=>{e.change((t=>{for(const n of e.document.roots)r?t.removeClass(Dy,n):t.addClass(Dy,n)})),r||t.model.change((t=>{t.removeSelectionAttribute(_y)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,i=n.editing.view,r=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:r}),i.focus(),i.scrollToTheSelection()}_listenToIfEnabled(t,e,n,i){this.listenTo(t,e,((...t)=>{this.isEnabled&&n(...t)}),i)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=Ay(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",((t,r,o)=>{const a=o.mapper.toViewElement(r.item);if(a&&Cy(a,r.item,e)){!function(t,e,n){const i=t.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(t){const n=this.toDomElement(t);return function(t,e){for(const n of Ty){const i=new Nd({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${n}`],title:e[n],"aria-hidden":"true"},children:[t.ownerDocument.importNode(Sy,!0)]});t.appendChild(i.render())}}(n,e),function(t){const e=new Nd({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),i)}(o.writer,i,a);a.getCustomProperty("widgetLabel").push((()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))}}),{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,i=e.schema,r=t.editing.view;function o(t){return`ck-widget_type-around_show-fake-caret_${t}`}this._listenToIfEnabled(r.document,"arrowKey",((t,e)=>{this._handleArrowKeyPress(t,e)}),{context:[dy,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",((e,n)=>{n.directChange&&t.model.change((t=>{t.removeSelectionAttribute(_y)}))})),this._listenToIfEnabled(e.document,"change:data",(()=>{const e=n.getSelectedElement();if(e){if(Cy(t.editing.mapper.toViewElement(e),e,i))return}t.model.change((t=>{t.removeSelectionAttribute(_y)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",((t,e,n)=>{const r=n.writer;if(this._currentFakeCaretModelElement){const t=n.mapper.toViewElement(this._currentFakeCaretModelElement);t&&(r.removeClass(Ty.map(o),t),this._currentFakeCaretModelElement=null)}const a=e.selection.getSelectedElement();if(!a)return;const s=n.mapper.toViewElement(a);if(!Cy(s,a,i))return;const c=Ay(e.selection);c&&(r.addClass(o(c),s),this._currentFakeCaretModelElement=a)})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",((e,n,i)=>{i||t.model.change((t=>{t.removeSelectionAttribute(_y)}))}))}_handleArrowKeyPress(t,e){const n=this.editor,i=n.model,r=i.document.selection,o=i.schema,a=n.editing.view,s=function(t,e){const n=Zr(t,e);return"down"===n||"right"===n}(e.keyCode,n.locale.contentLanguageDirection),c=a.document.selection.getSelectedElement();let l;Cy(c,n.editing.mapper.toModelElement(c),o)?l=this._handleArrowKeyPressOnSelectedWidget(s):r.isCollapsed?l=this._handleArrowKeyPressWhenSelectionNextToAWidget(s):e.shiftKey||(l=this._handleArrowKeyPressWhenNonCollapsedSelection(s)),l&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=Ay(e.document.selection);return e.change((e=>{if(!n)return e.setSelectionAttribute(_y,t?"after":"before"),!0;if(!(n===(t?"after":"before")))return e.removeSelectionAttribute(_y),!0;return!1}))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,i=n.schema,r=e.plugins.get("Widget"),o=r._getObjectElementNextToSelection(t);return!!Cy(e.editing.mapper.toViewElement(o),o,i)&&(n.change((e=>{r._setSelectionOverElement(o),e.setSelectionAttribute(_y,t?"before":"after")})),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,i=n.schema,r=e.editing.mapper,o=n.document.selection,a=t?o.getLastPosition().nodeBefore:o.getFirstPosition().nodeAfter;return!!Cy(r.toViewElement(a),a,i)&&(n.change((e=>{e.setSelection(a,"on"),e.setSelectionAttribute(_y,t?"after":"before")})),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",((n,i)=>{const r=i.domTarget.closest(".ck-widget__type-around__button");if(!r)return;const o=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(r),a=function(t,e){const n=t.closest(".ck-widget");return e.mapDomToView(n)}(r,e.domConverter),s=t.editing.mapper.toModelElement(a);this._insertParagraph(s,o),i.preventDefault(),n.stop()}))}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",((n,i)=>{if("atTarget"!=n.eventPhase)return;const r=e.getSelectedElement(),o=t.editing.mapper.toViewElement(r),a=t.model.schema;let s;this._insertParagraphAccordingToFakeCaretPosition()?s=!0:Cy(o,r,a)&&(this._insertParagraph(r,i.isSoft?"before":"after"),s=!0),s&&(i.preventDefault(),n.stop())}),{context:dy})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",((e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)}),{priority:"high"}),Jn.isAndroid?this._listenToIfEnabled(t,"keydown",((t,e)=>{229==e.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()})):this._listenToIfEnabled(t,"compositionstart",(()=>{this._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,e=t.editing.view,n=t.model,i=n.schema;this._listenToIfEnabled(e.document,"delete",((e,r)=>{if("atTarget"!=e.eventPhase)return;const o=Ay(n.document.selection);if(!o)return;const a=r.direction,s=n.document.selection.getSelectedElement(),c="forward"==a;if("before"===o===c)t.execute("delete",{selection:n.createSelection(s,"on")});else{const e=i.getNearestSelectionRange(n.createPositionAt(s,o),a);if(e)if(e.isCollapsed){const r=n.createSelection(e.start);if(n.modifySelection(r,{direction:a}),r.focus.isEqual(e.start)){const t=function(t,e){let n=e;for(const i of e.getAncestors({parentFirst:!0})){if(i.childCount>1||t.isLimit(i))break;n=i}return n}(i,e.start.parent);n.deleteContent(n.createSelection(t,"on"),{doNotAutoparagraph:!0})}else n.change((n=>{n.setSelection(e),t.execute(c?"deleteForward":"delete")}))}else n.change((n=>{n.setSelection(e),t.execute(c?"deleteForward":"delete")}))}r.preventDefault(),e.stop()}),{context:dy})}_enableInsertContentIntegration(){const t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",((t,[i,r])=>{if(r&&!r.is("documentSelection"))return;const o=Ay(n);return o?(t.stop(),e.change((t=>{const r=n.getSelectedElement(),a=e.createPositionAt(r,o),s=t.createSelection(a),c=e.insertContent(i,s);return t.setSelection(s),c}))):void 0}),{priority:"high"})}_enableInsertObjectIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",((t,n)=>{const[,i,r={}]=n;if(i&&!i.is("documentSelection"))return;const o=Ay(e);o&&(r.findOptimalPosition=o,n[3]=r)}),{priority:"high"})}_enableDeleteContentIntegration(){const t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",((t,[n])=>{if(n&&!n.is("documentSelection"))return;Ay(e)&&t.stop()}),{priority:"high"})}}function By(t){const e=t.model;return(n,i)=>{const r=i.keyCode==Gr.arrowup,o=i.keyCode==Gr.arrowdown,a=i.shiftKey,s=e.document.selection;if(!r&&!o)return;const c=o;if(a&&function(t,e){return!t.isCollapsed&&t.isBackward==e}(s,c))return;const l=function(t,e,n){const i=t.model;if(n){const t=e.isCollapsed?e.focus:e.getLastPosition(),n=My(i,t,"forward");if(!n)return null;const r=i.createRange(t,n),o=Py(i.schema,r,"backward");return o?i.createRange(t,o):null}{const t=e.isCollapsed?e.focus:e.getFirstPosition(),n=My(i,t,"backward");if(!n)return null;const r=i.createRange(n,t),o=Py(i.schema,r,"forward");return o?i.createRange(o,t):null}}(t,s,c);if(l){if(l.isCollapsed){if(s.isCollapsed)return;if(a)return}(l.isCollapsed||function(t,e,n){const i=t.model,r=t.view.domConverter;if(n){const t=i.createSelection(e.start);i.modifySelection(t),t.focus.isAtEnd||e.start.isEqual(t.focus)||(e=i.createRange(t.focus,e.end))}const o=t.mapper.toViewRange(e),a=r.viewRangeToDom(o),s=mr.getDomRangeRects(a);let c;for(const t of s)if(void 0!==c){if(Math.round(t.top)>=c)return!1;c=Math.max(c,Math.round(t.bottom))}else c=Math.round(t.bottom);return!0}(t,l,c))&&(e.change((t=>{const n=c?l.end:l.start;if(a){const i=e.createSelection(s.anchor);i.setFocus(n),t.setSelection(i)}else t.setSelection(n)})),n.stop(),i.preventDefault(),i.stopPropagation())}}}function My(t,e,n){const i=t.schema,r=t.createRangeIn(e.root),o="forward"==n?"elementStart":"elementEnd";for(const{previousPosition:t,item:a,type:s}of r.getWalker({startPosition:e,direction:n})){if(i.isLimit(a)&&!i.isInline(a))return t;if(s==o&&i.isBlock(a))return null}return null}function Py(t,e,n){const i="backward"==n?e.end:e.start;if(t.checkChild(i,"$text"))return i;for(const{nextPosition:i}of e.getWalker({direction:n}))if(t.checkChild(i,"$text"))return i;return null}var Ly=n(695),Oy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Ly.A,Oy);Ly.A.locals;class Ny extends Oo{_previouslySelected=new Set;static get pluginName(){return"Widget"}static get requires(){return[Iy,ik]}init(){const t=this.editor,e=t.editing.view,n=e.document,i=t.t;this.editor.editing.downcastDispatcher.on("selection",((e,n,i)=>{const r=i.writer,o=n.selection;if(o.isCollapsed)return;const a=o.getSelectedElement();if(!a)return;const s=t.editing.mapper.toViewElement(a);var c;dy(s)&&(i.consumable.consume(o,"selection")&&r.setSelection(r.createRangeOn(s),{fake:!0,label:(c=s,c.getCustomProperty("widgetLabel").reduce(((t,e)=>"function"==typeof e?t?t+". "+e():e():t?t+". "+e:e),""))}))})),this.editor.editing.downcastDispatcher.on("selection",((t,e,n)=>{this._clearPreviouslySelectedWidgets(n.writer);const i=n.writer,r=i.document.selection;let o=null;for(const t of r.getRanges())for(const e of t){const t=e.item;dy(t)&&!Ry(t,o)&&(i.addClass(hy,t),this._previouslySelected.add(t),o=t)}}),{priority:"low"}),e.addObserver(Fh),this.listenTo(n,"mousedown",((...t)=>this._onMousedown(...t))),this.listenTo(n,"arrowKey",((...t)=>{this._handleSelectionChangeOnArrowKeyPress(...t)}),{context:[dy,"$text"]}),this.listenTo(n,"arrowKey",((...t)=>{this._preventDefaultOnArrowKeyPress(...t)}),{context:"$root"}),this.listenTo(n,"arrowKey",By(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",((t,e)=>{this._handleDelete("forward"==e.direction)&&(e.preventDefault(),t.stop())}),{context:"$root"}),this.listenTo(n,"tab",((t,e)=>{"atTarget"==t.eventPhase&&(e.shiftKey||this._selectFirstNestedEditable()&&(e.preventDefault(),t.stop()))}),{context:dy,priority:"low"}),this.listenTo(n,"tab",((t,e)=>{e.shiftKey&&this._selectAncestorWidget()&&(e.preventDefault(),t.stop())}),{priority:"low"}),this.listenTo(n,"keydown",((t,e)=>{e.keystroke==Gr.esc&&this._selectAncestorWidget()&&(e.preventDefault(),t.stop())}),{priority:"low"}),t.accessibility.addKeystrokeInfoGroup({id:"widget",label:i("Keystrokes that can be used when a widget is selected (for example: image, table, etc.)"),keystrokes:[{label:i("Move focus from an editable area back to the parent widget"),keystroke:"Esc"},{label:i("Insert a new paragraph directly after a widget"),keystroke:"Enter"},{label:i("Insert a new paragraph directly before a widget"),keystroke:"Shift+Enter"},{label:i("Move the caret to allow typing directly before a widget"),keystroke:[["arrowup"],["arrowleft"]]},{label:i("Move the caret to allow typing directly after a widget"),keystroke:[["arrowdown"],["arrowright"]]}]})}_onMousedown(t,e){const n=this.editor,i=n.editing.view,r=i.document;let o=e.target;if(!o)return;if(e.domEvent.detail>=3)return void(this._selectBlockContent(o)&&e.preventDefault());if(!dy(o)){const t=function(t){let e=t;for(;e;){if(e.is("editableElement")||dy(e))return e;e=e.parent}return null}(o);if(!t)return;if(dy(t))o=t;else{const t=function(t,e){const n=hr(e.domEvent);let i=null;i=n?t.domConverter.domRangeToView(n):t.createRange(t.createPositionAt(e.target,0));if(!i)return null;const r=i.start;if(!r.parent)return null;let o=r.parent;r.parent.is("editableElement")&&(r.isAtEnd&&r.nodeBefore?o=r.nodeBefore:r.isAtStart&&r.nodeAfter&&(o=r.nodeAfter));if(o.is("$text"))return o.parent;return o}(i,e);if(!t||!dy(t))return;o=t}}Jn.isAndroid&&e.preventDefault(),r.isFocused||i.focus();const a=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(a)}_selectBlockContent(t){const e=this.editor,n=e.model,i=e.editing.mapper,r=n.schema,o=i.findMappedViewAncestor(this.editor.editing.view.createPositionAt(t,0)),a=function(t,e){for(const n of t.getAncestors({includeSelf:!0,parentFirst:!0})){if(e.checkChild(n,"$text"))return n;if(e.isLimit(n)&&!e.isObject(n))break}return null}(i.toModelElement(o),n.schema);return!!a&&(n.change((t=>{const e=r.isLimit(a)?null:function(t,e){const n=new zc({startPosition:t});for(const{item:t}of n){if(e.isLimit(t)||!t.is("element"))return null;if(e.checkChild(t,"$text"))return t}return null}(t.createPositionAfter(a),r),n=t.createPositionAt(a,0),i=e?t.createPositionAt(e,0):t.createPositionAt(a,"end");t.setSelection(t.createRange(n,i))})),!0)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,i=this.editor.model,r=i.schema,o=i.document.selection,a=o.getSelectedElement(),s=Zr(n,this.editor.locale.contentLanguageDirection),c="down"==s||"right"==s,l="up"==s||"down"==s;if(a&&r.isObject(a)){const n=c?o.getLastPosition():o.getFirstPosition(),a=r.getNearestSelectionRange(n,c?"forward":"backward");return void(a&&(i.change((t=>{t.setSelection(a)})),e.preventDefault(),t.stop()))}if(!o.isCollapsed&&!e.shiftKey){const n=o.getFirstPosition(),a=o.getLastPosition(),s=n.nodeAfter,l=a.nodeBefore;return void((s&&r.isObject(s)||l&&r.isObject(l))&&(i.change((t=>{t.setSelection(c?a:n)})),e.preventDefault(),t.stop()))}if(!o.isCollapsed)return;const u=this._getObjectElementNextToSelection(c);if(u&&r.isObject(u)){if(r.isInline(u)&&l)return;this._setSelectionOverElement(u),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,i=n.schema,r=n.document.selection.getSelectedElement();r&&i.isObject(r)&&(e.preventDefault(),t.stop())}_handleDelete(t){const e=this.editor.model.document.selection;if(!this.editor.model.canEditAt(e))return;if(!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change((t=>{let i=e.anchor.parent;for(;i.isEmpty;){const e=i;i=e.parent,t.remove(e)}this._setSelectionOverElement(n)})),!0):void 0}_setSelectionOverElement(t){this.editor.model.change((e=>{e.setSelection(e.createRangeOn(t))}))}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,i=e.document.selection,r=e.createSelection(i);if(e.modifySelection(r,{direction:t?"forward":"backward"}),r.isEqual(i))return null;const o=t?r.focus.nodeBefore:r.focus.nodeAfter;return o&&n.isObject(o)?o:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(hy,e);this._previouslySelected.clear()}_selectFirstNestedEditable(){const t=this.editor,e=this.editor.editing.view.document;for(const n of e.selection.getFirstRange().getItems())if(n.is("editableElement")){const e=t.editing.mapper.toModelElement(n);if(!e)continue;const i=t.model.createPositionAt(e,0),r=t.model.schema.getNearestSelectionRange(i,"forward");return t.model.change((t=>{t.setSelection(r)})),!0}return!1}_selectAncestorWidget(){const t=this.editor,e=t.editing.mapper,n=t.editing.view.document.selection.getFirstPosition().parent,i=(n.is("$text")?n.parent:n).findAncestor(dy);if(!i)return!1;const r=e.toModelElement(i);return!!r&&(t.model.change((t=>{t.setSelection(r,"on")})),!0)}}function Ry(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}class Fy extends Oo{_toolbarDefinitions=new Map;_balloon;static get requires(){return[yb]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",(e=>{(function(t){const e=t.getSelectedElement();return!(!e||!dy(e))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(()=>{this._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(()=>{this._updateToolbarsVisibility()}),{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:i,balloonClassName:r="ck-toolbar-container"}){if(!n.length)return void ki("widget-toolbar-no-items",{toolbarId:t});const o=this.editor,a=o.t,s=new pp(o.locale);if(s.ariaLabel=e||a("Widget toolbar"),this._toolbarDefinitions.has(t))throw new wi("widget-toolbar-duplicated",this,{toolbarId:t});const c={view:s,getRelatedElement:i,balloonClassName:r,itemsConfig:n,initialized:!1};o.ui.addToolbar(s,{isContextual:!0,beforeFocus:()=>{const t=i(o.editing.view.document.selection);t&&this._showToolbar(c,t)},afterBlur:()=>{this._hideToolbar(c)}}),this._toolbarDefinitions.set(t,c)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const i of this._toolbarDefinitions.values()){const r=i.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&r)if(this.editor.ui.focusTracker.isFocused){const o=r.getAncestors().length;o>t&&(t=o,e=r,n=i)}else this._isToolbarVisible(i)&&this._hideToolbar(i);else this._isToolbarInBalloon(i)&&this._hideToolbar(i)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?jy(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:$y(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(()=>{for(const t of this._toolbarDefinitions.values())if(this._isToolbarVisible(t)){const e=t.getRelatedElement(this.editor.editing.view.document.selection);jy(this.editor,e)}})))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function jy(t,e){const n=t.plugins.get("ContextualBalloon"),i=$y(t,e);n.updatePosition(i)}function $y(t,e){const n=t.editing.view,i=ip.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}class zy extends(Vi()){_referenceCoordinates;_options;_originalWidth;_originalHeight;_originalWidthPercents;_aspectRatio;constructor(t){super(),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}get originalWidth(){return this._originalWidth}get originalHeight(){return this._originalHeight}get originalWidthPercents(){return this._originalWidthPercents}get aspectRatio(){return this._aspectRatio}begin(t,e,n){const i=new mr(e);this.activeHandlePosition=function(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const n of e)if(t.classList.contains(Vy(n)))return n}(t),this._referenceCoordinates=function(t,e){const n=new mr(t),i=e.split("-"),r={x:"right"==i[1]?n.right:n.left,y:"bottom"==i[0]?n.bottom:n.top};return r.x+=t.ownerDocument.defaultView.scrollX,r.y+=t.ownerDocument.defaultView.scrollY,r}(e,function(t){const e=t.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return`${n[e[0]]}-${n[e[1]]}`}(this.activeHandlePosition)),this._originalWidth=i.width,this._originalHeight=i.height,this._aspectRatio=i.width/i.height;const r=n.style.width;r&&r.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(r):this._originalWidthPercents=function(t,e=new mr(t)){const n=yy(t);return n?e.width/n*100:0}(n,i)}update(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}function Vy(t){return`ck-widget__resizer__handle-${t}`}class Hy extends af{constructor(){super();const t=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",t.to("_viewPosition",(t=>t?`ck-orientation-${t}`:""))],style:{display:t.if("_isVisible","none",(t=>!t))}},children:[{text:t.to("_label")}]})}_bindToState(t,e){this.bind("_isVisible").to(e,"proposedWidth",e,"proposedHeight",((t,e)=>null!==t&&null!==e)),this.bind("_label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",((e,n,i)=>"px"===t.unit?`${e}×${n}`:`${i}%`)),this.bind("_viewPosition").to(e,"activeHandlePosition",e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",((t,e,n)=>e<50||n<50?"above-center":t))}_dismiss(){this.unbind(),this._isVisible=!1}}class qy extends(Vi()){_state;_sizeView;_options;_viewResizerWrapper=null;_initialViewWidth;constructor(t){super(),this._options=t,this.set("isEnabled",!0),this.set("isSelected",!1),this.bind("isVisible").to(this,"isEnabled",this,"isSelected",((t,e)=>t&&e)),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(t=>{this.state.proposedWidth||this.state.proposedWidthPercents||(this._cleanup(),t.stop())}),{priority:"high"})}get state(){return this._state}show(){this._options.editor.editing.view.change((t=>{t.removeClass("ck-hidden",this._viewResizerWrapper)}))}hide(){this._options.editor.editing.view.change((t=>{t.addClass("ck-hidden",this._viewResizerWrapper)}))}attach(){const t=this,e=this._options.viewElement;this._options.editor.editing.view.change((n=>{const i=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){const n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),n}));n.insert(n.createPositionAt(e,"end"),i),n.addClass("ck-widget_with-resizer",e),this._viewResizerWrapper=i,this.isVisible||this.hide()})),this.on("change:isVisible",(()=>{this.isVisible?(this.show(),this.redraw()):this.hide()}))}begin(t){this._state=new zy(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost())}updateSize(t){const e=this._proposeNewSize(t);this._options.editor.editing.view.change((t=>{const n=this._options.unit||"%",i=("%"===n?e.widthPercents:e.width)+n;t.setStyle("width",i,this._options.viewElement)}));const n=this._getHandleHost(),i=new mr(n),r=Math.round(i.width),o=Math.round(i.height),a=new mr(n);e.width=Math.round(a.width),e.height=Math.round(a.height),this.redraw(i),this.state.update({...e,handleHostWidth:r,handleHostHeight:o})}commit(){const t=this._options.unit||"%",e=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((()=>{this._cleanup(),this._options.onCommit(e)}))}cancel(){this._cleanup()}destroy(){this.cancel()}redraw(t){const e=this._domResizerWrapper;if(!((n=e)&&n.ownerDocument&&n.ownerDocument.contains(n)))return;var n;const i=e.parentElement,r=this._getHandleHost(),o=this._viewResizerWrapper,a=[o.getStyle("width"),o.getStyle("height"),o.getStyle("left"),o.getStyle("top")];let s;if(i.isSameNode(r)){const e=t||new mr(r);s=[e.width+"px",e.height+"px",void 0,void 0]}else s=[r.offsetWidth+"px",r.offsetHeight+"px",r.offsetLeft+"px",r.offsetTop+"px"];"same"!==Yi(a,s)&&this._options.editor.editing.view.change((t=>{t.setStyle({width:s[0],height:s[1],left:s[2],top:s[3]},o)}))}containsHandle(t){return this._domResizerWrapper.contains(t)}static isResizeHandle(t){return t.classList.contains("ck-widget__resizer__handle")}_cleanup(){this._sizeView._dismiss();this._options.editor.editing.view.change((t=>{t.setStyle("width",this._initialViewWidth,this._options.viewElement)}))}_proposeNewSize(t){const e=this.state,n={x:(i=t).pageX,y:i.pageY};var i;const r=!this._options.isCentered||this._options.isCentered(this),o={x:e._referenceCoordinates.x-(n.x+e.originalWidth),y:n.y-e.originalHeight-e._referenceCoordinates.y};r&&e.activeHandlePosition.endsWith("-right")&&(o.x=n.x-(e._referenceCoordinates.x+e.originalWidth)),r&&(o.x*=2);let a=Math.abs(e.originalWidth+o.x),s=Math.abs(e.originalHeight+o.y);return"width"==(a/e.aspectRatio>s?"width":"height")?s=a/e.aspectRatio:a=s*e.aspectRatio,{width:Math.round(a),height:Math.round(s),widthPercents:Math.min(Math.round(e.originalWidthPercents/e.originalWidth*a*100)/100,100)}}_getResizeHost(){const t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}_getHandleHost(){const t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}get _domResizerWrapper(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}_appendHandles(t){const e=["top-left","top-right","bottom-right","bottom-left"];for(const i of e)t.appendChild(new Nd({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(n=i,`ck-widget__resizer__handle-${n}`)}}).render());var n}_appendSizeUI(t){this._sizeView=new Hy,this._sizeView.render(),t.appendChild(this._sizeView.element)}}var Uy=n(4095),Gy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Uy.A,Gy);Uy.A.locals;class Wy extends Oo{_resizers=new Map;_observer;_redrawSelectedResizerThrottled;static get pluginName(){return"WidgetResize"}init(){const t=this.editor.editing,e=Xn.window.document;this.set("selectedResizer",null),this.set("_activeResizer",null),t.view.addObserver(Fh),this._observer=new(or()),this.listenTo(t.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(e,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(e,"mouseup",this._mouseUpListener.bind(this)),this._redrawSelectedResizerThrottled=O((()=>this.redrawSelectedResizer()),200),this.editor.ui.on("update",this._redrawSelectedResizerThrottled),this.editor.model.document.on("change",(()=>{for(const[t,e]of this._resizers)t.isAttached()||(this._resizers.delete(t),e.destroy())}),{priority:"lowest"}),this._observer.listenTo(Xn.window,"resize",this._redrawSelectedResizerThrottled);const n=this.editor.editing.view.document.selection;n.on("change",(()=>{const t=n.getSelectedElement(),e=this.getResizerByViewElement(t)||null;e?this.select(e):this.deselect()}))}redrawSelectedResizer(){this.selectedResizer&&this.selectedResizer.isVisible&&this.selectedResizer.redraw()}destroy(){super.destroy(),this._observer.stopListening();for(const t of this._resizers.values())t.destroy();this._redrawSelectedResizerThrottled.cancel()}select(t){this.deselect(),this.selectedResizer=t,this.selectedResizer.isSelected=!0}deselect(){this.selectedResizer&&(this.selectedResizer.isSelected=!1),this.selectedResizer=null}attachTo(t){const e=new qy(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){const t=n.get("WidgetToolbarRepository");e.on("begin",(()=>{t.forceDisabled("resize")}),{priority:"lowest"}),e.on("cancel",(()=>{t.clearForceDisabled("resize")}),{priority:"highest"}),e.on("commit",(()=>{t.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(t.viewElement,e);const i=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(i)==e&&this.select(e),e}getResizerByViewElement(t){return this._resizers.get(t)}_getResizerByHandle(t){for(const e of this._resizers.values())if(e.containsHandle(t))return e}_mouseDownListener(t,e){const n=e.domTarget;qy.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n)||null,this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}_mouseMoveListener(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}_mouseUpListener(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}const Ky=Cr("px");class Yy extends af{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",(t=>!t))],style:{left:t.to("left",(t=>Ky(t))),top:t.to("top",(t=>Ky(t))),width:t.to("width",(t=>Ky(t)))}}})}}class Xy extends Oo{removeDropMarkerDelayed=Do((()=>this.removeDropMarker()),40);_updateDropMarkerThrottled=O((t=>this._updateDropMarker(t)),40);_reconvertMarkerThrottled=O((()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")}),0);_dropTargetLineView=new Yy;_domEmitter=new(or());_scrollables=new Map;static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,i,r,o){this.removeDropMarkerDelayed.cancel();const a=Zy(this.editor,t,e,n,i,r,o);if(a)return o&&o.containsRange(a)?this.removeDropMarker():void this._updateDropMarkerThrottled(a)}getFinalDropRange(t,e,n,i,r,o){const a=Zy(this.editor,t,e,n,i,r,o);return this.removeDropMarker(),a}removeDropMarker(){const t=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,t.markers.has("drop-target")&&t.change((t=>{t.removeMarker("drop-target")}))}_setupDropMarker(){const t=this.editor;t.ui.view.body.add(this._dropTargetLineView),t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);e.markerRange.isCollapsed?this._updateDropTargetLine(e.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change((e=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||e.updateMarker("drop-target",{range:t}):e.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})}))}_createDropTargetPosition(t){return t.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(t){const e=this.toDomElement(t);return e.append("",t.createElement("span"),""),e}))}_updateDropTargetLine(t){const e=this.editor.editing,n=t.start.nodeBefore,i=t.start.nodeAfter,r=t.start.parent,o=n?e.mapper.toViewElement(n):null,a=o?e.view.domConverter.mapViewToDom(o):null,s=i?e.mapper.toViewElement(i):null,c=s?e.view.domConverter.mapViewToDom(s):null,l=e.mapper.toViewElement(r);if(!l)return;const u=e.view.domConverter.mapViewToDom(l),h=this._getScrollableRect(l),{scrollX:d,scrollY:f}=Xn.window,g=a?new mr(a):null,p=c?new mr(c):null,m=new mr(u).excludeScrollbarsAndBorders(),b=g?g.bottom:m.top,w=p?p.top:m.bottom,k=Xn.window.getComputedStyle(u),v=b<=w?(b+w)/2:w;if(h.top<v&&v<h.bottom){const t=m.left+parseFloat(k.paddingLeft),e=m.right-parseFloat(k.paddingRight),n=Math.max(t+d,h.left),i=Math.min(e+d,h.right);this._dropTargetLineView.set({isVisible:!0,left:n,top:v+f,width:i-n})}else this._dropTargetLineView.isVisible=!1}_getScrollableRect(t){const e=t.root.rootName;let n;if(this._scrollables.has(e))n=this._scrollables.get(e).domElement;else{n=function(t){let e=t;do{e=e.parentElement;const t=Xn.window.getComputedStyle(e).overflowY;if("auto"==t||"scroll"==t)break}while("BODY"!=e.tagName);return e}(this.editor.editing.view.domConverter.mapViewToDom(t)),this._domEmitter.listenTo(n,"scroll",this._reconvertMarkerThrottled,{usePassive:!0});const i=new yr(n,this._reconvertMarkerThrottled);this._scrollables.set(e,{domElement:n,resizeObserver:i})}return new mr(n).excludeScrollbarsAndBorders()}}function Zy(t,e,n,i,r,o,a){const s=t.model,c=t.editing.mapper;let l=e_(t,e);for(;l;){if(!o)if(s.schema.checkChild(l,"$text")){if(n){const e=n[0].start,o=c.toModelPosition(e);if(!a||Array.from(a.getItems()).every((t=>s.schema.checkChild(o,t)))){if(s.schema.checkChild(o,"$text"))return s.createRange(o);if(e)return Jy(t,e_(t,e.parent),i,r)}}}else if(s.schema.isInline(l))return Jy(t,l,i,r);if(s.schema.isBlock(l))return Jy(t,l,i,r);if(s.schema.checkChild(l,"$block")){const e=Array.from(l.getChildren()).filter((e=>e.is("element")&&!Qy(t,e)));let n=0,o=e.length;if(0==o)return s.createRange(s.createPositionAt(l,"end"));for(;n<o-1;){const a=Math.floor((n+o)/2);"before"==t_(t,e[a],i,r)?o=a:n=a}return Jy(t,e[n],i,r)}l=l.parent}return null}function Qy(t,e){const n=t.editing.mapper,i=t.editing.view.domConverter,r=n.toViewElement(e);if(!r)return!0;const o=i.mapViewToDom(r);return"none"!=Xn.window.getComputedStyle(o).float}function Jy(t,e,n,i){const r=t.model;return r.createRange(r.createPositionAt(e,t_(t,e,n,i)))}function t_(t,e,n,i){const r=t.editing.mapper,o=t.editing.view.domConverter,a=r.toViewElement(e),s=o.mapViewToDom(a),c=new mr(s);return t.model.schema.isInline(e)?n<(c.left+c.right)/2?"before":"after":i<(c.top+c.bottom)/2?"before":"after"}function e_(t,e){const n=t.editing.mapper,i=t.editing.view,r=n.toModelElement(e);if(r)return r;const o=i.createPositionBefore(e),a=n.findMappedViewAncestor(o);return n.toModelElement(a)}class n_ extends Oo{_isBlockDragging=!1;_domEmitter=new(or());static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")})),Jn.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const e=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(e,"dragstart",((t,e)=>this._handleBlockDragStart(e))),this._domEmitter.listenTo(Xn.document,"dragover",((t,e)=>this._handleBlockDragging(e))),this._domEmitter.listenTo(Xn.document,"drop",((t,e)=>this._handleBlockDragging(e))),this._domEmitter.listenTo(Xn.document,"dragend",(()=>this._handleBlockDragEnd()),{useCapture:!0}),this.isEnabled&&e.setAttribute("draggable","true"),this.on("change:isEnabled",((t,n,i)=>{e.setAttribute("draggable",i?"true":"false")}))}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,n=e.document.selection,i=this.editor.editing.view,r=Array.from(n.getSelectedBlocks()),o=e.createRange(e.createPositionBefore(r[0]),e.createPositionAfter(r[r.length-1]));e.change((t=>t.setSelection(o))),this._isBlockDragging=!0,i.focus(),i.getObserver(Fv).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),n=t.clientY,i=document.elementFromPoint(e,n),r=this.editor.editing.view;i&&i.closest(".ck-editor__editable")&&r.getObserver(Fv).onDomEvent({...t,type:t.type,dataTransfer:t.dataTransfer,target:i,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}_handleBlockDragEnd(){this._isBlockDragging=!1}}var i_=n(7793),r_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(i_.A,r_);i_.A.locals;class o_ extends Oo{_draggedRange;_draggingUid;_draggableElement;_clearDraggableAttributesDelayed=Do((()=>this._clearDraggableAttributes()),40);_blockMode=!1;_domEmitter=new(or());_previewContainer;static get pluginName(){return"DragDrop"}static get requires(){return[oy,Ny,Xy,n_]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Fv),e.addObserver(Fh),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",((t,e,n)=>{n?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",((t,e,n)=>{n||this._finalizeDragging(!1)})),Jn.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=t.editing.view,i=n.document,r=t.plugins.get(Xy);this.listenTo(i,"dragstart",((t,n)=>{if(n.target&&n.target.is("editableElement"))return void n.preventDefault();if(this._prepareDraggedRange(n.target),!this._draggedRange)return void n.preventDefault();this._draggingUid=pi(),n.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",n.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const i=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(n.dataTransfer,i,"dragstart");const{dataTransfer:r,domTarget:o,domEvent:a}=n,{clientX:s}=a;this._updatePreview({dataTransfer:r,domTarget:o,clientX:s}),n.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")}),{priority:"low"}),this.listenTo(i,"dragend",((t,e)=>{this._finalizeDragging(!e.dataTransfer.isCanceled&&"move"==e.dataTransfer.dropEffect)}),{priority:"low"}),this._domEmitter.listenTo(Xn.document,"dragend",(()=>{this._blockMode=!1}),{useCapture:!0}),this.listenTo(i,"dragenter",(()=>{this.isEnabled&&n.focus()})),this.listenTo(i,"dragleave",(()=>{r.removeDropMarkerDelayed()})),this.listenTo(i,"dragging",((t,e)=>{if(!this.isEnabled)return void(e.dataTransfer.dropEffect="none");const{clientX:n,clientY:i}=e.domEvent;r.updateDropMarker(e.target,e.targetRanges,n,i,this._blockMode,this._draggedRange),this._draggedRange||(e.dataTransfer.dropEffect="copy"),Jn.isGecko||("copy"==e.dataTransfer.effectAllowed?e.dataTransfer.dropEffect="copy":["all","copyMove"].includes(e.dataTransfer.effectAllowed)&&(e.dataTransfer.dropEffect="move")),t.stop()}),{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get(Xy);this.listenTo(e,"clipboardInput",((e,i)=>{if("drop"!=i.method)return;const{clientX:r,clientY:o}=i.domEvent,a=n.getFinalDropRange(i.target,i.targetRanges,r,o,this._blockMode,this._draggedRange);if(!a)return this._finalizeDragging(!1),void e.stop();this._draggedRange&&this._draggingUid!=i.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="");if("move"==a_(i.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(a,!0))return this._finalizeDragging(!1),void e.stop();i.targetRanges=[t.editing.mapper.toViewRange(a)]}),{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(oy);t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n=e.targetRanges.map((t=>this.editor.editing.mapper.toModelRange(t)));this.editor.model.change((t=>t.setSelection(n)))}),{priority:"high"}),t.on("contentInsertion",((t,e)=>{if(!this.isEnabled||"drop"!==e.method)return;const n="move"==a_(e.dataTransfer),i=!e.resultRange||!e.resultRange.isCollapsed;this._finalizeDragging(i&&n)}),{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",((i,r)=>{if(Jn.isAndroid||!r)return;this._clearDraggableAttributesDelayed.cancel();let o=s_(r.target);if(Jn.isBlink&&!t.isReadOnly&&!o&&!n.selection.isCollapsed){const t=n.selection.getSelectedElement();t&&dy(t)||(o=n.selection.editableElement)}o&&(e.change((t=>{t.setAttribute("draggable","true",o)})),this._draggableElement=t.editing.mapper.toModelElement(o))})),this.listenTo(n,"mouseup",(()=>{Jn.isAndroid||this._clearDraggableAttributesDelayed()}))}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change((e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null}))}_finalizeDragging(t){const e=this.editor,n=e.model;if(e.plugins.get(Xy).removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")){e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop")}this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(t&&this.isEnabled&&n.change((t=>{const e=n.createSelection(this._draggedRange);n.deleteContent(e,{doNotAutoparagraph:!0});const i=e.getFirstPosition().parent;i.isEmpty&&!n.schema.checkChild(i,"$text")&&n.schema.checkChild(i,"paragraph")&&t.insertElement("paragraph",i,0)})),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,i=n.document.selection,r=t?s_(t):null;if(r){const t=e.editing.mapper.toModelElement(r);if(this._draggedRange=ll.fromRange(n.createRangeOn(t)),this._blockMode=n.schema.isBlock(t),e.plugins.has("WidgetToolbarRepository")){e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}return}if(i.isCollapsed&&!i.getFirstPosition().parent.isEmpty)return;const o=Array.from(i.getSelectedBlocks()),a=i.getFirstRange();if(0==o.length)return void(this._draggedRange=ll.fromRange(a));const s=c_(n,o);if(o.length>1)this._draggedRange=ll.fromRange(s),this._blockMode=!0;else if(1==o.length){const t=a.start.isTouching(s.start)&&a.end.isTouching(s.end);this._draggedRange=ll.fromRange(t?s:a),this._blockMode=t}n.change((t=>t.setSelection(this._draggedRange.toRange())))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const i=this.editor.editing.view,r=i.document.selection.editableElement,o=i.domConverter.mapViewToDom(r),a=Xn.window.getComputedStyle(o);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=Qi(Xn.document,"div",{style:"position: fixed; left: -999999px;"}),Xn.document.body.appendChild(this._previewContainer));const s=new mr(o);if(o.contains(e))return;const c=parseFloat(a.paddingLeft),l=Qi(Xn.document,"div");l.className="ck ck-content",l.style.width=a.width,l.style.paddingLeft=`${s.left-n+c}px`,Jn.isiOS&&(l.style.backgroundColor="white"),i.domConverter.setContentOf(l,t.getData("text/html")),t.setDragImage(l,0,0),this._previewContainer.appendChild(l)}}function a_(t){return Jn.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy"}function s_(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(dy);if(dy(t))return t;const e=t.findAncestor((t=>dy(t)||t.is("editableElement")));return dy(e)?e:null}function c_(t,e){const n=e[0],i=e[e.length-1],r=n.getCommonAncestor(i),o=t.createPositionBefore(n),a=t.createPositionAfter(i);if(r&&r.is("element")&&!t.schema.isLimit(r)){const e=t.createRangeOn(r),n=o.isTouching(e.start),i=a.isTouching(e.end);if(n&&i)return c_(t,[r])}return t.createRange(o,a)}class l_ extends Oo{static get pluginName(){return"PastePlainText"}static get requires(){return[oy]}init(){const t=this.editor,e=t.model,n=t.editing.view,i=e.document.selection;n.addObserver(Fv),t.plugins.get(oy).on("contentInsertion",((t,n)=>{(function(t,e){let n=e.createRangeIn(t);if(1==t.childCount){const i=t.getChild(0);i.is("element")&&e.schema.isBlock(i)&&!e.schema.isObject(i)&&!e.schema.isLimit(i)&&(n=e.createRangeIn(i))}for(const t of n.getItems()){if(!e.schema.isInline(t))return!1;if(Array.from(t.getAttributeKeys()).find((t=>e.schema.getAttributeProperties(t).isFormatting)))return!1}return!0})(n.content,e)&&e.change((t=>{const r=Array.from(i.getAttributes()).filter((([t])=>e.schema.getAttributeProperties(t).isFormatting));i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0}),r.push(...i.getAttributes());const o=t.createRangeIn(n.content);for(const n of o.getItems())for(const i of r)e.schema.checkAttribute(n,i[0])&&t.setAttribute(i[0],i[1],n)}))}))}}class u_ extends Oo{static get pluginName(){return"Clipboard"}static get requires(){return[ry,oy,o_,l_]}init(){const t=this.editor,e=this.editor.t;t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Copy selected content"),keystroke:"CTRL+C"},{label:e("Paste content"),keystroke:"CTRL+V"},{label:e("Paste content as plain text"),keystroke:"CTRL+SHIFT+V"}]})}}class h_ extends Ro{_stack=[];_createdBatches=new WeakSet;constructor(t){super(t),this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",((t,e)=>{e[1]={...e[1]};const n=e[1];n.batchType||(n.batchType={isUndoable:!1})}),{priority:"high"}),this.listenTo(t.data,"set",((t,e)=>{e[1].batchType.isUndoable||this.clearStack()}))}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const i=this.editor.model,r=i.document,o=[],a=t.map((t=>t.getTransformedByOperations(n))),s=a.flat();for(const t of a){const e=t.filter((t=>t.root!=r.graveyard)).filter((t=>!f_(t,s)));e.length&&(d_(e),o.push(e[0]))}o.length&&i.change((t=>{t.setSelection(o,{backward:e})}))}_undo(t,e){const n=this.editor.model,i=n.document;this._createdBatches.add(e);const r=t.operations.slice().filter((t=>t.isDocumentOperation));r.reverse();for(const t of r){const r=t.baseVersion+1,o=Array.from(i.history.getOperations(r)),a=qu([t.getReversed()],o,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let r of a){const o=r.affectedSelectable;o&&!n.canEditAt(o)&&(r=new Lu(r.baseVersion)),e.addOperation(r),n.applyOperation(r),i.history.setOperationAsUndone(t,r)}}}}function d_(t){t.sort(((t,e)=>t.start.isBefore(e.start)?-1:1));for(let e=1;e<t.length;e++){const n=t[e-1].getJoined(t[e],!0);n&&(e--,t.splice(e,2,n))}}function f_(t,e){return e.some((e=>e!==t&&e.containsRange(t,!0)))}class g_ extends h_{execute(t=null){const e=t?this._stack.findIndex((e=>e.batch==t)):this._stack.length-1,n=this._stack.splice(e,1)[0],i=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(i,(()=>{this._undo(n.batch,i);const t=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,t)})),this.fire("revert",n.batch,i),this.refresh()}}class p_ extends h_{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,(()=>{const n=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=this.editor.model.document.history.getOperations(n);this._restoreSelection(t.selection.ranges,t.selection.isBackward,i),this._undo(t.batch,e)})),this.refresh()}}class m_ extends Oo{_undoCommand;_redoCommand;_batchRegistry=new WeakSet;static get pluginName(){return"UndoEditing"}init(){const t=this.editor,e=t.t;this._undoCommand=new g_(t),this._redoCommand=new p_(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",((t,e)=>{const n=e[0];if(!n.isDocumentOperation)return;const i=n.batch,r=this._redoCommand.createdBatches.has(i),o=this._undoCommand.createdBatches.has(i);this._batchRegistry.has(i)||(this._batchRegistry.add(i),i.isUndoable&&(r?this._undoCommand.addBatch(i):o||(this._undoCommand.addBatch(i),this._redoCommand.clearStack())))}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",((t,e,n)=>{this._redoCommand.addBatch(n)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Undo"),keystroke:"CTRL+Z"},{label:e("Redo"),keystroke:[["CTRL+Y"],["CTRL+SHIFT+Z"]]}]})}}class b_ extends Oo{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,i="ltr"==e.uiLanguageDirection?Ld.undo:Ld.redo,r="ltr"==e.uiLanguageDirection?Ld.redo:Ld.undo;this._addButtonsToFactory("undo",n("Undo"),"CTRL+Z",i),this._addButtonsToFactory("redo",n("Redo"),"CTRL+Y",r)}_addButtonsToFactory(t,e,n,i){const r=this.editor;r.ui.componentFactory.add(t,(()=>{const r=this._createButton(bf,t,e,n,i);return r.set({tooltip:!0}),r})),r.ui.componentFactory.add("menuBar:"+t,(()=>this._createButton(Kf,t,e,n,i)))}_createButton(t,e,n,i,r){const o=this.editor,a=o.locale,s=o.commands.get(e),c=new t(a);return c.set({label:n,icon:r,keystroke:i}),c.bind("isEnabled").to(s,"isEnabled"),this.listenTo(c,"execute",(()=>{o.execute(e),o.editing.view.focus()})),c}}class w_ extends Oo{static get requires(){return[m_,b_]}static get pluginName(){return"Undo"}}function k_(t){return t.createContainerElement("figure",{class:"image"},[t.createEmptyElement("img"),t.createSlot("children")])}function v_(t,e){const n=t.plugins.get("ImageUtils"),i=t.plugins.has("ImageInlineEditing")&&t.plugins.has("ImageBlockEditing");return t=>{if(!n.isInlineImageView(t))return null;if(!i)return r(t);return("block"==t.getStyle("display")||t.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==e?null:r(t)};function r(t){const e={name:!0};return t.hasAttribute("src")&&(e.attributes=["src"]),e}}function y_(t,e){const n=xo(e.getSelectedBlocks());return!n||t.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}function __(t){return t&&t.endsWith("px")?parseInt(t):null}function C_(t){const e=__(t.getStyle("width")),n=__(t.getStyle("height"));return!(!e||!n)}const A_=/^(image|image-inline)$/;class x_ extends Oo{_domEmitter=new(or());static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,i={}){const r=this.editor,o=r.model,a=o.document.selection,s=E_(r,e||a,n);t={...Object.fromEntries(a.getAttributes()),...t};for(const e in t)o.schema.checkAttribute(s,e)||delete t[e];return o.change((n=>{const{setImageSizes:r=!0}=i,a=n.createElement(s,t);return o.insertObject(a,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==s?void 0:"auto"}),a.parent?(r&&this.setImageNaturalSizeAttributes(a),a):null}))}setImageNaturalSizeAttributes(t){const e=t.getAttribute("src");e&&(t.getAttribute("width")||t.getAttribute("height")||this.editor.model.change((n=>{const i=new Xn.window.Image;this._domEmitter.listenTo(i,"load",(()=>{t.getAttribute("width")||t.getAttribute("height")||this.editor.model.enqueueChange(n.batch,(e=>{e.setAttribute("width",i.naturalWidth,t),e.setAttribute("height",i.naturalHeight,t)})),this._domEmitter.stopListening(i,"load")})),i.src=e})))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let i=e.parent;for(;i;){if(i.is("element")&&this.isImageWidget(i))return i;i=i.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:A_})}isImageAllowed(){const t=this.editor.model.document.selection;return function(t,e){const n=E_(t,e,null);if("imageBlock"==n){const n=function(t,e){const n=wy(t,e),i=n.start.parent;if(i.isEmpty&&!i.is("element","$root"))return i.parent;return i}(e,t.model);if(t.model.schema.checkChild(n,"imageBlock"))return!0}else if(t.model.schema.checkChild(e.focus,"imageInline"))return!0;return!1}(this.editor,t)&&function(t){return[...t.focus.getAncestors()].every((t=>!t.is("element","imageBlock")))}(t)}toImageWidget(t,e,n){e.setCustomProperty("image",!0,t);return fy(t,e,{label:()=>{const e=this.findViewImgElement(t).getAttribute("alt");return e?`${e} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&dy(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function E_(t,e,n){const i=t.model.schema,r=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")?t.plugins.has("ImageInlineEditing")?n||("inline"===r?"imageInline":"auto"!==r?"imageBlock":e.is("selection")?y_(i,e):i.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class T_ extends Ro{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),i=e.model,r=n.getClosestSelectedImageElement(i.document.selection);i.change((e=>{e.setAttribute("alt",t.newValue,r)}))}}class S_ extends Oo{static get requires(){return[x_]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new T_(this.editor))}}var D_=n(4062),I_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(D_.A,I_);D_.A.locals;class B_ extends af{focusTracker;keystrokes;labeledInput;saveButtonView;cancelButtonView;_focusables;_focusCycler;constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Eo,this.keystrokes=new To,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Ld.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Ld.cancel,"ck-button-cancel","cancel"),this._focusables=new Od,this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),lf({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,i){const r=new bf(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createLabeledInputView(){const t=this.locale.t,e=new Tg(this.locale,Pp);return e.label=t("Text alternative"),e}}function M_(t){const e=t.editing.view,n=ip.defaultPositions,i=t.plugins.get("ImageUtils");return{target:e.domConverter.mapViewToDom(i.getClosestSelectedImageWidget(e.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}class P_ extends Oo{_balloon;_form;static get requires(){return[yb]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",(n=>{const i=t.commands.get("imageTextAlternative"),r=new bf(n);return r.set({label:e("Change image text alternative"),icon:Ld.textAlternative,tooltip:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",(t=>!!t)),this.listenTo(r,"execute",(()=>{this._showForm()})),r}))}_createForm(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(cf(B_))(t.locale),this._form.render(),this.listenTo(this._form,"submit",(()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((t,e)=>{this._hideForm(!0),e()})),this.listenTo(t.ui,"update",(()=>{n.getClosestSelectedImageWidget(e.selection)?this._isVisible&&function(t){const e=t.plugins.get("ContextualBalloon");if(t.plugins.get("ImageUtils").getClosestSelectedImageWidget(t.editing.view.document.selection)){const n=M_(t);e.updatePosition(n)}}(t):this._hideForm(!0)})),sf({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:M_(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class L_ extends Oo{static get requires(){return[S_,P_]}static get pluginName(){return"ImageTextAlternative"}}function O_(t,e){const n=(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const r=i.writer,o=i.mapper.toViewElement(n.item),a=t.findViewImgElement(o);null===n.attributeNewValue?(r.removeAttribute("srcset",a),r.removeAttribute("sizes",a)):n.attributeNewValue&&(r.setAttribute("srcset",n.attributeNewValue,a),r.setAttribute("sizes","100vw",a))};return t=>{t.on(`attribute:srcset:${e}`,n)}}function N_(t,e,n){const i=(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const r=i.writer,o=i.mapper.toViewElement(n.item),a=t.findViewImgElement(o);r.setAttribute(n.attributeKey,n.attributeNewValue||"",a)};return t=>{t.on(`attribute:${n}:${e}`,i)}}class R_ extends Xs{observe(t){this.listenTo(t,"load",((t,e)=>{const n=e.target;this.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&this._fireEvents(e)}),{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}class F_ extends Ro{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&ki("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&ki("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=Jr(t.source),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(n.getAttributes());e.forEach(((e,o)=>{const a=n.getSelectedElement();if("string"==typeof e&&(e={src:e}),o&&a&&i.isImage(a)){const n=this.editor.model.createPositionAfter(a);i.insertImage({...e,...r},n,t.imageType)}else i.insertImage({...e,...r},null,t.imageType)}))}}class j_ extends Ro{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change((i=>{i.setAttribute("src",t.source,e),this.cleanupImage(i,e),n.setImageNaturalSizeAttributes(e)}))}cleanupImage(t,e){t.removeAttribute("srcset",e),t.removeAttribute("sizes",e),t.removeAttribute("sources",e),t.removeAttribute("width",e),t.removeAttribute("height",e),t.removeAttribute("alt",e)}}class $_ extends Oo{static get requires(){return[x_]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(R_),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new F_(t),i=new j_(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",i),t.commands.add("imageInsert",n)}}class z_ extends Oo{static get requires(){return[x_]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),i="imageBlock"===t?"figure":"img";function r(e,i,r,o){e.on(`attribute:${i}:${t}`,((e,i,a)=>{if(!a.consumable.consume(i.item,e.name))return;const s=a.writer,c=a.mapper.toViewElement(i.item),l=n.findViewImgElement(c);if(null!==i.attributeNewValue?s.setAttribute(r,i.attributeNewValue,l):s.removeAttribute(r,l),i.item.hasAttribute("sources"))return;const u=i.item.hasAttribute("resizedWidth");if("imageInline"===t&&!u&&!o)return;const h=i.item.getAttribute("width"),d=i.item.getAttribute("height");h&&d&&s.setStyle("aspect-ratio",`${h}/${d}`,l)}))}e.conversion.for("upcast").attributeToAttribute({view:{name:i,styles:{width:/.+/}},model:{key:"width",value:t=>C_(t)?__(t.getStyle("width")):null}}).attributeToAttribute({view:{name:i,key:"width"},model:"width"}).attributeToAttribute({view:{name:i,styles:{height:/.+/}},model:{key:"height",value:t=>C_(t)?__(t.getStyle("height")):null}}).attributeToAttribute({view:{name:i,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add((t=>{r(t,"width","width",!0),r(t,"height","height",!0)})),e.conversion.for("dataDowncast").add((t=>{r(t,"width","width",!1),r(t,"height","height",!1)}))}}class V_ extends Ro{_modelElementName;constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=t.isInlineImage(e):this.isEnabled=t.isBlockImage(e)}execute(t={}){const e=this.editor,n=this.editor.model,i=e.plugins.get("ImageUtils"),r=i.getClosestSelectedImageElement(n.document.selection),o=Object.fromEntries(r.getAttributes());return o.src||o.uploadId?n.change((e=>{const{setImageSizes:a=!0}=t,s=Array.from(n.markers).filter((t=>t.getRange().containsItem(r))),c=i.insertImage(o,n.createSelection(r,"on"),this._modelElementName,{setImageSizes:a});if(!c)return null;const l=e.createRangeOn(c);for(const t of s){const n=t.getRange(),i="$graveyard"!=n.root.rootName?n.getJoined(l,!0):l;e.updateMarker(t,{range:i})}return{oldElement:r,newElement:c}})):null}}var H_=n(7378),q_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(H_.A,q_);H_.A.locals;class U_ extends Oo{static get requires(){return[x_]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add((t=>{t.on("attribute:placeholder",((t,e,i)=>{if(!i.consumable.test(e.item,t.name))return;if(!e.item.is("element","imageBlock")&&!e.item.is("element","imageInline"))return;i.consumable.consume(e.item,t.name);const r=i.writer,o=i.mapper.toViewElement(e.item),a=n.findViewImgElement(o);e.attributeNewValue?(r.addClass("image_placeholder",a),r.setStyle("background-image",`url(${e.attributeNewValue})`,a),r.setCustomProperty("editingPipeline:doNotReuseOnce",!0,a)):(r.removeClass("image_placeholder",a),r.removeStyle("background-image",a))}))}))}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,i=n.view,r=t.plugins.get("ImageUtils");i.addObserver(R_),this.listenTo(i.document,"imageLoaded",((t,o)=>{const a=i.domConverter.mapDomToView(o.target);if(!a)return;const s=r.getImageWidgetFromImageView(a);if(!s)return;const c=n.mapper.toModelElement(s);c&&c.hasAttribute("placeholder")&&e.enqueueChange({isUndoable:!1},(t=>{t.removeAttribute("placeholder",c)}))}))}}class G_ extends Oo{static get requires(){return[$_,z_,x_,U_,oy]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new V_(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:e})=>k_(e)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(t,{writer:n})=>i.toImageWidget(k_(n),n,e("image widget"))}),n.for("downcast").add(N_(i,"imageBlock","src")).add(N_(i,"imageBlock","alt")).add(O_(i,"imageBlock")),n.for("upcast").elementToElement({view:v_(t,"imageBlock"),model:(t,{writer:e})=>e.createElement("imageBlock",t.hasAttribute("src")?{src:t.getAttribute("src")}:void 0)}).add(function(t){const e=(e,n,i)=>{if(!i.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;const r=t.findViewImgElement(n.viewItem);if(!r||!i.consumable.test(r,{name:!0}))return;i.consumable.consume(n.viewItem,{name:!0,classes:"image"});const o=xo(i.convertItem(r,n.modelCursor).modelRange.getItems());o?(i.convertChildren(n.viewItem,o),i.updateConversionResult(o,n)):i.consumable.revert(n.viewItem,{name:!0,classes:"image"})};return t=>{t.on("element:figure",e)}}(i))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",((r,o)=>{const a=Array.from(o.content.getChildren());let s;if(!a.every(i.isInlineImageView))return;s=o.targetRanges?t.editing.mapper.toModelRange(o.targetRanges[0]):e.document.selection.getFirstRange();const c=e.createSelection(s);if("imageBlock"===y_(e.schema,c)){const t=new jh(n.document),e=a.map((e=>t.createElement("figure",{class:"image"},e)));o.content=t.createDocumentFragment(e)}})),this.listenTo(r,"contentInsertion",((t,n)=>{"paste"===n.method&&e.change((t=>{const e=t.createRangeIn(n.content);for(const t of e.getItems())t.is("element","imageBlock")&&i.setImageNaturalSizeAttributes(t)}))}))}}var W_=n(3350),K_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(W_.A,K_);W_.A.locals;class Y_ extends af{focusTracker;keystrokes;_focusables;_focusCycler;children;constructor(t,e=[]){super(t),this.focusTracker=new Eo,this.keystrokes=new To,this._focusables=new Od,this.children=this.createCollection(),this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const t of e)this.children.add(t),this._focusables.add(t),t instanceof hg&&this._focusables.addMany(t.children);this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),lf({view:this});for(const t of this._focusables)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}class X_ extends Oo{static get pluginName(){return"ImageInsertUI"}static get requires(){return[x_]}dropdownView;_integrations=new Map;constructor(t){super(t),t.config.define("image.insert.integrations",["upload","assetManager","url"])}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",(()=>{this.isImageSelected=n.isImage(e.getSelectedElement())}));const i=t=>this._createToolbarComponent(t);t.ui.componentFactory.add("insertImage",i),t.ui.componentFactory.add("imageInsert",i),t.ui.componentFactory.add("menuBar:insertImage",(t=>this._createMenuBarComponent(t)))}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:i,menuBarButtonViewCreator:r,requiresForm:o=!1}){this._integrations.has(t)&&ki("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,menuBarButtonViewCreator:r,formViewCreator:i,requiresForm:o})}_createToolbarComponent(t){const e=this.editor,n=t.t,i=this._prepareIntegrations();if(!i.length)return null;let r;const o=i[0];if(1==i.length){if(!o.requiresForm)return o.buttonViewCreator(!0);r=o.buttonViewCreator(!0)}else{const e=o.buttonViewCreator(!1);r=new yp(t,e),r.tooltip=!0,r.bind("label").to(this,"isImageSelected",(t=>n(t?"Replace image":"Insert image")))}const a=this.dropdownView=Ep(t,r),s=i.map((({observable:t})=>"function"==typeof t?t():t));return a.bind("isEnabled").toMany(s,"isEnabled",((...t)=>t.some((t=>t)))),a.once("change:isOpen",(()=>{const t=i.map((({formViewCreator:t})=>t(1==i.length))),n=new Y_(e.locale,t);a.panelView.children.add(n)})),a}_createMenuBarComponent(t){const e=t.t,n=this._prepareIntegrations();if(!n.length)return null;let i;const r=n[0];if(1==n.length)i=r.menuBarButtonViewCreator(!0);else{i=new ew(t);const r=new nw(t);i.panelView.children.add(r),i.buttonView.set({icon:Ld.image,label:e("Image")});for(const e of n){const n=new Um(t,i),o=e.menuBarButtonViewCreator(!1);n.children.add(o),r.items.add(n)}}return i}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];if(!t.length)return ki("image-insert-integrations-not-specified"),e;for(const n of t)this._integrations.has(n)?e.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||ki("image-insert-unknown-integration",{item:n});return e.length||ki("image-insert-integrations-not-registered"),e}}var Z_=n(265),Q_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Z_.A,Q_);Z_.A.locals;class J_ extends Oo{static get requires(){return[G_,Ny,L_,X_]}static get pluginName(){return"ImageBlock"}}class tC extends Oo{static get requires(){return[$_,z_,x_,U_,oy]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor;t.model.schema.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"],disallowIn:["caption"]}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new V_(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(t,{writer:e})=>e.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(t,{writer:n})=>i.toImageWidget(function(t){return t.createContainerElement("span",{class:"image-inline"},t.createEmptyElement("img"))}(n),n,e("image widget"))}),n.for("downcast").add(N_(i,"imageInline","src")).add(N_(i,"imageInline","alt")).add(O_(i,"imageInline")),n.for("upcast").elementToElement({view:v_(t,"imageInline"),model:(t,{writer:e})=>e.createElement("imageInline",t.hasAttribute("src")?{src:t.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline");this.listenTo(r,"inputTransformation",((r,o)=>{const a=Array.from(o.content.getChildren());let s;if(!a.every(i.isBlockImageView))return;s=o.targetRanges?t.editing.mapper.toModelRange(o.targetRanges[0]):e.document.selection.getFirstRange();const c=e.createSelection(s);if("imageInline"===y_(e.schema,c)){const t=new jh(n.document),e=a.map((e=>1===e.childCount?(Array.from(e.getAttributes()).forEach((n=>t.setAttribute(...n,i.findViewImgElement(e)))),e.getChild(0)):e));o.content=t.createDocumentFragment(e)}})),this.listenTo(r,"contentInsertion",((t,n)=>{"paste"===n.method&&e.change((t=>{const e=t.createRangeIn(n.content);for(const t of e.getItems())t.is("element","imageInline")&&i.setImageNaturalSizeAttributes(t)}))}))}}class eC extends Oo{static get requires(){return[tC,Ny,L_,X_]}static get pluginName(){return"ImageInline"}}class nC extends Oo{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[x_]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}class iC extends Ro{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(G_))return this.isEnabled=!1,void(this.value=!1);const i=t.model.document.selection,r=i.getSelectedElement();if(!r){const t=e.getCaptionFromModelSelection(i);return this.isEnabled=!!t,void(this.value=!!t)}this.isEnabled=n.isImage(r),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(r):this.value=!1}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change((t=>{this.value?this._hideImageCaption(t):this._showImageCaption(t,e)}))}_showImageCaption(t,e){const n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageCaptionEditing"),r=this.editor.plugins.get("ImageUtils");let o=n.getSelectedElement();const a=i._getSavedCaption(o);r.isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=n.getSelectedElement());const s=a||t.createElement("caption");t.append(s,o),e&&t.setSelection(s,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,i=e.plugins.get("ImageCaptionEditing"),r=e.plugins.get("ImageCaptionUtils");let o,a=n.getSelectedElement();a?o=r.getCaptionFromImageModelElement(a):(o=r.getCaptionFromModelSelection(n),a=o.parent),i._saveCaption(a,o),t.setSelection(a,"on"),t.remove(o)}}class rC extends Oo{static get requires(){return[x_,nC]}static get pluginName(){return"ImageCaptionEditing"}_savedCaptionsMap;constructor(t){super(t),this._savedCaptionsMap=new WeakMap}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new iC(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils"),r=t.t;t.conversion.for("upcast").elementToElement({view:t=>i.matchImageCaptionViewElement(t),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>n.isBlockImage(t.parent)?e.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(t,{writer:i})=>{if(!n.isBlockImage(t.parent))return null;const o=i.createEditableElement("figcaption");i.setCustomProperty("imageCaption",!0,o),o.placeholder=r("Enter image caption"),Xo({view:e,element:o,keepOnFocus:!0});const a=t.parent.getAttribute("alt");return by(o,i,{label:a?r("Caption for image: %0",[a]):r("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),i=t.commands.get("imageTypeInline"),r=t.commands.get("imageTypeBlock"),o=t=>{if(!t.return)return;const{oldElement:i,newElement:r}=t.return;if(!i)return;if(e.isBlockImage(i)){const t=n.getCaptionFromImageModelElement(i);if(t)return void this._saveCaption(r,t)}const o=this._getSavedCaption(i);o&&this._saveCaption(r,o)};i&&this.listenTo(i,"execute",o,{priority:"low"}),r&&this.listenTo(r,"execute",o,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?$c.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",(()=>{const r=e.document.differ.getChanges();for(const e of r){if("alt"!==e.attributeKey)continue;const r=e.range.start.nodeAfter;if(n.isBlockImage(r)){const e=i.getCaptionFromImageModelElement(r);if(!e)return;t.editing.reconvertItem(e)}}}))}}class oC extends Oo{static get requires(){return[nC]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),i=t.t;t.ui.componentFactory.add("toggleImageCaption",(r=>{const o=t.commands.get("toggleImageCaption"),a=new bf(r);return a.set({icon:Ld.caption,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.bind("label").to(o,"value",(t=>i(t?"Toggle caption off":"Toggle caption on"))),this.listenTo(a,"execute",(()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const i=n.getCaptionFromModelSelection(t.model.document.selection);if(i){const n=t.editing.mapper.toViewElement(i);e.scrollToTheSelection(),e.change((t=>{t.addClass("image__caption_highlighted",n)}))}t.editing.view.focus()})),a}))}}var aC=n(5247),sC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(aC.A,sC);aC.A.locals;function cC(t){const e=t.map((t=>t.replace("+","\\+")));return new RegExp(`^image\\/(${e.join("|")})$`)}function lC(t){return new Promise(((e,n)=>{const i=t.getAttribute("src");fetch(i).then((t=>t.blob())).then((t=>{const n=uC(t,i),r=n.replace("image/",""),o=new File([t],`image.${r}`,{type:n});e(o)})).catch((t=>t&&"TypeError"===t.name?function(t){return function(t){return new Promise(((e,n)=>{const i=Xn.document.createElement("img");i.addEventListener("load",(()=>{const t=Xn.document.createElement("canvas");t.width=i.width,t.height=i.height;t.getContext("2d").drawImage(i,0,0),t.toBlob((t=>t?e(t):n()))})),i.addEventListener("error",(()=>n())),i.src=t}))}(t).then((e=>{const n=uC(e,t),i=n.replace("image/","");return new File([e],`image.${i}`,{type:n})}))}(i).then(e).catch(n):n(t)))}))}function uC(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}class hC extends Oo{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor;t.ui.componentFactory.add("uploadImage",(()=>this._createToolbarButton())),t.ui.componentFactory.add("imageUpload",(()=>this._createToolbarButton())),t.ui.componentFactory.add("menuBar:uploadImage",(()=>this._createMenuBarButton("standalone"))),t.plugins.has("ImageInsertUI")&&t.plugins.get("ImageInsertUI").registerIntegration({name:"upload",observable:()=>t.commands.get("uploadImage"),buttonViewCreator:()=>this._createToolbarButton(),formViewCreator:()=>this._createDropdownButton(),menuBarButtonViewCreator:t=>this._createMenuBarButton(t?"insertOnly":"insertNested")})}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("uploadImage"),r=e.config.get("image.upload.types"),o=cC(r),a=new t(e.locale),s=n.t;return a.set({acceptedType:r.map((t=>`image/${t}`)).join(","),allowMultipleFiles:!0,label:s("Upload from computer"),icon:Ld.imageUpload}),a.bind("isEnabled").to(i),a.on("done",((t,n)=>{const i=Array.from(n).filter((t=>o.test(t.type)));i.length&&(e.execute("uploadImage",{file:i}),e.editing.view.focus())})),a}_createToolbarButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this.editor.commands.get("uploadImage"),i=this._createButton(rg);return i.tooltip=!0,i.bind("label").to(e,"isImageSelected",n,"isAccessAllowed",((e,n)=>t(n?e?"Replace image from computer":"Upload image from computer":"You have no image upload permissions."))),i}_createDropdownButton(){const t=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),n=this._createButton(rg);return n.withText=!0,n.bind("label").to(e,"isImageSelected",(e=>t(e?"Replace from computer":"Upload from computer"))),n.on("execute",(()=>{e.dropdownView.isOpen=!1})),n}_createMenuBarButton(t){const e=this.editor.locale.t,n=this._createButton(rw);switch(n.withText=!0,t){case"standalone":n.label=e("Image from computer");break;case"insertOnly":n.label=e("Image");break;case"insertNested":n.label=e("From computer")}return n}}var dC=n(2267),fC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(dC.A,fC);dC.A.locals;var gC=n(7693),pC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(gC.A,pC);gC.A.locals;var mC=n(1559),bC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(mC.A,bC);mC.A.locals;class wC extends Oo{static get pluginName(){return"ImageUploadProgress"}placeholder;constructor(t){super(t),this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}uploadStatusChange=(t,e,n)=>{const i=this.editor,r=e.item,o=r.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;const a=i.plugins.get("ImageUtils"),s=i.plugins.get(Ow),c=o?e.attributeNewValue:null,l=this.placeholder,u=i.editing.mapper.toViewElement(r),h=n.writer;if("reading"==c)return kC(u,h),void vC(a,l,u,h);if("uploading"==c){const t=s.loaders.get(o);return kC(u,h),void(t?(yC(u,h),function(t,e,n,i){const r=function(t){const e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),r),n.on("change:uploadedPercent",((t,e,n)=>{i.change((t=>{t.setStyle("width",n+"%",r)}))}))}(u,h,t,i.editing.view),function(t,e,n,i){if(i.data){const r=t.findViewImgElement(e);n.setAttribute("src",i.data,r)}}(a,u,h,t)):vC(a,l,u,h))}"complete"==c&&s.loaders.get(o)&&function(t,e,n){const i=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),i),setTimeout((()=>{n.change((t=>t.remove(t.createRangeOn(i))))}),3e3)}(u,h,i.editing.view),function(t,e){CC(t,e,"progressBar")}(u,h),yC(u,h),function(t,e){e.removeClass("ck-appear",t)}(u,h)}}function kC(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function vC(t,e,n,i){n.hasClass("ck-image-upload-placeholder")||i.addClass("ck-image-upload-placeholder",n);const r=t.findViewImgElement(n);r.getAttribute("src")!==e&&i.setAttribute("src",e,r),_C(n,"placeholder")||i.insert(i.createPositionAfter(r),function(t){const e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(i))}function yC(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),CC(t,e,"placeholder")}function _C(t,e){for(const n of t.getChildren())if(n.getCustomProperty(e))return n}function CC(t,e,n){const i=_C(t,n);i&&e.remove(e.createRangeOn(i))}class AC extends Ro{constructor(t){super(t),this.set("isAccessAllowed",!0)}refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=Jr(t.file),n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(n.getAttributes());e.forEach(((t,e)=>{const o=n.getSelectedElement();if(e&&o&&i.isImage(o)){const e=this.editor.model.createPositionAfter(o);this._uploadImage(t,r,e)}else this._uploadImage(t,r)}))}_uploadImage(t,e,n){const i=this.editor,r=i.plugins.get(Ow).createLoader(t),o=i.plugins.get("ImageUtils");r&&o.insertImage({...e,uploadId:r.id},n)}}class xC extends Oo{static get requires(){return[Ow,gb,oy,x_]}static get pluginName(){return"ImageUploadEditing"}_uploadImageElements;constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}init(){const t=this.editor,e=t.model.document,n=t.conversion,i=t.plugins.get(Ow),r=t.plugins.get("ImageUtils"),o=t.plugins.get("ClipboardPipeline"),a=cC(t.config.get("image.upload.types")),s=new AC(t);t.commands.add("uploadImage",s),t.commands.add("imageUpload",s),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,n)=>{if(i=n.dataTransfer,Array.from(i.types).includes("text/html")&&""!==i.getData("text/html"))return;var i;const r=Array.from(n.dataTransfer.files).filter((t=>!!t&&a.test(t.type)));if(!r.length)return;e.stop(),t.model.change((e=>{n.targetRanges&&e.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),t.execute("uploadImage",{file:r})}));if(!t.commands.get("uploadImage").isAccessAllowed){const e=t.plugins.get("Notification"),n=t.locale.t;e.showWarning(n("You have no image upload permissions."),{namespace:"image"})}})),this.listenTo(o,"inputTransformation",((e,n)=>{const o=Array.from(t.editing.view.createRangeIn(n.content)).map((t=>t.item)).filter((t=>function(t,e){return!(!t.isInlineImageView(e)||!e.getAttribute("src")||!e.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!e.getAttribute("src").match(/^blob:/g))}(r,t)&&!t.getAttribute("uploadProcessed"))).map((t=>({promise:lC(t),imageElement:t})));if(!o.length)return;const a=new jh(t.editing.view.document);for(const t of o){a.setAttribute("uploadProcessed",!0,t.imageElement);const e=i.createLoader(t.promise);e&&(a.setAttribute("src","",t.imageElement),a.setAttribute("uploadId",e.id,t.imageElement))}})),t.editing.view.document.on("dragover",((t,e)=>{e.preventDefault()})),e.on("change",(()=>{const n=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),r=new Set;for(const e of n)if("insert"==e.type&&"$text"!=e.name){const n=e.position.nodeAfter,o="$graveyard"==e.position.root.rootName;for(const e of EC(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=i.loaders.get(t);n&&(o?r.has(t)||n.abort():(r.add(t),this._uploadImageElements.set(t,e),"idle"==n.status&&this._readAndUpload(n)))}}})),this.on("uploadComplete",((t,{imageElement:e,data:n})=>{const i=n.urls?n.urls:n;this.editor.model.change((t=>{t.setAttribute("src",i.default,e),this._parseAndSetSrcsetAttributeOnImage(i,e,t),r.setImageNaturalSizeAttributes(e)}))}),{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,i=e.locale.t,r=e.plugins.get(Ow),o=e.plugins.get(gb),a=e.plugins.get("ImageUtils"),s=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},(e=>{e.setAttribute("uploadStatus","reading",s.get(t.id))})),t.read().then((()=>{const r=t.upload(),o=s.get(t.id);if(Jn.isSafari){const t=e.editing.mapper.toViewElement(o),n=a.findViewImgElement(t);e.editing.view.once("render",(()=>{if(!n.parent)return;const t=e.editing.view.domConverter.mapViewToDom(n.parent);if(!t)return;const i=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=i}))}return e.ui&&e.ui.ariaLiveAnnouncer.announce(i("Uploading image")),n.enqueueChange({isUndoable:!1},(t=>{t.setAttribute("uploadStatus","uploading",o)})),r})).then((r=>{n.enqueueChange({isUndoable:!1},(n=>{const o=s.get(t.id);n.setAttribute("uploadStatus","complete",o),e.ui&&e.ui.ariaLiveAnnouncer.announce(i("Image upload complete")),this.fire("uploadComplete",{data:r,imageElement:o})})),c()})).catch((r=>{if(e.ui&&e.ui.ariaLiveAnnouncer.announce(i("Error during image upload")),"error"!==t.status&&"aborted"!==t.status)throw r;"error"==t.status&&r&&o.showWarning(r,{title:i("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},(e=>{e.remove(s.get(t.id))})),c()}));function c(){n.enqueueChange({isUndoable:!1},(e=>{const n=s.get(t.id);e.removeAttribute("uploadId",n),e.removeAttribute("uploadStatus",n),s.delete(t.id)})),r.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let i=0;const r=Object.keys(t).filter((t=>{const e=parseInt(t,10);if(!isNaN(e))return i=Math.max(i,e),!0})).map((e=>`${t[e]} ${e}w`)).join(", ");if(""!=r){const t={srcset:r};e.hasAttribute("width")||e.hasAttribute("height")||(t.width=i),n.setAttributes(t,e)}}}function EC(t,e){const n=t.plugins.get("ImageUtils");return Array.from(t.model.createRangeOn(e)).filter((t=>n.isImage(t.item))).map((t=>t.item))}const TC=function(t,e){return function(n,i){if(null==n)return n;if(!Te(n))return t(n,i);for(var r=n.length,o=e?r:-1,a=Object(n);(e?o--:++o<r)&&!1!==i(a[o],o,a););return n}}(Hv);const SC=function(t,e){var n=-1,i=Te(t)?Array(t.length):[];return TC(t,(function(t,r,o){i[++n]=e(t,r,o)})),i};const DC=function(t,e){return(ne(t)?ba:SC)(t,ny(e,3))};class IC extends Ro{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils").getClosestSelectedImageElement(t.model.document.selection);this.isEnabled=!!e,e&&e.hasAttribute("resizedWidth")?this.value={width:e.getAttribute("resizedWidth"),height:null}:this.value=null}execute(t){const e=this.editor,n=e.model,i=e.plugins.get("ImageUtils"),r=i.getClosestSelectedImageElement(n.document.selection);this.value={width:t.width,height:null},r&&n.change((e=>{e.setAttribute("resizedWidth",t.width,r),e.removeAttribute("resizedHeight",r),i.setImageNaturalSizeAttributes(r)}))}}class BC extends Oo{static get requires(){return[x_]}static get pluginName(){return"ImageResizeEditing"}constructor(t){super(t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:custom",value:"custom",icon:"custom"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const t=this.editor,e=new IC(t);this._registerConverters("imageBlock"),this._registerConverters("imageInline"),t.commands.add("resizeImage",e),t.commands.add("imageResize",e)}afterInit(){this._registerSchema()}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["resizedWidth","resizedHeight"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["resizedWidth","resizedHeight"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils");e.conversion.for("downcast").add((e=>e.on(`attribute:resizedWidth:${t}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=n.writer,r=n.mapper.toViewElement(e.item);null!==e.attributeNewValue?(i.setStyle("width",e.attributeNewValue,r),i.addClass("image_resized",r)):(i.removeStyle("width",r),i.removeClass("image_resized",r))})))),e.conversion.for("dataDowncast").attributeToAttribute({model:{name:t,key:"resizedHeight"},view:t=>({key:"style",value:{height:t}})}),e.conversion.for("editingDowncast").add((e=>e.on(`attribute:resizedHeight:${t}`,((e,i,r)=>{if(!r.consumable.consume(i.item,e.name))return;const o=r.writer,a=r.mapper.toViewElement(i.item),s="imageInline"===t?n.findViewImgElement(a):a;null!==i.attributeNewValue?o.setStyle("height",i.attributeNewValue,s):o.removeStyle("height",s)})))),e.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===t?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:t=>C_(t)?null:t.getStyle("width")}}),e.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===t?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:t=>C_(t)?null:t.getStyle("height")}})}}const MC=(()=>({small:Ld.objectSizeSmall,medium:Ld.objectSizeMedium,large:Ld.objectSizeLarge,custom:Ld.objectSizeCustom,original:Ld.objectSizeFull}))();class PC extends Oo{static get requires(){return[BC]}static get pluginName(){return"ImageResizeButtons"}_resizeUnit;constructor(t){super(t),this._resizeUnit=t.config.get("image.resizeUnit")}init(){const t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const t of e)this._registerImageResizeButton(t);this._registerImageResizeDropdown(e)}_registerImageResizeButton(t){const e=this.editor,{name:n,value:i,icon:r}=t;e.ui.componentFactory.add(n,(n=>{const o=new bf(n),a=e.commands.get("resizeImage"),s=this._getOptionLabelValue(t,!0);if(!MC[r])throw new wi("imageresizebuttons-missing-icon",e,t);if(o.set({label:s,icon:MC[r],tooltip:s,isToggleable:!0}),o.bind("isEnabled").to(this),e.plugins.has("ImageCustomResizeUI")&&LC(t)){const t=e.plugins.get("ImageCustomResizeUI");this.listenTo(o,"execute",(()=>{t._showForm(this._resizeUnit)}))}else{const t=i?i+this._resizeUnit:null;o.bind("isOn").to(a,"value",OC(t)),this.listenTo(o,"execute",(()=>{e.execute("resizeImage",{width:t})}))}return o}))}_registerImageResizeDropdown(t){const e=this.editor,n=e.t,i=t.find((t=>!t.value)),r=r=>{const o=e.commands.get("resizeImage"),a=Ep(r,$g),s=a.buttonView,c=n("Resize image");return s.set({tooltip:c,commandValue:i.value,icon:MC.medium,isToggleable:!0,label:this._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button",ariaLabel:c,ariaLabelledBy:void 0}),s.bind("label").to(o,"value",(t=>t&&t.width?t.width:this._getOptionLabelValue(i))),a.bind("isEnabled").to(this),Dp(a,(()=>this._getResizeDropdownListItemDefinitions(t,o)),{ariaLabel:n("Image resize list"),role:"menu"}),this.listenTo(a,"execute",(t=>{"onClick"in t.source?t.source.onClick():(e.execute(t.source.commandName,{width:t.source.commandValue}),e.editing.view.focus())})),a};e.ui.componentFactory.add("resizeImage",r),e.ui.componentFactory.add("imageResize",r)}_getOptionLabelValue(t,e=!1){const n=this.editor.t;return t.label?t.label:e?LC(t)?n("Custom image size"):t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):LC(t)?n("Custom"):t.value?t.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(t,e){const{editor:n}=this,i=new Ao,r=t.map((t=>LC(t)?{...t,valueWithUnits:"custom"}:t.value?{...t,valueWithUnits:`${t.value}${this._resizeUnit}`}:{...t,valueWithUnits:null}));for(const t of r){let o=null;if(n.plugins.has("ImageCustomResizeUI")&&LC(t)){const i=n.plugins.get("ImageCustomResizeUI");o={type:"button",model:new pb({label:this._getOptionLabelValue(t),role:"menuitemradio",withText:!0,icon:null,onClick:()=>{i._showForm(this._resizeUnit)}})};const a=DC(r,"valueWithUnits");o.model.bind("isOn").to(e,"value",NC(a))}else o={type:"button",model:new pb({commandName:"resizeImage",commandValue:t.valueWithUnits,label:this._getOptionLabelValue(t),role:"menuitemradio",withText:!0,icon:null})},o.model.bind("isOn").to(e,"value",OC(t.valueWithUnits));o.model.bind("isEnabled").to(e,"isEnabled"),i.add(o)}return i}}function LC(t){return"custom"===t.value}function OC(t){return e=>null===t&&e===t||null!==e&&e.width===t}function NC(t){return e=>!t.some((t=>OC(t)(e)))}const RC="image_resized";class FC extends Oo{static get requires(){return[Wy,x_]}static get pluginName(){return"ImageResizeHandles"}init(){const t=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(t),this._setupResizerCreator()}_setupResizerCreator(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils");e.addObserver(R_),this.listenTo(e.document,"imageLoaded",((i,r)=>{if(!r.target.matches("figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img"))return;const o=t.editing.view.domConverter,a=o.domToView(r.target),s=n.getImageWidgetFromImageView(a);let c=this.editor.plugins.get(Wy).getResizerByViewElement(s);if(c)return void c.redraw();const l=t.editing.mapper,u=l.toModelElement(s);c=t.plugins.get(Wy).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:u,viewElement:s,editor:t,getHandleHost:t=>t.querySelector("img"),getResizeHost:()=>o.mapViewToDom(l.toViewElement(u)),isCentered:()=>"alignCenter"==u.getAttribute("imageStyle"),onCommit(n){e.change((t=>{t.removeClass(RC,s)})),t.execute("resizeImage",{width:n})}}),c.on("updateSize",(()=>{s.hasClass(RC)||e.change((t=>{t.addClass(RC,s)}));const t="imageInline"===u.name?a:s;t.getStyle("height")&&e.change((e=>{e.removeStyle("height",t)}))})),c.bind("isEnabled").to(this)}))}}function jC(t){if(!t)return null;const[,e,n]=t.trim().match(/([.,\d]+)(%|px)$/)||[],i=Number.parseFloat(e);return Number.isNaN(i)?null:{value:i,unit:n}}function $C(t,e,n){return"px"===n?{value:e.value,unit:"px"}:{value:e.value/t*100,unit:"%"}}function zC(t){const{editing:e}=t,n=t.plugins.get("ImageUtils").getClosestSelectedImageElement(t.model.document.selection);if(!n)return null;const i=e.mapper.toViewElement(n);return{model:n,view:i,dom:e.view.domConverter.mapViewToDom(i)}}var VC=n(4642),HC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(VC.A,HC);VC.A.locals;class qC extends af{focusTracker;keystrokes;unit;labeledInput;saveButtonView;cancelButtonView;_focusables;_focusCycler;_validators;constructor(t,e,n){super(t);const i=this.locale.t;this.focusTracker=new Eo,this.keystrokes=new To,this.unit=e,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(i("Save"),Ld.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),Ld.cancel,"ck-button-cancel","cancel"),this._focusables=new Od,this._validators=n,this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-custom-resize-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),lf({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)}))}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,i){const r=new bf(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createLabeledInputView(){const t=this.locale.t,e=new Tg(this.locale,Lp);return e.label=t("Resize image (in %0)",this.unit),e.fieldView.set({step:.1}),e}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.labeledInput.errorText=e,!1}return!0}resetFormStatus(){this.labeledInput.errorText=null}get rawSize(){const{element:t}=this.labeledInput.fieldView;return t?t.value:null}get parsedSize(){const{rawSize:t}=this;if(null===t)return null;const e=Number.parseFloat(t);return Number.isNaN(e)?null:e}get sizeWithUnits(){const{parsedSize:t,unit:e}=this;return null===t?null:`${t}${e}`}}class UC extends Oo{_balloon;_form;static get requires(){return[yb]}static get pluginName(){return"ImageCustomResizeUI"}destroy(){super.destroy(),this._form&&this._form.destroy()}_createForm(t){const e=this.editor;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(cf(qC))(e.locale,t,function(t){const e=t.t;return[t=>""===t.rawSize.trim()?e("The value must not be empty."):null===t.parsedSize?e("The value should be a plain number."):void 0]}(e)),this._form.render(),this.listenTo(this._form,"submit",(()=>{this._form.isValid()&&(e.execute("resizeImage",{width:this._form.sizeWithUnits}),this._hideForm(!0))})),this.listenTo(this._form.labeledInput,"change:errorText",(()=>{e.ui.update()})),this.listenTo(this._form,"cancel",(()=>{this._hideForm(!0)})),this._form.keystrokes.set("Esc",((t,e)=>{this._hideForm(!0),e()})),sf({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(t){if(this._isVisible)return;this._form||this._createForm(t);const e=this.editor,n=this._form.labeledInput;this._form.disableCssTransitions(),this._form.resetFormStatus(),this._isInBalloon||this._balloon.add({view:this._form,position:M_(e)});const i=function(t,e){const n=zC(t);if(!n)return null;const i=jC(n.model.getAttribute("resizedWidth")||null);return i?i.unit===e?i:$C(yy(n.dom),{unit:"px",value:new mr(n.dom).width},e):null}(e,t),r=i?i.value.toFixed(1):"",o=function(t,e){const n=zC(t);if(!n)return null;const i=yy(n.dom),r=jC(window.getComputedStyle(n.dom).minWidth)||{value:1,unit:"px"};return{unit:e,lower:Math.max(.1,$C(i,r,e).value),upper:"px"===e?i:100}}(e,t);n.fieldView.value=n.fieldView.element.value=r,o&&Object.assign(n.fieldView,{min:o.lower.toFixed(1),max:Math.ceil(o.upper).toFixed(1)}),this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}var GC=n(3469),WC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(GC.A,WC);GC.A.locals;class KC extends Ro{_defaultStyles;_styles;constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map((t=>{if(t.isDefault)for(const e of t.modelElements)this._defaultStyles[e]=t.name;return[t.name,t]})))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?t.hasAttribute("imageStyle")?this.value=t.getAttribute("imageStyle"):this.value=this._defaultStyles[t.name]:this.value=!1}execute(t={}){const e=this.editor,n=e.model,i=e.plugins.get("ImageUtils");n.change((e=>{const r=t.value,{setImageSizes:o=!0}=t;let a=i.getClosestSelectedImageElement(n.document.selection);r&&this.shouldConvertImageType(r,a)&&(this.editor.execute(i.isBlockImage(a)?"imageTypeInline":"imageTypeBlock",{setImageSizes:o}),a=i.getClosestSelectedImageElement(n.document.selection)),!r||this._styles.get(r).isDefault?e.removeAttribute("imageStyle",a):e.setAttribute("imageStyle",r,a),o&&i.setImageNaturalSizeAttributes(a)}))}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}const YC={get inline(){return{name:"inline",title:"In line",icon:Ld.objectInline,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ld.objectLeft,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Ld.objectBlockLeft,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Ld.objectCenter,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Ld.objectRight,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Ld.objectBlockRight,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:Ld.objectCenter,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Ld.objectRight,modelElements:["imageBlock"],className:"image-style-side"}}},XC=(()=>({full:Ld.objectFullWidth,left:Ld.objectBlockLeft,right:Ld.objectBlockRight,center:Ld.objectCenter,inlineLeft:Ld.objectLeft,inlineRight:Ld.objectRight,inline:Ld.objectInline}))(),ZC=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function QC(t){ki("image-style-configuration-definition-invalid",t)}const JC={normalizeStyles:function(t){return(t.configuredStyles.options||[]).map((t=>function(t){t="string"==typeof t?YC[t]?{...YC[t]}:{name:t}:function(t,e){const n={...e};for(const i in t)Object.prototype.hasOwnProperty.call(e,i)||(n[i]=t[i]);return n}(YC[t.name],t);"string"==typeof t.icon&&(t.icon=XC[t.icon]||t.icon);return t}(t))).filter((e=>function(t,{isBlockPluginLoaded:e,isInlinePluginLoaded:n}){const{modelElements:i,name:r}=t;if(!(i&&i.length&&r))return QC({style:t}),!1;{const r=[e?"imageBlock":null,n?"imageInline":null];if(!i.some((t=>r.includes(t))))return ki("image-style-missing-dependency",{style:t,missingPlugins:i.map((t=>"imageBlock"===t?"ImageBlockEditing":"ImageInlineEditing"))}),!1}return!0}(e,t)))},getDefaultStylesConfiguration:function(t,e){return t&&e?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:t?{options:["block","side"]}:e?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(t){return t.has("ImageBlockEditing")&&t.has("ImageInlineEditing")?[...ZC]:[]},warnInvalidStyle:QC,DEFAULT_OPTIONS:YC,DEFAULT_ICONS:XC,DEFAULT_DROPDOWN_DEFINITIONS:ZC};function tA(t,e){for(const n of e)if(n.name===t)return n}class eA extends Oo{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[x_]}normalizedStyles;init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=JC,n=this.editor,i=n.plugins.has("ImageBlockEditing"),r=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(i,r)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:i,isInlinePluginLoaded:r}),this._setupConversion(i,r),this._setupPostFixer(),n.commands.add("imageStyle",new KC(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,i=n.model.schema,r=(o=this.normalizedStyles,(t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const i=tA(e.attributeNewValue,o),r=tA(e.attributeOldValue,o),a=n.mapper.toViewElement(e.item),s=n.writer;r&&s.removeClass(r.className,a),i&&s.addClass(i.className,a)});var o;const a=function(t){const e={imageInline:t.filter((t=>!t.isDefault&&t.modelElements.includes("imageInline"))),imageBlock:t.filter((t=>!t.isDefault&&t.modelElements.includes("imageBlock")))};return(t,n,i)=>{if(!n.modelRange)return;const r=n.viewItem,o=xo(n.modelRange.getItems());if(o&&i.schema.checkAttribute(o,"imageStyle"))for(const t of e[o.name])i.consumable.consume(r,{classes:t.className})&&i.writer.setAttribute("imageStyle",t.name,o)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",r),n.data.downcastDispatcher.on("attribute:imageStyle",r),t&&(i.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",a,{priority:"low"})),e&&(i.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",a,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(x_),i=new Map(this.normalizedStyles.map((t=>[t.name,t])));e.registerPostFixer((t=>{let r=!1;for(const o of e.differ.getChanges())if("insert"==o.type||"attribute"==o.type&&"imageStyle"==o.attributeKey){let e="insert"==o.type?o.position.nodeAfter:o.range.start.nodeAfter;if(e&&e.is("element","paragraph")&&e.childCount>0&&(e=e.getChild(0)),!n.isImage(e))continue;const a=e.getAttribute("imageStyle");if(!a)continue;const s=i.get(a);s&&s.modelElements.includes(e.name)||(t.removeAttribute("imageStyle",e),r=!0)}return r}))}}var nA=n(6386),iA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(nA.A,iA);nA.A.locals;class rA extends Oo{static get requires(){return[eA]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=oA(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const t of n)this._createButton(t);const i=oA([...e.filter(a),...JC.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const t of i)this._createDropdown(t,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,(i=>{let r;const{defaultItem:o,items:a,title:s}=t,c=a.filter((t=>e.find((({name:e})=>aA(e)===t)))).map((t=>{const e=n.create(t);return t===o&&(r=e),e}));a.length!==c.length&&JC.warnInvalidStyle({dropdown:t});const l=Ep(i,yp),u=l.buttonView,h=u.arrowView;return Tp(l,c,{enableActiveItemFocusOnDropdownOpen:!0}),u.set({label:sA(s,r.label),class:null,tooltip:!0}),h.unbind("label"),h.set({label:s}),u.bind("icon").toMany(c,"isOn",((...t)=>{const e=t.findIndex(so);return e<0?r.icon:c[e].icon})),u.bind("label").toMany(c,"isOn",((...t)=>{const e=t.findIndex(so);return sA(s,e<0?r.label:c[e].label)})),u.bind("isOn").toMany(c,"isOn",((...t)=>t.some(so))),u.bind("class").toMany(c,"isOn",((...t)=>t.some(so)?"ck-splitbutton_flatten":void 0)),u.on("execute",(()=>{c.some((({isOn:t})=>t))?l.isOpen=!l.isOpen:r.fire("execute")})),l.bind("isEnabled").toMany(c,"isEnabled",((...t)=>t.some(so))),this.listenTo(l,"execute",(()=>{this.editor.editing.view.focus()})),l}))}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(aA(e),(n=>{const i=this.editor.commands.get("imageStyle"),r=new bf(n);return r.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",(t=>t===e)),r.on("execute",this._executeCommand.bind(this,e)),r}))}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function oA(t,e){for(const n of t)e[n.title]&&(n.title=e[n.title]);return t}function aA(t){return`imageStyle:${t}`}function sA(t,e){return(t?t+": ":"")+e}class cA{_definitions=new Set;get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach((t=>this._definitions.add(t))):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",((t,e,n)=>{if(!n.consumable.test(e.item,"attribute:linkHref"))return;if(!e.item.is("selection")&&!n.schema.isInline(e.item))return;const i=n.writer,r=i.document.selection;for(const t of this._definitions){const o=i.createAttributeElement("a",t.attributes,{priority:5});t.classes&&i.addClass(t.classes,o);for(const e in t.styles)i.setStyle(e,t.styles[e],o);i.setCustomProperty("link",!0,o),t.callback(e.attributeNewValue)?e.item.is("selection")?i.wrap(r.getFirstRange(),o):i.wrap(n.mapper.toViewRange(e.range),o):i.unwrap(n.mapper.toViewRange(e.range),o)}}),{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",((t,e,{writer:n,mapper:i})=>{const r=i.toViewElement(e.item),o=Array.from(r.getChildren()).find((t=>t.is("element","a")));for(const t of this._definitions){const i=So(t.attributes);if(t.callback(e.attributeNewValue)){for(const[t,e]of i)"class"===t?n.addClass(e,o):n.setAttribute(t,e,o);t.classes&&n.addClass(t.classes,o);for(const e in t.styles)n.setStyle(e,t.styles[e],o)}else{for(const[t,e]of i)"class"===t?n.removeClass(e,o):n.removeAttribute(t,o);t.classes&&n.removeClass(t.classes,o);for(const e in t.styles)n.removeStyle(e,o)}}}))}}}const lA=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:Ea(t,e,n)};var uA=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const hA=function(t){return uA.test(t)};const dA=function(t){return t.split("")};var fA="\\ud800-\\udfff",gA="["+fA+"]",pA="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",mA="\\ud83c[\\udffb-\\udfff]",bA="[^"+fA+"]",wA="(?:\\ud83c[\\udde6-\\uddff]){2}",kA="[\\ud800-\\udbff][\\udc00-\\udfff]",vA="(?:"+pA+"|"+mA+")"+"?",yA="[\\ufe0e\\ufe0f]?",_A=yA+vA+("(?:\\u200d(?:"+[bA,wA,kA].join("|")+")"+yA+vA+")*"),CA="(?:"+[bA+pA+"?",pA,wA,kA,gA].join("|")+")",AA=RegExp(mA+"(?="+mA+")|"+CA+_A,"g");const xA=function(t){return t.match(AA)||[]};const EA=function(t){return hA(t)?xA(t):dA(t)};const TA=function(t){return function(e){e=ya(e);var n=hA(e)?EA(e):void 0,i=n?n[0]:e.charAt(0),r=n?lA(n,1).join(""):e.slice(1);return i[t]()+r}}("toUpperCase"),SA=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,DA=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,IA=/^((\w+:(\/{2,})?)|(\W))/i,BA=["https?","ftps?","mailto"],MA="Ctrl+K";function PA(t,{writer:e}){const n=e.createAttributeElement("a",{href:t},{priority:5});return e.setCustomProperty("link",!0,n),n}function LA(t,e=BA){const n=String(t),i=e.join("|");return function(t,e){const n=t.replace(SA,"");return!!n.match(e)}(n,new RegExp(`${"^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))".replace("<protocols>",i)}`,"i"))?n:"#"}function OA(t,e){return!!t&&e.checkAttribute(t.name,"linkHref")}function NA(t,e){const n=(i=t,DA.test(i)?"mailto:":e);var i;const r=!!n&&!RA(t);return t&&r?n+t:t}function RA(t){return IA.test(t)}function FA(t){window.open(t,"_blank","noopener")}class jA extends Ro{manualDecorators=new Ao;automaticDecorators=new cA;restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||xo(e.getSelectedBlocks());OA(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}execute(t,e={}){const n=this.editor.model,i=n.document.selection,r=[],o=[];for(const t in e)e[t]?r.push(t):o.push(t);n.change((e=>{if(i.isCollapsed){const a=i.getFirstPosition();if(i.hasAttribute("linkHref")){const s=$A(i);let c=yk(a,"linkHref",i.getAttribute("linkHref"),n);i.getAttribute("linkHref")===s&&(c=this._updateLinkContent(n,e,c,t)),e.setAttribute("linkHref",t,c),r.forEach((t=>{e.setAttribute(t,!0,c)})),o.forEach((t=>{e.removeAttribute(t,c)})),e.setSelection(e.createPositionAfter(c.end.nodeBefore))}else if(""!==t){const o=So(i.getAttributes());o.set("linkHref",t),r.forEach((t=>{o.set(t,!0)}));const{end:s}=n.insertContent(e.createText(t,o),a);e.setSelection(s)}["linkHref",...r,...o].forEach((t=>{e.removeSelectionAttribute(t)}))}else{const a=n.schema.getValidRanges(i.getRanges(),"linkHref"),s=[];for(const t of i.getSelectedBlocks())n.schema.checkAttribute(t,"linkHref")&&s.push(e.createRangeOn(t));const c=s.slice();for(const t of a)this._isRangeToUpdate(t,s)&&c.push(t);for(const a of c){let s=a;if(1===c.length){const r=$A(i);i.getAttribute("linkHref")===r&&(s=this._updateLinkContent(n,e,a,t),e.setSelection(e.createSelection(s)))}e.setAttribute("linkHref",t,s),r.forEach((t=>{e.setAttribute(t,!0,s)})),o.forEach((t=>{e.removeAttribute(t,s)}))}}}))}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,i=n.getSelectedElement();return OA(i,e.schema)?i.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,i){const r=e.createText(i,{linkHref:i});return t.insertContent(r,n)}}function $A(t){if(t.isCollapsed){const e=t.getFirstPosition();return e.textNode&&e.textNode.data}{const e=Array.from(t.getFirstRange().getItems());if(e.length>1)return null;const n=e[0];return n.is("$text")||n.is("$textProxy")?n.data:null}}class zA extends Ro{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();OA(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const t=this.editor,e=this.editor.model,n=e.document.selection,i=t.commands.get("link");e.change((t=>{const r=n.isCollapsed?[yk(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const e of r)if(t.removeAttribute("linkHref",e),i)for(const n of i.manualDecorators)t.removeAttribute(n.id,e)}))}}class VA extends(Vi()){id;defaultValue;label;attributes;classes;styles;constructor({id:t,label:e,attributes:n,classes:i,styles:r,defaultValue:o}){super(),this.id=t,this.set("value",void 0),this.defaultValue=o,this.label=e,this.attributes=n,this.classes=i,this.styles=r}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var HA=n(7719),qA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(HA.A,qA);HA.A.locals;const UA="automatic",GA=/^(https?:)?\/\//;class WA extends Oo{static get pluginName(){return"LinkEditing"}static get requires(){return[sk,Gw,oy]}constructor(t){super(t),t.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){const t=this.editor,e=this.editor.config.get("link.allowedProtocols");t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:PA}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(t,n)=>PA(LA(t,e),n)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:t=>t.getAttribute("href")}}),t.commands.add("link",new jA(t)),t.commands.add("unlink",new zA(t));const n=function(t,e){const n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach((t=>("label"in t&&n[t.label]&&(t.label=n[t.label]),t))),e}(t.t,function(t){const e=[];if(t)for(const[n,i]of Object.entries(t)){const t=Object.assign({},i,{id:`link${TA(n)}`});e.push(t)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(n.filter((t=>t.mode===UA))),this._enableManualDecorators(n.filter((t=>"manual"===t.mode)));t.plugins.get(sk).registerAttribute("linkHref"),Ck(t,"linkHref","a","ck-link_selected"),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:UA,callback:t=>!!t&&GA.test(t),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach((t=>{e.model.schema.extend("$text",{allowAttributes:t.id});const i=new VA(t);n.add(i),e.conversion.for("downcast").attributeToElement({model:i.id,view:(t,{writer:e,schema:n},{item:r})=>{if((r.is("selection")||n.isInline(r))&&t){const t=e.createAttributeElement("a",i.attributes,{priority:5});i.classes&&e.addClass(i.classes,t);for(const n in i.styles)e.setStyle(n,i.styles[n],t);return e.setCustomProperty("link",!0,t),t}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",...i._createPattern()},model:{key:i.id}})}))}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",((t,e)=>{if(!(Jn.isMac?e.domEvent.metaKey:e.domEvent.ctrlKey))return;let n=e.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;const i=n.getAttribute("href");i&&(t.stop(),e.preventDefault(),FA(i))}),{context:"$capture"}),this.listenTo(e,"keydown",((e,n)=>{const i=t.commands.get("link").value;!!i&&n.keyCode===Gr.enter&&n.altKey&&(e.stop(),FA(i))}))}_enableSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(e,"change:attribute",((n,{attributeKeys:i})=>{i.includes("linkHref")&&!e.hasAttribute("linkHref")&&t.change((e=>{var n;!function(t,e){t.removeSelectionAttribute("linkHref");for(const n of e)t.removeSelectionAttribute(n)}(e,(n=t.schema,n.getDefinition("$text").allowAttributes.filter((t=>t.startsWith("link")))))}))}))}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",((t,i)=>{e.change((t=>{const e=t.createRangeIn(i.content);for(const i of e.getItems())if(i.hasAttribute("linkHref")){const e=NA(i.getAttribute("linkHref"),n);t.setAttribute("linkHref",e,i)}}))}))}}var KA=n(3817),YA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(KA.A,YA);KA.A.locals;class XA extends af{focusTracker=new Eo;keystrokes=new To;urlInputView;saveButtonView;cancelButtonView;_manualDecoratorSwitches;children;_validators;_focusables=new Od;_focusCycler;constructor(t,e,n){super(t);const i=t.t;this._validators=n,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(i("Save"),Ld.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),Ld.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const r=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&r.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:r,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(((t,e)=>(t[e.name]=e.isOn,t)),{})}render(){super.render(),lf({view:this});[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null}_createUrlInput(){const t=this.locale.t,e=new Tg(this.locale,Pp);return e.fieldView.inputMode="url",e.label=t("Link URL"),e}_createButton(t,e,n,i){const r=new bf(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const i=new ig(this.locale);i.set({name:n.id,label:n.label,withText:!0}),i.bind("isOn").toMany([n,t],"value",((t,e)=>void 0===e&&void 0===t?!!n.defaultValue:!!t)),i.on("execute",(()=>{n.set("value",!i.isOn)})),e.add(i)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const t=new af;t.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((t=>({tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}}))),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(t)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}get url(){const{element:t}=this.urlInputView.fieldView;return t?t.value.trim():null}}var ZA=n(8762),QA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(ZA.A,QA);ZA.A.locals;class JA extends af{focusTracker=new Eo;keystrokes=new To;previewButtonView;unlinkButtonView;editButtonView;_focusables=new Od;_focusCycler;_linkConfig;constructor(t,e={}){super(t);const n=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(n("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),this.editButtonView=this._createButton(n("Edit link"),Ld.pencil,"edit"),this.set("href",void 0),this._linkConfig=e,this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render();[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const i=new bf(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){const t=new bf(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",(t=>t&&LA(t,this._linkConfig.allowedProtocols))),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",(t=>t||n("This link has no URL"))),t.bind("isEnabled").to(this,"href",(t=>!!t)),t.template.tag="a",t.template.eventListeners={},t}}const tx="link-ui";class ex extends Oo{actionsView=null;formView=null;_balloon;static get requires(){return[yb]}static get pluginName(){return"LinkUI"}init(){const t=this.editor,e=this.editor.t;t.editing.view.addObserver(Rh),this._balloon=t.plugins.get(yb),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:tx,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:tx,view:(t,{writer:e})=>{if(!t.markerRange.isCollapsed)return null;const n=e.createUIElement("span");return e.addClass(["ck-fake-link-selection","ck-fake-link-selection_collapsed"],n),n}}),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Create link"),keystroke:MA},{label:e("Move out of a link"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new JA(t.locale,t.config.get("link")),n=t.commands.get("link"),i=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(e,"edit",(()=>{this._addFormView()})),this.listenTo(e,"unlink",(()=>{t.execute("unlink"),this._hideUI()})),e.keystrokes.set("Esc",((t,e)=>{this._hideUI(),e()})),e.keystrokes.set(MA,((t,e)=>{this._addFormView(),e()})),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),i=new(cf(XA))(t.locale,e,function(t){const e=t.t,n=t.config.get("link.allowCreatingEmptyLinks");return[t=>{if(!n&&!t.url.length)return e("Link URL must not be empty.")}]}(t));return i.urlInputView.fieldView.bind("value").to(e,"value"),i.urlInputView.bind("isEnabled").to(e,"isEnabled"),i.saveButtonView.bind("isEnabled").to(e,"isEnabled"),this.listenTo(i,"submit",(()=>{if(i.isValid()){const{value:e}=i.urlInputView.fieldView.element,r=NA(e,n);t.execute("link",r,i.getDecoratorSwitchesState()),this._closeFormView()}})),this.listenTo(i.urlInputView,"change:errorText",(()=>{t.ui.update()})),this.listenTo(i,"cancel",(()=>{this._closeFormView()})),i.keystrokes.set("Esc",((t,e)=>{this._closeFormView(),e()})),i}_createToolbarLinkButton(){const t=this.editor;t.ui.componentFactory.add("link",(()=>{const t=this._createButton(bf);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:link",(()=>{const t=this._createButton(Kf);return t.set({role:"menuitemcheckbox"}),t}))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("link"),r=new t(e.locale),o=n.t;return r.set({label:o("Link"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',keystroke:MA,isToggleable:!0}),r.bind("isEnabled").to(i,"isEnabled"),r.bind("isOn").to(i,"value",(t=>!!t)),this.listenTo(r,"execute",(()=>this._showUI(!0))),r}_enableBalloonActivators(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",(()=>{this._getSelectedLinkElement()&&this._showUI()})),t.keystrokes.set(MA,((e,n)=>{n(),t.commands.get("link").isEnabled&&this._showUI(!0)}))}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",((t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())}),{priority:"high"}),this.editor.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),sf({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this.formView.resetFormStatus(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.formView.urlInputView.fieldView.value=t.value||"",this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this.formView.urlInputView.fieldView.reset(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),i=o();const r=()=>{const t=this._getSelectedLinkElement(),e=o();n&&!t||!n&&e!==i?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=t,i=e};function o(){return e.selection.focus.getAncestors().reverse().find((t=>t.is("element")))}this.listenTo(t.ui,"update",r),this.listenTo(this._balloon,"change:visibleView",r)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const t=this._balloon.visibleView;return!!this.formView&&t==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,e=this.editor.model,n=t.document;let i;if(e.markers.has(tx)){const e=Array.from(this.editor.editing.mapper.markerNameToElements(tx)),n=t.createRange(t.createPositionBefore(e[0]),t.createPositionAfter(e[e.length-1]));i=t.domConverter.viewRangeToDom(n)}else i=()=>{const e=this._getSelectedLinkElement();return e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:i}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&dy(n))return nx(e.getFirstPosition());{const n=e.getFirstRange().getTrimmed(),i=nx(n.start),r=nx(n.end);return i&&i==r&&t.createRangeIn(i).getTrimmed().isEqual(n)?i:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change((e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(tx))e.updateMarker(tx,{range:n});else if(n.start.isAtEnd){const i=n.start.getLastMatchingPosition((({item:e})=>!t.schema.isContent(e)),{boundaries:n});e.addMarker(tx,{usingOperation:!1,affectsData:!1,range:e.createRange(i,n.end)})}else e.addMarker(tx,{usingOperation:!1,affectsData:!1,range:n})}))}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(tx)&&t.change((t=>{t.removeMarker(tx)}))}}function nx(t){return t.getAncestors().find((t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))||null}const ix=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class rx extends Oo{static get requires(){return[ik,WA]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?yk(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const n=this.editor.model,i=n.document.selection,r=i.getFirstPosition(),o=i.getLastPosition();let a=e.getJoined(this._expandLinkRange(n,r)||e);a&&(a=a.getJoined(this._expandLinkRange(n,o)||e)),a&&(a.start.isBefore(r)||a.end.isAfter(o))&&t.setSelection(a)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,i=t.plugins.get("ClipboardPipeline"),r=t.commands.get("link");i.on("inputTransformation",((t,i)=>{if(!this.isEnabled||!r.isEnabled||n.isCollapsed||"paste"!==i.method)return;if(n.rangeCount>1)return;const o=n.getFirstRange(),a=i.dataTransfer.getData("text/plain");if(!a)return;const s=a.match(ix);s&&s[2]===a&&(e.change((t=>{this._selectEntireLinks(t,o),r.execute(a)})),t.stop())}),{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new ak(t.model,(t=>{if(!function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t))return;const e=ox(t.substr(0,t.length-1));return e?{url:e}:void 0}));e.on("matched:data",((e,n)=>{const{batch:i,range:r,url:o}=n;if(!i.isTyping)return;const a=r.end.getShiftedBy(-1),s=a.getShiftedBy(-o.length),c=t.model.createRange(s,a);this._applyAutoLink(o,c)})),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition();if(!t.parent.previousSibling)return;const n=e.createRangeIn(t.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(n)}))}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",(()=>{const t=e.document.selection.getFirstPosition(),n=e.createRange(e.createPositionAt(t.parent,0),t.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(n)}))}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:i}=ok(t,e),r=ox(n);if(r){const t=e.createRange(i.end.getShiftedBy(-r.length),i.end);this._applyAutoLink(r,t)}}_applyAutoLink(t,e){const n=this.editor.model,i=NA(t,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,n)&&RA(i)&&!function(t){const e=t.start.nodeAfter;return!!e&&e.hasAttribute("linkHref")}(e)&&this._persistAutoLink(i,e)}_persistAutoLink(t,e){const n=this.editor.model,i=this.editor.plugins.get("Delete");n.enqueueChange((r=>{r.setAttribute("linkHref",t,e),n.enqueueChange((()=>{i.requestUndoOnBackspace()}))}))}}function ox(t){const e=ix.exec(t);return e?e[2]:null}var ax=n(4808),sx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(ax.A,sx);ax.A.locals;class cx{_startElement;_referenceIndent;_isForward;_includeSelf;_sameAttributes;_sameIndent;_lowerIndent;_higherIndent;constructor(t,e){this._startElement=t,this._referenceIndent=t.getAttribute("listIndent"),this._isForward="forward"==e.direction,this._includeSelf=!!e.includeSelf,this._sameAttributes=Jr(e.sameAttributes||[]),this._sameIndent=!!e.sameIndent,this._lowerIndent=!!e.lowerIndent,this._higherIndent=!!e.higherIndent}static first(t,e){return xo(new this(t,e)[Symbol.iterator]())}*[Symbol.iterator](){const t=[];for(const{node:e}of lx(this._getStartNode(),this._isForward?"forward":"backward")){const n=e.getAttribute("listIndent");if(n<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=n}else if(n>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){t.push(e);continue}}else{if(!this._sameIndent){if(this._higherIndent){t.length&&(yield*t,t.length=0);break}continue}if(this._sameAttributes.some((t=>e.getAttribute(t)!==this._startElement.getAttribute(t))))break}t.length&&(yield*t,t.length=0),yield e}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}function*lx(t,e="forward"){const n="forward"==e,i=[];let r=null;for(;dx(t);){let e=null;if(r){const n=t.getAttribute("listIndent"),o=r.getAttribute("listIndent");n>o?i[o]=r:n<o?(e=i[n],i.length=n):e=r}yield{node:t,previous:r,previousNodeInList:e},r=t,t=n?t.nextSibling:t.previousSibling}}class ux{_listHead;constructor(t){this._listHead=t}[Symbol.iterator](){return lx(this._listHead,"forward")}}class hx{static next(){return pi()}}function dx(t){return!!t&&t.is("element")&&t.hasAttribute("listItemId")}function fx(t,e={}){return[...gx(t,{...e,direction:"backward"}),...gx(t,{...e,direction:"forward"})]}function gx(t,e={}){const n="forward"==e.direction,i=Array.from(new cx(t,{...e,includeSelf:n,sameIndent:!0,sameAttributes:"listItemId"}));return n?i:i.reverse()}function px(t,e){const n=new cx(t,{sameIndent:!0,sameAttributes:"listType",...e}),i=new cx(t,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...e});return[...Array.from(n).reverse(),...i]}function mx(t){return!cx.first(t,{sameIndent:!0,sameAttributes:"listItemId"})}function bx(t){return!cx.first(t,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function wx(t,e={}){t=Jr(t);const n=!1!==e.withNested,i=new Set;for(const e of t)for(const t of fx(e,{higherIndent:n}))i.add(t);return xx(i)}function kx(t){t=Jr(t);const e=new Set;for(const n of t)for(const t of px(n))e.add(t);return xx(e)}function vx(t,e){const n=gx(t,{direction:"forward"}),i=hx.next();for(const t of n)e.setAttribute("listItemId",i,t);return n}function yx(t,e,n){const i={};for(const[t,n]of e.getAttributes())t.startsWith("list")&&(i[t]=n);const r=gx(t,{direction:"forward"});for(const t of r)n.setAttributes(i,t);return r}function _x(t,e,{expand:n,indentBy:i=1}={}){t=Jr(t);const r=n?wx(t):t;for(const t of r){const n=t.getAttribute("listIndent")+i;n<0?Cx(t,e):e.setAttribute("listIndent",n,t)}return r}function Cx(t,e){t=Jr(t);for(const n of t)n.is("element","listItem")&&e.rename(n,"paragraph");for(const n of t)for(const t of n.getAttributeKeys())t.startsWith("list")&&e.removeAttribute(t,n);return t}function Ax(t){if(!t.length)return!1;const e=t[0].getAttribute("listItemId");return!!e&&!t.some((t=>t.getAttribute("listItemId")!=e))}function xx(t){return Array.from(t).filter((t=>"$graveyard"!==t.root.rootName)).sort(((t,e)=>t.index-e.index))}function Ex(t){const e=t.document.selection.getSelectedElement();return e&&t.schema.isObject(e)&&t.schema.isBlock(e)?e:null}function Tx(t,e){return e.checkChild(t.parent,"listItem")&&e.checkChild(t,"$text")&&!e.isObject(t)}function Sx(t){return"numbered"==t||"customNumbered"==t}function Dx(t,e,n){return gx(e,{direction:"forward"}).pop().index>t.index?yx(t,e,n):[]}class Ix extends Ro{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=Bx(t.document.selection);t.change((t=>{const n=[];Ax(e)&&!mx(e[0])?("forward"==this._direction&&n.push(..._x(e,t)),n.push(...vx(e[0],t))):"forward"==this._direction?n.push(..._x(e,t,{expand:!0})):n.push(...function(t,e){const n=wx(t=Jr(t)),i=new Set,r=Math.min(...n.map((t=>t.getAttribute("listIndent")))),o=new Map;for(const t of n)o.set(t,cx.first(t,{lowerIndent:!0}));for(const t of n){if(i.has(t))continue;i.add(t);const n=t.getAttribute("listIndent")-1;if(n<0)Cx(t,e);else{if(t.getAttribute("listIndent")==r){const n=Dx(t,o.get(t),e);for(const t of n)i.add(t);if(n.length)continue}e.setAttribute("listIndent",n,t)}}return xx(i)}(e,t));for(const e of n){if(!e.hasAttribute("listType"))continue;const n=cx.first(e,{sameIndent:!0});n&&t.setAttribute("listType",n.getAttribute("listType"),e)}this._fireAfterExecute(n)}))}_fireAfterExecute(t){this.fire("afterExecute",xx(new Set(t)))}_checkEnabled(){let t=Bx(this.editor.model.document.selection),e=t[0];if(!e)return!1;if("backward"==this._direction)return!0;if(Ax(t)&&!mx(t[0]))return!0;t=wx(t),e=t[0];const n=cx.first(e,{sameIndent:!0});return!!n&&n.getAttribute("listType")==e.getAttribute("listType")}}function Bx(t){const e=Array.from(t.getSelectedBlocks()),n=e.findIndex((t=>!dx(t)));return-1!=n&&(e.length=n),e}class Mx extends Ro{type;_listWalkerOptions;constructor(t,e,n={}){super(t),this.type=e,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,i=Ex(e),r=Array.from(n.selection.getSelectedBlocks()).filter((t=>e.schema.checkAttribute(t,"listType")||Tx(t,e.schema))),o=void 0!==t.forceValue?!t.forceValue:this.value;e.change((a=>{if(o){const t=r[r.length-1],e=gx(t,{direction:"forward"}),n=[];e.length>1&&n.push(...vx(e[1],a)),n.push(...Cx(r,a)),n.push(...function(t,e){const n=[];let i=Number.POSITIVE_INFINITY;for(const{node:r}of lx(t.nextSibling,"forward")){const t=r.getAttribute("listIndent");if(0==t)break;t<i&&(i=t);const o=t-i;e.setAttribute("listIndent",o,r),n.push(r)}return n}(t,a)),this._fireAfterExecute(n)}else if((i||n.selection.isCollapsed)&&dx(r[0])){const e=px(i||r[0],this._listWalkerOptions);for(const n of e)a.setAttributes({...t.additionalAttributes,listType:this.type},n);this._fireAfterExecute(e)}else{const n=[];for(const i of r)if(i.hasAttribute("listType"))for(const e of wx(i,{withNested:!1}))e.getAttribute("listType")!=this.type&&(a.setAttributes({...t.additionalAttributes,listType:this.type},e),n.push(e));else!i.is("element","listItem")&&Tx(i,e.schema)&&a.rename(i,"listItem"),a.setAttributes({...t.additionalAttributes,listIndent:0,listItemId:hx.next(),listType:this.type},i),n.push(i);this._fireAfterExecute(n)}}))}_fireAfterExecute(t){this.fire("afterExecute",xx(new Set(t)))}_getValue(){const t=this.editor.model.document.selection,e=Array.from(t.getSelectedBlocks());if(!e.length)return!1;for(const t of e)if(t.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const t=this.editor.model,e=t.schema,n=t.document.selection,i=Array.from(n.getSelectedBlocks());if(!i.length)return!1;if(this.value)return!0;for(const t of i)if(e.checkAttribute(t,"listType")||Tx(t,e))return!0;return!1}}class Px extends Ro{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:t=!1}={}){const e=this.editor.model,n=e.document.selection,i=[];e.change((r=>{const{firstElement:o,lastElement:a}=this._getMergeSubjectElements(n,t),s=o.getAttribute("listIndent")||0,c=a.getAttribute("listIndent"),l=a.getAttribute("listItemId");if(s!=c){const t=(u=a,Array.from(new cx(u,{direction:"forward",higherIndent:!0})));i.push(..._x([a,...t],r,{indentBy:s-c,expand:s<c}))}var u;if(t){let t=n;n.isCollapsed&&(t=r.createSelection(r.createRange(r.createPositionAt(o,"end"),r.createPositionAt(a,0)))),e.deleteContent(t,{doNotResetEntireContent:n.isCollapsed});const s=t.getLastPosition().parent,c=s.nextSibling;i.push(s),c&&c!==a&&c.getAttribute("listItemId")==l&&i.push(...yx(c,s,r))}else i.push(...yx(a,o,r));this._fireAfterExecute(i)}))}_fireAfterExecute(t){this.fire("afterExecute",xx(new Set(t)))}_checkEnabled(){const t=this.editor.model,e=t.document.selection,n=Ex(t);if(e.isCollapsed||n){const t=n||e.getFirstPosition().parent;if(!dx(t))return!1;const i="backward"==this._direction?t.previousSibling:t.nextSibling;if(!i)return!1;if(Ax([t,i]))return!1}else{const t=e.getLastPosition(),n=e.getFirstPosition();if(t.parent===n.parent)return!1;if(!dx(t.parent))return!1}return!0}_getMergeSubjectElements(t,e){const n=Ex(this.editor.model);let i,r;if(t.isCollapsed||n){const o=n||t.getFirstPosition().parent,a=mx(o);"backward"==this._direction?(r=o,i=a&&!e?cx.first(o,{sameIndent:!0,lowerIndent:!0}):o.previousSibling):(i=o,r=o.nextSibling)}else i=t.getFirstPosition().parent,r=t.getLastPosition().parent;return{firstElement:i,lastElement:r}}}class Lx extends Ro{_direction;constructor(t,e){super(t),this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change((t=>{const e=vx(this._getStartBlock(),t);this._fireAfterExecute(e)}))}_fireAfterExecute(t){this.fire("afterExecute",xx(new Set(t)))}_checkEnabled(){const t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&dx(e)&&!mx(e)}_getStartBlock(){const t=this.editor.model.document.selection.getFirstPosition().parent;return"before"==this._direction?t:t.nextSibling}}class Ox extends Oo{static get pluginName(){return"ListUtils"}expandListBlocksToCompleteList(t){return kx(t)}isFirstBlockOfListItem(t){return mx(t)}isListItemBlock(t){return dx(t)}expandListBlocksToCompleteItems(t,e={}){return wx(t,e)}isNumberedListType(t){return Sx(t)}}function Nx(t){return t.is("element","ol")||t.is("element","ul")}function Rx(t){return t.is("element","li")}function Fx(t,e,n,i=zx(n,e)){return t.createAttributeElement($x(n),null,{priority:2*e/100-100,id:i})}function jx(t,e,n){return t.createAttributeElement("li",null,{priority:(2*e+1)/100-100,id:n})}function $x(t){return"numbered"==t||"customNumbered"==t?"ol":"ul"}function zx(t,e){return`list-${t}-${e}`}function Vx(t,e){const n=t.nodeBefore;if(dx(n)){let t=n;for(const{node:n}of lx(t,"backward"))if(t=n,e.has(t))return;e.set(n,t)}else{const n=t.nodeAfter;dx(n)&&e.set(n,n)}}function Hx(){return(t,e,n)=>{const{writer:i,schema:r}=n;if(!e.modelRange)return;const o=Array.from(e.modelRange.getItems({shallow:!0})).filter((t=>r.checkAttribute(t,"listItemId")));if(!o.length)return;const a=hx.next(),s=function(t){let e=0,n=t.parent;for(;n;){if(Rx(n))e++;else{const t=n.previousSibling;t&&Rx(t)&&e++}n=n.parent}return e}(e.viewItem);let c=e.viewItem.parent&&e.viewItem.parent.is("element","ol")?"numbered":"bulleted";const l=o[0].getAttribute("listType");l&&(c=l);const u={listItemId:a,listIndent:s,listType:c};for(const t of o)t.hasAttribute("listItemId")||i.setAttributes(u,t);o.length>1&&o[1].getAttribute("listItemId")!=u.listItemId&&n.keepEmptyElement(o[0])}}function qx(t,e,n,{dataPipeline:i}={}){const r=function(t){return(e,n)=>{const i=[];for(const n of t)e.hasAttribute(n)&&i.push(`attribute:${n}`);return!!i.every((t=>!1!==n.test(e,t)))&&(i.forEach((t=>n.consume(e,t))),!0)}}(t);return(o,a,s)=>{const{writer:c,mapper:l,consumable:u}=s,h=a.item;if(!t.includes(a.attributeKey))return;if(!r(h,u))return;const d=function(t,e,n){const i=n.createRangeOn(t),r=e.toViewRange(i).getTrimmed();return r.end.nodeBefore}(h,l,n);Gx(d,c,l),function(t,e){let n=t.parent;for(;n.is("attributeElement")&&["ul","ol","li"].includes(n.name);){const i=n.parent;e.unwrap(e.createRangeOn(t),n),n=i}}(d,c);const f=function(t,e,n,i,{dataPipeline:r}){let o=i.createRangeOn(e);if(!mx(t))return o;for(const a of n){if("itemMarker"!=a.scope)continue;const n=a.createElement(i,t,{dataPipeline:r});if(!n)continue;if(i.setCustomProperty("listItemMarker",!0,n),a.canInjectMarkerIntoElement&&a.canInjectMarkerIntoElement(t)?i.insert(i.createPositionAt(e,0),n):(i.insert(o.start,n),o=i.createRange(i.createPositionBefore(n),i.createPositionAfter(e))),!a.createWrapperElement||!a.canWrapElement)continue;const s=a.createWrapperElement(i,t,{dataPipeline:r});i.setCustomProperty("listItemWrapper",!0,s),a.canWrapElement(t)?o=i.wrap(o,s):(o=i.wrap(i.createRangeOn(n),s),o=i.createRange(o.start,i.createPositionAfter(e)))}return o}(h,d,e,c,{dataPipeline:i});!function(t,e,n,i){if(!t.hasAttribute("listIndent"))return;const r=t.getAttribute("listIndent");let o=t;for(let t=r;t>=0;t--){const r=jx(i,t,o.getAttribute("listItemId")),a=Fx(i,t,o.getAttribute("listType"));for(const t of n)"list"!=t.scope&&"item"!=t.scope||!o.hasAttribute(t.attributeName)||t.setAttributeOnDowncast(i,o.getAttribute(t.attributeName),"list"==t.scope?a:r);if(e=i.wrap(e,r),e=i.wrap(e,a),0==t)break;if(o=cx.first(o,{lowerIndent:!0}),!o)break}}(h,f,e,c)}}function Ux(t,{dataPipeline:e}={}){return(n,{writer:i})=>{if(!Wx(n,t))return null;if(!e)return i.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const r=i.createContainerElement("p");return i.setCustomProperty("dataPipeline:transparentRendering",!0,r),r}}function Gx(t,e,n){for(;t.parent.is("attributeElement")&&t.parent.getCustomProperty("listItemWrapper");)e.unwrap(e.createRangeOn(t),t.parent);const i=[];r(e.createPositionBefore(t).getWalker({direction:"backward"})),r(e.createRangeIn(t).getWalker());for(const t of i)e.remove(t);function r(t){for(const{item:e}of t){if(e.is("element")&&n.toModelElement(e))break;e.is("element")&&e.getCustomProperty("listItemMarker")&&i.push(e)}}}function Wx(t,e,n=fx(t)){if(!dx(t))return!1;for(const n of t.getAttributeKeys())if(!n.startsWith("selection:")&&!e.includes(n))return!1;return n.length<2}var Kx=n(1232),Yx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Kx.A,Yx);Kx.A.locals;var Xx=n(6903),Zx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(Xx.A,Zx);Xx.A.locals;const Qx=["listType","listIndent","listItemId"];class Jx extends Oo{_downcastStrategies=[];static get pluginName(){return"ListEditing"}static get requires(){return[dv,ik,Ox,oy]}constructor(t){super(t),t.config.define("list.multiBlock",!0)}init(){const t=this.editor,e=t.model,n=t.config.get("list.multiBlock");if(t.plugins.has("LegacyListEditing"))throw new wi("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});e.schema.register("$listItem",{allowAttributes:Qx}),n?(e.schema.extend("$container",{allowAttributesOf:"$listItem"}),e.schema.extend("$block",{allowAttributesOf:"$listItem"}),e.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):e.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const t of Qx)e.schema.setAttributeProperties(t,{copyOnReplace:!0});t.commands.add("numberedList",new Mx(t,"numbered")),t.commands.add("bulletedList",new Mx(t,"bulleted")),t.commands.add("customNumberedList",new Mx(t,"customNumbered",{multiLevel:!0})),t.commands.add("customBulletedList",new Mx(t,"customBulleted",{multiLevel:!0})),t.commands.add("indentList",new Ix(t,"forward")),t.commands.add("outdentList",new Ix(t,"backward")),t.commands.add("splitListItemBefore",new Lx(t,"before")),t.commands.add("splitListItemAfter",new Lx(t,"after")),n&&(t.commands.add("mergeListItemBackward",new Px(t,"backward")),t.commands.add("mergeListItemForward",new Px(t,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration()}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList"),{priority:"high"}),n&&n.registerChildCommand(t.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(t){this._downcastStrategies.push(t)}getListAttributeNames(){return[...Qx,...this._downcastStrategies.map((t=>t.attributeName))]}_setupDeleteIntegration(){const t=this.editor,e=t.commands.get("mergeListItemBackward"),n=t.commands.get("mergeListItemForward");this.listenTo(t.editing.view.document,"delete",((i,r)=>{const o=t.model.document.selection;Ex(t.model)||t.model.change((()=>{const a=o.getFirstPosition();if(o.isCollapsed&&"backward"==r.direction){if(!a.isAtStart)return;const n=a.parent;if(!dx(n))return;if(cx.first(n,{sameAttributes:"listType",sameIndent:!0})||0!==n.getAttribute("listIndent")){if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:tE(t.model,"backward")})}else bx(n)||t.execute("splitListItemAfter"),t.execute("outdentList");r.preventDefault(),i.stop()}else{if(o.isCollapsed&&!o.getLastPosition().isAtEnd)return;if(!n||!n.isEnabled)return;n.execute({shouldMergeOnBlocksContentLevel:tE(t.model,"forward")}),r.preventDefault(),i.stop()}}))}),{context:"li"})}_setupEnterIntegration(){const t=this.editor,e=t.model,n=t.commands,i=n.get("enter");this.listenTo(t.editing.view.document,"enter",((n,i)=>{const r=e.document,o=r.selection.getFirstPosition().parent;if(r.selection.isCollapsed&&dx(o)&&o.isEmpty&&!i.isSoft){const e=mx(o),r=bx(o);e&&r?(t.execute("outdentList"),i.preventDefault(),n.stop()):e&&!r?(t.execute("splitListItemAfter"),i.preventDefault(),n.stop()):r&&(t.execute("splitListItemBefore"),i.preventDefault(),n.stop())}}),{context:"li"}),this.listenTo(i,"afterExecute",(()=>{const e=n.get("splitListItemBefore");if(e.refresh(),!e.isEnabled)return;2===fx(t.model.document.selection.getLastPosition().parent).length&&e.execute()}))}_setupTabIntegration(){const t=this.editor;this.listenTo(t.editing.view.document,"tab",((e,n)=>{const i=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(i).isEnabled&&(t.execute(i),n.stopPropagation(),n.preventDefault(),e.stop())}),{context:"li"})}_setupConversion(){const t=this.editor,e=t.model,n=this.getListAttributeNames(),i=t.config.get("list.multiBlock"),r=i?"paragraph":"listItem";t.conversion.for("upcast").elementToElement({view:"li",model:(t,{writer:e})=>e.createElement(r,{listType:""})}).elementToElement({view:"p",model:(t,{writer:e})=>t.parent&&t.parent.is("element","li")?e.createElement(r,{listType:""}):null,converterPriority:"high"}).add((t=>{t.on("element:li",Hx())})),i||t.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),t.conversion.for("editingDowncast").elementToElement({model:r,view:Ux(n),converterPriority:"high"}).add((t=>{var i;t.on("attribute",qx(n,this._downcastStrategies,e)),t.on("remove",(i=e.schema,(t,e,n)=>{const{writer:r,mapper:o}=n,a=t.name.split(":")[1];if(!i.checkAttribute(a,"listItemId"))return;const s=o.toViewPosition(e.position),c=e.position.getShiftedBy(e.length),l=o.toViewPosition(c,{isPhantom:!0}),u=r.createRange(s,l).getTrimmed().end.nodeBefore;u&&Gx(u,r,o)}))})),t.conversion.for("dataDowncast").elementToElement({model:r,view:Ux(n,{dataPipeline:!0}),converterPriority:"high"}).add((t=>{t.on("attribute",qx(n,this._downcastStrategies,e,{dataPipeline:!0}))}));const o=(a=this._downcastStrategies,s=t.editing.view,(t,e)=>{if(e.modelPosition.offset>0)return;const n=e.modelPosition.parent;if(!dx(n))return;if(!a.some((t=>"itemMarker"==t.scope&&t.canInjectMarkerIntoElement&&t.canInjectMarkerIntoElement(n))))return;const i=e.mapper.toViewElement(n),r=s.createRangeIn(i),o=r.getWalker();let c=r.start;for(const{item:t}of o){if(t.is("element")&&e.mapper.toModelElement(t)||t.is("$textProxy"))break;t.is("element")&&t.getCustomProperty("listItemMarker")&&(c=s.createPositionAfter(t),o.skip((({previousPosition:t})=>!t.isEqual(c))))}e.viewPosition=c});var a,s;t.editing.mapper.on("modelToViewPosition",o),t.data.mapper.on("modelToViewPosition",o),this.listenTo(e.document,"change:data",function(t,e,n,i){return()=>{const i=t.document.differ.getChanges(),a=[],s=new Map,c=new Set;for(const t of i)if("insert"==t.type&&"$text"!=t.name)Vx(t.position,s),t.attributes.has("listItemId")?c.add(t.position.nodeAfter):Vx(t.position.getShiftedBy(t.length),s);else if("remove"==t.type&&t.attributes.has("listItemId"))Vx(t.position,s);else if("attribute"==t.type){const e=t.range.start.nodeAfter;n.includes(t.attributeKey)?(Vx(t.range.start,s),null===t.attributeNewValue?(Vx(t.range.start.getShiftedBy(1),s),o(e)&&a.push(e)):c.add(e)):dx(e)&&o(e)&&a.push(e)}for(const t of s.values())a.push(...r(t,c));for(const t of new Set(a))e.reconvertItem(t)};function r(t,e){const i=[],r=new Set,s=[];for(const{node:c,previous:l}of lx(t,"forward")){if(r.has(c))continue;const t=c.getAttribute("listIndent");l&&t<l.getAttribute("listIndent")&&(s.length=t+1),s[t]=Object.fromEntries(Array.from(c.getAttributes()).filter((([t])=>n.includes(t))));const u=gx(c,{direction:"forward"});for(const t of u)r.add(t),(o(t,u)||a(t,s,e))&&i.push(t)}return i}function o(t,r){const o=e.mapper.toViewElement(t);if(!o)return!1;if(i.fire("checkElement",{modelElement:t,viewElement:o}))return!0;if(!t.is("element","paragraph")&&!t.is("element","listItem"))return!1;const a=Wx(t,n,r);return!(!a||!o.is("element","p"))||!(a||!o.is("element","span"))}function a(t,n,r){if(r.has(t))return!1;const o=e.mapper.toViewElement(t);let a=n.length-1;for(let t=o.parent;!t.is("editableElement");t=t.parent){const e=Rx(t),r=Nx(t);if(!r&&!e)continue;const o="checkAttributes:"+(e?"item":"list");if(i.fire(o,{viewElement:t,modelAttributes:n[a]}))break;if(r&&(a--,a<0))return!1}return!0}}(e,t.editing,n,this),{priority:"high"}),this.on("checkAttributes:item",((t,{viewElement:e,modelAttributes:n})=>{e.id!=n.listItemId&&(t.return=!0,t.stop())})),this.on("checkAttributes:list",((t,{viewElement:e,modelAttributes:n})=>{e.name==$x(n.listType)&&e.id==zx(n.listType,n.listIndent)||(t.return=!0,t.stop())}))}_setupModelPostFixing(){const t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer((n=>function(t,e,n,i){const r=t.document.differ.getChanges(),o=new Map,a=i.editor.config.get("list.multiBlock");let s=!1;for(const i of r){if("insert"==i.type&&"$text"!=i.name){const r=i.position.nodeAfter;if(!t.schema.checkAttribute(r,"listItemId"))for(const t of Array.from(r.getAttributeKeys()))n.includes(t)&&(e.removeAttribute(t,r),s=!0);Vx(i.position,o),i.attributes.has("listItemId")||Vx(i.position.getShiftedBy(i.length),o);for(const{item:e,previousPosition:n}of t.createRangeIn(r))dx(e)&&Vx(n,o)}else"remove"==i.type?Vx(i.position,o):"attribute"==i.type&&n.includes(i.attributeKey)&&(Vx(i.range.start,o),null===i.attributeNewValue&&Vx(i.range.start.getShiftedBy(1),o));if(!a&&"attribute"==i.type&&Qx.includes(i.attributeKey)){const t=i.range.start.nodeAfter;null===i.attributeNewValue&&t&&t.is("element","listItem")?(e.rename(t,"paragraph"),s=!0):null===i.attributeOldValue&&t&&t.is("element")&&"listItem"!=t.name&&(e.rename(t,"listItem"),s=!0)}}const c=new Set;for(const t of o.values())s=i.fire("postFixer",{listNodes:new ux(t),listHead:t,writer:e,seenIds:c})||s;return s}(t,n,e,this))),this.on("postFixer",((t,{listNodes:e,writer:n})=>{t.return=function(t,e){let n=0,i=-1,r=null,o=!1;for(const{node:a}of t){const t=a.getAttribute("listIndent");if(t>n){let s;null===r?(r=t-n,s=n):(r>t&&(r=t),s=t-r),s>i+1&&(s=i+1),e.setAttribute("listIndent",s,a),o=!0,i=s}else r=null,n=t+1,i=t}return o}(e,n)||t.return}),{priority:"high"}),this.on("postFixer",((t,{listNodes:e,writer:n,seenIds:i})=>{t.return=function(t,e,n){const i=new Set;let r=!1;for(const{node:o}of t){if(i.has(o))continue;let t=o.getAttribute("listType"),a=o.getAttribute("listItemId");if(e.has(a)&&(a=hx.next()),e.add(a),o.is("element","listItem"))o.getAttribute("listItemId")!=a&&(n.setAttribute("listItemId",a,o),r=!0);else for(const e of gx(o,{direction:"forward"}))i.add(e),e.getAttribute("listType")!=t&&(a=hx.next(),t=e.getAttribute("listType")),e.getAttribute("listItemId")!=a&&(n.setAttribute("listItemId",a,e),r=!0)}return r}(e,i,n)||t.return}),{priority:"high"})}_setupClipboardIntegration(){const t=this.editor.model,e=this.editor.plugins.get("ClipboardPipeline");this.listenTo(t,"insertContent",function(t){return(e,[n,i])=>{const r=n.is("documentFragment")?Array.from(n.getChildren()):[n];if(!r.length)return;const o=(i?t.createSelection(i):t.document.selection).getFirstPosition();let a;if(dx(o.parent))a=o.parent;else{if(!dx(o.nodeBefore))return;a=o.nodeBefore}t.change((t=>{const e=a.getAttribute("listType"),n=a.getAttribute("listIndent"),i=r[0].getAttribute("listIndent")||0,o=Math.max(n-i,0);for(const n of r){const i=dx(n);a.is("element","listItem")&&n.is("element","paragraph")&&t.rename(n,"listItem"),t.setAttributes({listIndent:(i?n.getAttribute("listIndent"):0)+o,listItemId:i?n.getAttribute("listItemId"):hx.next(),listType:e},n)}}))}}(t),{priority:"high"}),this.listenTo(e,"outputTransformation",((e,n)=>{t.change((t=>{const e=Array.from(n.content.getChildren()),i=e[e.length-1];if(e.length>1&&i.is("element")&&i.isEmpty){e.slice(0,-1).every(dx)&&t.remove(i)}if("copy"==n.method||"cut"==n.method){const e=Array.from(n.content.getChildren());Ax(e)&&Cx(e,t)}}))}))}_setupAccessibilityIntegration(){const t=this.editor,e=t.t;t.accessibility.addKeystrokeInfoGroup({id:"list",label:e("Keystrokes that can be used in a list"),keystrokes:[{label:e("Increase list item indent"),keystroke:"Tab"},{label:e("Decrease list item indent"),keystroke:"Shift+Tab"}]})}}function tE(t,e){const n=t.document.selection;if(!n.isCollapsed)return!Ex(t);if("forward"===e)return!0;const i=n.getFirstPosition().parent,r=i.previousSibling;return!t.schema.isObject(r)&&(!!r.isEmpty||Ax([i,r]))}function eE(t,e,n,i){t.ui.componentFactory.add(e,(()=>{const r=nE(bf,t,e,n,i);return r.set({tooltip:!0,isToggleable:!0}),r})),t.ui.componentFactory.add(`menuBar:${e}`,(()=>{const r=nE(Kf,t,e,n,i);return r.set({role:"menuitemcheckbox",isToggleable:!0}),r}))}function nE(t,e,n,i,r){const o=e.commands.get(n),a=new t(e.locale);return a.set({label:i,icon:r}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(()=>{e.execute(n),e.editing.view.focus()})),a}class iE extends Oo{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||eE(this.editor,"numberedList",t("Numbered List"),Ld.numberedList),this.editor.ui.componentFactory.has("bulletedList")||eE(this.editor,"bulletedList",t("Bulleted List"),Ld.bulletedList)}}class rE extends Oo{static get requires(){return[Jx,iE]}static get pluginName(){return"List"}}const oE={},aE={},sE={},cE=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:t,typeAttribute:e,listType:n}of cE)oE[t]=n,aE[t]=e,e&&(sE[e]=t);var lE=n(9968),uE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(lE.A,uE);lE.A.locals;var hE=n(7141),dE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(hE.A,dE);hE.A.locals;class fE extends Ro{constructor(t){super(t),this.on("execute",(()=>{this.refresh()}),{priority:"highest"})}refresh(){const t=this._getSelectedItems();this.value=this._getValue(t),this.isEnabled=!!t.length}execute(t={}){this.editor.model.change((e=>{const n=this._getSelectedItems(),i=void 0===t.forceValue?!this._getValue(n):t.forceValue;for(const t of n)i?e.setAttribute("todoListChecked",!0,t):e.removeAttribute("todoListChecked",t)}))}_getValue(t){return t.every((t=>t.getAttribute("todoListChecked")))}_getSelectedItems(){const t=this.editor.model,e=t.schema,n=t.document.selection.getFirstRange(),i=n.start.parent,r=[];e.checkAttribute(i,"todoListChecked")&&r.push(...fx(i));for(const t of n.getItems({shallow:!0}))e.checkAttribute(t,"todoListChecked")&&!r.includes(t)&&r.push(...fx(t));return r}}class gE extends Js{domEventType=["change"];onDomEvent(t){if(t.target){const e=this.view.domConverter.mapDomToView(t.target);e&&e.is("element","input")&&"checkbox"==e.getAttribute("type")&&e.findAncestor({classes:"todo-list__label"})&&this.fire("todoCheckboxChange",t)}}}const pE=Yr("Ctrl+Enter");class mE extends Oo{static get pluginName(){return"TodoListEditing"}static get requires(){return[Jx]}init(){const t=this.editor,e=t.model,n=t.editing,i=t.plugins.get(Jx),r=t.config.get("list.multiBlock")?"paragraph":"listItem";t.commands.add("todoList",new Mx(t,"todo")),t.commands.add("checkTodoList",new fE(t)),n.view.addObserver(gE),e.schema.extend("$listItem",{allowAttributes:"todoListChecked"}),e.schema.addAttributeCheck((t=>{const e=t.last;if(!e.getAttribute("listItemId")||"todo"!=e.getAttribute("listType"))return!1}),"todoListChecked"),t.conversion.for("upcast").add((t=>{t.on("element:input",((t,e,n)=>{const i=e.modelCursor,r=i.parent,o=e.viewItem;if(!n.consumable.test(o,{name:!0}))return;if("checkbox"!=o.getAttribute("type")||!i.isAtStart||!r.hasAttribute("listType"))return;n.consumable.consume(o,{name:!0});const a=n.writer;a.setAttribute("listType","todo",r),e.viewItem.hasAttribute("checked")&&a.setAttribute("todoListChecked",!0,r),e.modelRange=a.createRange(i)})),t.on("element:li",((t,e,n)=>{const{writer:i,schema:r}=n;if(!e.modelRange)return;const o=Array.from(e.modelRange.getItems({shallow:!0})).filter((t=>"todo"===t.getAttribute("listType")&&r.checkAttribute(t,"listItemId"))).reduce(((t,e)=>{const n=e.getAttribute("listItemId");return t.has(n)||t.set(n,fx(e)),t}),new Map);for(const[,t]of o.entries())if(t.some((t=>t.getAttribute("todoListChecked"))))for(const e of t)i.setAttribute("todoListChecked",!0,e)}),{priority:"low"}),t.on("element:label",bE({name:"label",classes:"todo-list__label"})),t.on("element:label",bE({name:"label",classes:["todo-list__label","todo-list__label_without-description"]})),t.on("element:span",bE({name:"span",classes:"todo-list__label__description"})),t.on("element:ul",function(t){const e=new aa(t);return(t,n,i)=>{const r=e.match(n.viewItem);if(!r)return;const o=r.match;o.name=!1,i.consumable.consume(n.viewItem,o)}}({name:"ul",classes:"todo-list"}))})),t.conversion.for("downcast").elementToElement({model:r,view:(t,{writer:e})=>{if(wE(t,i.getListAttributeNames()))return e.createContainerElement("span",{class:"todo-list__label__description"})},converterPriority:"highest"}),i.registerDowncastStrategy({scope:"list",attributeName:"listType",setAttributeOnDowncast(t,e,n){"todo"==e?t.addClass("todo-list",n):t.removeClass("todo-list",n)}}),i.registerDowncastStrategy({scope:"itemMarker",attributeName:"todoListChecked",createElement(t,e,{dataPipeline:n}){if("todo"!=e.getAttribute("listType"))return null;const i=t.createUIElement("input",{type:"checkbox",...e.getAttribute("todoListChecked")?{checked:"checked"}:null,...n?{disabled:"disabled"}:{tabindex:"-1"}});if(n)return i;const r=t.createContainerElement("span",{contenteditable:"false"},i);return r.getFillerOffset=()=>null,r},canWrapElement:t=>wE(t,i.getListAttributeNames()),createWrapperElement(t,e,{dataPipeline:n}){const r=["todo-list__label"];return wE(e,i.getListAttributeNames())||r.push("todo-list__label_without-description"),t.createAttributeElement(n?"label":"span",{class:r.join(" ")})}}),i.on("checkElement",((t,{modelElement:e,viewElement:n})=>{const r=wE(e,i.getListAttributeNames());n.hasClass("todo-list__label__description")!=r&&(t.return=!0,t.stop())})),i.on("checkElement",((e,{modelElement:n,viewElement:i})=>{const r="todo"==n.getAttribute("listType")&&mx(n);let o=!1;const a=t.editing.view.createPositionBefore(i).getWalker({direction:"backward"});for(const{item:e}of a){if(e.is("element")&&t.editing.mapper.toModelElement(e))break;e.is("element","input")&&"checkbox"==e.getAttribute("type")&&(o=!0)}o!=r&&(e.return=!0,e.stop())})),i.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:i,previousNodeInList:r}of e){if(!r)continue;if(r.getAttribute("listItemId")!=i.getAttribute("listItemId"))continue;const e=r.hasAttribute("todoListChecked"),o=i.hasAttribute("todoListChecked");o&&!e?(n.removeAttribute("todoListChecked",i),t.return=!0):!o&&e&&(n.setAttribute("todoListChecked",!0,i),t.return=!0)}})),e.document.registerPostFixer((t=>{const n=e.document.differ.getChanges();let i=!1;for(const e of n)if("attribute"==e.type&&"listType"==e.attributeKey){const n=e.range.start.nodeAfter;"todo"==e.attributeOldValue&&n.hasAttribute("todoListChecked")&&(t.removeAttribute("todoListChecked",n),i=!0)}else if("insert"==e.type&&"$text"!=e.name)for(const{item:n}of t.createRangeOn(e.position.nodeAfter))n.is("element")&&"todo"!=n.getAttribute("listType")&&n.hasAttribute("todoListChecked")&&(t.removeAttribute("todoListChecked",n),i=!0);return i})),this.listenTo(n.view.document,"keydown",((e,n)=>{Kr(n)===pE&&(t.execute("checkTodoList"),e.stop())}),{priority:"high"}),this.listenTo(n.view.document,"todoCheckboxChange",((t,e)=>{const i=e.target;if(!i||!i.is("element","input"))return;const r=n.view.createPositionAfter(i),o=n.mapper.toModelPosition(r).parent;o&&dx(o)&&"todo"==o.getAttribute("listType")&&this._handleCheckmarkChange(o)})),this.listenTo(n.view.document,"arrowKey",function(t,e){return(n,i)=>{const r=Zr(i.keyCode,e.contentLanguageDirection),o=t.schema,a=t.document.selection;if(!a.isCollapsed)return;const s=a.getFirstPosition(),c=s.parent;if("right"==r&&s.isAtEnd){const e=o.getNearestSelectionRange(t.createPositionAfter(c),"forward");if(!e)return;const r=e.start.parent;r&&dx(r)&&"todo"==r.getAttribute("listType")&&(t.change((t=>t.setSelection(e))),i.preventDefault(),i.stopPropagation(),n.stop())}else if("left"==r&&s.isAtStart&&dx(c)&&"todo"==c.getAttribute("listType")){const e=o.getNearestSelectionRange(t.createPositionBefore(c),"backward");if(!e)return;t.change((t=>t.setSelection(e))),i.preventDefault(),i.stopPropagation(),n.stop()}}}(e,t.locale),{context:"$text"}),this.listenTo(n.mapper,"viewToModelPosition",((t,n)=>{const i=n.viewPosition.parent,r=i.is("attributeElement","li")&&0==n.viewPosition.offset,o=kE(i)&&n.viewPosition.offset<=1,a=i.is("element","span")&&"false"==i.getAttribute("contenteditable")&&kE(i.parent);if(!r&&!o&&!a)return;const s=n.modelPosition.nodeAfter;s&&"todo"==s.getAttribute("listType")&&(n.modelPosition=e.createPositionAt(s,0))}),{priority:"low"}),this._initAriaAnnouncements()}_handleCheckmarkChange(t){const e=this.editor,n=e.model,i=Array.from(n.document.selection.getRanges());n.change((n=>{n.setSelection(t,"end"),e.execute("checkTodoList"),n.setSelection(i)}))}_initAriaAnnouncements(){const{model:t,ui:e,t:n}=this.editor;let i=null;e&&t.document.selection.on("change:range",(()=>{const r=t.document.selection.focus.parent,o=vE(i),a=vE(r);o&&!a?e.ariaLiveAnnouncer.announce(n("Leaving a to-do list")):!o&&a&&e.ariaLiveAnnouncer.announce(n("Entering a to-do list")),i=r}))}}function bE(t){const e=new aa(t);return(t,n,i)=>{const r=e.match(n.viewItem);r&&i.consumable.consume(n.viewItem,r.match)&&Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor))}}function wE(t,e){return(t.is("element","paragraph")||t.is("element","listItem"))&&"todo"==t.getAttribute("listType")&&mx(t)&&function(t,e){for(const n of t.getAttributeKeys())if(!n.startsWith("selection:")&&!e.includes(n))return!1;return!0}(t,e)}function kE(t){return!!t&&t.is("attributeElement")&&t.hasClass("todo-list__label")}function vE(t){return!!t&&(!(!t.is("element","paragraph")&&!t.is("element","listItem"))&&"todo"==t.getAttribute("listType"))}class yE extends Oo{static get pluginName(){return"TodoListUI"}init(){const t=this.editor.t;eE(this.editor,"todoList",t("To-do List"),Ld.todoList)}}var _E=n(8991),CE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(_E.A,CE);_E.A.locals;class AE extends Oo{static get requires(){return[mE,yE]}static get pluginName(){return"TodoList"}}function xE(t){return void 0!==t&&t.endsWith("px")}function EE(t){return t.toFixed(2).replace(/\.?0+$/,"")+"px"}function TE(t,e,n){if(!t.childCount)return;const i=new jh(t.document),r=function(t,e){const n=e.createRangeIn(t),i=[],r=new Set;for(const t of n.getItems()){if(!t.is("element")||!t.name.match(/^(p|h\d+|li|div)$/))continue;let e=OE(t);if(void 0===e||0!=parseFloat(e)||Array.from(t.getClassNames()).find((t=>t.startsWith("MsoList")))||(e=void 0),t.hasStyle("mso-list")||void 0!==e&&r.has(e)){const n=PE(t);i.push({element:t,id:n.id,order:n.order,indent:n.indent,marginLeft:e}),void 0!==e&&r.add(e)}else r.clear()}return i}(t,i);if(!r.length)return;const o={},a=[];for(const t of r)if(void 0!==t.indent){SE(t)||(a.length=0);const r=`${t.id}:${t.indent}`,s=Math.min(t.indent-1,a.length);if(s<a.length&&a[s].id!==t.id&&(a.length=s),s<a.length-1)a.length=s+1;else{const c=IE(t,e);if(s>a.length-1||a[s].listElement.name!=c.type){0==s&&"ol"==c.type&&void 0!==t.id&&o[r]&&(c.startIndex=o[r]);const e=ME(c,i,n);if(xE(t.marginLeft)&&(0==s||xE(a[s-1].marginLeft))){let n=t.marginLeft;s>0&&(n=EE(parseFloat(n)-parseFloat(a[s-1].marginLeft))),i.setStyle("padding-left",n,e)}if(0==a.length){const n=t.element.parent,r=n.getChildIndex(t.element)+1;i.insertChild(r,e,n)}else{const t=a[s-1].listItemElements;i.appendChild(e,t[t.length-1])}a[s]={...t,listElement:e,listItemElements:[]},0==s&&void 0!==t.id&&(o[r]=c.startIndex||1)}}const c="li"==t.element.name?t.element:i.createElement("li");i.appendChild(c,a[s].listElement),a[s].listItemElements.push(c),0==s&&void 0!==t.id&&o[r]++,t.element!=c&&i.appendChild(t.element,c),LE(t.element,i),i.removeStyle("text-indent",t.element),i.removeStyle("margin-left",t.element)}else{const e=a.find((e=>e.marginLeft==t.marginLeft));if(e){const n=e.listItemElements;i.appendChild(t.element,n[n.length-1]),i.removeStyle("margin-left",t.element)}else a.length=0}}function SE(t){const e=t.element.previousSibling;return DE(e||t.element.parent)}function DE(t){return t.is("element","ol")||t.is("element","ul")}function IE(t,e){const n=new RegExp(`@list l${t.id}:level${t.indent}\\s*({[^}]*)`,"gi"),i=/mso-level-number-format:([^;]{0,100});/gi,r=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,o=new RegExp(`@list\\s+l${t.id}:level\\d\\s*{[^{]*mso-level-text:"%\\d\\\\.`,"gi"),a=new RegExp(`@list l${t.id}:level\\d\\s*{[^{]*mso-level-number-format:`,"gi"),s=o.exec(e),c=a.exec(e),l=s&&!c,u=n.exec(e);let h="decimal",d="ol",f=null;if(u&&u[1]){const e=i.exec(u[1]);if(e&&e[1]&&(h=e[1].trim(),d="bullet"!==h&&"image"!==h?"ol":"ul"),"bullet"===h){const e=function(t){if("li"==t.name&&"ul"==t.parent.name&&t.parent.hasAttribute("type"))return t.parent.getAttribute("type");const e=function(t){if(t.getChild(0).is("$text"))return null;for(const e of t.getChildren()){if(!e.is("element","span"))continue;const t=e.getChild(0);if(t)return t.is("$text")?t:t.getChild(0)}return null}(t);if(!e)return null;const n=e._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null}(t.element);e&&(h=e)}else{const t=r.exec(u[1]);t&&t[1]&&(f=parseInt(t[1]))}l&&(d="ol")}return{type:d,startIndex:f,style:BE(h),isLegalStyleList:l}}function BE(t){if(t.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(t){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return t;default:return null}}function ME(t,e,n){const i=e.createElement(t.type);return t.style&&e.setStyle("list-style-type",t.style,i),t.startIndex&&t.startIndex>1&&e.setAttribute("start",t.startIndex,i),t.isLegalStyleList&&n&&e.addClass("legal-list",i),i}function PE(t){const e=t.getStyle("mso-list");if(void 0===e)return{};const n=e.match(/(^|\s{1,100})l(\d+)/i),i=e.match(/\s{0,100}lfo(\d+)/i),r=e.match(/\s{0,100}level(\d+)/i);return n&&i&&r?{id:n[2],order:i[1],indent:parseInt(r[1])}:{indent:1}}function LE(t,e){const n=new aa({name:"span",styles:{"mso-list":"Ignore"}}),i=e.createRangeIn(t);for(const t of i)"elementStart"===t.type&&n.match(t.item)&&e.remove(t.item)}function OE(t){const e=t.getStyle("margin-left");return void 0===e||e.endsWith("px")?e:function(t){const e=parseFloat(t);return t.endsWith("pt")?EE(96*e/72):t.endsWith("pc")?EE(12*e*96/72):t.endsWith("in")?EE(96*e):t.endsWith("cm")?EE(96*e/2.54):t.endsWith("mm")?EE(e/10*96/2.54):t}(e)}function NE(t,e){if(!t.childCount)return;const n=new jh(t.document),i=function(t,e){const n=e.createRangeIn(t),i=new aa({name:/v:(.+)/}),r=[];for(const t of n){if("elementStart"!=t.type)continue;const e=t.item,n=e.previousSibling,o=n&&n.is("element")?n.name:null,a=["Chart"],s=i.match(e),c=e.getAttribute("o:gfxdata"),l="v:shapetype"===o,u=c&&a.some((t=>e.getAttribute("id").includes(t)));s&&c&&!l&&!u&&r.push(t.item.getAttribute("id"))}return r}(t,n);!function(t,e,n){const i=n.createRangeIn(e),r=new aa({name:"img"}),o=[];for(const e of i)if(e.item.is("element")&&r.match(e.item)){const n=e.item,i=n.getAttribute("v:shapes")?n.getAttribute("v:shapes").split(" "):[];i.length&&i.every((e=>t.indexOf(e)>-1))?o.push(n):n.getAttribute("src")||o.push(n)}for(const t of o)n.remove(t)}(i,t,n),function(t,e,n){const i=n.createRangeIn(e),r=[];for(const e of i)if("elementStart"==e.type&&e.item.is("element","v:shape")){const n=e.item.getAttribute("id");if(t.includes(n))continue;o(e.item.parent.getChildren(),n)||r.push(e.item)}for(const t of r){const e={src:a(t)};t.hasAttribute("alt")&&(e.alt=t.getAttribute("alt"));const i=n.createElement("img",e);n.insertChild(t.index+1,i,t.parent)}function o(t,e){for(const n of t)if(n.is("element")){if("img"==n.name&&n.getAttribute("v:shapes")==e)return!0;if(o(n.getChildren(),e))return!0}return!1}function a(t){for(const e of t.getChildren())if(e.is("element")&&e.getAttribute("src"))return e.getAttribute("src")}}(i,t,n),function(t,e){const n=e.createRangeIn(t),i=new aa({name:/v:(.+)/}),r=[];for(const t of n)"elementStart"==t.type&&i.match(t.item)&&r.push(t.item);for(const t of r)e.remove(t)}(t,n);const r=function(t,e){const n=e.createRangeIn(t),i=new aa({name:"img"}),r=[];for(const t of n)t.item.is("element")&&i.match(t.item)&&t.item.getAttribute("src").startsWith("file://")&&r.push(t.item);return r}(t,n);r.length&&function(t,e,n){if(t.length===e.length)for(let i=0;i<t.length;i++){const r=`data:${e[i].type};base64,${RE(e[i].hex)}`;n.setAttribute("src",r,t[i])}}(r,function(t){if(!t)return[];const e=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+e.source+"))([\\da-fA-F\\s]+)\\}","g"),i=t.match(n),r=[];if(i)for(const t of i){let n=!1;t.includes("\\pngblip")?n="image/png":t.includes("\\jpegblip")&&(n="image/jpeg"),n&&r.push({hex:t.replace(e,"").replace(/[^\da-fA-F]/g,""),type:n})}return r}(e),n)}function RE(t){return btoa(t.match(/\w{2}/g).map((t=>String.fromCharCode(parseInt(t,16)))).join(""))}const FE=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,jE=/xmlns:o="urn:schemas-microsoft-com/i;class $E{document;hasMultiLevelListPlugin;constructor(t,e=!1){this.document=t,this.hasMultiLevelListPlugin=e}isActive(t){return FE.test(t)||jE.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;TE(e,n,this.hasMultiLevelListPlugin),NE(e,t.dataTransfer.getData("text/rtf")),function(t){const e=[],n=new jh(t.document);for(const{item:i}of n.createRangeIn(t))if(i.is("element")){for(const t of i.getClassNames())/\bmso/gi.exec(t)&&n.removeClass(t,i);for(const t of i.getStyleNames())/\bmso/gi.exec(t)&&n.removeStyle(t,i);(i.is("element","w:sdt")||i.is("element","w:sdtpr")&&i.isEmpty||i.is("element","o:p")&&i.isEmpty)&&e.push(i)}for(const t of e){const e=t.parent,i=e.getChildIndex(t);n.insertChild(i,t.getChildren(),e),n.remove(t)}}(e),t.content=e}}function zE(t,e,n,{blockElements:i,inlineObjectElements:r}){let o=n.createPositionAt(t,"forward"==e?"after":"before");return o=o.getLastMatchingPosition((({item:t})=>t.is("element")&&!i.includes(t.name)&&!r.includes(t.name)),{direction:e}),"forward"==e?o.nodeAfter:o.nodeBefore}function VE(t,e){return!!t&&t.is("element")&&e.includes(t.name)}const HE=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class qE{document;constructor(t){this.document=t}isActive(t){return HE.test(t)}execute(t){const e=new jh(this.document),{body:n}=t._parsedData;!function(t,e){for(const n of t.getChildren())if(n.is("element","b")&&"normal"===n.getStyle("font-weight")){const i=t.getChildIndex(n);e.remove(n),e.insertChild(i,n.getChildren(),t)}}(n,e),function(t,e){for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","li")){const n=t.getChild(0);n&&n.is("element","p")&&e.unwrapElement(n)}}}(n,e),function(t,e){const n=new is(e.document.stylesProcessor),i=new Gs(n,{renderingMode:"data"}),r=i.blockElements,o=i.inlineObjectElements,a=[];for(const n of e.createRangeIn(t)){const t=n.item;if(t.is("element","br")){const n=zE(t,"forward",e,{blockElements:r,inlineObjectElements:o}),i=zE(t,"backward",e,{blockElements:r,inlineObjectElements:o}),s=VE(n,r);(VE(i,r)||s)&&a.push(t)}}for(const t of a)t.hasClass("Apple-interchange-newline")?e.remove(t):e.replace(t,e.createElement("p"))}(n,e),t.content=n}}const UE=/<google-sheets-html-origin/i;class GE{document;constructor(t){this.document=t}isActive(t){return UE.test(t)}execute(t){const e=new jh(this.document),{body:n}=t._parsedData;!function(t,e){for(const n of t.getChildren())if(n.is("element","google-sheets-html-origin")){const i=t.getChildIndex(n);e.remove(n),e.insertChild(i,n.getChildren(),t)}}(n,e),function(t,e){for(const n of t.getChildren())n.is("element","table")&&n.hasAttribute("xmlns")&&e.removeAttribute("xmlns",n)}(n,e),function(t,e){for(const n of t.getChildren())n.is("element","table")&&"0px"===n.getStyle("width")&&e.removeStyle("width",n)}(n,e),function(t,e){for(const n of Array.from(t.getChildren()))n.is("element","style")&&e.remove(n)}(n,e),t.content=n}}function WE(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,((t,e)=>1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length)))}function KE(t,e){const n=new DOMParser,i=function(t){return WE(WE(t)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/(<span\s+style=['"]letter-spacing:[^'"]+?['"]>)[\r\n]+(<\/span>)/g,"$1 $2").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(t){const e="</body>",n="</html>",i=t.indexOf(e);if(i<0)return t;const r=t.indexOf(n,i+e.length);return t.substring(0,i+e.length)+(r>=0?t.substring(r):"")}(t=(t=t.replace(/<!--\[if gte vml 1]>/g,"")).replace(/<o:SmartTagType(?:\s+[^\s>=]+(?:="[^"]*")?)*\s*\/?>/gi,""))),r=n.parseFromString(i,"text/html");!function(t){t.querySelectorAll("span[style*=spacerun]").forEach((t=>{const e=t,n=e.innerText.length||0;e.innerText=Array(n+1).join("  ").substr(0,n)}))}(r);const o=r.body.innerHTML,a=function(t,e){const n=new is(e),i=new Gs(n,{renderingMode:"data"}),r=t.createDocumentFragment(),o=t.body.childNodes;for(;o.length>0;)r.appendChild(o[0]);return i.domToView(r,{skipComments:!0})}(r,e),s=function(t){const e=[],n=[],i=Array.from(t.getElementsByTagName("style"));for(const t of i)t.sheet&&t.sheet.cssRules&&t.sheet.cssRules.length&&(e.push(t.sheet),n.push(t.innerHTML));return{styles:e,stylesString:n.join(" ")}}(r);return{body:a,bodyString:o,styles:s.styles,stylesString:s.stylesString}}function YE(t,e){const{modelAttribute:n,styleName:i,viewElement:r,defaultValue:o,reduceBoxSides:a=!1,shouldUpcast:s=()=>!0}=e;t.for("upcast").attributeToAttribute({view:{name:r,styles:{[i]:/[\s\S]+/}},model:{key:n,value:t=>{if(!s(t))return;const e=t.getNormalizedStyle(i),n=a?JE(e):e;return o!==n?n:void 0}}})}function XE(t,e,n,i){t.for("upcast").add((t=>t.on("element:"+e,((t,e,r)=>{if(!e.modelRange)return;const o=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter((t=>e.viewItem.hasStyle(t)));if(!o.length)return;const a={styles:o};if(!r.consumable.test(e.viewItem,a))return;const s=[...e.modelRange.getItems({shallow:!0})].pop();r.consumable.consume(e.viewItem,a);const c={style:e.viewItem.getNormalizedStyle("border-style"),color:e.viewItem.getNormalizedStyle("border-color"),width:e.viewItem.getNormalizedStyle("border-width")},l={style:JE(c.style),color:JE(c.color),width:JE(c.width)};l.style!==i.style&&r.writer.setAttribute(n.style,l.style,s),l.color!==i.color&&r.writer.setAttribute(n.color,l.color,s),l.width!==i.width&&r.writer.setAttribute(n.width,l.width,s)}))))}function ZE(t,e){const{modelElement:n,modelAttribute:i,styleName:r}=e;t.for("downcast").attributeToAttribute({model:{name:n,key:i},view:t=>({key:"style",value:{[r]:t}})})}function QE(t,e){const{modelAttribute:n,styleName:i}=e;t.for("downcast").add((t=>t.on(`attribute:${n}:table`,((t,e,n)=>{const{item:r,attributeNewValue:o}=e,{mapper:a,writer:s}=n;if(!n.consumable.consume(e.item,t.name))return;const c=[...a.toViewElement(r).getChildren()].find((t=>t.is("element","table")));o?s.setStyle(i,o,c):s.removeStyle(i,c)}))))}function JE(t){if(!t)return;const e=["top","right","bottom","left"];if(!e.every((e=>t[e])))return t;const n=t.top;return e.every((e=>t[e]===n))?n:t}function tT(t,e,n,i,r=1){null!=e&&null!=r&&e>r?i.setAttribute(t,e,n):i.removeAttribute(t,n)}function eT(t,e,n={}){const i=t.createElement("tableCell",n);return t.insertElement("paragraph",i),t.insert(i,e),i}function nT(t,e){const n=e.parent.parent,i=parseInt(n.getAttribute("headingColumns")||"0"),{column:r}=t.getCellLocation(e);return!!i&&r<i}function iT(t,e,n){const{modelAttribute:i}=n;t.extend("tableCell",{allowAttributes:[i]}),YE(e,{viewElement:/^(td|th)$/,...n}),ZE(e,{modelElement:"tableCell",...n})}function rT(t){const e=t.getSelectedElement();return e&&e.is("element","table")?e:t.getFirstPosition().findAncestor("table")}function oT(){return t=>{t.on("element:table",((t,e,n)=>{const i=e.viewItem;if(!n.consumable.test(i,{name:!0}))return;const{rows:r,headingRows:o,headingColumns:a}=function(t){let e,n=0;const i=[],r=[];let o;for(const a of Array.from(t.getChildren())){if("tbody"!==a.name&&"thead"!==a.name&&"tfoot"!==a.name)continue;"thead"!==a.name||o||(o=a);const t=Array.from(a.getChildren()).filter((t=>t.is("element","tr")));for(const s of t)if(o&&a===o||"tbody"===a.name&&Array.from(s.getChildren()).length&&Array.from(s.getChildren()).every((t=>t.is("element","th"))))n++,i.push(s);else{r.push(s);const t=sT(s);(!e||t<e)&&(e=t)}}return{headingRows:n,headingColumns:e||0,rows:[...i,...r]}}(i),s={};a&&(s.headingColumns=a),o&&(s.headingRows=o);const c=n.writer.createElement("table",s);if(n.safeInsert(c,e.modelCursor)){if(n.consumable.consume(i,{name:!0}),r.forEach((t=>n.convertItem(t,n.writer.createPositionAt(c,"end")))),n.convertChildren(i,n.writer.createPositionAt(c,"end")),c.isEmpty){const t=n.writer.createElement("tableRow");n.writer.insert(t,n.writer.createPositionAt(c,"end")),eT(n.writer,n.writer.createPositionAt(t,"end"))}n.updateConversionResult(c,e)}}))}}function aT(t){return e=>{e.on(`element:${t}`,((t,e,{writer:n})=>{if(!e.modelRange)return;const i=e.modelRange.start.nodeAfter,r=n.createPositionAt(i,0);if(e.viewItem.isEmpty)return void n.insertElement("paragraph",r);const o=Array.from(i.getChildren());if(o.every((t=>t.is("element","$marker")))){const t=n.createElement("paragraph");n.insert(t,n.createPositionAt(i,0));for(const e of o)n.move(n.createRangeOn(e),n.createPositionAt(t,"end"))}}),{priority:"low"})}}function sT(t){let e=0,n=0;const i=Array.from(t.getChildren()).filter((t=>"th"===t.name||"td"===t.name));for(;n<i.length&&"th"===i[n].name;){const t=i[n];e+=parseInt(t.getAttribute("colspan")||"1"),n++}return e}class cT{_table;_startRow;_endRow;_startColumn;_endColumn;_includeAllSlots;_skipRows;_row;_rowIndex;_column;_cellIndex;_spannedCells;_nextCellAtColumn;_jumpedToStartRow=!1;constructor(t,e={}){this._table=t,this._startRow=void 0!==e.row?e.row:e.startRow||0,this._endRow=void 0!==e.row?e.row:e.endRow,this._startColumn=void 0!==e.column?e.column:e.startColumn||0,this._endColumn=void 0!==e.column?e.column:e.endColumn,this._includeAllSlots=!!e.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}[Symbol.iterator](){return this}next(){this._canJumpToStartRow()&&this._jumpToNonSpannedRowClosestToStartRow();const t=this._table.getChild(this._rowIndex);if(!t||this._isOverEndRow())return{done:!0,value:void 0};if(!t.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();let e=null;const n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{const n=t.getChild(this._cellIndex);if(!n)return this._advanceToNextRow();const i=parseInt(n.getAttribute("colspan")||"1"),r=parseInt(n.getAttribute("rowspan")||"1");(i>1||r>1)&&this._recordSpans(n,r,i),this._shouldSkipSlot()||(e=this._formatOutValue(n)),this._nextCellAtColumn=this._column+i}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new lT(this,t,e,n)}}_shouldSkipSlot(){const t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,i=void 0!==this._endColumn&&this._column>this._endColumn;return t||e||n||i}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const i={cell:t,row:this._row,column:this._column};for(let t=this._row;t<this._row+e;t++)for(let e=this._column;e<this._column+n;e++)t==this._row&&e==this._column||this._markSpannedCell(t,e,i)}_markSpannedCell(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map);this._spannedCells.get(t).set(e,n)}_canJumpToStartRow(){return!!this._startRow&&this._startRow>0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const t=this._getRowLength(0);for(let e=this._startRow;!this._jumpedToStartRow;e--)t===this._getRowLength(e)&&(this._row=e,this._rowIndex=e,this._jumpedToStartRow=!0)}_getRowLength(t){return[...this._table.getChild(t).getChildren()].reduce(((t,e)=>t+parseInt(e.getAttribute("colspan")||"1")),0)}}class lT{cell;row;column;cellAnchorRow;cellAnchorColumn;_cellIndex;_rowIndex;_table;constructor(t,e,n,i){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=i,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function uT(t,e){return(n,{writer:i})=>{const r=n.getAttribute("headingRows")||0,o=i.createContainerElement("table",null,[]),a=i.createContainerElement("figure",{class:"table"},o);r>0&&i.insert(i.createPositionAt(o,"end"),i.createContainerElement("thead",null,i.createSlot((t=>t.is("element","tableRow")&&t.index<r)))),r<t.getRows(n)&&i.insert(i.createPositionAt(o,"end"),i.createContainerElement("tbody",null,i.createSlot((t=>t.is("element","tableRow")&&t.index>=r))));for(const{positionOffset:t,filter:n}of e.additionalSlots)i.insert(i.createPositionAt(o,t),i.createSlot(n));return i.insert(i.createPositionAt(o,"after"),i.createSlot((t=>!t.is("element","tableRow")&&!e.additionalSlots.some((({filter:e})=>e(t)))))),e.asWidget?function(t,e){return e.setCustomProperty("table",!0,t),fy(t,e,{hasSelectionHandle:!0})}(a,i):a}}function hT(t={}){return(e,{writer:n})=>{const i=e.parent,r=i.parent,o=r.getChildIndex(i),a=new cT(r,{row:o}),s=r.getAttribute("headingRows")||0,c=r.getAttribute("headingColumns")||0;let l=null;for(const i of a)if(i.cell==e){const e=i.row<s||i.column<c?"th":"td";l=t.asWidget?by(n.createEditableElement(e),n):n.createContainerElement(e);break}return l}}function dT(t={}){return(e,{writer:n})=>{if(!e.parent.is("element","tableCell"))return null;if(!fT(e))return null;if(t.asWidget)return n.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const t=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,t),t}}}function fT(t){return 1==t.parent.childCount&&!!t.getAttributeKeys().next().done}class gT extends Ro{refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=function(t,e){const n=t.getFirstPosition().parent,i=n===n.root?n:n.parent;return e.checkChild(i,"table")}(e,n)}execute(t={}){const e=this.editor,n=e.model,i=e.plugins.get("TableUtils"),r=e.config.get("table.defaultHeadings.rows"),o=e.config.get("table.defaultHeadings.columns");void 0===t.headingRows&&r&&(t.headingRows=r),void 0===t.headingColumns&&o&&(t.headingColumns=o),n.change((e=>{const r=i.createTable(e,t);n.insertObject(r,null,null,{findOptimalPosition:"auto"}),e.setSelection(e.createPositionAt(r.getNodeByPath([0,0,0]),0))}))}}class pT extends Ro{order;constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i="above"===this.order,r=n.getSelectionAffectedTableCells(e),o=n.getRowIndexes(r),a=i?o.first:o.last,s=r[0].findAncestor("table");n.insertRows(s,{at:i?a:a+1,copyStructureFromAbove:!i})}}class mT extends Ro{order;constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i="left"===this.order,r=n.getSelectionAffectedTableCells(e),o=n.getColumnIndexes(r),a=i?o.first:o.last,s=r[0].findAncestor("table");n.insertColumns(s,{columns:1,at:i?a:a+1})}}class bT extends Ro{direction;constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length}execute(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}function wT(t,e,n){const{startRow:i,startColumn:r,endRow:o,endColumn:a}=e,s=n.createElement("table"),c=o-i+1;for(let t=0;t<c;t++)n.insertElement("tableRow",s,"end");const l=[...new cT(t,{startRow:i,endRow:o,startColumn:r,endColumn:a,includeAllSlots:!0})];for(const{row:t,column:e,cell:c,isAnchor:u,cellAnchorRow:h,cellAnchorColumn:d}of l){const l=t-i,f=s.getChild(l);if(u){const i=n.cloneElement(c);n.append(i,f),CT(i,t,e,o,a,n)}else(h<i||d<r)&&eT(n,n.createPositionAt(f,"end"))}return function(t,e,n,i,r){const o=parseInt(e.getAttribute("headingRows")||"0");if(o>0){tT("headingRows",o-n,t,r,0)}const a=parseInt(e.getAttribute("headingColumns")||"0");if(a>0){tT("headingColumns",a-i,t,r,0)}}(s,t,i,r,n),s}function kT(t,e,n=0){const i=[],r=new cT(t,{startRow:n,endRow:e-1});for(const t of r){const{row:n,cellHeight:r}=t;n<e&&e<=n+r-1&&i.push(t)}return i}function vT(t,e,n){const i=t.parent,r=i.parent,o=i.index,a=e-o,s={},c=parseInt(t.getAttribute("rowspan"))-a;c>1&&(s.rowspan=c);const l=parseInt(t.getAttribute("colspan")||"1");l>1&&(s.colspan=l);const u=o+a,h=[...new cT(r,{startRow:o,endRow:u,includeAllSlots:!0})];let d,f=null;for(const e of h){const{row:i,column:r,cell:o}=e;o===t&&void 0===d&&(d=r),void 0!==d&&d===r&&i===u&&(f=eT(n,e.getPositionBefore(),s))}return tT("rowspan",a,t,n),f}function yT(t,e){const n=[],i=new cT(t);for(const t of i){const{column:i,cellWidth:r}=t;i<e&&e<=i+r-1&&n.push(t)}return n}function _T(t,e,n,i){const r=n-e,o={},a=parseInt(t.getAttribute("colspan"))-r;a>1&&(o.colspan=a);const s=parseInt(t.getAttribute("rowspan")||"1");s>1&&(o.rowspan=s);const c=eT(i,i.createPositionAfter(t),o);return tT("colspan",r,t,i),c}function CT(t,e,n,i,r,o){const a=parseInt(t.getAttribute("colspan")||"1"),s=parseInt(t.getAttribute("rowspan")||"1");if(n+a-1>r){tT("colspan",r-n+1,t,o,1)}if(e+s-1>i){tT("rowspan",i-e+1,t,o,1)}}function AT(t,e){const n=e.getColumns(t),i=new Array(n).fill(0);for(const{column:e}of new cT(t))i[e]++;const r=i.reduce(((t,e,n)=>e?t:[...t,n]),[]);if(r.length>0){const n=r[r.length-1];return e.removeColumns(t,{at:n}),!0}return!1}function xT(t,e){const n=[],i=e.getRows(t);for(let e=0;e<i;e++){t.getChild(e).isEmpty&&n.push(e)}if(n.length>0){const i=n[n.length-1];return e.removeRows(t,{at:i}),!0}return!1}function ET(t,e){AT(t,e)||xT(t,e)}function TT(t,e){const n=Array.from(new cT(t,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(n.every((({cellHeight:t})=>1===t)))return e.lastRow;const i=n[0].cellHeight-1;return e.lastRow+i}function ST(t,e){const n=Array.from(new cT(t,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(n.every((({cellWidth:t})=>1===t)))return e.lastColumn;const i=n[0].cellWidth-1;return e.lastColumn+i}class DT extends Ro{direction;isHorizontal;constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=t.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],i=this.value,r=this.direction;t.change((t=>{const e="right"==r||"down"==r,o=e?n:i,a=e?i:n,s=a.parent;!function(t,e,n){IT(t)||(IT(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end")));n.remove(t)}(a,o,t);const c=this.isHorizontal?"colspan":"rowspan",l=parseInt(n.getAttribute(c)||"1"),u=parseInt(i.getAttribute(c)||"1");t.setAttribute(c,l+u,o),t.setSelection(t.createRangeIn(o));const h=this.editor.plugins.get("TableUtils");ET(s.findAncestor("table"),h)}))}_getMergeableCell(){const t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const i=this.isHorizontal?function(t,e,n){const i=t.parent,r=i.parent,o="right"==e?t.nextSibling:t.previousSibling,a=(r.getAttribute("headingColumns")||0)>0;if(!o)return;const s="right"==e?t:o,c="right"==e?o:t,{column:l}=n.getCellLocation(s),{column:u}=n.getCellLocation(c),h=parseInt(s.getAttribute("colspan")||"1"),d=nT(n,s),f=nT(n,c);if(a&&d!=f)return;return l+h===u?o:void 0}(n,this.direction,e):function(t,e,n){const i=t.parent,r=i.parent,o=r.getChildIndex(i);if("down"==e&&o===n.getRows(r)-1||"up"==e&&0===o)return null;const a=parseInt(t.getAttribute("rowspan")||"1"),s=r.getAttribute("headingRows")||0,c="down"==e&&o+a===s,l="up"==e&&o===s;if(s&&(c||l))return null;const u=parseInt(t.getAttribute("rowspan")||"1"),h="down"==e?o+u:o,d=[...new cT(r,{endRow:h})],f=d.find((e=>e.cell===t)),g=f.column,p=d.find((({row:t,cellHeight:n,column:i})=>i===g&&("down"==e?t===h:h===t+n)));return p&&p.cell?p.cell:null}(n,this.direction,e);if(!i)return;const r=this.isHorizontal?"rowspan":"colspan",o=parseInt(n.getAttribute(r)||"1");return parseInt(i.getAttribute(r)||"1")===o?i:void 0}}function IT(t){const e=t.getChild(0);return 1==t.childCount&&e.is("element","paragraph")&&e.isEmpty}class BT extends Ro{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const i=n.findAncestor("table"),r=t.getRows(i)-1,o=t.getRowIndexes(e),a=0===o.first&&o.last===r;this.isEnabled=!a}else this.isEnabled=!1}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),r=n[0],o=r.findAncestor("table"),a=e.getCellLocation(r).column;t.change((t=>{const n=i.last-i.first+1;e.removeRows(o,{at:i.first,rows:n});const r=function(t,e,n,i){const r=t.getChild(Math.min(e,i-1));let o=r.getChild(0),a=0;for(const t of r.getChildren()){if(a>n)return o;o=t,a+=parseInt(t.getAttribute("colspan")||"1")}return o}(o,i.first,a,e.getRows(o));t.setSelection(t.createPositionAt(r,0))}))}}class MT extends Ro{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const i=n.findAncestor("table"),r=t.getColumns(i),{first:o,last:a}=t.getColumnIndexes(e);this.isEnabled=a-o<r-1}else this.isEnabled=!1}execute(){const t=this.editor.plugins.get("TableUtils"),[e,n]=function(t,e){const n=e.getSelectionAffectedTableCells(t),i=n[0],r=n.pop(),o=[i,r];return i.isBefore(r)?o:o.reverse()}(this.editor.model.document.selection,t),i=e.parent.parent,r=[...new cT(i)],o={first:r.find((t=>t.cell===e)).column,last:r.find((t=>t.cell===n)).column},a=function(t,e,n,i){const r=parseInt(n.getAttribute("colspan")||"1");return r>1?n:e.previousSibling||n.nextSibling?n.nextSibling||e.previousSibling:i.first?t.reverse().find((({column:t})=>t<i.first)).cell:t.reverse().find((({column:t})=>t>i.last)).cell}(r,e,n,o);this.editor.model.change((e=>{const n=o.last-o.first+1;t.removeColumns(i,{at:o.first,columns:n}),e.setSelection(e.createPositionAt(a,0))}))}}class PT extends Ro{refresh(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every((t=>this._isInHeading(t,t.parent.parent)))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),r=i[0].findAncestor("table"),{first:o,last:a}=e.getRowIndexes(i),s=this.value?o:a+1,c=r.getAttribute("headingRows")||0;n.change((t=>{if(s){const e=kT(r,s,s>c?c:0);for(const{cell:n}of e)vT(n,s,t)}tT("headingRows",s,r,t,0)}))}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index<n}}class LT extends Ro{refresh(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every((t=>nT(e,t)))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),r=i[0].findAncestor("table"),{first:o,last:a}=e.getColumnIndexes(i),s=this.value?o:a+1;n.change((t=>{if(s){const e=yT(r,s);for(const{cell:n,column:i}of e)_T(n,i,s,t)}tT("headingColumns",s,r,t,0)}))}}function OT(t,e){return 4e3/NT(t,e)}function NT(t,e){const n=RT(t,"tbody",e)||RT(t,"thead",e);return FT(e.editing.view.domConverter.mapViewToDom(n))}function RT(t,e,n){return[...[...n.editing.mapper.toViewElement(t).getChildren()].find((t=>t.is("element","table"))).getChildren()].find((t=>t.is("element",e)))}function FT(t){const e=Xn.window.getComputedStyle(t);return"border-box"===e.boxSizing?parseFloat(e.width)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth):parseFloat(e.width)}function jT(t){const e=Math.pow(10,2),n="number"==typeof t?t:parseFloat(t);return Math.round(n*e)/e}function $T(t){return t.map((t=>"number"==typeof t?t:parseFloat(t))).filter((t=>!Number.isNaN(t))).reduce(((t,e)=>t+e),0)}function zT(t){let e=function(t){const e=t.filter((t=>"auto"===t)).length;if(0===e)return t.map((t=>jT(t)));const n=$T(t),i=Math.max((100-n)/e,5);return t.map((t=>"auto"===t?i:t)).map((t=>jT(t)))}(t.map((t=>"auto"===t?t:parseFloat(t.replace("%","")))));const n=$T(e);return 100!==n&&(e=e.map((t=>jT(100*t/n))).map(((t,e,n)=>{if(!(e===n.length-1))return t;return jT(t+100-$T(n))}))),e.map((t=>t+"%"))}function VT(t){const e=Xn.window.getComputedStyle(t);return"border-box"===e.boxSizing?parseInt(e.width):parseFloat(e.width)+parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderWidth)}function HT(t,e,n,i){for(let r=0;r<Math.max(n.length,t.length);r++){const o=t[r],a=n[r];a?o?i.setAttribute("columnWidth",a,o):i.appendElement("tableColumn",{columnWidth:a},e):i.remove(o)}}function qT(t){if(t.is("element","tableColumnGroup"))return t;const e=t.getChildren();return Array.from(e).find((t=>t.is("element","tableColumnGroup")))}function UT(t){const e=qT(t);return e?Array.from(e.getChildren()):[]}class GT extends Oo{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,i=n.getChildIndex(e),r=new cT(n,{row:i});for(const{cell:e,row:n,column:i}of r)if(e===t)return{row:n,column:i}}createTable(t,e){const n=t.createElement("table"),i=e.rows||2,r=e.columns||2;return WT(t,n,0,i,r),e.headingRows&&tT("headingRows",Math.min(e.headingRows,i),n,t,0),e.headingColumns&&tT("headingColumns",Math.min(e.headingColumns,r),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,i=e.at||0,r=e.rows||1,o=void 0!==e.copyStructureFromAbove,a=e.copyStructureFromAbove?i-1:i,s=this.getRows(t),c=this.getColumns(t);if(i>s)throw new wi("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change((e=>{const n=t.getAttribute("headingRows")||0;if(n>i&&tT("headingRows",n+r,t,e,0),!o&&(0===i||i===s))return void WT(e,t,i,r,c);const l=o?Math.max(i,a):i,u=new cT(t,{endRow:l}),h=new Array(c).fill(1);for(const{row:t,column:n,cellHeight:s,cellWidth:c,cell:l}of u){const u=t+s-1,d=t<=a&&a<=u;t<i&&i<=u?(e.setAttribute("rowspan",s+r,l),h[n]=-c):o&&d&&(h[n]=c)}for(let n=0;n<r;n++){const n=e.createElement("tableRow");e.insert(n,t,i);for(let t=0;t<h.length;t++){const i=h[t],r=e.createPositionAt(n,"end");i>0&&eT(e,r,i>1?{colspan:i}:void 0),t+=Math.abs(i)-1}}}))}insertColumns(t,e={}){const n=this.editor.model,i=e.at||0,r=e.columns||1;n.change((e=>{const n=t.getAttribute("headingColumns");i<n&&e.setAttribute("headingColumns",n+r,t);const o=this.getColumns(t);if(0===i||o===i){for(const n of t.getChildren())n.is("element","tableRow")&&KT(r,e,e.createPositionAt(n,i?"end":0));return}const a=new cT(t,{column:i,includeAllSlots:!0});for(const t of a){const{row:n,cell:o,cellAnchorColumn:s,cellAnchorRow:c,cellWidth:l,cellHeight:u}=t;if(s<i){e.setAttribute("colspan",l+r,o);const t=c+u-1;for(let e=n;e<=t;e++)a.skipRow(e)}else KT(r,e,t.getPositionBefore())}}))}removeRows(t,e){const n=this.editor.model,i=e.rows||1,r=this.getRows(t),o=e.at,a=o+i-1;if(a>r-1)throw new wi("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change((e=>{const n={first:o,last:a},{cellsToMove:i,cellsToTrim:r}=function(t,{first:e,last:n}){const i=new Map,r=[];for(const{row:o,column:a,cellHeight:s,cell:c}of new cT(t,{endRow:n})){const t=o+s-1;if(o>=e&&o<=n&&t>n){const t=s-(n-o+1);i.set(a,{cell:c,rowspan:t})}if(o<e&&t>=e){let i;i=t>=n?n-e+1:t-e+1,r.push({cell:c,rowspan:s-i})}}return{cellsToMove:i,cellsToTrim:r}}(t,n);if(i.size){!function(t,e,n,i){const r=new cT(t,{includeAllSlots:!0,row:e}),o=[...r],a=t.getChild(e);let s;for(const{column:t,cell:e,isAnchor:r}of o)if(n.has(t)){const{cell:e,rowspan:r}=n.get(t),o=s?i.createPositionAfter(s):i.createPositionAt(a,0);i.move(i.createRangeOn(e),o),tT("rowspan",r,e,i),s=e}else r&&(s=e)}(t,a+1,i,e)}for(let n=a;n>=o;n--)e.remove(t.getChild(n));for(const{rowspan:t,cell:n}of r)tT("rowspan",t,n,e);!function(t,{first:e,last:n},i){const r=t.getAttribute("headingRows")||0;if(e<r){tT("headingRows",n<r?r-(n-e+1):e,t,i,0)}}(t,n,e),AT(t,this)||xT(t,this)}))}removeColumns(t,e){const n=this.editor.model,i=e.at,r=e.columns||1,o=e.at+r-1;n.change((e=>{!function(t,e,n){const i=t.getAttribute("headingColumns")||0;if(i&&e.first<i){const r=Math.min(i-1,e.last)-e.first+1;n.setAttribute("headingColumns",i-r,t)}}(t,{first:i,last:o},e);const n=UT(t);for(let r=o;r>=i;r--){for(const{cell:n,column:i,cellWidth:o}of[...new cT(t)])i<=r&&o>1&&i+o>r?tT("colspan",o-1,n,e):i===r&&e.remove(n);if(n[r]){const t=0===r?n[1]:n[r-1],i=parseFloat(n[r].getAttribute("columnWidth")),o=parseFloat(t.getAttribute("columnWidth"));e.remove(n[r]),e.setAttribute("columnWidth",i+o+"%",t)}}xT(t,this)||AT(t,this)}))}splitCellVertically(t,e=2){const n=this.editor.model,i=t.parent.parent,r=parseInt(t.getAttribute("rowspan")||"1"),o=parseInt(t.getAttribute("colspan")||"1");n.change((n=>{if(o>1){const{newCellsSpan:i,updatedSpan:a}=YT(o,e);tT("colspan",a,t,n);const s={};i>1&&(s.colspan=i),r>1&&(s.rowspan=r);KT(o>e?e-1:o-1,n,n.createPositionAfter(t),s)}if(o<e){const a=e-o,s=[...new cT(i)],{column:c}=s.find((({cell:e})=>e===t)),l=s.filter((({cell:e,cellWidth:n,column:i})=>e!==t&&i===c||i<c&&i+n>c));for(const{cell:t,cellWidth:e}of l)n.setAttribute("colspan",e+a,t);const u={};r>1&&(u.rowspan=r),KT(a,n,n.createPositionAfter(t),u);const h=i.getAttribute("headingColumns")||0;h>c&&tT("headingColumns",h+a,i,n)}}))}splitCellHorizontally(t,e=2){const n=this.editor.model,i=t.parent,r=i.parent,o=r.getChildIndex(i),a=parseInt(t.getAttribute("rowspan")||"1"),s=parseInt(t.getAttribute("colspan")||"1");n.change((n=>{if(a>1){const i=[...new cT(r,{startRow:o,endRow:o+a-1,includeAllSlots:!0})],{newCellsSpan:c,updatedSpan:l}=YT(a,e);tT("rowspan",l,t,n);const{column:u}=i.find((({cell:e})=>e===t)),h={};c>1&&(h.rowspan=c),s>1&&(h.colspan=s);let d=0;for(const t of i){const{column:e,row:i}=t,r=e===u;d>=c&&r&&(d=0),i>=o+l&&r&&(d||KT(1,n,t.getPositionBefore(),h),d++)}}if(a<e){const i=e-a,c=[...new cT(r,{startRow:0,endRow:o})];for(const{cell:e,cellHeight:r,row:a}of c)if(e!==t&&a+r>o){const t=r+i;n.setAttribute("rowspan",t,e)}const l={};s>1&&(l.colspan=s),WT(n,r,o+1,i,1,l);const u=r.getAttribute("headingRows")||0;u>o&&tT("headingRows",u+i,r,n)}}))}getColumns(t){return[...t.getChild(0).getChildren()].filter((t=>t.is("element","tableCell"))).reduce(((t,e)=>t+parseInt(e.getAttribute("colspan")||"1")),0)}getRows(t){return Array.from(t.getChildren()).reduce(((t,e)=>e.is("element","tableRow")?t+1:t),0)}createTableWalker(t,e={}){return new cT(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const t=n.getContainedElement();t&&t.is("element","tableCell")&&e.push(t)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const t=n.start.findAncestor("tableCell");t&&e.push(t)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map((t=>t.parent.index));return this._getFirstLastIndexesObject(e)}getColumnIndexes(t){const e=t[0].findAncestor("table"),n=[...new cT(e)].filter((e=>t.includes(e.cell))).map((t=>t.column));return this._getFirstLastIndexesObject(n)}isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;const e=new Set,n=new Set;let i=0;for(const r of t){const{row:t,column:o}=this.getCellLocation(r),a=parseInt(r.getAttribute("rowspan"))||1,s=parseInt(r.getAttribute("colspan"))||1;e.add(t),n.add(o),a>1&&e.add(t+a-1),s>1&&n.add(o+s-1),i+=a*s}const r=function(t,e){const n=Array.from(t.values()),i=Array.from(e.values()),r=Math.max(...n),o=Math.min(...n),a=Math.max(...i),s=Math.min(...i);return(r-o+1)*(a-s+1)}(e,n);return r==i}sortRanges(t){return Array.from(t).sort(XT)}_getFirstLastIndexesObject(t){const e=t.sort(((t,e)=>t-e));return{first:e[0],last:e[e.length-1]}}_areCellInTheSameTableSection(t){const e=t[0].findAncestor("table"),n=this.getRowIndexes(t),i=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,i))return!1;const r=this.getColumnIndexes(t),o=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(r,o)}_areIndexesInSameSection({first:t,last:e},n){return t<n===e<n}}function WT(t,e,n,i,r,o={}){for(let a=0;a<i;a++){const i=t.createElement("tableRow");t.insert(i,e,n),KT(r,t,t.createPositionAt(i,"end"),o)}}function KT(t,e,n,i={}){for(let r=0;r<t;r++)eT(e,n,i)}function YT(t,e){if(t<e)return{newCellsSpan:1,updatedSpan:1};const n=Math.floor(t/e);return{newCellsSpan:n,updatedSpan:t-n*e+n}}function XT(t,e){const n=t.start,i=e.start;return n.isBefore(i)?-1:1}class ZT extends Ro{refresh(){const t=this.editor.plugins.get(GT),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e)}execute(){const t=this.editor.model,e=this.editor.plugins.get(GT);t.change((n=>{const i=e.getSelectedTableCells(t.document.selection),r=i.shift(),{mergeWidth:o,mergeHeight:a}=function(t,e,n){let i=0,r=0;for(const t of e){const{row:e,column:o}=n.getCellLocation(t);i=tS(t,o,i,"colspan"),r=tS(t,e,r,"rowspan")}const{row:o,column:a}=n.getCellLocation(t),s=i-a,c=r-o;return{mergeWidth:s,mergeHeight:c}}(r,i,e);tT("colspan",o,r,n),tT("rowspan",a,r,n);for(const t of i)QT(t,r,n);ET(r.findAncestor("table"),e),n.setSelection(r,"in")}))}}function QT(t,e,n){JT(t)||(JT(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}function JT(t){const e=t.getChild(0);return 1==t.childCount&&e.is("element","paragraph")&&e.isEmpty}function tS(t,e,n,i){const r=parseInt(t.getAttribute(i)||"1");return Math.max(n,e+r)}class eS extends Ro{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),r=n[0].findAncestor("table"),o=[];for(let e=i.first;e<=i.last;e++)for(const n of r.getChild(e).getChildren())o.push(t.createRangeOn(n));t.change((t=>{t.setSelection(o)}))}}class nS extends Ro{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n[0],r=n.pop(),o=i.findAncestor("table"),a=t.getCellLocation(i),s=t.getCellLocation(r),c=Math.min(a.column,s.column),l=Math.max(a.column,s.column),u=[];for(const t of new cT(o,{startColumn:c,endColumn:l}))u.push(e.createRangeOn(t.cell));e.change((t=>{t.setSelection(u)}))}}function iS(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let i=!1;const r=new Set;for(const e of n){let n=null;"insert"==e.type&&"table"==e.name&&(n=e.position.nodeAfter),"insert"!=e.type&&"remove"!=e.type||"tableRow"!=e.name&&"tableCell"!=e.name||(n=e.position.findAncestor("table")),aS(e)&&(n=e.range.start.findAncestor("table")),n&&!r.has(n)&&(i=rS(n,t)||i,i=oS(n,t)||i,r.add(n))}return i}(e,t)))}function rS(t,e){let n=!1;const i=function(t){const e=parseInt(t.getAttribute("headingRows")||"0"),n=Array.from(t.getChildren()).reduce(((t,e)=>e.is("element","tableRow")?t+1:t),0),i=[];for(const{row:r,cell:o,cellHeight:a}of new cT(t)){if(a<2)continue;const t=r<e?e:n;if(r+a>t){const e=t-r;i.push({cell:o,rowspan:e})}}return i}(t);if(i.length){n=!0;for(const t of i)tT("rowspan",t.rowspan,t.cell,e,1)}return n}function oS(t,e){let n=!1;const i=function(t){const e=new Array(t.childCount).fill(0);for(const{rowIndex:n}of new cT(t,{includeAllSlots:!0}))e[n]++;return e}(t),r=[];for(const[e,n]of i.entries())!n&&t.getChild(e).is("element","tableRow")&&r.push(e);if(r.length){n=!0;for(const n of r.reverse())e.remove(t.getChild(n)),i.splice(n,1)}const o=i.filter(((e,n)=>t.getChild(n).is("element","tableRow"))),a=o[0];if(!o.every((t=>t===a))){const i=o.reduce(((t,e)=>e>t?e:t),0);for(const[r,a]of o.entries()){const o=i-a;if(o){for(let n=0;n<o;n++)eT(e,e.createPositionAt(t.getChild(r),"end"));n=!0}}}return n}function aS(t){if("attribute"!==t.type)return!1;const e=t.attributeKey;return"headingRows"===e||"colspan"===e||"rowspan"===e}function sS(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let i=!1;for(const e of n)"insert"==e.type&&"table"==e.name&&(i=cS(e.position.nodeAfter,t)||i),"insert"==e.type&&"tableRow"==e.name&&(i=lS(e.position.nodeAfter,t)||i),"insert"==e.type&&"tableCell"==e.name&&(i=uS(e.position.nodeAfter,t)||i),"remove"!=e.type&&"insert"!=e.type||!hS(e)||(i=uS(e.position.parent,t)||i);return i}(e,t)))}function cS(t,e){let n=!1;for(const i of t.getChildren())i.is("element","tableRow")&&(n=lS(i,e)||n);return n}function lS(t,e){let n=!1;for(const i of t.getChildren())n=uS(i,e)||n;return n}function uS(t,e){if(0==t.childCount)return e.insertElement("paragraph",t),!0;const n=Array.from(t.getChildren()).filter((t=>t.is("$text")));for(const t of n)e.wrap(e.createRangeOn(t),"paragraph");return!!n.length}function hS(t){return!!t.position.parent.is("element","tableCell")&&("insert"==t.type&&"$text"==t.name||"remove"==t.type)}function dS(t,e){if(!t.is("element","paragraph"))return!1;const n=e.toViewElement(t);return!!n&&fT(t)!==n.is("element","span")}var fS=n(8137),gS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(fS.A,gS);fS.A.locals;class pS extends Oo{_additionalSlots;static get pluginName(){return"TableEditing"}static get requires(){return[GT]}constructor(t){super(t),this._additionalSlots=[]}init(){const t=this.editor,e=t.model,n=e.schema,i=t.conversion,r=t.plugins.get(GT);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),i.for("upcast").add((t=>{t.on("element:figure",((t,e,n)=>{if(!n.consumable.test(e.viewItem,{name:!0,classes:"table"}))return;const i=function(t){for(const e of t.getChildren())if(e.is("element","table"))return e}(e.viewItem);if(!i||!n.consumable.test(i,{name:!0}))return;n.consumable.consume(e.viewItem,{name:!0,classes:"table"});const r=xo(n.convertItem(i,e.modelCursor).modelRange.getItems());r?(n.convertChildren(e.viewItem,n.writer.createPositionAt(r,"end")),n.updateConversionResult(r,e)):n.consumable.revert(e.viewItem,{name:!0,classes:"table"})}))})),i.for("upcast").add(oT()),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:uT(r,{asWidget:!0,additionalSlots:this._additionalSlots})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:uT(r,{additionalSlots:this._additionalSlots})}),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add((t=>{t.on("element:tr",((t,e)=>{e.viewItem.isEmpty&&0==e.modelCursor.index&&t.stop()}),{priority:"high"})})),i.for("downcast").elementToElement({model:"tableRow",view:(t,{writer:e})=>t.isEmpty?e.createEmptyElement("tr"):e.createContainerElement("tr")}),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(aT("td")),i.for("upcast").add(aT("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:hT({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:hT()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:dT({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:dT(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:mS("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:mS("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new gT(t)),t.commands.add("insertTableRowAbove",new pT(t,{order:"above"})),t.commands.add("insertTableRowBelow",new pT(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new mT(t,{order:"left"})),t.commands.add("insertTableColumnRight",new mT(t,{order:"right"})),t.commands.add("removeTableRow",new BT(t)),t.commands.add("removeTableColumn",new MT(t)),t.commands.add("splitTableCellVertically",new bT(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new bT(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new ZT(t)),t.commands.add("mergeTableCellRight",new DT(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new DT(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new DT(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new DT(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new LT(t)),t.commands.add("setTableRowHeader",new PT(t)),t.commands.add("selectTableRow",new eS(t)),t.commands.add("selectTableColumn",new nS(t)),iS(e),sS(e),this.listenTo(e.document,"change:data",(()=>{!function(t,e){const n=t.document.differ;for(const t of n.getChanges()){let n,i=!1;if("attribute"==t.type){const e=t.range.start.nodeAfter;if(!e||!e.is("element","table"))continue;if("headingRows"!=t.attributeKey&&"headingColumns"!=t.attributeKey)continue;n=e,i="headingRows"==t.attributeKey}else"tableRow"!=t.name&&"tableCell"!=t.name||(n=t.position.findAncestor("table"),i="tableRow"==t.name);if(!n)continue;const r=n.getAttribute("headingRows")||0,o=n.getAttribute("headingColumns")||0,a=new cT(n);for(const t of a){const n=t.row<r||t.column<o?"th":"td",a=e.mapper.toViewElement(t.cell);a&&a.is("element")&&a.name!=n&&e.reconvertItem(i?t.cell.parent:t.cell)}}}(e,t.editing),function(t,e){const n=t.document.differ,i=new Set;for(const t of n.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","tableCell")&&i.add(e)}for(const t of i.values()){const n=Array.from(t.getChildren()).filter((t=>dS(t,e.mapper)));for(const t of n)e.reconvertItem(t)}}(e,t.editing)}))}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function mS(t){return e=>{const n=parseInt(e.getAttribute(t));return Number.isNaN(n)||n<=0?null:n}}var bS=n(5032),wS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(bS.A,wS);bS.A.locals;class kS extends af{items;keystrokes;focusTracker;constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new To,this.focusTracker=new Eo,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",((t,e)=>`${e} × ${t}`)),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to((t=>{t.preventDefault()})),click:e.to((()=>{this.fire("execute")}))}}),this.on("boxover",((t,e)=>{const{row:n,column:i}=e.target.dataset;this.items.get(10*(parseInt(n,10)-1)+(parseInt(i,10)-1)).focus()})),this.focusTracker.on("change:focusedElement",((t,e,n)=>{if(!n)return;const{row:i,column:r}=n.dataset;this.set({rows:parseInt(i),columns:parseInt(r)})})),this.on("change:columns",(()=>this._highlightGridBoxes())),this.on("change:rows",(()=>this._highlightGridBoxes()))}render(){super.render(),uf({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}reset(){this.set({rows:1,columns:1})}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map(((n,i)=>{const r=Math.floor(i/10)<t&&i%10<e;n.set("isOn",r)}))}_createGridButton(t,e,n,i){const r=new bf(t);return r.set({label:i,class:"ck-insert-table-dropdown-grid-box"}),r.extendTemplate({attributes:{"data-row":e,"data-column":n}}),r}_createGridCollection(){const t=[];for(let e=0;e<100;e++){const n=Math.floor(e/10),i=e%10,r=`${n+1} × ${i+1}`;t.push(this._createGridButton(this.locale,n+1,i+1,r))}return this.createCollection(t)}}class vS extends Oo{static get pluginName(){return"TableUI"}init(){const t=this.editor,e=this.editor.t,n="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(n=>{const i=t.commands.get("insertTable"),r=Ep(n);let o;return r.bind("isEnabled").to(i),r.buttonView.set({icon:Ld.table,label:e("Insert table"),tooltip:!0}),r.on("change:isOpen",(()=>{o||(o=new kS(n),r.panelView.children.add(o),o.delegate("execute").to(r),r.on("execute",(()=>{t.execute("insertTable",{rows:o.rows,columns:o.columns}),t.editing.view.focus()})))})),r})),t.ui.componentFactory.add("menuBar:insertTable",(n=>{const i=t.commands.get("insertTable"),r=new ew(n),o=new kS(n);return o.delegate("execute").to(r),r.on("change:isOpen",((t,e,n)=>{n||o.reset()})),o.on("execute",(()=>{t.execute("insertTable",{rows:o.rows,columns:o.columns}),t.editing.view.focus()})),r.buttonView.set({label:e("Table"),icon:Ld.table}),r.panelView.children.add(o),r.bind("isEnabled").to(i),r})),t.ui.componentFactory.add("tableColumn",(t=>{const i=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',i,t)})),t.ui.componentFactory.add("tableRow",(t=>{const n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',n,t)})),t.ui.componentFactory.add("mergeTableCells",(t=>{const i=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',i,t)}))}_prepareDropdown(t,e,n,i){const r=this.editor,o=Ep(i),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:t,icon:e,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",((...t)=>t.some((t=>t)))),this.listenTo(o,"execute",(t=>{r.execute(t.source.commandName),t.source instanceof ig||r.editing.view.focus()})),o}_prepareMergeSplitButtonDropdown(t,e,n,i){const r=this.editor,o=Ep(i,yp),a="mergeTableCells",s=r.commands.get(a),c=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),o.bind("isEnabled").toMany([s,...c],"isEnabled",((...t)=>t.some((t=>t)))),this.listenTo(o.buttonView,"execute",(()=>{r.execute(a),r.editing.view.focus()})),this.listenTo(o,"execute",(t=>{r.execute(t.source.commandName),r.editing.view.focus()})),o}_fillDropdownWithListOptions(t,e){const n=this.editor,i=[],r=new Ao;for(const t of e)yS(t,n,i,r);return Dp(t,r),i}}function yS(t,e,n,i){if("button"===t.type||"switchbutton"===t.type){const i=t.model=new pb(t.model),{commandName:r,bindIsOn:o}=t.model,a=e.commands.get(r);n.push(a),i.set({commandName:r}),i.bind("isEnabled").to(a),o&&i.bind("isOn").to(a,"value"),i.set({withText:!0})}i.add(t)}var _S=n(8423),CS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(_S.A,CS);_S.A.locals;class AS extends Oo{static get pluginName(){return"TableSelection"}static get requires(){return[GT,GT]}init(){const t=this.editor,e=t.model,n=t.editing.view;this.listenTo(e,"deleteContent",((t,e)=>this._handleDeleteContent(t,e)),{priority:"high"}),this.listenTo(n.document,"insertText",((t,e)=>this._handleInsertTextEvent(t,e)),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const t=this.editor.plugins.get(GT),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return 0==n.length?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(GT),e=this.getSelectedTableCells();return e?this.editor.model.change((n=>{const i=n.createDocumentFragment(),{first:r,last:o}=t.getColumnIndexes(e),{first:a,last:s}=t.getRowIndexes(e),c=e[0].findAncestor("table");let l=s,u=o;if(t.isSelectionRectangular(e)){const t={firstColumn:r,lastColumn:o,firstRow:a,lastRow:s};l=TT(c,t),u=ST(c,t)}const h=wT(c,{startRow:a,startColumn:r,endRow:l,endColumn:u},n);return n.insert(h,i,0),i})):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change((t=>{t.setSelection(n.cells.map((e=>t.createRangeOn(e))),{backward:n.backward})}))}getFocusCell(){const t=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}getAnchorCell(){const t=xo(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add((t=>t.on("selection",((t,n,i)=>{const r=i.writer;!function(t){for(const n of e)t.removeClass("ck-editor__editable_selected",n);e.clear()}(r);const o=this.getSelectedTableCells();if(!o)return;for(const t of o){const n=i.mapper.toViewElement(t);r.addClass("ck-editor__editable_selected",n),e.add(n)}const a=i.mapper.toViewElement(o[o.length-1]);r.setSelection(a,0)}),{priority:"lowest"})))}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",(()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change((n=>{const i=n.createPositionAt(e[0],0),r=t.model.schema.getNearestSelectionRange(i);n.setSelection(r)}))}}))}_handleDeleteContent(t,e){const n=this.editor.plugins.get(GT),i=e[0],r=e[1],o=this.editor.model,a=!r||"backward"==r.direction,s=n.getSelectedTableCells(i);s.length&&(t.stop(),o.change((t=>{const e=s[a?s.length-1:0];o.change((t=>{for(const e of s)o.deleteContent(t.createSelection(e,"in"))}));const n=o.schema.getNearestSelectionRange(t.createPositionAt(e,0));i.is("documentSelection")?t.setSelection(n):i.setTo(n)})))}_handleInsertTextEvent(t,e){const n=this.editor,i=this.getSelectedTableCells();if(!i)return;const r=n.editing.view,o=n.editing.mapper,a=i.map((t=>r.createRangeOn(o.toViewElement(t))));e.selection=r.createSelection(a)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),i=n.getCellLocation(t),r=n.getCellLocation(e),o=Math.min(i.row,r.row),a=Math.max(i.row,r.row),s=Math.min(i.column,r.column),c=Math.max(i.column,r.column),l=new Array(a-o+1).fill(null).map((()=>[])),u={startRow:o,endRow:a,startColumn:s,endColumn:c};for(const{row:e,cell:n}of new cT(t.findAncestor("table"),u))l[e-o].push(n);const h=r.row<i.row,d=r.column<i.column;return h&&l.reverse(),d&&l.forEach((t=>t.reverse())),{cells:l.flat(),backward:h||d}}}class xS extends Oo{static get pluginName(){return"TableClipboard"}static get requires(){return[ry,oy,AS,GT]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",((t,e)=>this._onCopyCut(t,e))),this.listenTo(e,"cut",((t,e)=>this._onCopyCut(t,e))),this.listenTo(t.model,"insertContent",((t,[e,n])=>this._onInsertContent(t,e,n)),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.editing.view,i=this.editor.plugins.get(AS),r=this.editor.plugins.get(ry);i.getSelectedTableCells()&&("cut"!=t.name||this.editor.model.canEditAt(this.editor.model.document.selection))&&(e.preventDefault(),t.stop(),this.editor.model.enqueueChange({isUndoable:"cut"===t.name},(()=>{const o=r._copySelectedFragmentWithMarkers(t.name,this.editor.model.document.selection,(()=>i.getSelectionAsFragment()));n.document.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:this.editor.data.toView(o),method:t.name})})))}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const i=this.editor.model,r=this.editor.plugins.get(GT),o=this.editor.plugins.get(ry),a=this.getTableIfOnlyTableInContent(e,i);if(!a)return;const s=r.getSelectionAffectedTableCells(i.document.selection);s.length?(t.stop(),e.is("documentFragment")?o._pasteMarkersIntoTransformedElement(e.markers,(t=>this._replaceSelectedCells(a,s,t))):this.editor.model.change((t=>{this._replaceSelectedCells(a,s,t)}))):ET(a,r)}_replaceSelectedCells(t,e,n){const i=this.editor.plugins.get(GT),r={width:i.getColumns(t),height:i.getRows(t)},o=function(t,e,n,i){const r=t[0].findAncestor("table"),o=i.getColumnIndexes(t),a=i.getRowIndexes(t),s={firstColumn:o.first,lastColumn:o.last,firstRow:a.first,lastRow:a.last},c=1===t.length;c&&(s.lastRow+=e.height-1,s.lastColumn+=e.width-1,function(t,e,n,i){const r=i.getColumns(t),o=i.getRows(t);n>r&&i.insertColumns(t,{at:r,columns:n-r});e>o&&i.insertRows(t,{at:o,rows:e-o})}(r,s.lastRow+1,s.lastColumn+1,i));c||!i.isSelectionRectangular(t)?function(t,e,n){const{firstRow:i,lastRow:r,firstColumn:o,lastColumn:a}=e,s={first:i,last:r},c={first:o,last:a};TS(t,o,s,n),TS(t,a+1,s,n),ES(t,i,c,n),ES(t,r+1,c,n,i)}(r,s,n):(s.lastRow=TT(r,s),s.lastColumn=ST(r,s));return s}(e,r,n,i),a=o.lastRow-o.firstRow+1,s=o.lastColumn-o.firstColumn+1;t=wT(t,{startRow:0,startColumn:0,endRow:Math.min(a,r.height)-1,endColumn:Math.min(s,r.width)-1},n);const c=e[0].findAncestor("table"),l=this._replaceSelectedCellsWithPasted(t,r,c,o,n);if(this.editor.plugins.get("TableSelection").isEnabled){const t=i.sortRanges(l.map((t=>n.createRangeOn(t))));n.setSelection(t)}else n.setSelection(l[0],0);return c}_replaceSelectedCellsWithPasted(t,e,n,i,r){const{width:o,height:a}=e,s=function(t,e,n){const i=new Array(n).fill(null).map((()=>new Array(e).fill(null)));for(const{column:e,row:n,cell:r}of new cT(t))i[n][e]=r;return i}(t,o,a),c=[...new cT(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})],l=[];let u;for(const t of c){const{row:e,column:n}=t;n===i.firstColumn&&(u=t.getPositionBefore());const c=e-i.firstRow,h=n-i.firstColumn,d=s[c%a][h%o],f=d?r.cloneElement(d):null,g=this._replaceTableSlotCell(t,f,u,r);g&&(CT(g,e,n,i.lastRow,i.lastColumn,r),l.push(g),u=r.createPositionAfter(g))}const h=parseInt(n.getAttribute("headingRows")||"0"),d=parseInt(n.getAttribute("headingColumns")||"0"),f=i.firstRow<h&&h<=i.lastRow,g=i.firstColumn<d&&d<=i.lastColumn;if(f){const t=ES(n,h,{first:i.firstColumn,last:i.lastColumn},r,i.firstRow);l.push(...t)}if(g){const t=TS(n,d,{first:i.firstRow,last:i.lastRow},r);l.push(...t)}return l}_replaceTableSlotCell(t,e,n,i){const{cell:r,isAnchor:o}=t;return o&&i.remove(r),e?(i.insert(e,n),e):null}getTableIfOnlyTableInContent(t,e){if(!t.is("documentFragment")&&!t.is("element"))return null;if(t.is("element","table"))return t;if(1==t.childCount&&t.getChild(0).is("element","table"))return t.getChild(0);const n=e.createRangeIn(t);for(const t of n.getItems())if(t.is("element","table")){const i=e.createRange(n.start,e.createPositionBefore(t));if(e.hasContent(i,{ignoreWhitespaces:!0}))return null;const r=e.createRange(e.createPositionAfter(t),n.end);return e.hasContent(r,{ignoreWhitespaces:!0})?null:t}return null}}function ES(t,e,n,i,r=0){if(e<1)return;return kT(t,e,r).filter((({column:t,cellWidth:e})=>SS(t,e,n))).map((({cell:t})=>vT(t,e,i)))}function TS(t,e,n,i){if(e<1)return;return yT(t,e).filter((({row:t,cellHeight:e})=>SS(t,e,n))).map((({cell:t,column:n})=>_T(t,n,e,i)))}function SS(t,e,n){const i=t+e-1,{first:r,last:o}=n;return t>=r&&t<=o||t<r&&i>=r}class DS extends Oo{static get pluginName(){return"TableKeyboard"}static get requires(){return[AS,GT]}init(){const t=this.editor,e=t.editing.view.document,n=t.t;this.listenTo(e,"arrowKey",((...t)=>this._onArrowKey(...t)),{context:"table"}),this.listenTo(e,"tab",((...t)=>this._handleTabOnSelectedTable(...t)),{context:"figure"}),this.listenTo(e,"tab",((...t)=>this._handleTab(...t)),{context:["th","td"]}),t.accessibility.addKeystrokeInfoGroup({id:"table",label:n("Keystrokes that can be used in a table cell"),keystrokes:[{label:n("Move the selection to the next cell"),keystroke:"Tab"},{label:n("Move the selection to the previous cell"),keystroke:"Shift+Tab"},{label:n("Insert a new table row (when in the last cell of a table)"),keystroke:"Tab"},{label:n("Navigate through the table"),keystroke:[["arrowup"],["arrowright"],["arrowdown"],["arrowleft"]]}]})}_handleTabOnSelectedTable(t,e){const n=this.editor,i=n.model.document.selection.getSelectedElement();i&&i.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change((t=>{t.setSelection(t.createRangeIn(i.getChild(0).getChild(0)))})))}_handleTab(t,e){const n=this.editor,i=this.editor.plugins.get(GT),r=this.editor.plugins.get("TableSelection"),o=n.model.document.selection,a=!e.shiftKey;let s=i.getTableCellsContainingSelection(o)[0];if(s||(s=r.getFocusCell()),!s)return;e.preventDefault(),e.stopPropagation(),t.stop();const c=s.parent,l=c.parent,u=l.getChildIndex(c),h=c.getChildIndex(s),d=0===h;if(!a&&d&&0===u)return void n.model.change((t=>{t.setSelection(t.createRangeOn(l))}));const f=h===c.childCount-1,g=u===i.getRows(l)-1;if(a&&g&&f&&(n.execute("insertTableRowBelow"),u===i.getRows(l)-1))return void n.model.change((t=>{t.setSelection(t.createRangeOn(l))}));let p;if(a&&f){const t=l.getChild(u+1);p=t.getChild(0)}else if(!a&&d){const t=l.getChild(u-1);p=t.getChild(t.childCount-1)}else p=c.getChild(h+(a?1:-1));n.model.change((t=>{t.setSelection(t.createRangeIn(p))}))}_onArrowKey(t,e){const n=this.editor,i=Zr(e.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(i,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(GT),i=this.editor.plugins.get("TableSelection"),r=this.editor.model,o=r.document.selection,a=["right","down"].includes(t),s=n.getSelectedTableCells(o);if(s.length){let n;return n=e?i.getFocusCell():a?s[s.length-1]:s[0],this._navigateFromCellInDirection(n,t,e),!0}const c=o.focus.findAncestor("tableCell");if(!c)return!1;if(!o.isCollapsed)if(e){if(o.isBackward==a&&!o.containsEntireContent(c))return!1}else{const t=o.getSelectedElement();if(!t||!r.schema.isObject(t))return!1}return!!this._isSelectionAtCellEdge(o,c,a)&&(this._navigateFromCellInDirection(c,t,e),!0)}_isSelectionAtCellEdge(t,e,n){const i=this.editor.model,r=this.editor.model.schema,o=n?t.getLastPosition():t.getFirstPosition();if(!r.getLimitElement(o).is("element","tableCell")){return i.createPositionAt(e,n?"end":0).isTouching(o)}const a=i.createSelection(o);return i.modifySelection(a,{direction:n?"forward":"backward"}),o.isEqual(a.focus)}_navigateFromCellInDirection(t,e,n=!1){const i=this.editor.model,r=t.findAncestor("table"),o=[...new cT(r,{includeAllSlots:!0})],{row:a,column:s}=o[o.length-1],c=o.find((({cell:e})=>e==t));let{row:l,column:u}=c;switch(e){case"left":u--;break;case"up":l--;break;case"right":u+=c.cellWidth;break;case"down":l+=c.cellHeight}if(l<0||l>a||u<0&&l<=0||u>s&&l>=a)return void i.change((t=>{t.setSelection(t.createRangeOn(r))}));u<0?(u=n?0:s,l--):u>s&&(u=n?s:0,l++);const h=o.find((t=>t.row==l&&t.column==u)).cell,d=["right","down"].includes(e),f=this.editor.plugins.get("TableSelection");if(n&&f.isEnabled){const e=f.getAnchorCell()||t;f.setCellSelection(e,h)}else{const t=i.createPositionAt(h,d?0:"end");i.change((e=>{e.setSelection(t)}))}}}class IS extends Js{domEventType=["mousemove","mouseleave"];onDomEvent(t){this.fire(t.type,t)}}class BS extends Oo{static get pluginName(){return"TableMouse"}static get requires(){return[AS,GT]}init(){this.editor.editing.view.addObserver(IS),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(GT);let n=!1;const i=t.plugins.get(AS);this.listenTo(t.editing.view.document,"mousedown",((r,o)=>{const a=t.model.document.selection;if(!this.isEnabled||!i.isEnabled)return;if(!o.domEvent.shiftKey)return;const s=i.getAnchorCell()||e.getTableCellsContainingSelection(a)[0];if(!s)return;const c=this._getModelTableCellFromDomEvent(o);c&&MS(s,c)&&(n=!0,i.setCellSelection(s,c),o.preventDefault())})),this.listenTo(t.editing.view.document,"mouseup",(()=>{n=!1})),this.listenTo(t.editing.view.document,"selectionChange",(t=>{n&&t.stop()}),{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,i=!1,r=!1;const o=t.plugins.get(AS);this.listenTo(t.editing.view.document,"mousedown",((t,n)=>{this.isEnabled&&o.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(n)))})),this.listenTo(t.editing.view.document,"mousemove",((t,a)=>{if(!a.domEvent.buttons)return;if(!e)return;const s=this._getModelTableCellFromDomEvent(a);s&&MS(e,s)&&(n=s,i||n==e||(i=!0)),i&&(r=!0,o.setCellSelection(e,n),a.preventDefault())})),this.listenTo(t.editing.view.document,"mouseup",(()=>{i=!1,r=!1,e=null,n=null})),this.listenTo(t.editing.view.document,"selectionChange",(t=>{r&&t.stop()}),{priority:"highest"})}_getModelTableCellFromDomEvent(t){const e=t.target,n=this.editor.editing.view.createPositionAt(e,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function MS(t,e){return t.parent.parent==e.parent.parent}var PS=n(2329),LS={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(PS.A,LS);PS.A.locals;function OS(t){const e=NS(t);return e||RS(t)}function NS(t){const e=t.getSelectedElement();return e&&FS(e)?e:null}function RS(t){const e=t.getFirstPosition();if(!e)return null;let n=e.parent;for(;n;){if(n.is("element")&&FS(n))return n;n=n.parent}return null}function FS(t){return!!t.getCustomProperty("table")&&dy(t)}var jS=n(5506),$S={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(jS.A,$S);jS.A.locals;class zS extends af{options;focusTracker;focusCycler;_focusables;dropdownView;inputView;keystrokes;_stillTyping;constructor(t,e){super(t),this.set("value",""),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isEmpty",!0),this.options=e,this.focusTracker=new Eo,this._focusables=new Od,this.dropdownView=this._createDropdownView(),this.inputView=this._createInputTextView(),this.keystrokes=new To,this._stillTyping=!1,this.focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-input-color"]},children:[this.dropdownView,this.inputView]}),this.on("change:value",((t,e,n)=>this._setInputValue(n)))}render(){super.render(),[this.inputView,this.dropdownView.buttonView].forEach((t=>{this.focusTracker.add(t.element),this._focusables.add(t)})),this.keystrokes.listenTo(this.element)}focus(t){-1===t?this.focusCycler.focusLast():this.focusCycler.focusFirst()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createDropdownView(){const t=this.locale,e=t.t,n=this.bindTemplate,i=this._createColorSelector(t),r=Ep(t),o=new af;return o.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:n.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",n.if("value","ck-hidden",(t=>""!=t))]}}]}),r.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),r.buttonView.children.add(o),r.buttonView.label=e("Color picker"),r.buttonView.tooltip=!0,r.panelPosition="rtl"===t.uiLanguageDirection?"se":"sw",r.panelView.children.add(i),r.bind("isEnabled").to(this,"isReadOnly",(t=>!t)),r.on("change:isOpen",((t,e,n)=>{n&&(i.updateSelectedColors(),i.showColorGridsFragment())})),r}_createInputTextView(){const t=this.locale,e=new Mg(t);return e.extendTemplate({on:{blur:e.bindTemplate.to("blur")}}),e.value=this.value,e.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(e),e.on("input",(()=>{const t=e.element.value,n=this.options.colorDefinitions.find((e=>t===e.label));this._stillTyping=!0,this.value=n&&n.color||t})),e.on("blur",(()=>{this._stillTyping=!1,this._setInputValue(e.element.value)})),e.delegate("input").to(this),e}_createColorSelector(t){const e=t.t,n=this.options.defaultColorValue||"",i=e(n?"Restore default":"Remove color"),r=new Am(t,{colors:this.options.colorDefinitions,columns:this.options.columns,removeButtonLabel:i,colorPickerLabel:e("Color picker"),colorPickerViewConfig:!1!==this.options.colorPickerConfig&&{...this.options.colorPickerConfig,hideInput:!0}});r.appendUI(),r.on("execute",((t,e)=>{"colorPickerSaveButton"!==e.source?(this.value=e.value||n,this.fire("input"),"colorPicker"!==e.source&&(this.dropdownView.isOpen=!1)):this.dropdownView.isOpen=!1}));let o=this.value;return r.on("colorPicker:cancel",(()=>{this.value=o,this.fire("input"),this.dropdownView.isOpen=!1})),r.colorGridsFragmentView.colorPickerButtonView.on("execute",(()=>{o=this.value})),r.bind("selectedColor").to(this,"value"),r}_setInputValue(t){if(!this._stillTyping){const e=VS(t),n=this.options.colorDefinitions.find((t=>e===VS(t.color)));this.inputView.value=n?n.label:t||""}}}function VS(t){return t.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}const HS=t=>""===t;function qS(t){return{none:t("None"),solid:t("Solid"),dotted:t("Dotted"),dashed:t("Dashed"),double:t("Double"),groove:t("Groove"),ridge:t("Ridge"),inset:t("Inset"),outset:t("Outset")}}function US(t){return t('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function GS(t){return t('The value is invalid. Try "10px" or "2em" or simply "2".')}function WS(t){return t=t.trim().toLowerCase(),HS(t)||Wh(t)}function KS(t){return t=t.trim(),HS(t)||tD(t)||Zh(t)||Jh(t)}function YS(t){return t=t.trim(),HS(t)||tD(t)||Zh(t)}function XS(t,e){const n=new Ao,i=qS(t.t);for(const r in i){const o={type:"button",model:new pb({_borderStyleValue:r,label:i[r],role:"menuitemradio",withText:!0})};"none"===r?o.model.bind("isOn").to(t,"borderStyle",(t=>"none"===e?!t:t===r)):o.model.bind("isOn").to(t,"borderStyle",(t=>t===r)),n.add(o)}return n}function ZS(t){const{view:e,icons:n,toolbar:i,labels:r,propertyName:o,nameToValue:a,defaultValue:s}=t;for(const t in r){const c=new bf(e.locale);c.set({label:r[t],icon:n[t],tooltip:r[t]});const l=a?a(t):t;c.bind("isOn").to(e,o,(t=>{let e=t;return""===t&&s&&(e=s),l===e})),c.on("execute",(()=>{e[o]=l})),i.items.add(c)}}const QS=[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}];function JS(t){return(e,n,i)=>{const r=new zS(e.locale,{colorDefinitions:(o=t.colorConfig,o.map((t=>({color:t.model,label:t.label,options:{hasBorder:t.hasBorder}})))),columns:t.columns,defaultColorValue:t.defaultColorValue,colorPickerConfig:t.colorPickerConfig});var o;return r.inputView.set({id:n,ariaDescribedById:i}),r.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),r.bind("hasError").to(e,"errorText",(t=>!!t)),r.on("input",(()=>{e.errorText=null})),e.bind("isEmpty","isFocused").to(r),r}}function tD(t){const e=parseFloat(t);return!Number.isNaN(e)&&t===String(e)}var eD=n(2655),nD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(eD.A,nD);eD.A.locals;class iD extends af{children;constructor(t,e={}){super(t);const n=this.bindTemplate;this.set("class",e.class||null),this.children=this.createCollection(),e.children&&e.children.forEach((t=>this.children.add(t))),this.set("_role",null),this.set("_ariaLabelledBy",null),e.labelView&&this.set({_role:"group",_ariaLabelledBy:e.labelView.id}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",n.to("class")],role:n.to("_role"),"aria-labelledby":n.to("_ariaLabelledBy")},children:this.children})}}var rD=n(4043),oD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(rD.A,oD);rD.A.locals;var aD=n(1623),sD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(aD.A,sD);aD.A.locals;var cD=n(8986),lD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(cD.A,lD);cD.A.locals;class uD extends af{options;focusTracker;keystrokes;children;borderStyleDropdown;borderWidthInput;borderColorInput;backgroundInput;paddingInput;widthInput;heightInput;horizontalAlignmentToolbar;verticalAlignmentToolbar;saveButtonView;cancelButtonView;_focusables;_focusCycler;constructor(t,e){super(t),this.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),this.options=e;const{borderStyleDropdown:n,borderWidthInput:i,borderColorInput:r,borderRowLabel:o}=this._createBorderFields(),{backgroundRowLabel:a,backgroundInput:s}=this._createBackgroundFields(),{widthInput:c,operatorLabel:l,heightInput:u,dimensionsLabel:h}=this._createDimensionFields(),{horizontalAlignmentToolbar:d,verticalAlignmentToolbar:f,alignmentLabel:g}=this._createAlignmentFields();this.focusTracker=new Eo,this.keystrokes=new To,this.children=this.createCollection(),this.borderStyleDropdown=n,this.borderWidthInput=i,this.borderColorInput=r,this.backgroundInput=s,this.paddingInput=this._createPaddingField(),this.widthInput=c,this.heightInput=u,this.horizontalAlignmentToolbar=d,this.verticalAlignmentToolbar=f;const{saveButtonView:p,cancelButtonView:m}=this._createActionButtons();this.saveButtonView=p,this.cancelButtonView=m,this._focusables=new Od,this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new yf(t,{label:this.t("Cell properties")})),this.children.add(new iD(t,{labelView:o,children:[o,n,r,i],class:"ck-table-form__border-row"})),this.children.add(new iD(t,{labelView:a,children:[a,s],class:"ck-table-form__background-row"})),this.children.add(new iD(t,{children:[new iD(t,{labelView:h,children:[h,c,l,u],class:"ck-table-form__dimensions-row"}),new iD(t,{children:[this.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),this.children.add(new iD(t,{labelView:g,children:[g,d,f],class:"ck-table-cell-properties-form__alignment-row"})),this.children.add(new iD(t,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),lf({view:this}),[this.borderColorInput,this.backgroundInput].forEach((t=>{this._focusCycler.chain(t.fieldView.focusCycler)})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const t=this.options.defaultTableCellProperties,e={style:t.borderStyle,width:t.borderWidth,color:t.borderColor},n=JS({colorConfig:this.options.borderColors,columns:5,defaultColorValue:e.color,colorPickerConfig:this.options.colorPickerConfig}),i=this.locale,r=this.t,o=r("Style"),a=new Zf(i);a.text=r("Border");const s=qS(r),c=new Tg(i,Op);c.set({label:o,class:"ck-table-form__border-style"}),c.fieldView.buttonView.set({ariaLabel:o,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:o}),c.fieldView.buttonView.bind("label").to(this,"borderStyle",(t=>s[t||"none"])),c.fieldView.on("execute",(t=>{this.borderStyle=t.source._borderStyleValue})),c.bind("isEmpty").to(this,"borderStyle",(t=>!t)),Dp(c.fieldView,XS(this,e.style),{role:"menu",ariaLabel:o});const l=new Tg(i,Pp);l.set({label:r("Width"),class:"ck-table-form__border-width"}),l.fieldView.bind("value").to(this,"borderWidth"),l.bind("isEnabled").to(this,"borderStyle",hD),l.fieldView.on("input",(()=>{this.borderWidth=l.fieldView.element.value}));const u=new Tg(i,n);return u.set({label:r("Color"),class:"ck-table-form__border-color"}),u.fieldView.bind("value").to(this,"borderColor"),u.bind("isEnabled").to(this,"borderStyle",hD),u.fieldView.on("input",(()=>{this.borderColor=u.fieldView.value})),this.on("change:borderStyle",((t,n,i,r)=>{hD(i)||(this.borderColor="",this.borderWidth=""),hD(r)||(this.borderColor=e.color,this.borderWidth=e.width)})),{borderRowLabel:a,borderStyleDropdown:c,borderColorInput:u,borderWidthInput:l}}_createBackgroundFields(){const t=this.locale,e=this.t,n=new Zf(t);n.text=e("Background");const i=JS({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),r=new Tg(t,i);return r.set({label:e("Color"),class:"ck-table-cell-properties-form__background"}),r.fieldView.bind("value").to(this,"backgroundColor"),r.fieldView.on("input",(()=>{this.backgroundColor=r.fieldView.value})),{backgroundRowLabel:n,backgroundInput:r}}_createDimensionFields(){const t=this.locale,e=this.t,n=new Zf(t);n.text=e("Dimensions");const i=new Tg(t,Pp);i.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),i.fieldView.bind("value").to(this,"width"),i.fieldView.on("input",(()=>{this.width=i.fieldView.element.value}));const r=new af(t);r.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const o=new Tg(t,Pp);return o.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),o.fieldView.bind("value").to(this,"height"),o.fieldView.on("input",(()=>{this.height=o.fieldView.element.value})),{dimensionsLabel:n,widthInput:i,operatorLabel:r,heightInput:o}}_createPaddingField(){const t=this.locale,e=this.t,n=new Tg(t,Pp);return n.set({label:e("Padding"),class:"ck-table-cell-properties-form__padding"}),n.fieldView.bind("value").to(this,"padding"),n.fieldView.on("input",(()=>{this.padding=n.fieldView.element.value})),n}_createAlignmentFields(){const t=this.locale,e=this.t,n=new Zf(t),i={left:Ld.alignLeft,center:Ld.alignCenter,right:Ld.alignRight,justify:Ld.alignJustify,top:Ld.alignTop,middle:Ld.alignMiddle,bottom:Ld.alignBottom};n.text=e("Table cell text alignment");const r=new pp(t),o="rtl"===t.contentLanguageDirection;r.set({isCompact:!0,ariaLabel:e("Horizontal text alignment toolbar")}),ZS({view:this,icons:i,toolbar:r,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:t=>{if(o){if("left"===t)return"right";if("right"===t)return"left"}return t},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});const a=new pp(t);return a.set({isCompact:!0,ariaLabel:e("Vertical text alignment toolbar")}),ZS({view:this,icons:i,toolbar:a,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:r,verticalAlignmentToolbar:a,alignmentLabel:n}}_createActionButtons(){const t=this.locale,e=this.t,n=new bf(t),i=new bf(t),r=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return n.set({label:e("Save"),icon:Ld.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(r,"errorText",((...t)=>t.every((t=>!t)))),i.set({label:e("Cancel"),icon:Ld.cancel,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}get _horizontalAlignmentLabels(){const t=this.locale,e=this.t,n=e("Align cell text to the left"),i=e("Align cell text to the center"),r=e("Align cell text to the right"),o=e("Justify cell text");return"rtl"===t.uiLanguageDirection?{right:r,center:i,left:n,justify:o}:{left:n,center:i,right:r,justify:o}}get _verticalAlignmentLabels(){const t=this.t;return{top:t("Align cell text to the top"),middle:t("Align cell text to the middle"),bottom:t("Align cell text to the bottom")}}}function hD(t){return"none"!==t}const dD=(()=>[ip.defaultPositions.northArrowSouth,ip.defaultPositions.northArrowSouthWest,ip.defaultPositions.northArrowSouthEast,ip.defaultPositions.southArrowNorth,ip.defaultPositions.southArrowNorthWest,ip.defaultPositions.southArrowNorthEast,ip.defaultPositions.viewportStickyNorth])();function fD(t,e){const n=t.plugins.get("ContextualBalloon"),i=t.editing.view.document.selection;let r;"cell"===e?RS(i)&&(r=pD(t)):OS(i)&&(r=gD(t)),r&&n.updatePosition(r)}function gD(t){const e=rT(t.model.document.selection),n=t.editing.mapper.toViewElement(e);return{target:t.editing.view.domConverter.mapViewToDom(n),positions:dD}}function pD(t){const e=t.editing.mapper,n=t.editing.view.domConverter,i=t.model.document.selection;if(i.rangeCount>1)return{target:()=>function(t,e){const n=e.editing.mapper,i=e.editing.view.domConverter,r=Array.from(t).map((t=>{const e=mD(t.start),r=n.toViewElement(e);return new mr(i.mapViewToDom(r))}));return mr.getBoundingRect(r)}(i.getRanges(),t),positions:dD};const r=mD(i.getFirstPosition()),o=e.toViewElement(r);return{target:n.mapViewToDom(o),positions:dD}}function mD(t){return t.nodeAfter&&t.nodeAfter.is("element","tableCell")?t.nodeAfter:t.findAncestor("tableCell")}function bD(t){if(!t||!a(t))return t;const{top:e,right:n,bottom:i,left:r}=t;return e==n&&n==i&&i==r?e:void 0}function wD(t,e){const n=parseFloat(t);return Number.isNaN(n)||String(n)!==String(t)?t:`${n}${e}`}function kD(t,e={}){const n={borderStyle:"none",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",...t};return e.includeAlignmentProperty&&!n.alignment&&(n.alignment="center"),e.includePaddingProperty&&!n.padding&&(n.padding=""),e.includeVerticalAlignmentProperty&&!n.verticalAlignment&&(n.verticalAlignment="middle"),e.includeHorizontalAlignmentProperty&&!n.horizontalAlignment&&(n.horizontalAlignment=e.isRightToLeftContent?"right":"left"),n}function vD(t,e){return kD({borderStyle:"double",borderColor:"hsl(0, 0%, 70%)",borderWidth:"1px",...t},e)}function yD(t,e){return kD({borderStyle:"solid",borderColor:"hsl(0, 0%, 75%)",borderWidth:"1px",...t},e)}const _D={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};class CD extends Oo{_defaultTableCellProperties;_balloon;view;_undoStepBatch;_isReady;static get requires(){return[yb]}static get pluginName(){return"TableCellPropertiesUI"}constructor(t){super(t),t.config.define("table.tableCellProperties",{borderColors:QS,backgroundColors:QS})}init(){const t=this.editor,e=t.t;this._defaultTableCellProperties=yD(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection}),this._balloon=t.plugins.get(yb),this.view=null,this._isReady=!1,t.ui.componentFactory.add("tableCellProperties",(n=>{const i=new bf(n);i.set({label:e("Cell properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',tooltip:!0}),this.listenTo(i,"execute",(()=>this._showView()));const r=Object.values(_D).map((e=>t.commands.get(e)));return i.bind("isEnabled").toMany(r,"isEnabled",((...t)=>t.some((t=>t)))),i}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const t=this.editor,e=t.config.get("table.tableCellProperties"),n=fg(e.borderColors),i=dg(t.locale,n),r=fg(e.backgroundColors),o=dg(t.locale,r),a=!1!==e.colorPicker,s=new uD(t.locale,{borderColors:i,backgroundColors:o,defaultTableCellProperties:this._defaultTableCellProperties,colorPickerConfig:!!a&&(e.colorPicker||{})}),c=t.t;s.render(),this.listenTo(s,"submit",(()=>{this._hideView()})),this.listenTo(s,"cancel",(()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()})),s.keystrokes.set("Esc",((t,e)=>{this._hideView(),e()})),sf({emitter:s,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const l=US(c),u=GS(c);return s.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),s.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:s.borderColorInput,commandName:"tableCellBorderColor",errorText:l,validator:WS})),s.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:s.borderWidthInput,commandName:"tableCellBorderWidth",errorText:u,validator:YS})),s.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:s.paddingInput,commandName:"tableCellPadding",errorText:u,validator:KS})),s.on("change:width",this._getValidatedPropertyChangeCallback({viewField:s.widthInput,commandName:"tableCellWidth",errorText:u,validator:KS})),s.on("change:height",this._getValidatedPropertyChangeCallback({viewField:s.heightInput,commandName:"tableCellHeight",errorText:u,validator:KS})),s.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:s.backgroundInput,commandName:"tableCellBackgroundColor",errorText:l,validator:WS})),s.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),s.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),s}_fillViewFormFromCommandValues(){const t=this.editor.commands,e=t.get("tableCellBorderStyle");Object.entries(_D).map((([e,n])=>{const i=this._defaultTableCellProperties[e]||"";return[e,t.get(n).value||i]})).forEach((([t,n])=>{("borderColor"!==t&&"borderWidth"!==t||"none"!==e.value)&&this.view.set(t,n)})),this._isReady=!0}_showView(){const t=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(t.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:pD(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus()}_hideView(){const t=this.editor;this.stopListening(t.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const t=this.editor;RS(t.editing.view.document.selection)?this._isViewVisible&&fD(t,"cell"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(t){return(e,n,i)=>{this._isReady&&this.editor.execute(t,{value:i,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(t){const{commandName:e,viewField:n,validator:i,errorText:r}=t,o=L((()=>{n.errorText=r}),500);return(t,r,a)=>{o.cancel(),this._isReady&&(i(a)?(this.editor.execute(e,{value:a,batch:this._undoStepBatch}),n.errorText=null):o())}}}class AD extends Ro{attributeName;_defaultValue;constructor(t,e,n){super(t),this.attributeName=e,this._defaultValue=n}refresh(){const t=this.editor,e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t.model.document.selection);this.isEnabled=!!e.length,this.value=this._getSingleValue(e)}execute(t={}){const{value:e,batch:n}=t,i=this.editor.model,r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(i.document.selection),o=this._getValueToSet(e);i.enqueueChange(n,(t=>{o?r.forEach((e=>t.setAttribute(this.attributeName,o,e))):r.forEach((e=>t.removeAttribute(this.attributeName,e)))}))}_getAttribute(t){if(!t)return;const e=t.getAttribute(this.attributeName);return e!==this._defaultValue?e:void 0}_getValueToSet(t){if(t!==this._defaultValue)return t}_getSingleValue(t){const e=this._getAttribute(t[0]);return t.every((t=>this._getAttribute(t)===e))?e:void 0}}class xD extends AD{constructor(t,e){super(t,"tableCellWidth",e)}_getValueToSet(t){if((t=wD(t,"px"))!==this._defaultValue)return t}}class ED extends Oo{static get pluginName(){return"TableCellWidthEditing"}static get requires(){return[pS]}init(){const t=this.editor,e=yD(t.config.get("table.tableCellProperties.defaultProperties"));iT(t.model.schema,t.conversion,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:e.width}),t.commands.add("tableCellWidth",new xD(t,e.width))}}class TD extends AD{constructor(t,e){super(t,"tableCellPadding",e)}_getAttribute(t){if(!t)return;const e=bD(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=wD(t,"px");if(e!==this._defaultValue)return e}}class SD extends AD{constructor(t,e){super(t,"tableCellHeight",e)}_getValueToSet(t){const e=wD(t,"px");if(e!==this._defaultValue)return e}}class DD extends AD{constructor(t,e){super(t,"tableCellBackgroundColor",e)}}class ID extends AD{constructor(t,e){super(t,"tableCellVerticalAlignment",e)}}class BD extends AD{constructor(t,e){super(t,"tableCellHorizontalAlignment",e)}}class MD extends AD{constructor(t,e){super(t,"tableCellBorderStyle",e)}_getAttribute(t){if(!t)return;const e=bD(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class PD extends AD{constructor(t,e){super(t,"tableCellBorderColor",e)}_getAttribute(t){if(!t)return;const e=bD(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class LD extends AD{constructor(t,e){super(t,"tableCellBorderWidth",e)}_getAttribute(t){if(!t)return;const e=bD(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=wD(t,"px");if(e!==this._defaultValue)return e}}const OD=/^(top|middle|bottom)$/,ND=/^(left|center|right|justify)$/;class RD extends Oo{static get pluginName(){return"TableCellPropertiesEditing"}static get requires(){return[pS,ED]}init(){const t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableCellProperties.defaultProperties",{});const i=yD(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection});t.data.addStyleProcessorRules(gd),function(t,e,n){const i={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};t.extend("tableCell",{allowAttributes:Object.values(i)}),XE(e,"td",i,n),XE(e,"th",i,n),ZE(e,{modelElement:"tableCell",modelAttribute:i.style,styleName:"border-style"}),ZE(e,{modelElement:"tableCell",modelAttribute:i.color,styleName:"border-color"}),ZE(e,{modelElement:"tableCell",modelAttribute:i.width,styleName:"border-width"})}(e,n,{color:i.borderColor,style:i.borderStyle,width:i.borderWidth}),t.commands.add("tableCellBorderStyle",new MD(t,i.borderStyle)),t.commands.add("tableCellBorderColor",new PD(t,i.borderColor)),t.commands.add("tableCellBorderWidth",new LD(t,i.borderWidth)),iT(e,n,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:i.height}),t.commands.add("tableCellHeight",new SD(t,i.height)),t.data.addStyleProcessorRules(xd),iT(e,n,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:i.padding}),t.commands.add("tableCellPadding",new TD(t,i.padding)),t.data.addStyleProcessorRules(fd),iT(e,n,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",defaultValue:i.backgroundColor}),t.commands.add("tableCellBackgroundColor",new DD(t,i.backgroundColor)),function(t,e,n){t.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:t=>({key:"style",value:{"text-align":t}})}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":ND}},model:{key:"tableCellHorizontalAlignment",value:t=>{const e=t.getStyle("text-align");return e===n?null:e}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:ND}},model:{key:"tableCellHorizontalAlignment",value:t=>{const e=t.getAttribute("align");return e===n?null:e}}})}(e,n,i.horizontalAlignment),t.commands.add("tableCellHorizontalAlignment",new BD(t,i.horizontalAlignment)),function(t,e,n){t.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:t=>({key:"style",value:{"vertical-align":t}})}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":OD}},model:{key:"tableCellVerticalAlignment",value:t=>{const e=t.getStyle("vertical-align");return e===n?null:e}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:OD}},model:{key:"tableCellVerticalAlignment",value:t=>{const e=t.getAttribute("valign");return e===n?null:e}}})}(e,n,i.verticalAlignment),t.commands.add("tableCellVerticalAlignment",new ID(t,i.verticalAlignment))}}class FD extends Ro{attributeName;_defaultValue;constructor(t,e,n){super(t),this.attributeName=e,this._defaultValue=n}refresh(){const t=rT(this.editor.model.document.selection);this.isEnabled=!!t,this.value=this._getValue(t)}execute(t={}){const e=this.editor.model,n=e.document.selection,{value:i,batch:r}=t,o=rT(n),a=this._getValueToSet(i);e.enqueueChange(r,(t=>{a?t.setAttribute(this.attributeName,a,o):t.removeAttribute(this.attributeName,o)}))}_getValue(t){if(!t)return;const e=t.getAttribute(this.attributeName);return e!==this._defaultValue?e:void 0}_getValueToSet(t){if(t!==this._defaultValue)return t}}class jD extends FD{constructor(t,e){super(t,"tableBackgroundColor",e)}}class $D extends FD{constructor(t,e){super(t,"tableBorderColor",e)}_getValue(t){if(!t)return;const e=bD(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class zD extends FD{constructor(t,e){super(t,"tableBorderStyle",e)}_getValue(t){if(!t)return;const e=bD(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}class VD extends FD{constructor(t,e){super(t,"tableBorderWidth",e)}_getValue(t){if(!t)return;const e=bD(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}_getValueToSet(t){const e=wD(t,"px");if(e!==this._defaultValue)return e}}class HD extends FD{constructor(t,e){super(t,"tableWidth",e)}_getValueToSet(t){if((t=wD(t,"px"))!==this._defaultValue)return t}}class qD extends FD{constructor(t,e){super(t,"tableHeight",e)}_getValueToSet(t){if((t=wD(t,"px"))!==this._defaultValue)return t}}class UD extends FD{constructor(t,e){super(t,"tableAlignment",e)}}const GD=/^(left|center|right)$/,WD=/^(left|none|right)$/;class KD extends Oo{static get pluginName(){return"TablePropertiesEditing"}static get requires(){return[pS]}init(){const t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableProperties.defaultProperties",{});const i=vD(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});t.data.addStyleProcessorRules(gd),function(t,e,n){const i={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};t.extend("table",{allowAttributes:Object.values(i)}),XE(e,"table",i,n),QE(e,{modelAttribute:i.color,styleName:"border-color"}),QE(e,{modelAttribute:i.style,styleName:"border-style"}),QE(e,{modelAttribute:i.width,styleName:"border-width"})}(e,n,{color:i.borderColor,style:i.borderStyle,width:i.borderWidth}),t.commands.add("tableBorderColor",new $D(t,i.borderColor)),t.commands.add("tableBorderStyle",new zD(t,i.borderStyle)),t.commands.add("tableBorderWidth",new VD(t,i.borderWidth)),function(t,e,n){t.extend("table",{allowAttributes:["tableAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment"},view:t=>({key:"style",value:{float:"center"===t?"none":t}}),converterPriority:"high"}),e.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:WD}},model:{key:"tableAlignment",value:t=>{let e=t.getStyle("float");return"none"===e&&(e="center"),e===n?null:e}}}).attributeToAttribute({view:{attributes:{align:GD}},model:{name:"table",key:"tableAlignment",value:t=>{const e=t.getAttribute("align");return e===n?null:e}}})}(e,n,i.alignment),t.commands.add("tableAlignment",new UD(t,i.alignment)),YD(e,n,{modelAttribute:"tableWidth",styleName:"width",defaultValue:i.width}),t.commands.add("tableWidth",new HD(t,i.width)),YD(e,n,{modelAttribute:"tableHeight",styleName:"height",defaultValue:i.height}),t.commands.add("tableHeight",new qD(t,i.height)),t.data.addStyleProcessorRules(fd),function(t,e,n){const{modelAttribute:i}=n;t.extend("table",{allowAttributes:[i]}),YE(e,{viewElement:"table",...n}),QE(e,n)}(e,n,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:i.backgroundColor}),t.commands.add("tableBackgroundColor",new jD(t,i.backgroundColor))}}function YD(t,e,n){const{modelAttribute:i}=n;t.extend("table",{allowAttributes:[i]}),YE(e,{viewElement:/^(table|figure)$/,shouldUpcast:t=>!("table"==t.name&&"figure"==t.parent.name),...n}),ZE(e,{modelElement:"table",...n})}var XD=n(5562),ZD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(XD.A,ZD);XD.A.locals;class QD extends af{options;focusTracker;keystrokes;children;borderStyleDropdown;borderWidthInput;borderColorInput;backgroundInput;widthInput;heightInput;alignmentToolbar;saveButtonView;cancelButtonView;_focusables;_focusCycler;constructor(t,e){super(t),this.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),this.options=e;const{borderStyleDropdown:n,borderWidthInput:i,borderColorInput:r,borderRowLabel:o}=this._createBorderFields(),{backgroundRowLabel:a,backgroundInput:s}=this._createBackgroundFields(),{widthInput:c,operatorLabel:l,heightInput:u,dimensionsLabel:h}=this._createDimensionFields(),{alignmentToolbar:d,alignmentLabel:f}=this._createAlignmentFields();this.focusTracker=new Eo,this.keystrokes=new To,this.children=this.createCollection(),this.borderStyleDropdown=n,this.borderWidthInput=i,this.borderColorInput=r,this.backgroundInput=s,this.widthInput=c,this.heightInput=u,this.alignmentToolbar=d;const{saveButtonView:g,cancelButtonView:p}=this._createActionButtons();this.saveButtonView=g,this.cancelButtonView=p,this._focusables=new Od,this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children.add(new yf(t,{label:this.t("Table properties")})),this.children.add(new iD(t,{labelView:o,children:[o,n,r,i],class:"ck-table-form__border-row"})),this.children.add(new iD(t,{labelView:a,children:[a,s],class:"ck-table-form__background-row"})),this.children.add(new iD(t,{children:[new iD(t,{labelView:h,children:[h,c,l,u],class:"ck-table-form__dimensions-row"}),new iD(t,{labelView:f,children:[f,d],class:"ck-table-properties-form__alignment-row"})]})),this.children.add(new iD(t,{children:[this.saveButtonView,this.cancelButtonView],class:"ck-table-form__action-row"})),this.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:this.children})}render(){super.render(),lf({view:this}),[this.borderColorInput,this.backgroundInput].forEach((t=>{this._focusCycler.chain(t.fieldView.focusCycler)})),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((t=>{this._focusables.add(t),this.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createBorderFields(){const t=this.options.defaultTableProperties,e={style:t.borderStyle,width:t.borderWidth,color:t.borderColor},n=JS({colorConfig:this.options.borderColors,columns:5,defaultColorValue:e.color,colorPickerConfig:this.options.colorPickerConfig}),i=this.locale,r=this.t,o=r("Style"),a=new Zf(i);a.text=r("Border");const s=qS(r),c=new Tg(i,Op);c.set({label:o,class:"ck-table-form__border-style"}),c.fieldView.buttonView.set({ariaLabel:o,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:o}),c.fieldView.buttonView.bind("label").to(this,"borderStyle",(t=>s[t||"none"])),c.fieldView.on("execute",(t=>{this.borderStyle=t.source._borderStyleValue})),c.bind("isEmpty").to(this,"borderStyle",(t=>!t)),Dp(c.fieldView,XS(this,e.style),{role:"menu",ariaLabel:o});const l=new Tg(i,Pp);l.set({label:r("Width"),class:"ck-table-form__border-width"}),l.fieldView.bind("value").to(this,"borderWidth"),l.bind("isEnabled").to(this,"borderStyle",JD),l.fieldView.on("input",(()=>{this.borderWidth=l.fieldView.element.value}));const u=new Tg(i,n);return u.set({label:r("Color"),class:"ck-table-form__border-color"}),u.fieldView.bind("value").to(this,"borderColor"),u.bind("isEnabled").to(this,"borderStyle",JD),u.fieldView.on("input",(()=>{this.borderColor=u.fieldView.value})),this.on("change:borderStyle",((t,n,i,r)=>{JD(i)||(this.borderColor="",this.borderWidth=""),JD(r)||(this.borderColor=e.color,this.borderWidth=e.width)})),{borderRowLabel:a,borderStyleDropdown:c,borderColorInput:u,borderWidthInput:l}}_createBackgroundFields(){const t=this.locale,e=this.t,n=new Zf(t);n.text=e("Background");const i=JS({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor,colorPickerConfig:this.options.colorPickerConfig}),r=new Tg(t,i);return r.set({label:e("Color"),class:"ck-table-properties-form__background"}),r.fieldView.bind("value").to(this,"backgroundColor"),r.fieldView.on("input",(()=>{this.backgroundColor=r.fieldView.value})),{backgroundRowLabel:n,backgroundInput:r}}_createDimensionFields(){const t=this.locale,e=this.t,n=new Zf(t);n.text=e("Dimensions");const i=new Tg(t,Pp);i.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),i.fieldView.bind("value").to(this,"width"),i.fieldView.on("input",(()=>{this.width=i.fieldView.element.value}));const r=new af(t);r.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});const o=new Tg(t,Pp);return o.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),o.fieldView.bind("value").to(this,"height"),o.fieldView.on("input",(()=>{this.height=o.fieldView.element.value})),{dimensionsLabel:n,widthInput:i,operatorLabel:r,heightInput:o}}_createAlignmentFields(){const t=this.locale,e=this.t,n=new Zf(t);n.text=e("Alignment");const i=new pp(t);return i.set({isCompact:!0,ariaLabel:e("Table alignment toolbar")}),ZS({view:this,icons:{left:Ld.objectLeft,center:Ld.objectCenter,right:Ld.objectRight},toolbar:i,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:n,alignmentToolbar:i}}_createActionButtons(){const t=this.locale,e=this.t,n=new bf(t),i=new bf(t),r=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return n.set({label:e("Save"),icon:Ld.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(r,"errorText",((...t)=>t.every((t=>!t)))),i.set({label:e("Cancel"),icon:Ld.cancel,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}get _alignmentLabels(){const t=this.locale,e=this.t,n=e("Align table to the left"),i=e("Center table"),r=e("Align table to the right");return"rtl"===t.uiLanguageDirection?{right:r,center:i,left:n}:{left:n,center:i,right:r}}}function JD(t){return"none"!==t}const tI={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};class eI extends Oo{_defaultTableProperties;_balloon;view=null;_undoStepBatch;_isReady;static get requires(){return[yb]}static get pluginName(){return"TablePropertiesUI"}constructor(t){super(t),t.config.define("table.tableProperties",{borderColors:QS,backgroundColors:QS})}init(){const t=this.editor,e=t.t;this._defaultTableProperties=vD(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=t.plugins.get(yb),t.ui.componentFactory.add("tableProperties",(n=>{const i=new bf(n);i.set({label:e("Table properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',tooltip:!0}),this.listenTo(i,"execute",(()=>this._showView()));const r=Object.values(tI).map((e=>t.commands.get(e)));return i.bind("isEnabled").toMany(r,"isEnabled",((...t)=>t.some((t=>t)))),i}))}destroy(){super.destroy(),this.view&&this.view.destroy()}_createPropertiesView(){const t=this.editor,e=t.config.get("table.tableProperties"),n=fg(e.borderColors),i=dg(t.locale,n),r=fg(e.backgroundColors),o=dg(t.locale,r),a=!1!==e.colorPicker,s=new QD(t.locale,{borderColors:i,backgroundColors:o,defaultTableProperties:this._defaultTableProperties,colorPickerConfig:!!a&&(e.colorPicker||{})}),c=t.t;s.render(),this.listenTo(s,"submit",(()=>{this._hideView()})),this.listenTo(s,"cancel",(()=>{this._undoStepBatch.operations.length&&t.execute("undo",this._undoStepBatch),this._hideView()})),s.keystrokes.set("Esc",((t,e)=>{this._hideView(),e()})),sf({emitter:s,activator:()=>this._isViewInBalloon,contextElements:[this._balloon.view.element],callback:()=>this._hideView()});const l=US(c),u=GS(c);return s.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),s.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:s.borderColorInput,commandName:"tableBorderColor",errorText:l,validator:WS})),s.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:s.borderWidthInput,commandName:"tableBorderWidth",errorText:u,validator:YS})),s.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:s.backgroundInput,commandName:"tableBackgroundColor",errorText:l,validator:WS})),s.on("change:width",this._getValidatedPropertyChangeCallback({viewField:s.widthInput,commandName:"tableWidth",errorText:u,validator:KS})),s.on("change:height",this._getValidatedPropertyChangeCallback({viewField:s.heightInput,commandName:"tableHeight",errorText:u,validator:KS})),s.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),s}_fillViewFormFromCommandValues(){const t=this.editor.commands,e=t.get("tableBorderStyle");Object.entries(tI).map((([e,n])=>{const i=e,r=this._defaultTableProperties[i]||"";return[i,t.get(n).value||r]})).forEach((([t,n])=>{("borderColor"!==t&&"borderWidth"!==t||"none"!==e.value)&&this.view.set(t,n)})),this._isReady=!0}_showView(){const t=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(t.ui,"update",(()=>{this._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:gD(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus()}_hideView(){const t=this.editor;this.stopListening(t.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}_updateView(){const t=this.editor;OS(t.editing.view.document.selection)?this._isViewVisible&&fD(t,"table"):this._hideView()}get _isViewVisible(){return!!this.view&&this._balloon.visibleView===this.view}get _isViewInBalloon(){return!!this.view&&this._balloon.hasView(this.view)}_getPropertyChangeCallback(t){return(e,n,i)=>{this._isReady&&this.editor.execute(t,{value:i,batch:this._undoStepBatch})}}_getValidatedPropertyChangeCallback(t){const{commandName:e,viewField:n,validator:i,errorText:r}=t,o=L((()=>{n.errorText=r}),500);return(t,r,a)=>{o.cancel(),this._isReady&&(i(a)?(this.editor.execute(e,{value:a,batch:this._undoStepBatch}),n.errorText=null):o())}}}function nI(t){t.document.registerPostFixer((e=>function(t,e){const n=e.document.differ.getChanges();let i=!1;for(const e of n){if("insert"!=e.type)continue;const n=e.position.parent;if(n.is("element","table")||"table"==e.name){const r="table"==e.name?e.position.nodeAfter:n,o=Array.from(r.getChildren()).filter((t=>t.is("element","caption"))),a=o.shift();if(!a)continue;for(const e of o)t.move(t.createRangeIn(e),a,"end"),t.remove(e);a.nextSibling&&(t.move(t.createRangeOn(a),r,"end"),i=!0),i=!!o.length||i}}return i}(e,t)))}function iI(t){return!!t&&t.is("element","table")}function rI(t){for(const e of t.getChildren())if(e.is("element","caption"))return e;return null}function oI(t){const e=t.parent;return"figcaption"==t.name&&e&&e.is("element","figure")&&e.hasClass("table")||"caption"==t.name&&e&&e.is("element","table")?{name:!0}:null}class aI extends Ro{refresh(){const t=rT(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?this.value=!!rI(t):this.value=!1}execute({focusCaptionOnShow:t=!1}={}){this.editor.model.change((e=>{this.value?this._hideTableCaption(e):this._showTableCaption(e,t)}))}_showTableCaption(t,e){const n=this.editor.model,i=rT(n.document.selection),r=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(i)||t.createElement("caption");n.insertContent(r,i,"end"),e&&t.setSelection(r,"in")}_hideTableCaption(t){const e=this.editor.model,n=rT(e.document.selection),i=this.editor.plugins.get("TableCaptionEditing"),r=rI(n);i._saveCaption(n,r),e.deleteContent(t.createSelection(r,"on"))}}class sI extends Oo{_savedCaptionsMap;static get pluginName(){return"TableCaptionEditing"}constructor(t){super(t),this._savedCaptionsMap=new WeakMap}init(){const t=this.editor,e=t.model.schema,n=t.editing.view,i=t.t;e.isRegistered("caption")?e.extend("caption",{allowIn:"table"}):e.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleTableCaption",new aI(this.editor)),t.conversion.for("upcast").elementToElement({view:oI,model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>iI(t.parent)?e.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(t,{writer:e})=>{if(!iI(t.parent))return null;const r=e.createEditableElement("figcaption");return e.setCustomProperty("tableCaption",!0,r),r.placeholder=i("Enter table caption"),Xo({view:n,element:r,keepOnFocus:!0}),by(r,e)}}),nI(t.model)}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?$c.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}}class cI extends Oo{static get pluginName(){return"TableCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.t;t.ui.componentFactory.add("toggleTableCaption",(i=>{const r=t.commands.get("toggleTableCaption"),o=new bf(i);return o.set({icon:Ld.caption,tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),o.bind("label").to(r,"value",(t=>n(t?"Toggle caption off":"Toggle caption on"))),this.listenTo(o,"execute",(()=>{if(t.execute("toggleTableCaption",{focusCaptionOnShow:!0}),r.value){const n=function(t){const e=rT(t);return e?rI(e):null}(t.model.document.selection),i=t.editing.mapper.toViewElement(n);if(!i)return;e.scrollToTheSelection(),e.change((t=>{t.addClass("table__caption_highlighted",i)}))}t.editing.view.focus()})),o}))}}var lI=n(4143),uI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(lI.A,uI);lI.A.locals;class hI extends Ro{refresh(){this.isEnabled=!0}execute(t={}){const{model:e,plugins:n}=this.editor;let{table:i=e.document.selection.getSelectedElement(),columnWidths:r,tableWidth:o}=t;r&&(r=Array.isArray(r)?r:r.split(",")),e.change((t=>{o?t.setAttribute("tableWidth",o,i):t.removeAttribute("tableWidth",i);const e=n.get("TableColumnResizeEditing").getColumnGroupElement(i);if(!r&&!e)return;if(!r)return t.remove(e);const a=zT(r);if(e)Array.from(e.getChildren()).forEach(((e,n)=>t.setAttribute("columnWidth",a[n],e)));else{const e=t.createElement("tableColumnGroup");a.forEach((n=>t.appendElement("tableColumn",{columnWidth:n},e))),t.append(e,i)}}))}}function dI(t){return e=>e.on("element:colgroup",((e,n,i)=>{const r=n.modelCursor.findAncestor("table"),o=qT(r);if(!o)return;const a=UT(o),s=t.getColumns(r);let c=(l=o,u=i.writer,UT(l).reduce(((t,e)=>{const n=e.getAttribute("columnWidth"),i=e.getAttribute("colSpan");if(!i)return t.push(n),t;for(let e=0;e<i;e++)t.push(n);return u.removeAttribute("colSpan",e),t}),[]));var l,u;c=Array.from({length:s},((t,e)=>c[e]||"auto")),(c.length!=a.length||c.includes("auto"))&&HT(a,o,zT(c),i.writer)}),{priority:"low"})}class fI extends Oo{_isResizingActive;_resizingData;_domEmitter;_tableUtilsPlugin;static get requires(){return[pS,GT]}static get pluginName(){return"TableColumnResizeEditing"}constructor(t){super(t),this._isResizingActive=!1,this.set("_isResizingAllowed",!0),this._resizingData=null,this._domEmitter=new(or()),this._tableUtilsPlugin=t.plugins.get("TableUtils"),this.on("change:_isResizingAllowed",((e,n,i)=>{const r=i?"removeClass":"addClass";t.editing.view.change((e=>{for(const n of t.editing.view.document.roots)e[r]("ck-column-resize_disabled",t.editing.view.document.getRoot(n.rootName))}))}))}init(){this._extendSchema(),this._registerPostFixer(),this._registerConverters(),this._registerResizingListeners(),this._registerResizerInserter();const t=this.editor,e=t.plugins.get("TableColumnResize");t.plugins.get("TableEditing").registerAdditionalSlot({filter:t=>t.is("element","tableColumnGroup"),positionOffset:0});const n=new hI(t);t.commands.add("resizeTableWidth",n),t.commands.add("resizeColumnWidths",n),this.bind("_isResizingAllowed").to(t,"isReadOnly",e,"isEnabled",n,"isEnabled",((t,e,n)=>!t&&e&&n))}destroy(){this._domEmitter.stopListening(),super.destroy()}getColumnGroupElement(t){return qT(t)}getTableColumnElements(t){return UT(t)}getTableColumnsWidths(t){return function(t){return UT(t).map((t=>t.getAttribute("columnWidth")))}(t)}_extendSchema(){this.editor.model.schema.extend("table",{allowAttributes:["tableWidth"]}),this.editor.model.schema.register("tableColumnGroup",{allowIn:"table",isLimit:!0}),this.editor.model.schema.register("tableColumn",{allowIn:"tableColumnGroup",allowAttributes:["columnWidth","colSpan"],isLimit:!0})}_registerPostFixer(){const t=this.editor.model;function e(t,e,n){const i=n._tableUtilsPlugin.getColumns(e);if(0===i-t.length)return t;const r=t.map((t=>Number(t.replace("%","")))),o=function(t,e){const n=new Set;for(const i of t.getChanges())if("insert"==i.type&&i.position.nodeAfter&&"tableCell"==i.position.nodeAfter.name&&i.position.nodeAfter.getAncestors().includes(e))n.add(i.position.nodeAfter);else if("remove"==i.type){const t=i.position.nodeBefore||i.position.nodeAfter;"tableCell"==t.name&&t.getAncestors().includes(e)&&n.add(t)}return n}(n.editor.model.document.differ,e);for(const t of o){const o=i-r.length;if(0===o)continue;const s=o>0,c=n._tableUtilsPlugin.getCellLocation(t).column;if(s){const t=OT(e,n.editor),i=(a=t,Array(o).fill(a));r.splice(c,0,...i)}else{const t=r.splice(c,Math.abs(o));r[c]+=$T(t)}}var a;return r.map((t=>t+"%"))}t.document.registerPostFixer((n=>{let i=!1;for(const r of function(t){const e=new Set;for(const n of t.document.differ.getChanges()){let i=null;switch(n.type){case"insert":i=["table","tableRow","tableCell"].includes(n.name)?n.position:null;break;case"remove":i=["tableRow","tableCell"].includes(n.name)?n.position:null;break;case"attribute":n.range.start.nodeAfter&&(i=["table","tableRow","tableCell"].includes(n.range.start.nodeAfter.name)?n.range.start:null)}if(!i)continue;const r=i.nodeAfter&&i.nodeAfter.is("element","table")?i.nodeAfter:i.findAncestor("table");for(const n of t.createRangeOn(r).getItems())n.is("element","table")&&qT(n)&&e.add(n)}return e}(t)){const t=this.getColumnGroupElement(r),o=this.getTableColumnElements(t),a=this.getTableColumnsWidths(t);let s=zT(a);s=e(s,r,this),Mu(a,s)||(HT(o,t,s,n),i=!0)}return i}))}_registerConverters(){const t=this.editor.conversion;t.for("upcast").attributeToAttribute({view:{name:"figure",key:"style",value:{width:/[\s\S]+/}},model:{name:"table",key:"tableWidth",value:t=>t.getStyle("width")}}),t.for("downcast").attributeToAttribute({model:{name:"table",key:"tableWidth"},view:t=>({name:"figure",key:"style",value:{width:t}})}),t.elementToElement({model:"tableColumnGroup",view:"colgroup"}),t.elementToElement({model:"tableColumn",view:"col"}),t.for("downcast").add((t=>t.on("insert:table",((t,e,n)=>{const i=n.writer,r=e.item,o=n.mapper.toViewElement(r),a=o.is("element","table")?o:Array.from(o.getChildren()).find((t=>t.is("element","table")));qT(r)?i.addClass("ck-table-resized",a):i.removeClass("ck-table-resized",a)}),{priority:"low"}))),t.for("upcast").add(dI(this._tableUtilsPlugin)),t.for("upcast").attributeToAttribute({view:{name:"col",styles:{width:/.*/}},model:{key:"columnWidth",value:t=>{const e=t.getStyle("width");return e&&(e.endsWith("%")||e.endsWith("pt"))?e:"auto"}}}),t.for("upcast").attributeToAttribute({view:{name:"col",key:"span"},model:"colSpan"}),t.for("downcast").attributeToAttribute({model:{name:"tableColumn",key:"columnWidth"},view:t=>({key:"style",value:{width:t}})})}_registerResizingListeners(){const t=this.editor.editing.view;t.addObserver(IS),t.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(Xn.window.document,"mousemove",O(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(Xn.window.document,"mouseup",this._onMouseUpHandler.bind(this))}_onMouseDownHandler(t,e){const n=e.target;if(!n.hasClass("ck-table-column-resizer"))return;if(!this._isResizingAllowed)return;const i=this.editor,r=i.editing.mapper.toModelElement(n.findAncestor("figure"));if(!i.model.canEditAt(r))return;e.preventDefault(),t.stop();const o=function(t,e,n){const i=Array(e.getColumns(t)),r=new cT(t);for(const t of r){const e=n.editing.mapper.toViewElement(t.cell),r=VT(n.editing.view.domConverter.mapViewToDom(e));(!i[t.column]||r<i[t.column])&&(i[t.column]=jT(r))}return i}(r,this._tableUtilsPlugin,i),a=n.findAncestor("table"),s=i.editing.view;Array.from(a.getChildren()).find((t=>t.is("element","colgroup")))||s.change((t=>{!function(t,e,n){const i=t.createContainerElement("colgroup");for(let n=0;n<e.length;n++){const r=t.createEmptyElement("col"),o=`${jT(e[n]/$T(e)*100)}%`;t.setStyle("width",o,r),t.insert(t.createPositionAt(i,"end"),r)}t.insert(t.createPositionAt(n,0),i)}(t,o,a)})),this._isResizingActive=!0,this._resizingData=this._getResizingData(e,o),s.change((t=>function(t,e,n){const i=n.widths.viewFigureWidth/n.widths.viewFigureParentWidth;t.addClass("ck-table-resized",e),t.addClass("ck-table-column-resizer__active",n.elements.viewResizer),t.setStyle("width",`${jT(100*i)}%`,e.findAncestor("figure"))}(t,a,this._resizingData)))}_onMouseMoveHandler(t,e){if(!this._isResizingActive)return;if(!this._isResizingAllowed)return void this._onMouseUpHandler();const{columnPosition:n,flags:{isRightEdge:i,isTableCentered:r,isLtrContent:o},elements:{viewFigure:a,viewLeftColumn:s,viewRightColumn:c},widths:{viewFigureParentWidth:l,tableWidth:u,leftColumnWidth:h,rightColumnWidth:d}}=this._resizingData,f=40-h,g=i?l-u:d-40,p=(o?1:-1)*(i&&r?2:1),m=(b=(e.clientX-n)*p,w=Math.min(f,0),k=Math.max(g,0),jT(b<=w?w:b>=k?k:b));var b,w,k;0!==m&&this.editor.editing.view.change((t=>{const e=jT(100*(h+m)/u);if(t.setStyle("width",`${e}%`,s),i){const e=jT(100*(u+m)/l);t.setStyle("width",`${e}%`,a)}else{const e=jT(100*(d-m)/u);t.setStyle("width",`${e}%`,c)}}))}_onMouseUpHandler(){if(!this._isResizingActive)return;const{viewResizer:t,modelTable:e,viewFigure:n,viewColgroup:i}=this._resizingData.elements,r=this.editor,o=r.editing.view,a=this.getColumnGroupElement(e),s=Array.from(i.getChildren()).filter((t=>t.is("view:element"))),c=a?this.getTableColumnsWidths(a):null,l=s.map((t=>t.getStyle("width"))),u=!Mu(c,l),h=e.getAttribute("tableWidth"),d=n.getStyle("width"),f=h!==d;(u||f)&&(this._isResizingAllowed?r.execute("resizeTableWidth",{table:e,tableWidth:`${jT(d)}%`,columnWidths:l}):o.change((t=>{if(c)for(const e of s)t.setStyle("width",c.shift(),e);else t.remove(i);f&&(h?t.setStyle("width",h,n):t.removeStyle("width",n)),c||h||t.removeClass("ck-table-resized",[...n.getChildren()].find((t=>"table"===t.name)))}))),o.change((e=>{e.removeClass("ck-table-column-resizer__active",t)})),this._isResizingActive=!1,this._resizingData=null}_getResizingData(t,e){const n=this.editor,i=t.domEvent.clientX,r=t.target,o=r.findAncestor("td")||r.findAncestor("th"),a=n.editing.mapper.toModelElement(o),s=a.findAncestor("table"),c=function(t,e){const n=e.getCellLocation(t).column;return{leftEdge:n,rightEdge:n+(t.getAttribute("colspan")||1)-1}}(a,this._tableUtilsPlugin).rightEdge,l=c===this._tableUtilsPlugin.getColumns(s)-1,u=!s.hasAttribute("tableAlignment"),h="rtl"!==n.locale.contentLanguageDirection,d=o.findAncestor("table"),f=d.findAncestor("figure"),g=[...d.getChildren()].find((t=>t.is("element","colgroup"))),p=g.getChild(c),m=l?void 0:g.getChild(c+1);return{columnPosition:i,flags:{isRightEdge:l,isTableCentered:u,isLtrContent:h},elements:{viewResizer:r,modelTable:s,viewFigure:f,viewColgroup:g,viewLeftColumn:p,viewRightColumn:m},widths:{viewFigureParentWidth:FT(n.editing.view.domConverter.mapViewToDom(f.parent)),viewFigureWidth:FT(n.editing.view.domConverter.mapViewToDom(f)),tableWidth:NT(s,n),leftColumnWidth:e[c],rightColumnWidth:l?void 0:e[c+1]}}}_registerResizerInserter(){this.editor.conversion.for("editingDowncast").add((t=>{t.on("insert:tableCell",((t,e,n)=>{const i=e.item,r=n.mapper.toViewElement(i),o=n.writer;o.insert(o.createPositionAt(r,"end"),o.createUIElement("div",{class:"ck-table-column-resizer"}))}),{priority:"lowest"})}))}}var gI=n(8795),pI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(gI.A,pI);gI.A.locals;class mI extends Ro{attributeKey;constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=e.selection.getAttribute(this.attributeKey),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,i=t.value,r=t.batch,o=t=>{if(n.isCollapsed)i?t.setSelectionAttribute(this.attributeKey,i):t.removeSelectionAttribute(this.attributeKey);else{const r=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const e of r)i?t.setAttribute(this.attributeKey,i,e):t.removeAttribute(this.attributeKey,e)}};r?e.enqueueChange(r,(t=>{o(t)})):e.change((t=>{o(t)}))}}const bI="fontSize",wI="fontFamily",kI="fontColor",vI="fontBackgroundColor";function yI(t,e){const n={model:{key:t,values:[]},view:{},upcastAlso:{}};for(const t of e)n.model.values.push(t.model),n.view[t.model]=t.view,t.upcastAlso&&(n.upcastAlso[t.model]=t.upcastAlso);return n}function _I(t){return e=>e.getStyle(t).replace(/\s/g,"")}function CI(t){return(e,{writer:n})=>n.createAttributeElement("span",{style:`${t}:${e}`},{priority:7})}class AI extends mI{constructor(t){super(t,wI)}}function xI(t){return t.map(EI).filter((t=>void 0!==t))}function EI(t){return"object"==typeof t?t:"default"===t?{title:"Default",model:void 0}:"string"==typeof t?function(t){const e=t.replace(/"|'/g,"").split(","),n=e[0],i=e.map(TI).join(", ");return{title:n,model:i,view:{name:"span",styles:{"font-family":i},priority:7}}}(t):void 0}function TI(t){return(t=t.trim()).indexOf(" ")>0&&(t=`'${t}'`),t}class SI extends Oo{static get pluginName(){return"FontFamilyEditing"}constructor(t){super(t),t.config.define(wI,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:wI}),t.model.schema.setAttributeProperties(wI,{isFormatting:!0,copyOnEnter:!0});const e=xI(t.config.get("fontFamily.options")).filter((t=>t.model)),n=yI(wI,e);t.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(n),t.commands.add(wI,new AI(t))}_prepareAnyValueConverters(){const t=this.editor;t.conversion.for("downcast").attributeToElement({model:wI,view:(t,{writer:e})=>e.createAttributeElement("span",{style:"font-family:"+t},{priority:7})}),t.conversion.for("upcast").elementToAttribute({model:{key:wI,value:t=>t.getStyle("font-family")},view:{name:"span",styles:{"font-family":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:wI,value:t=>t.getAttribute("face")}})}}const DI='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>';class II extends Oo{static get pluginName(){return"FontFamilyUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),i=t.commands.get(wI),r=e("Font Family"),o=function(t,e){const n=new Ao;for(const i of t){const t={type:"button",model:new pb({commandName:wI,commandParam:i.model,label:i.title,role:"menuitemradio",withText:!0})};t.model.bind("isOn").to(e,"value",(t=>t===i.model||!(!t||!i.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===i.model.toLowerCase())),i.view&&"string"!=typeof i.view&&i.view.styles&&t.model.set("labelStyle",`font-family: ${i.view.styles["font-family"]}`),n.add(t)}return n}(n,i);t.ui.componentFactory.add(wI,(e=>{const n=Ep(e);return Dp(n,o,{role:"menu",ariaLabel:r}),n.buttonView.set({label:r,icon:DI,tooltip:!0}),n.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),n.bind("isEnabled").to(i),this.listenTo(n,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),n})),t.ui.componentFactory.add(`menuBar:${wI}`,(e=>{const n=new ew(e);n.buttonView.set({label:r,icon:DI}),n.bind("isEnabled").to(i);const a=new nw(e);for(const i of o){const r=new Um(e,n),o=new Kf(e);o.set({role:"menuitemradio",isToggleable:!0}),o.bind(...Object.keys(i.model)).to(i.model),o.delegate("execute").to(n),o.on("execute",(()=>{t.execute(i.model.commandName,{value:i.model.commandParam}),t.editing.view.focus()})),r.children.add(o),a.items.add(r)}return n.panelView.children.add(a),n}))}_getLocalizedOptions(){const t=this.editor,e=t.t;return xI(t.config.get(wI).options).map((t=>("Default"===t.title&&(t.title=e("Default")),t)))}}class BI extends Oo{static get requires(){return[SI,II]}static get pluginName(){return"FontFamily"}}class MI extends mI{constructor(t){super(t,bI)}}function PI(t){return t.map((t=>function(t){"number"==typeof t&&(t=String(t));if("object"==typeof t&&(e=t,e.title&&e.model&&e.view))return OI(t);var e;const n=function(t){return"string"==typeof t?LI[t]:LI[t.model]}(t);if(n)return OI(n);if("default"===t)return{model:void 0,title:"Default"};if(function(t){let e;if("object"==typeof t){if(!t.model)throw new wi("font-size-invalid-definition",null,t);e=parseFloat(t.model)}else e=parseFloat(t);return isNaN(e)}(t))return;return function(t){"string"==typeof t&&(t={title:t,model:`${parseFloat(t)}px`});return t.view={name:"span",styles:{"font-size":t.model}},OI(t)}(t)}(t))).filter((t=>void 0!==t))}const LI={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function OI(t){return t.view&&"string"!=typeof t.view&&!t.view.priority&&(t.view.priority=7),t}const NI=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];class RI extends Oo{static get pluginName(){return"FontSizeEditing"}constructor(t){super(t),t.config.define(bI,{options:["tiny","small","default","big","huge"],supportAllValues:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:bI}),t.model.schema.setAttributeProperties(bI,{isFormatting:!0,copyOnEnter:!0});const e=t.config.get("fontSize.supportAllValues"),n=PI(this.editor.config.get("fontSize.options")).filter((t=>t.model)),i=yI(bI,n);e?(this._prepareAnyValueConverters(i),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(i),t.commands.add(bI,new MI(t))}_prepareAnyValueConverters(t){const e=this.editor,n=t.model.values.filter((t=>!Zh(String(t))&&!Jh(String(t))));if(n.length)throw new wi("font-size-invalid-use-of-named-presets",null,{presets:n});e.conversion.for("downcast").attributeToElement({model:bI,view:(t,{writer:e})=>{if(t)return e.createAttributeElement("span",{style:"font-size:"+t},{priority:7})}}),e.conversion.for("upcast").elementToAttribute({model:{key:bI,value:t=>t.getStyle("font-size")},view:{name:"span",styles:{"font-size":/.*/}}})}_prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:bI,value:t=>{const e=t.getAttribute("size"),n="-"===e[0]||"+"===e[0];let i=parseInt(e,10);n&&(i=3+i);const r=NI.length-1,o=Math.min(Math.max(i,0),r);return NI[o]}}})}}var FI=n(1058),jI={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(FI.A,jI);FI.A.locals;const $I='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>';class zI extends Oo{static get pluginName(){return"FontSizeUI"}init(){const t=this.editor,e=t.t,n=this._getLocalizedOptions(),i=t.commands.get(bI),r=e("Font Size"),o=function(t,e){const n=new Ao;for(const i of t){const t={type:"button",model:new pb({commandName:bI,commandParam:i.model,label:i.title,class:"ck-fontsize-option",role:"menuitemradio",withText:!0})};i.view&&"string"!=typeof i.view&&(i.view.styles&&t.model.set("labelStyle",`font-size:${i.view.styles["font-size"]}`),i.view.classes&&t.model.set("class",`${t.model.class} ${i.view.classes}`)),t.model.bind("isOn").to(e,"value",(t=>t===i.model)),n.add(t)}return n}(n,i);t.ui.componentFactory.add(bI,(e=>{const n=Ep(e);return Dp(n,o,{role:"menu",ariaLabel:r}),n.buttonView.set({label:r,icon:$I,tooltip:!0}),n.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),n.bind("isEnabled").to(i),this.listenTo(n,"execute",(e=>{t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),n})),t.ui.componentFactory.add(`menuBar:${bI}`,(e=>{const n=new ew(e);n.buttonView.set({label:r,icon:$I}),n.bind("isEnabled").to(i);const a=new nw(e);for(const i of o){const r=new Um(e,n),o=new Kf(e);o.set({role:"menuitemradio",isToggleable:!0}),o.bind(...Object.keys(i.model)).to(i.model),o.delegate("execute").to(n),o.on("execute",(()=>{t.execute(i.model.commandName,{value:i.model.commandParam}),t.editing.view.focus()})),r.children.add(o),a.items.add(r)}return n.panelView.children.add(a),n}))}_getLocalizedOptions(){const t=this.editor,e=t.t,n={Default:e("Default"),Tiny:e("Tiny"),Small:e("Small"),Big:e("Big"),Huge:e("Huge")};return PI(t.config.get(bI).options).map((t=>{const e=n[t.title];return e&&e!=t.title&&(t=Object.assign({},t,{title:e})),t}))}}class VI extends Oo{static get requires(){return[RI,zI]}static get pluginName(){return"FontSize"}normalizeSizeOptions(t){return PI(t)}}class HI extends mI{constructor(t){super(t,kI)}}class qI extends Oo{static get pluginName(){return"FontColorEditing"}constructor(t){super(t),t.config.define(kI,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:kI,value:_I("color")}}),t.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:kI,value:t=>t.getAttribute("color")}}),t.conversion.for("downcast").attributeToElement({model:kI,view:CI("color")}),t.commands.add(kI,new HI(t)),t.model.schema.extend("$text",{allowAttributes:kI}),t.model.schema.setAttributeProperties(kI,{isFormatting:!0,copyOnEnter:!0})}}class UI extends Oo{commandName;componentName;icon;dropdownLabel;columns;constructor(t,{commandName:e,componentName:n,icon:i,dropdownLabel:r}){super(t),this.commandName=e,this.componentName=n,this.icon=i,this.dropdownLabel=r,this.columns=t.config.get(`${this.componentName}.columns`)}init(){const t=this.editor,e=t.locale,n=e.t,i=t.commands.get(this.commandName),r=t.config.get(this.componentName),o=dg(e,fg(r.colors)),a=r.documentColors,s=!1!==r.colorPicker;t.ui.componentFactory.add(this.componentName,(e=>{const c=Ep(e);let l=!1;const u=function({dropdownView:t,colors:e,columns:n,removeButtonLabel:i,colorPickerLabel:r,documentColorsLabel:o,documentColorsCount:a,colorPickerViewConfig:s}){const c=t.locale,l=new Am(c,{colors:e,columns:n,removeButtonLabel:i,colorPickerLabel:r,documentColorsLabel:o,documentColorsCount:a,colorPickerViewConfig:s});return t.colorSelectorView=l,t.panelView.children.add(l),l}({dropdownView:c,colors:o.map((t=>({label:t.label,color:t.model,options:{hasBorder:t.hasBorder}}))),columns:this.columns,removeButtonLabel:n("Remove color"),colorPickerLabel:n("Color picker"),documentColorsLabel:0!==a?n("Document colors"):"",documentColorsCount:void 0===a?this.columns:a,colorPickerViewConfig:!!s&&(r.colorPicker||{})});return u.bind("selectedColor").to(i,"value"),c.buttonView.set({label:this.dropdownLabel,icon:this.icon,tooltip:!0}),c.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),c.bind("isEnabled").to(i),u.on("execute",((e,n)=>{c.isOpen&&t.execute(this.commandName,{value:n.value,batch:this._undoStepBatch}),"colorPicker"!==n.source&&t.editing.view.focus(),"colorPickerSaveButton"===n.source&&(c.isOpen=!1)})),u.on("colorPicker:show",(()=>{this._undoStepBatch=t.model.createBatch()})),u.on("colorPicker:cancel",(()=>{this._undoStepBatch.operations.length&&(c.isOpen=!1,t.execute("undo",this._undoStepBatch)),t.editing.view.focus()})),c.on("change:isOpen",((e,n,i)=>{l||(l=!0,c.colorSelectorView.appendUI()),i&&(0!==a&&u.updateDocumentColors(t.model,this.componentName),u.updateSelectedColors(),u.showColorGridsFragment())})),Bp(c,(()=>c.colorSelectorView.colorGridsFragmentView.staticColorsGrid.items.find((t=>t.isOn)))),c})),t.ui.componentFactory.add(`menuBar:${this.componentName}`,(e=>{const r=new ew(e);r.buttonView.set({label:this.dropdownLabel,icon:this.icon}),r.bind("isEnabled").to(i);let s=!1;const c=new Am(e,{colors:o.map((t=>({label:t.label,color:t.model,options:{hasBorder:t.hasBorder}}))),columns:this.columns,removeButtonLabel:n("Remove color"),colorPickerLabel:n("Color picker"),documentColorsLabel:0!==a?n("Document colors"):"",documentColorsCount:void 0===a?this.columns:a,colorPickerViewConfig:!1});return c.bind("selectedColor").to(i,"value"),c.delegate("execute").to(r),c.on("execute",((e,n)=>{t.execute(this.commandName,{value:n.value,batch:this._undoStepBatch}),t.editing.view.focus()})),r.on("change:isOpen",((e,n,i)=>{s||(s=!0,c.appendUI()),i&&(0!==a&&c.updateDocumentColors(t.model,this.componentName),c.updateSelectedColors(),c.showColorGridsFragment())})),r.panelView.children.add(c),r}))}}class GI extends UI{constructor(t){const e=t.locale.t;super(t,{commandName:kI,componentName:kI,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3 10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:e("Font Color")})}static get pluginName(){return"FontColorUI"}}class WI extends Oo{static get requires(){return[qI,GI]}static get pluginName(){return"FontColor"}}class KI extends mI{constructor(t){super(t,vI)}}class YI extends Oo{static get pluginName(){return"FontBackgroundColorEditing"}constructor(t){super(t),t.config.define(vI,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.data.addStyleProcessorRules(fd),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:vI,value:_I("background-color")}}),t.conversion.for("downcast").attributeToElement({model:vI,view:CI("background-color")}),t.commands.add(vI,new KI(t)),t.model.schema.extend("$text",{allowAttributes:vI}),t.model.schema.setAttributeProperties(vI,{isFormatting:!0,copyOnEnter:!0})}}class XI extends UI{constructor(t){const e=t.locale.t;super(t,{commandName:vI,componentName:vI,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8.38 9.262H7.62L10 5.506l2.38 5.756zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453h5.824z"/></svg>',dropdownLabel:e("Font Background Color")})}static get pluginName(){return"FontBackgroundColorUI"}}class ZI extends Oo{static get requires(){return[YI,XI]}static get pluginName(){return"FontBackgroundColor"}}function QI(t){const e=t.t,n=t.config.get("codeBlock.languages");for(const t of n)"Plain text"===t.label&&(t.label=e("Plain text")),void 0===t.class&&(t.class=`language-${t.language}`);return n}function JI(t,e,n){const i={};for(const r of t)if("class"===e){i[r[e].split(" ").shift()]=r[n]}else i[r[e]]=r[n];return i}function tB(t){return t.data.match(/^(\s*)/)[0]}function eB(t){const e=t.document.selection,n=[];if(e.isCollapsed)return[e.anchor];const i=e.getFirstRange().getWalker({ignoreElementEnd:!0,direction:"backward"});for(const{item:e}of i){let i=e.is("$textProxy")?e.textNode:e;const r=i.parent;if(!r.is("element","codeBlock")||i.is("element","softBreak"))continue;for(;i.previousSibling&&!i.previousSibling.is("element","softBreak");)i=i.previousSibling;const o=i.is("$text")?i.startOffset+tB(i).length:i.startOffset,a=t.createPositionAt(r,o);n.every((t=>!t.isEqual(a)))&&n.push(a)}return n}function nB(t){const e=xo(t.getSelectedBlocks());return!!e&&e.is("element","codeBlock")}function iB(t,e){return!e.is("rootElement")&&!t.isLimit(e)&&t.checkChild(e.parent,"codeBlock")}function rB(t,e,n,i){const r=JI(e,"language","label"),o=n.getAttribute("language");if(o in r){const e=r[o];return t("enter"===i?"Entering %0 code snippet":"Leaving %0 code snippet",e)}return t("enter"===i?"Entering code snippet":"Leaving code snippet")}function oB(t,e){for(t.textNode&&(t=e.createPositionBefore(t.textNode));t.nodeBefore&&!t.nodeBefore.is("element","softBreak");)t=e.createPositionBefore(t.nodeBefore);const n=t.nodeAfter;return n&&n.is("$text")?n:null}class aB extends Ro{_lastLanguage;constructor(t){super(t),this._lastLanguage=null}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor,n=e.model,i=n.document.selection,r=QI(e)[0],o=Array.from(i.getSelectedBlocks()),a=null==t.forceValue?!this.value:t.forceValue,s=function(t,e,n){if(t.language)return t.language;if(t.usePreviousLanguageChoice&&e)return e;return n}(t,this._lastLanguage,r.language);n.change((t=>{a?this._applyCodeBlock(t,o,s):this._removeCodeBlock(t,o)}))}_getValue(){const t=xo(this.editor.model.document.selection.getSelectedBlocks());return!!!(!t||!t.is("element","codeBlock"))&&t.getAttribute("language")}_checkEnabled(){if(this.value)return!0;const t=this.editor.model.document.selection,e=this.editor.model.schema,n=xo(t.getSelectedBlocks());return!!n&&iB(e,n)}_applyCodeBlock(t,e,n){this._lastLanguage=n;const i=this.editor.model.schema,r=e.filter((t=>iB(i,t)));for(const e of r)t.rename(e,"codeBlock"),t.setAttribute("language",n,e),i.removeDisallowedAttributes([e],t),Array.from(e.getChildren()).filter((t=>!i.checkChild(e,t))).forEach((e=>t.remove(e)));r.reverse().forEach(((e,n)=>{const i=r[n+1];e.previousSibling===i&&(t.appendElement("softBreak",i),t.merge(t.createPositionBefore(e)))}))}_removeCodeBlock(t,e){const n=e.filter((t=>t.is("element","codeBlock")));for(const e of n){const n=t.createRangeOn(e);for(const e of Array.from(n.getItems()).reverse())if(e.is("element","softBreak")&&e.parent.is("element","codeBlock")){const{position:n}=t.split(t.createPositionBefore(e)),i=n.nodeAfter;t.rename(i,"paragraph"),t.removeAttribute("language",i),t.remove(e)}t.rename(e,"paragraph"),t.removeAttribute("language",e)}}}class sB extends Ro{_indentSequence;constructor(t){super(t),this._indentSequence=t.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model;t.change((e=>{const n=eB(t);for(const i of n){const n=e.createText(this._indentSequence);t.insertContent(n,i)}}))}_checkEnabled(){return!!this._indentSequence&&nB(this.editor.model.document.selection)}}class cB extends Ro{_indentSequence;constructor(t){super(t),this._indentSequence=t.config.get("codeBlock.indentSequence")}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model;t.change((()=>{const e=eB(t);for(const n of e){const e=lB(t,n,this._indentSequence);e&&t.deleteContent(t.createSelection(e))}}))}_checkEnabled(){if(!this._indentSequence)return!1;const t=this.editor.model;return!!nB(t.document.selection)&&eB(t).some((e=>lB(t,e,this._indentSequence)))}}function lB(t,e,n){const i=oB(e,t);if(!i)return null;const r=tB(i),o=r.lastIndexOf(n);if(o+n.length!==r.length)return null;if(-1===o)return null;const{parent:a,startOffset:s}=i;return t.createRange(t.createPositionAt(a,s+o),t.createPositionAt(a,s+o+n.length))}function uB(t,e,n=!1){const i=JI(e,"language","class"),r=JI(e,"language","label");return(e,o,a)=>{const{writer:s,mapper:c,consumable:l}=a;if(!l.consume(o.item,"insert"))return;const u=o.item.getAttribute("language"),h=c.toViewPosition(t.createPositionBefore(o.item)),d={};n&&(d["data-language"]=r[u],d.class="hljs",d.spellcheck="false");const f=i[u]?{class:i[u]}:void 0,g=s.createContainerElement("code",f),p=s.createContainerElement("pre",d,g);s.insert(h,p),c.bindElements(o.item,g)}}const hB="paragraph";class dB extends Oo{static get pluginName(){return"CodeBlockEditing"}static get requires(){return[mv]}constructor(t){super(t),t.config.define("codeBlock",{languages:[{language:"plaintext",label:"Plain text"},{language:"c",label:"C"},{language:"cs",label:"C#"},{language:"cpp",label:"C++"},{language:"css",label:"CSS"},{language:"diff",label:"Diff"},{language:"html",label:"HTML"},{language:"java",label:"Java"},{language:"javascript",label:"JavaScript"},{language:"php",label:"PHP"},{language:"python",label:"Python"},{language:"ruby",label:"Ruby"},{language:"typescript",label:"TypeScript"},{language:"xml",label:"XML"}],indentSequence:"\t"})}init(){const t=this.editor,e=t.model.schema,n=t.model,i=t.editing.view,r=QI(t);t.commands.add("codeBlock",new aB(t)),t.commands.add("indentCodeBlock",new sB(t)),t.commands.add("outdentCodeBlock",new cB(t)),this.listenTo(i.document,"tab",((e,n)=>{const i=n.shiftKey?"outdentCodeBlock":"indentCodeBlock";t.commands.get(i).isEnabled&&(t.execute(i),n.stopPropagation(),n.preventDefault(),e.stop())}),{context:"pre"}),e.register("codeBlock",{allowWhere:"$block",allowChildren:"$text",disallowChildren:"$inlineObject",allowAttributes:["language"],allowAttributesOf:"$listItem",isBlock:!0}),e.addAttributeCheck(((t,n)=>{const i=t.getItem(t.length-2);if(e.getAttributeProperties(n).isFormatting&&i&&"codeBlock"==i.name)return!1})),t.editing.downcastDispatcher.on("insert:codeBlock",uB(n,r,!0)),t.data.downcastDispatcher.on("insert:codeBlock",uB(n,r)),t.data.downcastDispatcher.on("insert:softBreak",function(t){return(e,n,i)=>{if("codeBlock"!==n.item.parent.name)return;const{writer:r,mapper:o,consumable:a}=i;if(!a.consume(n.item,"insert"))return;const s=o.toViewPosition(t.createPositionBefore(n.item));r.insert(s,r.createText("\n"))}}(n),{priority:"high"}),t.data.upcastDispatcher.on("element:code",function(t,e){const n=JI(e,"class","language"),i=e[0].language;return(t,e,r)=>{const o=e.viewItem,a=o.parent;if(!a||!a.is("element","pre"))return;if(e.modelCursor.findAncestor("codeBlock"))return;const{consumable:s,writer:c}=r;if(!s.test(o,{name:!0}))return;const l=c.createElement("codeBlock"),u=[...o.getClassNames()];u.length||u.push("");for(const t of u){const e=n[t];if(e){c.setAttribute("language",e,l);break}}l.hasAttribute("language")||c.setAttribute("language",i,l),r.convertChildren(o,l),r.safeInsert(l,e.modelCursor)&&(s.consume(o,{name:!0}),r.updateConversionResult(l,e))}}(0,r)),t.data.upcastDispatcher.on("text",((t,e,{consumable:n,writer:i})=>{let r=e.modelCursor;if(!n.test(e.viewItem))return;if(!r.findAncestor("codeBlock"))return;n.consume(e.viewItem);const o=e.viewItem.data.split("\n").map((t=>i.createText(t))),a=o[o.length-1];for(const t of o)if(i.insert(t,r),r=r.getShiftedBy(t.offsetSize),t!==a){const t=i.createElement("softBreak");i.insert(t,r),r=i.createPositionAfter(t)}e.modelRange=i.createRange(e.modelCursor,r),e.modelCursor=r})),t.data.upcastDispatcher.on("element:pre",((t,e,{consumable:n})=>{const i=e.viewItem;if(i.findAncestor("pre"))return;const r=Array.from(i.getChildren()),o=r.find((t=>t.is("element","code")));if(o)for(const t of r)t!==o&&t.is("$text")&&n.consume(t,{name:!0})}),{priority:"high"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,i)=>{let r=n.createRange(n.document.selection.anchor);if(i.targetRanges&&(r=t.editing.mapper.toModelRange(i.targetRanges[0])),!r.start.parent.is("element","codeBlock"))return;const o=i.dataTransfer.getData("text/plain"),a=new jh(t.editing.view.document);i.content=function(t,e){const n=t.createDocumentFragment(),i=e.split("\n"),r=i.reduce(((e,n,r)=>(e.push(n),r<i.length-1&&e.push(t.createElement("br")),e)),[]);return t.appendChild(r,n),n}(a,o)})),t.plugins.has("ClipboardPipeline")&&t.plugins.get(oy).on("contentInsertion",((n,i)=>{const r=t.model,o=r.document.selection;o.anchor.parent.is("element","codeBlock")&&r.change((t=>{const n=t.createRangeIn(i.content);for(const i of[...n.getItems()])i.is("node")&&!e.checkChild(o.anchor,i)&&t.remove(i)}))})),this.listenTo(n,"getSelectedContent",((t,[i])=>{const r=i.anchor;!i.isCollapsed&&r.parent.is("element","codeBlock")&&r.hasSameParentAs(i.focus)&&n.change((n=>{const o=t.return;if(r.parent.is("element")&&(o.childCount>1||i.containsEntireContent(r.parent))){const e=n.createElement("codeBlock",r.parent.getAttributes());n.append(o,e);const i=n.createDocumentFragment();return n.append(e,i),void(t.return=i)}const a=o.getChild(0);e.checkAttribute(a,"code")&&n.setAttribute("code",!0,a)}))}))}afterInit(){const t=this.editor,e=t.commands,n=e.get("indent"),i=e.get("outdent");n&&n.registerChildCommand(e.get("indentCodeBlock"),{priority:"highest"}),i&&i.registerChildCommand(e.get("outdentCodeBlock")),this.listenTo(t.editing.view.document,"enter",((e,n)=>{t.model.document.selection.getLastPosition().parent.is("element","codeBlock")&&(function(t,e){const n=t.model,i=n.document,r=t.editing.view,o=i.selection.getLastPosition(),a=o.nodeAfter;if(e||!i.selection.isCollapsed||!o.isAtStart)return!1;if(!gB(a))return!1;return t.model.change((e=>{t.execute("enter");const n=i.selection.anchor.parent.previousSibling;e.rename(n,hB),e.setSelection(n,"in"),t.model.schema.removeDisallowedAttributes([n],e),e.remove(a)})),r.scrollToTheSelection(),!0}(t,n.isSoft)||function(t,e){const n=t.model,i=n.document,r=t.editing.view,o=i.selection.getLastPosition(),a=o.nodeBefore;let s;if(e||!i.selection.isCollapsed||!o.isAtEnd||!a||!a.previousSibling)return!1;if(gB(a)&&gB(a.previousSibling))s=n.createRange(n.createPositionBefore(a.previousSibling),n.createPositionAfter(a));else if(fB(a)&&gB(a.previousSibling)&&gB(a.previousSibling.previousSibling))s=n.createRange(n.createPositionBefore(a.previousSibling.previousSibling),n.createPositionAfter(a));else{if(!(fB(a)&&gB(a.previousSibling)&&fB(a.previousSibling.previousSibling)&&a.previousSibling.previousSibling&&gB(a.previousSibling.previousSibling.previousSibling)))return!1;s=n.createRange(n.createPositionBefore(a.previousSibling.previousSibling.previousSibling),n.createPositionAfter(a))}return t.model.change((e=>{e.remove(s),t.execute("enter");const n=i.selection.anchor.parent;e.rename(n,hB),t.model.schema.removeDisallowedAttributes([n],e)})),r.scrollToTheSelection(),!0}(t,n.isSoft)||function(t){const e=t.model,n=e.document;let i;const r=oB(n.selection.getLastPosition(),e);r&&r.is("$text")&&(i=tB(r));t.model.change((e=>{t.execute("shiftEnter"),i&&e.insertText(i,n.selection.anchor)}))}(t),n.preventDefault(),e.stop())}),{context:"pre"}),this._initAriaAnnouncements()}_initAriaAnnouncements(){const{model:t,ui:e,t:n}=this.editor,i=QI(this.editor);let r=null;t.document.selection.on("change:range",(()=>{const o=t.document.selection.focus.parent;e&&r!==o&&o.is("element")&&(r&&r.is("element","codeBlock")&&e.ariaLiveAnnouncer.announce(rB(n,i,r,"leave")),o.is("element","codeBlock")&&e.ariaLiveAnnouncer.announce(rB(n,i,o,"enter")),r=o)}))}}function fB(t){return t&&t.is("$text")&&!t.data.match(/\S/)}function gB(t){return t&&t.is("element","softBreak")}var pB=n(6610),mB={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(pB.A,mB);pB.A.locals;class bB extends Oo{static get pluginName(){return"CodeBlockUI"}init(){const t=this.editor,e=t.t,n=t.ui.componentFactory,i=QI(t),r=this._getLanguageListItemDefinitions(i),o=t.commands.get("codeBlock");n.add("codeBlock",(n=>{const i=Ep(n,yp),a=i.buttonView,s=e("Insert code block");return a.set({label:s,tooltip:!0,icon:Ld.codeBlock,isToggleable:!0}),a.bind("isOn").to(o,"value",(t=>!!t)),a.on("execute",(()=>{t.execute("codeBlock",{usePreviousLanguageChoice:!0}),t.editing.view.focus()})),i.on("execute",(e=>{t.execute("codeBlock",{language:e.source._codeBlockLanguage,forceValue:!0}),t.editing.view.focus()})),i.class="ck-code-block-dropdown",i.bind("isEnabled").to(o),Dp(i,r,{role:"menu",ariaLabel:s}),i})),n.add("menuBar:codeBlock",(n=>{const i=new ew(n);i.buttonView.set({role:"menuitem",label:e("Code block"),icon:Ld.codeBlock}),i.bind("isEnabled").to(o);const a=new nw(n);a.set({ariaLabel:e("Insert code block")});for(const e of r){const r=new Um(n,i),s=new Kf(n);s.bind(...Object.keys(e.model)).to(e.model),s.set({isToggleable:!0,role:"menuitemcheckbox"}),s.delegate("execute").to(i),s.on("execute",(()=>{t.execute("codeBlock",{language:e.model._codeBlockLanguage,forceValue:o.value!=e.model._codeBlockLanguage}),t.editing.view.focus()})),r.children.add(s),a.items.add(r)}return i.panelView.children.add(a),i}))}_getLanguageListItemDefinitions(t){const e=this.editor.commands.get("codeBlock"),n=new Ao;for(const i of t){const t={type:"button",model:new pb({_codeBlockLanguage:i.language,label:i.label,role:"menuitemradio",withText:!0})};t.model.bind("isOn").to(e,"value",(e=>e===t.model._codeBlockLanguage)),n.add(t)}return n}}const wB={"(":")","[":"]","{":"}"};class kB extends Ro{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=t.document;this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"mention")}execute(t){const e=this.editor.model,n=e.document.selection,i="string"==typeof t.mention?{id:t.mention}:t.mention,r=i.id,o=t.range||n.getFirstRange();if(!e.canEditAt(o))return;const a=t.text||r,s=yB({_text:a,id:r},i);if(1!=t.marker.length)throw new wi("mentioncommand-incorrect-marker",this);if(r.charAt(0)!=t.marker)throw new wi("mentioncommand-incorrect-id",this);e.change((t=>{const i=So(n.getAttributes()),r=new Map(i.entries());r.set("mention",s);const c=e.insertContent(t.createText(a,r),o),l=c.start.nodeBefore,u=c.end.nodeAfter,h=u&&u.is("$text")&&u.data.startsWith(" ");let d=!1;if(l&&u&&l.is("$text")&&u.is("$text")){const t=l.data.slice(-1),e=t in wB,n=e&&u.data.startsWith(wB[t]);d=e&&n}d||h||e.insertContent(t.createText(" ",i),o.start.getShiftedBy(a.length))}))}}class vB extends Oo{static get pluginName(){return"MentionEditing"}init(){const t=this.editor,e=t.model,n=e.document;e.schema.extend("$text",{allowAttributes:"mention"}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",key:"data-mention",classes:"mention"},model:{key:"mention",value:t=>_B(t)}}),t.conversion.for("downcast").attributeToElement({model:"mention",view:AB}),t.conversion.for("downcast").add(CB),n.registerPostFixer((t=>function(t,e,n){const i=e.differ.getChanges();let r=!1;for(const e of i){if("attribute"==e.type)continue;const i=e.position;if("$text"==e.name){const e=i.textNode&&i.textNode.nextSibling;r=EB(i.textNode,t)||r,r=EB(e,t)||r,r=EB(i.nodeBefore,t)||r,r=EB(i.nodeAfter,t)||r}if("$text"!=e.name&&"insert"==e.type){const e=i.nodeAfter;for(const n of t.createRangeIn(e).getItems())r=EB(n,t)||r}if("insert"==e.type&&n.isInline(e.name)){const e=i.nodeAfter&&i.nodeAfter.nextSibling;r=EB(i.nodeBefore,t)||r,r=EB(e,t)||r}}return r}(t,n,e.schema))),n.registerPostFixer((t=>function(t,e){const n=e.differ.getChanges();let i=!1;for(const e of n)if("attribute"===e.type&&"mention"!=e.attributeKey){const n=e.range.start.nodeBefore,r=e.range.end.nodeAfter;for(const o of[n,r])xB(o)&&o.getAttribute(e.attributeKey)!=e.attributeNewValue&&(t.setAttribute(e.attributeKey,e.attributeNewValue,o),i=!0)}return i}(t,n))),n.registerPostFixer((t=>function(t,e){const n=e.selection,i=n.focus;if(n.isCollapsed&&n.hasAttribute("mention")&&function(t){const e=t.isAtStart;return t.nodeBefore&&t.nodeBefore.is("$text")||e}(i))return t.removeSelectionAttribute("mention"),!0;return!1}(t,n))),t.commands.add("mention",new kB(t))}}function yB(t,e){return Object.assign({uid:pi()},t,e||{})}function _B(t,e){const n=t.getAttribute("data-mention"),i=t.getChild(0);if(!i)return;return yB({id:n,_text:i.data},e)}function CB(t){t.on("attribute:mention",((t,e,n)=>{const i=e.attributeNewValue;if(!e.item.is("$textProxy")||!i)return;const r=e.range.start;(r.textNode||r.nodeAfter).data!=i._text&&n.consumable.consume(e.item,t.name)}),{priority:"highest"})}function AB(t,{writer:e}){if(!t)return;const n={class:"mention","data-mention":t.id},i={id:t.uid,priority:20};return e.createAttributeElement("span",n,i)}function xB(t){if(!t||!t.is("$text")&&!t.is("$textProxy")||!t.hasAttribute("mention"))return!1;return t.data!=t.getAttribute("mention")._text}function EB(t,e){return!!xB(t)&&(e.removeAttribute("mention",t),!0)}var TB=n(9055),SB={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(TB.A,SB);TB.A.locals;class DB extends Xg{selected;position;constructor(t){super(t),this.extendTemplate({attributes:{class:["ck-mentions"],tabindex:"-1"}})}selectFirst(){this.select(0)}selectNext(){const t=this.selected,e=this.items.getIndex(t);this.select(e+1)}selectPrevious(){const t=this.selected,e=this.items.getIndex(t);this.select(e-1)}select(t){let e=0;t>0&&t<this.items.length?e=t:t<0&&(e=this.items.length-1);const n=this.items.get(e);this.selected!==n&&(this.selected&&this.selected.removeHighlight(),n.highlight(),this.selected=n,this._isItemVisibleInScrolledArea(n)||(this.element.scrollTop=n.element.offsetTop))}executeSelected(){this.selected.fire("execute")}_isItemVisibleInScrolledArea(t){return new mr(this.element).contains(new mr(t.element))}}class IB extends af{domElement;constructor(t,e){super(t),this.template=void 0,this.domElement=e,this.domElement.classList.add("ck-button"),this.set("isOn",!1),this.on("change:isOn",((t,e,n)=>{n?(this.domElement.classList.add("ck-on"),this.domElement.classList.remove("ck-off")):(this.domElement.classList.add("ck-off"),this.domElement.classList.remove("ck-on"))})),this.listenTo(this.domElement,"click",(()=>{this.fire("execute")}))}render(){super.render(),this.element=this.domElement}focus(){this.domElement.focus()}}class BB extends Ug{item;marker;highlight(){this.children.first.isOn=!0}removeHighlight(){this.children.first.isOn=!1}}const MB=[Gr.arrowup,Gr.arrowdown,Gr.esc],PB=[Gr.enter,Gr.tab];class LB extends Oo{_mentionsView;_mentionsConfigurations;_balloon;_items=new Ao;_lastRequested;_requestFeedDebounced;static get pluginName(){return"MentionUI"}static get requires(){return[yb]}constructor(t){super(t),this._mentionsView=this._createMentionView(),this._mentionsConfigurations=new Map,this._requestFeedDebounced=L(this._requestFeed,100),t.config.define("mention",{feeds:[]})}init(){const t=this.editor,e=t.config.get("mention.commitKeys")||PB,n=MB.concat(e);this._balloon=t.plugins.get(yb),t.editing.view.document.on("keydown",((t,i)=>{if(r=i.keyCode,n.includes(r)&&this._isUIVisible){if(i.keyCode==Gr.space)return void this._hideUIAndRemoveMarker();i.preventDefault(),t.stop(),i.keyCode==Gr.arrowdown&&this._mentionsView.selectNext(),i.keyCode==Gr.arrowup&&this._mentionsView.selectPrevious(),e.includes(i.keyCode)&&this._mentionsView.executeSelected(),i.keyCode==Gr.esc&&this._hideUIAndRemoveMarker()}var r}),{priority:"highest"}),sf({emitter:this._mentionsView,activator:()=>this._isUIVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUIAndRemoveMarker()});const i=t.config.get("mention.feeds");for(const t of i){const{feed:e,marker:n,dropdownLimit:i}=t;if(!jB(n))throw new wi("mentionconfig-incorrect-marker",null,{marker:n});const r={marker:n,feedCallback:"function"==typeof e?e.bind(this.editor):FB(e),itemRenderer:t.itemRenderer,dropdownLimit:i};this._mentionsConfigurations.set(n,r)}this._setupTextWatcher(i),this.listenTo(t,"change:isReadOnly",(()=>{this._hideUIAndRemoveMarker()})),this.on("requestFeed:response",((t,e)=>this._handleFeedResponse(e))),this.on("requestFeed:error",(()=>this._hideUIAndRemoveMarker()))}destroy(){super.destroy(),this._mentionsView.destroy()}get _isUIVisible(){return this._balloon.visibleView===this._mentionsView}_createMentionView(){const t=this.editor.locale,e=new DB(t);return e.items.bindTo(this._items).using((n=>{const{item:i,marker:r}=n,{dropdownLimit:o}=this._mentionsConfigurations.get(r),a=o||this.editor.config.get("mention.dropdownLimit")||10;if(e.items.length>=a)return null;const s=new BB(t),c=this._renderItem(i,r);return c.delegate("execute").to(s),s.children.add(c),s.item=i,s.marker=r,s.on("execute",(()=>{e.fire("execute",{item:i,marker:r})})),s})),e.on("execute",((t,e)=>{const n=this.editor,i=n.model,r=e.item,o=e.marker,a=n.model.markers.get("mention"),s=i.createPositionAt(i.document.selection.focus),c=i.createPositionAt(a.getStart()),l=i.createRange(c,s);this._hideUIAndRemoveMarker(),n.execute("mention",{mention:r,text:r.text,marker:o,range:l}),n.editing.view.focus()})),e}_getItemRenderer(t){const{itemRenderer:e}=this._mentionsConfigurations.get(t);return e}_requestFeed(t,e){this._lastRequested=e;const{feedCallback:n}=this._mentionsConfigurations.get(t),i=n(e);i instanceof Promise?i.then((n=>{this._lastRequested==e?this.fire("requestFeed:response",{feed:n,marker:t,feedText:e}):this.fire("requestFeed:discarded",{feed:n,marker:t,feedText:e})})).catch((e=>{this.fire("requestFeed:error",{error:e}),ki("mention-feed-callback-error",{marker:t})})):this.fire("requestFeed:response",{feed:i,marker:t,feedText:e})}_setupTextWatcher(t){const e=this.editor,n=t.map((t=>({...t,pattern:RB(t.marker,t.minimumCharacters||0)}))),i=new ak(e.model,function(t){const e=e=>{const n=NB(t,e);if(!n)return!1;let i=0;0!==n.position&&(i=n.position-1);const r=e.substring(i);return n.pattern.test(r)};return e}(n));i.on("matched:data",((t,i)=>{const r=NB(n,i.text),o=e.model.document.selection.focus,a=e.model.createPositionAt(o.parent,r.position);if(function(t){const e=t.textNode&&t.textNode.hasAttribute("mention"),n=t.nodeBefore;return e||n&&n.is("$text")&&n.hasAttribute("mention")}(o)||function(t){const e=t.nodeAfter;return e&&e.is("$text")&&e.hasAttribute("mention")}(a))return void this._hideUIAndRemoveMarker();const s=function(t,e){let n=0;0!==t.position&&(n=t.position-1);const i=RB(t.marker,0),r=e.substring(n);return r.match(i)[2]}(r,i.text),c=r.marker.length+s.length,l=o.getShiftedBy(-c),u=o.getShiftedBy(-s.length),h=e.model.createRange(l,u);if($B(e)){const t=e.model.markers.get("mention");e.model.change((e=>{e.updateMarker(t,{range:h})}))}else e.model.change((t=>{t.addMarker("mention",{range:h,usingOperation:!1,affectsData:!1})}));this._requestFeedDebounced(r.marker,s)})),i.on("unmatched",(()=>{this._hideUIAndRemoveMarker()}));const r=e.commands.get("mention");return i.bind("isEnabled").to(r),i}_handleFeedResponse(t){const{feed:e,marker:n}=t;if(!$B(this.editor))return;this._items.clear();for(const t of e){const e="object"!=typeof t?{id:t,text:t}:t;this._items.add({item:e,marker:n})}const i=this.editor.model.markers.get("mention");this._items.length?this._showOrUpdateUI(i):this._hideUIAndRemoveMarker()}_showOrUpdateUI(t){this._isUIVisible?this._balloon.updatePosition(this._getBalloonPanelPositionData(t,this._mentionsView.position)):this._balloon.add({view:this._mentionsView,position:this._getBalloonPanelPositionData(t,this._mentionsView.position),singleViewMode:!0}),this._mentionsView.position=this._balloon.view.position,this._mentionsView.selectFirst()}_hideUIAndRemoveMarker(){this._balloon.hasView(this._mentionsView)&&this._balloon.remove(this._mentionsView),$B(this.editor)&&this.editor.model.change((t=>t.removeMarker("mention"))),this._mentionsView.position=void 0}_renderItem(t,e){const n=this.editor;let i,r=t.id;const o=this._getItemRenderer(e);if(o){const e=o(t);"string"!=typeof e?i=new IB(n.locale,e):r=e}if(!i){const t=new bf(n.locale);t.label=r,t.withText=!0,i=t}return i}_getBalloonPanelPositionData(t,e){const n=this.editor,i=n.editing,r=i.view.domConverter,o=i.mapper;return{target:()=>{let e=t.getRange();"$graveyard"==e.start.root.rootName&&(e=n.model.document.selection.getFirstRange());const i=o.toViewRange(e);return mr.getDomRangeRects(r.viewRangeToDom(i)).pop()},limiter:()=>{const t=this.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},positions:OB(e,n.locale.uiLanguageDirection)}}}function OB(t,e){const n={caret_se:t=>({top:t.bottom+3,left:t.right,name:"caret_se",config:{withArrow:!1}}),caret_ne:(t,e)=>({top:t.top-e.height-3,left:t.right,name:"caret_ne",config:{withArrow:!1}}),caret_sw:(t,e)=>({top:t.bottom+3,left:t.right-e.width,name:"caret_sw",config:{withArrow:!1}}),caret_nw:(t,e)=>({top:t.top-e.height-3,left:t.right-e.width,name:"caret_nw",config:{withArrow:!1}})};return Object.prototype.hasOwnProperty.call(n,t)?[n[t]]:"rtl"!==e?[n.caret_se,n.caret_sw,n.caret_ne,n.caret_nw]:[n.caret_sw,n.caret_se,n.caret_nw,n.caret_ne]}function NB(t,e){let n;for(const i of t){const t=e.lastIndexOf(i.marker);t>0&&!e.substring(t-1).match(i.pattern)||(!n||t>=n.position)&&(n={marker:i.marker,position:t,minimumCharacters:i.minimumCharacters,pattern:i.pattern})}return n}function RB(t,e){const n=0==e?"*":`{${e},}`,i=Jn.features.isRegExpUnicodePropertySupported?"\\p{Ps}\\p{Pi}\"'":"\\(\\[{\"'";t=t.replace(/[.*+?^${}()\-|[\]\\]/g,"\\$&");return new RegExp(`(?:^|[ ${i}])([${t}])(^=${n})$`,"u")}function FB(t){return e=>t.filter((t=>("string"==typeof t?t:String(t.id)).toLowerCase().includes(e.toLowerCase())))}function jB(t){return t&&1==t.length}function $B(t){return t.model.markers.has("mention")}var zB=n(9409),VB={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(zB.A,VB);zB.A.locals;class HB extends Oo{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new jo(t)),t.commands.add("outdent",new jo(t))}}class qB extends Oo{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,i="ltr"==e.uiLanguageDirection?Ld.indent:Ld.outdent,r="ltr"==e.uiLanguageDirection?Ld.outdent:Ld.indent;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),r)}_defineButton(t,e,n){const i=this.editor;i.ui.componentFactory.add(t,(()=>{const i=this._createButton(bf,t,e,n);return i.set({tooltip:!0}),i})),i.ui.componentFactory.add("menuBar:"+t,(()=>this._createButton(Kf,t,e,n)))}_createButton(t,e,n,i){const r=this.editor,o=r.commands.get(e),a=new t(r.locale);return a.set({label:n,icon:i}),a.bind("isEnabled").to(o,"isEnabled"),this.listenTo(a,"execute",(()=>{r.execute(e),r.editing.view.focus()})),a}}class UB extends Ro{_indentBehavior;constructor(t,e){super(t),this._indentBehavior=e}refresh(){const t=xo(this.editor.model.document.selection.getSelectedBlocks());t&&this._isIndentationChangeAllowed(t)?this.isEnabled=this._indentBehavior.checkEnabled(t.getAttribute("blockIndent")):this.isEnabled=!1}execute(){const t=this.editor.model,e=this._getBlocksToChange();t.change((t=>{for(const n of e){const e=n.getAttribute("blockIndent"),i=this._indentBehavior.getNextIndent(e);i?t.setAttribute("blockIndent",i,n):t.removeAttribute("blockIndent",n)}}))}_getBlocksToChange(){const t=this.editor.model.document.selection;return Array.from(t.getSelectedBlocks()).filter((t=>this._isIndentationChangeAllowed(t)))}_isIndentationChangeAllowed(t){const e=this.editor;if(!e.model.schema.checkAttribute(t,"blockIndent"))return!1;if(!e.plugins.has("ListUtils"))return!0;if(!this._indentBehavior.isForward)return!0;return!e.plugins.get("ListUtils").isListItemBlock(t)}}class GB{isForward;offset;unit;constructor(t){this.isForward="forward"===t.direction,this.offset=t.offset,this.unit=t.unit}checkEnabled(t){const e=parseFloat(t||"0");return this.isForward||e>0}getNextIndent(t){const e=parseFloat(t||"0");if(!(!t||t.endsWith(this.unit)))return this.isForward?this.offset+this.unit:void 0;const n=e+(this.isForward?this.offset:-this.offset);return n>0?n+this.unit:void 0}}class WB{isForward;classes;constructor(t){this.isForward="forward"===t.direction,this.classes=t.classes}checkEnabled(t){const e=this.classes.indexOf(t);return this.isForward?e<this.classes.length-1:e>=0}getNextIndent(t){const e=this.classes.indexOf(t),n=this.isForward?1:-1;return this.classes[e+n]}}const KB=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];class YB extends Ro{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!XB(t.schema,n))do{if(n=n.parent,!n)return}while(!XB(t.schema,n));t.change((t=>{t.setSelection(n,"in")}))}}function XB(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}const ZB=Yr("Ctrl+A");class QB extends Oo{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.t,n=t.editing.view.document;t.commands.add("selectAll",new YB(t)),this.listenTo(n,"keydown",((e,n)=>{Kr(n)===ZB&&(t.execute("selectAll"),n.preventDefault())})),t.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Select all"),keystroke:"CTRL+A"}]})}}class JB extends Oo{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",(()=>{const t=this._createButton(bf);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:selectAll",(()=>this._createButton(Kf)))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("selectAll"),r=new t(e.locale),o=n.t;return r.set({label:o("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A"}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",(()=>{e.execute("selectAll"),e.editing.view.focus()})),r}}class tM extends Oo{static get requires(){return[QB,JB]}static get pluginName(){return"SelectAll"}}class eM extends Ro{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=function(t,e,n){const i=function(t,e){const n=wy(t,e),i=n.start.parent;if(i.isEmpty&&!i.is("element","$root"))return i.parent;return i}(t,n);return e.checkChild(i,"horizontalLine")}(n,e,t)}execute(){const t=this.editor.model;t.change((e=>{const n=e.createElement("horizontalLine");t.insertObject(n,null,null,{setSelection:"after"})}))}}var nM=n(2626),iM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(nM.A,iM);nM.A.locals;class rM extends Oo{static get pluginName(){return"HorizontalLineEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,i=t.conversion;e.register("horizontalLine",{inheritAllFrom:"$blockObject"}),i.for("dataDowncast").elementToElement({model:"horizontalLine",view:(t,{writer:e})=>e.createEmptyElement("hr")}),i.for("editingDowncast").elementToStructure({model:"horizontalLine",view:(t,{writer:e})=>{const i=n("Horizontal line"),r=e.createContainerElement("div",null,e.createEmptyElement("hr"));return e.addClass("ck-horizontal-line",r),e.setCustomProperty("hr",!0,r),function(t,e,n){return e.setCustomProperty("horizontalLine",!0,t),fy(t,e,{label:n})}(r,e,i)}}),i.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),t.commands.add("horizontalLine",new eM(t))}}class oM extends Oo{static get pluginName(){return"HorizontalLineUI"}init(){const t=this.editor;t.ui.componentFactory.add("horizontalLine",(()=>{const t=this._createButton(bf);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:horizontalLine",(()=>this._createButton(Kf)))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("horizontalLine"),r=new t(e.locale),o=n.t;return r.set({label:o("Horizontal line"),icon:Ld.horizontalLine}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",(()=>{e.execute("horizontalLine"),e.editing.view.focus()})),r}}const aM="removeFormat";class sM extends Oo{static get pluginName(){return"RemoveFormatUI"}init(){const t=this.editor;t.ui.componentFactory.add(aM,(()=>{const t=this._createButton(bf);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add(`menuBar:${aM}`,(()=>this._createButton(Kf)))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get(aM),r=new t(e.locale),o=n.t;return r.set({label:o("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>'}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",(()=>{e.execute(aM),e.editing.view.focus()})),r}}class cM extends Ro{refresh(){const t=this.editor.model;this.isEnabled=!!xo(this._getFormattingItems(t.document.selection,t.schema))}execute(){const t=this.editor.model,e=t.schema;t.change((n=>{for(const i of this._getFormattingItems(t.document.selection,e))if(i.is("selection"))for(const t of this._getFormattingAttributes(i,e))n.removeSelectionAttribute(t);else{const t=n.createRangeOn(i);for(const r of this._getFormattingAttributes(i,e))n.removeAttribute(r,t)}}))}*_getFormattingItems(t,e){const n=t=>!!xo(this._getFormattingAttributes(t,e));for(const i of t.getRanges())for(const t of i.getItems())!e.isBlock(t)&&n(t)&&(yield t);for(const e of t.getSelectedBlocks())n(e)&&(yield e);n(t)&&(yield t)}*_getFormattingAttributes(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);t&&t.isFormatting&&(yield n)}}}class lM extends Oo{static get pluginName(){return"RemoveFormatEditing"}init(){const t=this.editor;t.commands.add("removeFormat",new cM(t))}}var uM=n(8868),hM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(uM.A,hM);uM.A.locals;class dM extends af{tiles;focusTracker;keystrokes;constructor(t){super(t),this.tiles=this.createCollection(),this.setTemplate({tag:"div",children:[{tag:"div",attributes:{class:["ck","ck-character-grid__tiles"]},children:this.tiles}],attributes:{class:["ck","ck-character-grid"]}}),this.focusTracker=new Eo,this.keystrokes=new To,uf({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.tiles,numberOfColumns:()=>Xn.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}createTile(t,e){const n=new bf(this.locale);return n.set({label:t,withText:!0,class:"ck-character-grid__tile"}),n.extendTemplate({attributes:{title:e},on:{mouseover:n.bindTemplate.to("mouseover"),focus:n.bindTemplate.to("focus")}}),n.on("mouseover",(()=>{this.fire("tileHover",{name:e,character:t})})),n.on("focus",(()=>{this.fire("tileFocus",{name:e,character:t})})),n.on("execute",(()=>{this.fire("execute",{name:e,character:t})})),n}render(){super.render();for(const t of this.tiles)this.focusTracker.add(t.element);this.tiles.on("change",((t,{added:e,removed:n})=>{if(e.length>0)for(const t of e)this.focusTracker.add(t.element);if(n.length>0)for(const t of n)this.focusTracker.remove(t.element)})),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.keystrokes.destroy()}focus(){this.tiles.first.focus()}}var fM=n(128),gM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(fM.A,gM);fM.A.locals;class pM extends af{constructor(t){super(t);const e=this.bindTemplate;this.set("character",null),this.set("name",null),this.bind("code").to(this,"character",mM),this.setTemplate({tag:"div",children:[{tag:"span",attributes:{class:["ck-character-info__name"]},children:[{text:e.to("name",(t=>t||""))}]},{tag:"span",attributes:{class:["ck-character-info__code"]},children:[{text:e.to("code")}]}],attributes:{class:["ck","ck-character-info"]}})}}function mM(t){if(null===t)return"";return"U+"+("0000"+t.codePointAt(0).toString(16)).slice(-4)}class bM extends af{items;focusTracker;keystrokes;_focusCycler;categoriesView;gridView;infoView;constructor(t,e,n,i){super(t),this.categoriesView=e,this.gridView=n,this.infoView=i,this.items=this.createCollection(),this.focusTracker=new Eo,this.keystrokes=new To,this._focusCycler=new _f({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",children:[this.categoriesView,this.gridView,this.infoView],attributes:{tabindex:"-1"}}),this.items.add(this.categoriesView),this.items.add(this.gridView)}render(){super.render(),this.focusTracker.add(this.categoriesView.element),this.focusTracker.add(this.gridView.element),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}var wM=n(4272),kM={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(wM.A,kM);wM.A.locals;class vM extends af{_groupNames;_dropdownView;constructor(t,e){super(t),this.set("currentGroupName",Array.from(e.entries())[0][0]),this._groupNames=e,this._dropdownView=new Tg(t,Op),this.setTemplate({tag:"div",attributes:{class:["ck","ck-character-categories"]},children:[this._dropdownView]})}render(){super.render(),this._setupDropdown()}focus(){this._dropdownView.focus()}_setupDropdown(){const t=new Ao;for(const[e,n]of this._groupNames){const i={type:"button",model:new pb({name:e,label:n,role:"menuitemradio",withText:!0})};i.model.bind("isOn").to(this,"currentGroupName",(t=>t===e)),t.add(i)}const e=(0,this.locale.t)("Category");this._dropdownView.set({label:e,isEmpty:!1}),this._dropdownView.fieldView.panelPosition="rtl"===this.locale.uiLanguageDirection?"se":"sw",this._dropdownView.fieldView.buttonView.set({withText:!0,tooltip:e,ariaLabel:e,ariaLabelledBy:void 0,isOn:!1}),this._dropdownView.fieldView.buttonView.bind("label").to(this,"currentGroupName",(t=>this._groupNames.get(t))),this._dropdownView.fieldView.on("execute",(({source:t})=>{this.currentGroupName=t.name})),Dp(this._dropdownView.fieldView,t,{ariaLabel:e,role:"menu"})}}const yM="All";class _M extends Oo{static get pluginName(){return"SpecialCharactersArrows"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Arrows",[{title:e("leftwards simple arrow"),character:"←"},{title:e("rightwards simple arrow"),character:"→"},{title:e("upwards simple arrow"),character:"↑"},{title:e("downwards simple arrow"),character:"↓"},{title:e("leftwards double arrow"),character:"⇐"},{title:e("rightwards double arrow"),character:"⇒"},{title:e("upwards double arrow"),character:"⇑"},{title:e("downwards double arrow"),character:"⇓"},{title:e("leftwards dashed arrow"),character:"⇠"},{title:e("rightwards dashed arrow"),character:"⇢"},{title:e("upwards dashed arrow"),character:"⇡"},{title:e("downwards dashed arrow"),character:"⇣"},{title:e("leftwards arrow to bar"),character:"⇤"},{title:e("rightwards arrow to bar"),character:"⇥"},{title:e("upwards arrow to bar"),character:"⤒"},{title:e("downwards arrow to bar"),character:"⤓"},{title:e("up down arrow with base"),character:"↨"},{title:e("back with leftwards arrow above"),character:"🔙"},{title:e("end with leftwards arrow above"),character:"🔚"},{title:e("on with exclamation mark with left right arrow above"),character:"🔛"},{title:e("soon with rightwards arrow above"),character:"🔜"},{title:e("top with upwards arrow above"),character:"🔝"}],{label:e("Arrows")})}}class CM extends Oo{static get pluginName(){return"SpecialCharactersText"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Text",[{character:"",title:e("Single left-pointing angle quotation mark")},{character:"",title:e("Single right-pointing angle quotation mark")},{character:"«",title:e("Left-pointing double angle quotation mark")},{character:"»",title:e("Right-pointing double angle quotation mark")},{character:"",title:e("Left single quotation mark")},{character:"",title:e("Right single quotation mark")},{character:"“",title:e("Left double quotation mark")},{character:"”",title:e("Right double quotation mark")},{character:"",title:e("Single low-9 quotation mark")},{character:"„",title:e("Double low-9 quotation mark")},{character:"¡",title:e("Inverted exclamation mark")},{character:"¿",title:e("Inverted question mark")},{character:"‥",title:e("Two dot leader")},{character:"…",title:e("Horizontal ellipsis")},{character:"‡",title:e("Double dagger")},{character:"‰",title:e("Per mille sign")},{character:"‱",title:e("Per ten thousand sign")},{character:"‼",title:e("Double exclamation mark")},{character:"⁈",title:e("Question exclamation mark")},{character:"⁉",title:e("Exclamation question mark")},{character:"⁇",title:e("Double question mark")},{character:"©",title:e("Copyright sign")},{character:"®",title:e("Registered sign")},{character:"™",title:e("Trade mark sign")},{character:"§",title:e("Section sign")},{character:"¶",title:e("Paragraph sign")},{character:"⁋",title:e("Reversed paragraph sign")}],{label:e("Text")})}}class AM extends Oo{static get pluginName(){return"SpecialCharactersMathematical"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Mathematical",[{character:"<",title:e("Less-than sign")},{character:">",title:e("Greater-than sign")},{character:"≤",title:e("Less-than or equal to")},{character:"≥",title:e("Greater-than or equal to")},{character:"",title:e("En dash")},{character:"—",title:e("Em dash")},{character:"¯",title:e("Macron")},{character:"‾",title:e("Overline")},{character:"°",title:e("Degree sign")},{character:"",title:e("Minus sign")},{character:"±",title:e("Plus-minus sign")},{character:"÷",title:e("Division sign")},{character:"",title:e("Fraction slash")},{character:"×",title:e("Multiplication sign")},{character:"ƒ",title:e("Latin small letter f with hook")},{character:"∫",title:e("Integral")},{character:"∑",title:e("N-ary summation")},{character:"∞",title:e("Infinity")},{character:"√",title:e("Square root")},{character:"",title:e("Tilde operator")},{character:"≅",title:e("Approximately equal to")},{character:"≈",title:e("Almost equal to")},{character:"≠",title:e("Not equal to")},{character:"≡",title:e("Identical to")},{character:"∈",title:e("Element of")},{character:"∉",title:e("Not an element of")},{character:"∋",title:e("Contains as member")},{character:"∏",title:e("N-ary product")},{character:"∧",title:e("Logical and")},{character:"",title:e("Logical or")},{character:"¬",title:e("Not sign")},{character:"∩",title:e("Intersection")},{character:"",title:e("Union")},{character:"∂",title:e("Partial differential")},{character:"∀",title:e("For all")},{character:"∃",title:e("There exists")},{character:"∅",title:e("Empty set")},{character:"∇",title:e("Nabla")},{character:"",title:e("Asterisk operator")},{character:"∝",title:e("Proportional to")},{character:"∠",title:e("Angle")},{character:"¼",title:e("Vulgar fraction one quarter")},{character:"½",title:e("Vulgar fraction one half")},{character:"¾",title:e("Vulgar fraction three quarters")}],{label:e("Mathematical")})}}class xM extends Oo{static get pluginName(){return"SpecialCharactersLatin"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Latin",[{character:"Ā",title:e("Latin capital letter a with macron")},{character:"ā",title:e("Latin small letter a with macron")},{character:"Ă",title:e("Latin capital letter a with breve")},{character:"ă",title:e("Latin small letter a with breve")},{character:"Ą",title:e("Latin capital letter a with ogonek")},{character:"ą",title:e("Latin small letter a with ogonek")},{character:"Ć",title:e("Latin capital letter c with acute")},{character:"ć",title:e("Latin small letter c with acute")},{character:"Ĉ",title:e("Latin capital letter c with circumflex")},{character:"ĉ",title:e("Latin small letter c with circumflex")},{character:"Ċ",title:e("Latin capital letter c with dot above")},{character:"ċ",title:e("Latin small letter c with dot above")},{character:"Č",title:e("Latin capital letter c with caron")},{character:"č",title:e("Latin small letter c with caron")},{character:"Ď",title:e("Latin capital letter d with caron")},{character:"ď",title:e("Latin small letter d with caron")},{character:"Đ",title:e("Latin capital letter d with stroke")},{character:"đ",title:e("Latin small letter d with stroke")},{character:"Ē",title:e("Latin capital letter e with macron")},{character:"ē",title:e("Latin small letter e with macron")},{character:"Ĕ",title:e("Latin capital letter e with breve")},{character:"ĕ",title:e("Latin small letter e with breve")},{character:"Ė",title:e("Latin capital letter e with dot above")},{character:"ė",title:e("Latin small letter e with dot above")},{character:"Ę",title:e("Latin capital letter e with ogonek")},{character:"ę",title:e("Latin small letter e with ogonek")},{character:"Ě",title:e("Latin capital letter e with caron")},{character:"ě",title:e("Latin small letter e with caron")},{character:"Ĝ",title:e("Latin capital letter g with circumflex")},{character:"ĝ",title:e("Latin small letter g with circumflex")},{character:"Ğ",title:e("Latin capital letter g with breve")},{character:"ğ",title:e("Latin small letter g with breve")},{character:"Ġ",title:e("Latin capital letter g with dot above")},{character:"ġ",title:e("Latin small letter g with dot above")},{character:"Ģ",title:e("Latin capital letter g with cedilla")},{character:"ģ",title:e("Latin small letter g with cedilla")},{character:"Ĥ",title:e("Latin capital letter h with circumflex")},{character:"ĥ",title:e("Latin small letter h with circumflex")},{character:"Ħ",title:e("Latin capital letter h with stroke")},{character:"ħ",title:e("Latin small letter h with stroke")},{character:"Ĩ",title:e("Latin capital letter i with tilde")},{character:"ĩ",title:e("Latin small letter i with tilde")},{character:"Ī",title:e("Latin capital letter i with macron")},{character:"ī",title:e("Latin small letter i with macron")},{character:"Ĭ",title:e("Latin capital letter i with breve")},{character:"ĭ",title:e("Latin small letter i with breve")},{character:"Į",title:e("Latin capital letter i with ogonek")},{character:"į",title:e("Latin small letter i with ogonek")},{character:"İ",title:e("Latin capital letter i with dot above")},{character:"ı",title:e("Latin small letter dotless i")},{character:"IJ",title:e("Latin capital ligature ij")},{character:"ij",title:e("Latin small ligature ij")},{character:"Ĵ",title:e("Latin capital letter j with circumflex")},{character:"ĵ",title:e("Latin small letter j with circumflex")},{character:"Ķ",title:e("Latin capital letter k with cedilla")},{character:"ķ",title:e("Latin small letter k with cedilla")},{character:"ĸ",title:e("Latin small letter kra")},{character:"Ĺ",title:e("Latin capital letter l with acute")},{character:"ĺ",title:e("Latin small letter l with acute")},{character:"Ļ",title:e("Latin capital letter l with cedilla")},{character:"ļ",title:e("Latin small letter l with cedilla")},{character:"Ľ",title:e("Latin capital letter l with caron")},{character:"ľ",title:e("Latin small letter l with caron")},{character:"Ŀ",title:e("Latin capital letter l with middle dot")},{character:"ŀ",title:e("Latin small letter l with middle dot")},{character:"Ł",title:e("Latin capital letter l with stroke")},{character:"ł",title:e("Latin small letter l with stroke")},{character:"Ń",title:e("Latin capital letter n with acute")},{character:"ń",title:e("Latin small letter n with acute")},{character:"Ņ",title:e("Latin capital letter n with cedilla")},{character:"ņ",title:e("Latin small letter n with cedilla")},{character:"Ň",title:e("Latin capital letter n with caron")},{character:"ň",title:e("Latin small letter n with caron")},{character:"ʼn",title:e("Latin small letter n preceded by apostrophe")},{character:"Ŋ",title:e("Latin capital letter eng")},{character:"ŋ",title:e("Latin small letter eng")},{character:"Ō",title:e("Latin capital letter o with macron")},{character:"ō",title:e("Latin small letter o with macron")},{character:"Ŏ",title:e("Latin capital letter o with breve")},{character:"ŏ",title:e("Latin small letter o with breve")},{character:"Ő",title:e("Latin capital letter o with double acute")},{character:"ő",title:e("Latin small letter o with double acute")},{character:"Œ",title:e("Latin capital ligature oe")},{character:"œ",title:e("Latin small ligature oe")},{character:"Ŕ",title:e("Latin capital letter r with acute")},{character:"ŕ",title:e("Latin small letter r with acute")},{character:"Ŗ",title:e("Latin capital letter r with cedilla")},{character:"ŗ",title:e("Latin small letter r with cedilla")},{character:"Ř",title:e("Latin capital letter r with caron")},{character:"ř",title:e("Latin small letter r with caron")},{character:"Ś",title:e("Latin capital letter s with acute")},{character:"ś",title:e("Latin small letter s with acute")},{character:"Ŝ",title:e("Latin capital letter s with circumflex")},{character:"ŝ",title:e("Latin small letter s with circumflex")},{character:"Ş",title:e("Latin capital letter s with cedilla")},{character:"ş",title:e("Latin small letter s with cedilla")},{character:"Š",title:e("Latin capital letter s with caron")},{character:"š",title:e("Latin small letter s with caron")},{character:"Ţ",title:e("Latin capital letter t with cedilla")},{character:"ţ",title:e("Latin small letter t with cedilla")},{character:"Ť",title:e("Latin capital letter t with caron")},{character:"ť",title:e("Latin small letter t with caron")},{character:"Ŧ",title:e("Latin capital letter t with stroke")},{character:"ŧ",title:e("Latin small letter t with stroke")},{character:"Ũ",title:e("Latin capital letter u with tilde")},{character:"ũ",title:e("Latin small letter u with tilde")},{character:"Ū",title:e("Latin capital letter u with macron")},{character:"ū",title:e("Latin small letter u with macron")},{character:"Ŭ",title:e("Latin capital letter u with breve")},{character:"ŭ",title:e("Latin small letter u with breve")},{character:"Ů",title:e("Latin capital letter u with ring above")},{character:"ů",title:e("Latin small letter u with ring above")},{character:"Ű",title:e("Latin capital letter u with double acute")},{character:"ű",title:e("Latin small letter u with double acute")},{character:"Ų",title:e("Latin capital letter u with ogonek")},{character:"ų",title:e("Latin small letter u with ogonek")},{character:"Ŵ",title:e("Latin capital letter w with circumflex")},{character:"ŵ",title:e("Latin small letter w with circumflex")},{character:"Ŷ",title:e("Latin capital letter y with circumflex")},{character:"ŷ",title:e("Latin small letter y with circumflex")},{character:"Ÿ",title:e("Latin capital letter y with diaeresis")},{character:"Ź",title:e("Latin capital letter z with acute")},{character:"ź",title:e("Latin small letter z with acute")},{character:"Ż",title:e("Latin capital letter z with dot above")},{character:"ż",title:e("Latin small letter z with dot above")},{character:"Ž",title:e("Latin capital letter z with caron")},{character:"ž",title:e("Latin small letter z with caron")},{character:"ſ",title:e("Latin small letter long s")}],{label:e("Latin")})}}class EM extends Oo{static get pluginName(){return"SpecialCharactersCurrency"}init(){const t=this.editor,e=t.t;t.plugins.get("SpecialCharacters").addItems("Currency",[{character:"$",title:e("Dollar sign")},{character:"€",title:e("Euro sign")},{character:"¥",title:e("Yen sign")},{character:"£",title:e("Pound sign")},{character:"¢",title:e("Cent sign")},{character:"₠",title:e("Euro-currency sign")},{character:"₡",title:e("Colon sign")},{character:"₢",title:e("Cruzeiro sign")},{character:"₣",title:e("French franc sign")},{character:"₤",title:e("Lira sign")},{character:"¤",title:e("Currency sign")},{character:"₿",title:e("Bitcoin sign")},{character:"₥",title:e("Mill sign")},{character:"₦",title:e("Naira sign")},{character:"₧",title:e("Peseta sign")},{character:"₨",title:e("Rupee sign")},{character:"₩",title:e("Won sign")},{character:"₪",title:e("New sheqel sign")},{character:"₫",title:e("Dong sign")},{character:"₭",title:e("Kip sign")},{character:"₮",title:e("Tugrik sign")},{character:"₯",title:e("Drachma sign")},{character:"₰",title:e("German penny sign")},{character:"₱",title:e("Peso sign")},{character:"₲",title:e("Guarani sign")},{character:"₳",title:e("Austral sign")},{character:"₴",title:e("Hryvnia sign")},{character:"₵",title:e("Cedi sign")},{character:"₶",title:e("Livre tournois sign")},{character:"₷",title:e("Spesmilo sign")},{character:"₸",title:e("Tenge sign")},{character:"₹",title:e("Indian rupee sign")},{character:"₺",title:e("Turkish lira sign")},{character:"₻",title:e("Nordic mark sign")},{character:"₼",title:e("Manat sign")},{character:"₽",title:e("Ruble sign")}],{label:e("Currency")})}}const TM=function(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n};const SM=Pb({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});var DM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,IM=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const BM=function(t){return(t=ya(t))&&t.replace(DM,SM).replace(IM,"")};var MM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;const PM=function(t){return t.match(MM)||[]};var LM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;const OM=function(t){return LM.test(t)};var NM="\\ud800-\\udfff",RM="\\u2700-\\u27bf",FM="a-z\\xdf-\\xf6\\xf8-\\xff",jM="A-Z\\xc0-\\xd6\\xd8-\\xde",$M="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zM="["+$M+"]",VM="\\d+",HM="["+RM+"]",qM="["+FM+"]",UM="[^"+NM+$M+VM+RM+FM+jM+"]",GM="(?:\\ud83c[\\udde6-\\uddff]){2}",WM="[\\ud800-\\udbff][\\udc00-\\udfff]",KM="["+jM+"]",YM="(?:"+qM+"|"+UM+")",XM="(?:"+KM+"|"+UM+")",ZM="(?:['](?:d|ll|m|re|s|t|ve))?",QM="(?:['](?:D|LL|M|RE|S|T|VE))?",JM="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",tP="[\\ufe0e\\ufe0f]?",eP=tP+JM+("(?:\\u200d(?:"+["[^"+NM+"]",GM,WM].join("|")+")"+tP+JM+")*"),nP="(?:"+[HM,GM,WM].join("|")+")"+eP,iP=RegExp([KM+"?"+qM+"+"+ZM+"(?="+[zM,KM,"$"].join("|")+")",XM+"+"+QM+"(?="+[zM,KM+YM,"$"].join("|")+")",KM+"?"+YM+"+"+ZM,KM+"+"+QM,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",VM,nP].join("|"),"g");const rP=function(t){return t.match(iP)||[]};const oP=function(t,e,n){return t=ya(t),void 0===(e=n?void 0:e)?OM(t)?rP(t):PM(t):t.match(e)||[]};var aP=RegExp("[']","g");const sP=function(t){return function(e){return TM(oP(BM(e).replace(aP,"")),t,"")}}((function(t,e,n){return t+(n?" ":"")+TA(e)}));function cP(t,e,n,i){e&&function(t,e,n){if(e.attributes)for(const[i]of Object.entries(e.attributes))t.removeAttribute(i,n);if(e.styles)for(const i of Object.keys(e.styles))t.removeStyle(i,n);e.classes&&t.removeClass(e.classes,n)}(t,e,i),n&&lP(t,n,i)}function lP(t,e,n){if(e.attributes)for(const[i,r]of Object.entries(e.attributes))t.setAttribute(i,r,n);e.styles&&t.setStyle(e.styles,n),e.classes&&t.addClass(e.classes,n)}function uP(t,e,n,i,r){const o=e.getAttribute(n),a={};for(const t of["attributes","styles","classes"]){if(t!=i){o&&o[t]&&(a[t]=o[t]);continue}if("classes"==i){const e=new Set(o&&o.classes||[]);r(e),e.size&&(a[t]=Array.from(e));continue}const e=new Map(Object.entries(o&&o[t]||{}));r(e),e.size&&(a[t]=Object.fromEntries(e))}Object.keys(a).length?e.is("documentSelection")?t.setSelectionAttribute(n,a):t.setAttribute(n,a,e):o&&(e.is("documentSelection")?t.removeSelectionAttribute(n):t.removeAttribute(n,e))}function hP(t){return`html${e=t,sP(e).replace(/ /g,"")}Attributes`;var e}function dP({model:t}){return(e,n)=>n.writer.createElement(t,{htmlContent:e.getCustomProperty("$rawContent")})}function fP(t,{view:e,isInline:n}){const i=t.t;return(t,{writer:r})=>{const o=i("HTML object"),a=gP(e,t,r),s=t.getAttribute(hP(e));r.addClass("html-object-embed__content",a),s&&lP(r,s,a);return fy(r.createContainerElement(n?"span":"div",{class:"html-object-embed","data-html-object-embed-label":o},a),r,{label:o})}}function gP(t,e,n){return n.createRawElement(t,null,((t,n)=>{n.setContentOf(t,e.getAttribute("htmlContent"))}))}function pP({view:t,model:e,allowEmpty:n},i){return e=>{e.on(`element:${t}`,((t,e,o)=>{let a=i.processViewAttributes(e.viewItem,o);if(a||o.consumable.test(e.viewItem,{name:!0})){if(a=a||{},o.consumable.consume(e.viewItem,{name:!0}),e.modelRange||(e=Object.assign(e,o.convertChildren(e.viewItem,e.modelCursor))),n&&e.modelRange.isCollapsed&&Object.keys(a).length){const t=o.writer.createElement("htmlEmptyElement");if(!o.safeInsert(t,e.modelCursor))return;const n=o.getSplitParts(t);return e.modelRange=o.writer.createRange(e.modelRange.start,o.writer.createPositionAfter(n[n.length-1])),o.updateConversionResult(t,e),void r(t,a,o)}for(const t of e.modelRange.getItems())r(t,a,o)}}),{priority:"low"})};function r(t,n,i){if(i.schema.checkAttribute(t,e)){const r=function(t,e){const n=Pc(t);let i="attributes";for(i in e)n[i]="classes"==i?Array.from(new Set([...t[i]||[],...e[i]])):{...t[i],...e[i]};return n}(n,t.getAttribute(e)||{});i.writer.setAttribute(e,r,t)}}}function mP({model:t,view:e},n){return(i,{writer:r,consumable:o})=>{if(!i.hasAttribute(t))return null;const a=r.createContainerElement(e),s=i.getAttribute(t);return o.consume(i,`attribute:${t}`),lP(r,s,a),a.getFillerOffset=()=>null,n?fy(a,r):a}}function bP({priority:t,view:e}){return(n,i)=>{if(!n)return;const{writer:r}=i,o=r.createAttributeElement(e,null,{priority:t});return lP(r,n,o),o}}function wP({view:t},e){return n=>{n.on(`element:${t}`,((t,n,i)=>{if(!n.modelRange||n.modelRange.isCollapsed)return;const r=e.processViewAttributes(n.viewItem,i);r&&i.writer.setAttribute(hP(n.viewItem.name),r,n.modelRange)}),{priority:"low"})}}function kP({view:t,model:e}){return n=>{n.on(`attribute:${hP(t)}:${e}`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:r}=e;cP(n.writer,i,r,n.mapper.toViewElement(e.item))}))}}const vP=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"tableColumnGroup",view:"colgroup"},{model:"tableColumn",view:"col"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6","$text"],allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowIn:["$root","$container"],allowChildren:["paragraph","htmlP","htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDivDl",view:"div",modelSchema:{allowChildren:["htmlDt","htmlDd"],allowIn:"htmlDl"}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd","htmlDivDl"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],yP=[{model:"htmlLiAttributes",view:"li",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlOlAttributes",view:"ol",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlUlAttributes",view:"ul",appliesToBlock:!0,coupledAttribute:"listItemId"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"table"},{model:"htmlTheadAttributes",view:"thead",appliesToBlock:"table"},{model:"htmlTbodyAttributes",view:"tbody",appliesToBlock:"table"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"imageBlock"},{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref"},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],allowAttributesOf:"$inlineObject",isInline:!0}}];const _P=wo((function(t,e,n,i){ao(t,e,n,i)}));class CP extends Oo{_definitions=[];static get pluginName(){return"DataSchema"}init(){for(const t of vP)this.registerBlockElement(t);for(const t of yP)this.registerInlineElement(t)}registerBlockElement(t){this._definitions.push({...t,isBlock:!0})}registerInlineElement(t){this._definitions.push({...t,isInline:!0})}extendBlockElement(t){this._extendDefinition({...t,isBlock:!0})}extendInlineElement(t){this._extendDefinition({...t,isInline:!0})}getDefinitionsForView(t,e=!1){const n=new Set;for(const i of this._getMatchingViewDefinitions(t)){if(e)for(const t of this._getReferences(i.model))n.add(t);n.add(i)}return n}getDefinitionsForModel(t){return this._definitions.filter((e=>e.model==t))}_getMatchingViewDefinitions(t){return this._definitions.filter((e=>e.view&&function(t,e){if("string"==typeof t)return t===e;if(t instanceof RegExp)return t.test(e);return!1}(t,e.view)))}*_getReferences(t){const e=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"],n=this._definitions.filter((e=>e.model==t));for(const{modelSchema:i}of n)if(i)for(const n of e)for(const e of Jr(i[n]||[])){const n=this._definitions.filter((t=>t.model==e));for(const i of n)e!==t&&(yield*this._getReferences(i.model),yield i)}}_extendDefinition(t){const e=Array.from(this._definitions.entries()).filter((([,e])=>e.model==t.model));if(0!=e.length)for(const[n,i]of e)this._definitions[n]=_P({},i,t,((t,e)=>Array.isArray(t)?t.concat(e):void 0));else this._definitions.push(t)}}var AP=n(8914),xP={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(AP.A,xP);AP.A.locals;class EP extends Oo{_dataSchema;_allowedAttributes;_disallowedAttributes;_allowedElements;_disallowedElements;_dataInitialized;_coupledAttributes;constructor(t){super(t),this._dataSchema=t.plugins.get("DataSchema"),this._allowedAttributes=new aa,this._disallowedAttributes=new aa,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerCoupledAttributesPostFixer(),this._registerAssociatedHtmlAttributesPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[CP,Ny]}loadAllowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,n=BP(e);this.allowElement(t),n.forEach((t=>this.allowAttributes(t)))}}loadDisallowedConfig(t){for(const e of t){const t=e.name||/[\s\S]+/,n=BP(e);0==n.length?this.disallowElement(t):n.forEach((t=>this.disallowAttributes(t)))}}loadAllowedEmptyElementsConfig(t){for(const e of t)this.allowEmptyElement(e)}allowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))this._addAllowedElement(e),this._coupledAttributes=null}disallowElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!1))this._disallowedElements.add(e.view)}allowEmptyElement(t){for(const e of this._dataSchema.getDefinitionsForView(t,!0))e.isInline&&this._dataSchema.extendInlineElement({...e,allowEmpty:!0})}allowAttributes(t){this._allowedAttributes.add(t)}disallowAttributes(t){this._disallowedAttributes.add(t)}processViewAttributes(t,e){const{consumable:n}=e;return TP(t,this._disallowedAttributes,n),function(t,{attributes:e,classes:n,styles:i}){if(!e.length&&!n.length&&!i.length)return null;return{...e.length&&{attributes:SP(t,e)},...i.length&&{styles:DP(t,i)},...n.length&&{classes:n}}}(t,TP(t,this._allowedAttributes,n))}_addAllowedElement(t){if(!this._allowedElements.has(t)){if(this._allowedElements.add(t),"appliesToBlock"in t&&"string"==typeof t.appliesToBlock)for(const e of this._dataSchema.getDefinitionsForModel(t.appliesToBlock))e.isBlock&&this._addAllowedElement(e);this._dataInitialized&&this.editor.data.once("set",(()=>{this._fireRegisterEvent(t)}),{priority:mi.highest+1})}}_registerElementsAfterInit(){this.editor.data.on("init",(()=>{this._dataInitialized=!0;for(const t of this._allowedElements)this._fireRegisterEvent(t)}),{priority:mi.highest+1})}_registerElementHandlers(){this.on("register",((t,e)=>{const n=this.editor.model.schema;if(e.isObject&&!n.isRegistered(e.model))this._registerObjectElement(e);else if(e.isBlock)this._registerBlockElement(e);else{if(!e.isInline)throw new wi("data-filter-invalid-definition",null,e);this._registerInlineElement(e)}t.stop()}),{priority:"lowest"})}_registerCoupledAttributesPostFixer(){const t=this.editor.model,e=t.document.selection;t.document.registerPostFixer((e=>{const n=t.document.differ.getChanges();let i=!1;const r=this._getCoupledAttributesMap();for(const t of n){if("attribute"!=t.type||null!==t.attributeNewValue)continue;const n=r.get(t.attributeKey);if(n)for(const{item:r}of t.range.getWalker())for(const t of n)r.hasAttribute(t)&&(e.removeAttribute(t,r),i=!0)}return i})),this.listenTo(e,"change:attribute",((n,{attributeKeys:i})=>{const r=new Set,o=this._getCoupledAttributesMap();for(const t of i){if(e.hasAttribute(t))continue;const n=o.get(t);if(n)for(const t of n)e.hasAttribute(t)&&r.add(t)}0!=r.size&&t.change((t=>{for(const e of r)t.removeSelectionAttribute(e)}))}))}_registerAssociatedHtmlAttributesPostFixer(){const t=this.editor.model;t.document.registerPostFixer((e=>{const n=t.document.differ.getChanges();let i=!1;for(const r of n)if("insert"===r.type&&"$text"!==r.name)for(const n of r.attributes.keys())n.startsWith("html")&&n.endsWith("Attributes")&&(t.schema.checkAttribute(r.name,n)||(e.removeAttribute(n,r.position.nodeAfter),i=!0));return i}))}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const t of this._allowedElements)if(t.coupledAttribute&&t.model){const e=this._coupledAttributes.get(t.coupledAttribute);e?e.push(t.model):this._coupledAttributes.set(t.coupledAttribute,[t.model])}return this._coupledAttributes}_fireRegisterEvent(t){t.view&&this._disallowedElements.has(t.view)||this.fire(t.view?`register:${t.view}`:"register",t)}_registerObjectElement(t){const e=this.editor,n=e.model.schema,i=e.conversion,{view:r,model:o}=t;n.register(o,t.modelSchema),r&&(n.extend(t.model,{allowAttributes:[hP(r),"htmlContent"]}),e.data.registerRawContentMatcher({name:r}),i.for("upcast").elementToElement({view:r,model:dP(t),converterPriority:mi.low+2}),i.for("upcast").add(wP(t,this)),i.for("editingDowncast").elementToStructure({model:{name:o,attributes:[hP(r)]},view:fP(e,t)}),i.for("dataDowncast").elementToElement({model:o,view:(t,{writer:e})=>gP(r,t,e)}),i.for("dataDowncast").add(kP(t)))}_registerBlockElement(t){const e=this.editor,n=e.model.schema,i=e.conversion,{view:r,model:o}=t;if(!n.isRegistered(t.model)){if(n.register(t.model,t.modelSchema),!r)return;i.for("upcast").elementToElement({model:o,view:r,converterPriority:mi.low+2}),i.for("downcast").elementToElement({model:o,view:r})}r&&(n.extend(t.model,{allowAttributes:hP(r)}),i.for("upcast").add(wP(t,this)),i.for("downcast").add(kP(t)))}_registerInlineElement(t){const e=this.editor,n=e.model.schema,i=e.conversion,r=t.model;t.appliesToBlock||(n.extend("$text",{allowAttributes:r}),t.attributeProperties&&n.setAttributeProperties(r,t.attributeProperties),i.for("upcast").add(pP(t,this)),i.for("downcast").attributeToElement({model:r,view:bP(t)}),t.allowEmpty&&(n.setAttributeProperties(r,{copyFromObject:!1}),n.isRegistered("htmlEmptyElement")||n.register("htmlEmptyElement",{inheritAllFrom:"$inlineObject"}),e.data.htmlProcessor.domConverter.registerInlineObjectMatcher((e=>e.name==t.view&&e.isEmpty&&Array.from(e.getAttributeKeys()).length?{name:!0}:null)),i.for("editingDowncast").elementToElement({model:"htmlEmptyElement",view:mP(t,!0)}),i.for("dataDowncast").elementToElement({model:"htmlEmptyElement",view:mP(t)})))}}function TP(t,e,n){const i=e.matchAll(t)||[],r=t.document.stylesProcessor;return i.reduce(((e,{match:i})=>{for(const o of i.styles||[]){const i=r.getRelatedStyles(o).filter((t=>t.split("-").length>o.split("-").length)).sort(((t,e)=>e.split("-").length-t.split("-").length));for(const r of i)n.consume(t,{styles:[r]})&&e.styles.push(r);n.consume(t,{styles:[o]})&&e.styles.push(o)}for(const r of i.classes||[])n.consume(t,{classes:[r]})&&e.classes.push(r);for(const r of i.attributes||[])n.consume(t,{attributes:[r]})&&e.attributes.push(r);return e}),{attributes:[],classes:[],styles:[]})}function SP(t,e){const n={};for(const i of e){const e=t.getAttribute(i);void 0!==e&&Tr(i)&&(n[i]=e)}return n}function DP(t,e){const n=new Pa(t.document.stylesProcessor);for(const i of e){const e=t.getStyle(i);void 0!==e&&n.set(i,e)}return Object.fromEntries(n.getStylesEntries())}function IP(t,e){const{name:n}=t,i=t[e];return q(i)?Object.entries(i).map((([t,i])=>({name:n,[e]:{[t]:i}}))):Array.isArray(i)?i.map((t=>({name:n,[e]:[t]}))):[t]}function BP(t){const{name:e,attributes:n,classes:i,styles:r}=t,o=[];return n&&o.push(...IP({name:e,attributes:n},"attributes")),i&&o.push(...IP({name:e,classes:i},"classes")),r&&o.push(...IP({name:e,styles:r},"styles")),o}class MP extends Oo{static get requires(){return[EP]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const t=this.editor.plugins.get(EP);t.on("register:pre",((e,n)=>{if("codeBlock"!==n.model)return;const i=this.editor,r=i.model.schema,o=i.conversion;r.extend("codeBlock",{allowAttributes:["htmlPreAttributes","htmlContentAttributes"]}),o.for("upcast").add(function(t){return e=>{e.on("element:code",((e,n,i)=>{const r=n.viewItem,o=r.parent;function a(e,r){const o=t.processViewAttributes(e,i);o&&i.writer.setAttribute(r,o,n.modelRange)}o&&o.is("element","pre")&&(a(o,"htmlPreAttributes"),a(r,"htmlContentAttributes"))}),{priority:"low"})}}(t)),o.for("downcast").add((t=>{t.on("attribute:htmlPreAttributes:codeBlock",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:r}=e,o=n.mapper.toViewElement(e.item).parent;cP(n.writer,i,r,o)})),t.on("attribute:htmlContentAttributes:codeBlock",((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:r}=e,o=n.mapper.toViewElement(e.item);cP(n.writer,i,r,o)}))})),e.stop()}))}}class PP extends Oo{static get requires(){return[EP]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(EP).on("register",((t,e)=>{const n=e,i=this.editor,r=i.model.schema,o=i.conversion;if(!n.paragraphLikeModel)return;if(r.isRegistered(n.model)||r.isRegistered(n.paragraphLikeModel))return;const a={model:n.paragraphLikeModel,view:n.view};r.register(n.model,n.modelSchema),r.register(a.model,{inheritAllFrom:"$block"}),o.for("upcast").elementToElement({view:n.view,model:(t,{writer:e})=>this._hasBlockContent(t)?e.createElement(n.model):e.createElement(a.model),converterPriority:mi.low+.5}),o.for("downcast").elementToElement({view:n.view,model:n.model}),this._addAttributeConversion(n),o.for("downcast").elementToElement({view:a.view,model:a.model}),this._addAttributeConversion(a),t.stop()}))}_hasBlockContent(t){const e=this.editor.editing.view,n=e.domConverter.blockElements;for(const i of e.createRangeIn(t).getItems())if(i.is("element")&&n.includes(i.name))return!0;return!1}_addAttributeConversion(t){const e=this.editor,n=e.conversion,i=e.plugins.get(EP);e.model.schema.extend(t.model,{allowAttributes:hP(t.view)}),n.for("upcast").add(wP(t,i)),n.for("downcast").add(kP(t))}}class LP extends Oo{static get requires(){return[CP,dv]}static get pluginName(){return"HeadingElementSupport"}init(){const t=this.editor;if(!t.plugins.has("HeadingEditing"))return;const e=t.config.get("heading.options");this.registerHeadingElements(t,e)}registerHeadingElements(t,e){const n=t.plugins.get(CP),i=[];for(const t of e)"model"in t&&"view"in t&&(n.registerBlockElement({view:t.view,model:t.model}),i.push(t.model));n.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:i}}),n.extendBlockElement({model:"htmlSummary",modelSchema:{allowChildren:i}})}}function OP(t,e,n){const i=t.createRangeOn(e);for(const{item:t}of i.getWalker())if(t.is("element",n))return t}class NP extends Oo{static get requires(){return[EP]}static get pluginName(){return"ImageElementSupport"}init(){const t=this.editor;if(!t.plugins.has("ImageInlineEditing")&&!t.plugins.has("ImageBlockEditing"))return;const e=t.model.schema,n=t.conversion,i=t.plugins.get(EP);i.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,i)=>{const r=n.viewItem;if(!n.modelRange||!r.hasClass("image"))return;const o=t.processViewAttributes(r,i);o&&i.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}),{priority:"low"})}}(i))})),i.on("register:img",((r,o)=>{"imageBlock"!==o.model&&"imageInline"!==o.model||(e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["htmlImgAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["htmlA","htmlImgAttributes"]}),n.for("upcast").add(function(t){return e=>{e.on("element:img",((e,n,i)=>{if(!n.modelRange)return;const r=n.viewItem,o=t.processViewAttributes(r,i);o&&i.writer.setAttribute("htmlImgAttributes",o,n.modelRange)}),{priority:"low"})}}(i)),n.for("downcast").add((t=>{function e(e){t.on(`attribute:${e}:imageInline`,((t,e,n)=>{if(!n.consumable.consume(e.item,t.name))return;const{attributeOldValue:i,attributeNewValue:r}=e,o=n.mapper.toViewElement(e.item);cP(n.writer,i,r,o)}),{priority:"low"})}function n(e,n){t.on(`attribute:${n}:imageBlock`,((t,n,i)=>{if(!i.consumable.test(n.item,t.name))return;const{attributeOldValue:r,attributeNewValue:o}=n,a=i.mapper.toViewElement(n.item),s=OP(i.writer,a,e);s&&(cP(i.writer,r,o,s),i.consumable.consume(n.item,t.name))}),{priority:"low"}),"a"===e&&t.on("attribute:linkHref:imageBlock",((t,e,n)=>{if(!n.consumable.consume(e.item,"attribute:htmlLinkAttributes:imageBlock"))return;const i=n.mapper.toViewElement(e.item),r=OP(n.writer,i,"a");lP(n.writer,e.item.getAttribute("htmlLinkAttributes"),r)}),{priority:"low"})}e("htmlImgAttributes"),n("img","htmlImgAttributes"),n("figure","htmlFigureAttributes"),n("a","htmlLinkAttributes")})),t.plugins.has("LinkImage")&&n.for("upcast").add(function(t,e){const n=e.plugins.get("ImageUtils");return e=>{e.on("element:a",((e,i,r)=>{const o=i.viewItem;if(!n.findViewImgElement(o))return;const a=i.modelCursor.parent;if(!a.is("element","imageBlock"))return;const s=t.processViewAttributes(o,r);s&&r.writer.setAttribute("htmlLinkAttributes",s,a)}),{priority:"low"})}}(i,t)),r.stop())}))}}class RP extends Oo{static get requires(){return[EP]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const t=this.editor;if(!t.plugins.has("MediaEmbed")||t.config.get("mediaEmbed.previewsInData"))return;const e=t.model.schema,n=t.conversion,i=this.editor.plugins.get(EP),r=this.editor.plugins.get(CP),o=t.config.get("mediaEmbed.elementName");r.registerBlockElement({model:"media",view:o}),i.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,i)=>{const r=n.viewItem;if(!n.modelRange||!r.hasClass("media"))return;const o=t.processViewAttributes(r,i);o&&i.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}),{priority:"low"})}}(i))})),i.on(`register:${o}`,((t,r)=>{"media"===r.model&&(e.extend("media",{allowAttributes:[hP(o),"htmlFigureAttributes"]}),n.for("upcast").add(function(t,e){const n=(n,i,r)=>{function o(e,n){const o=t.processViewAttributes(e,r);o&&r.writer.setAttribute(n,o,i.modelRange)}o(i.viewItem,hP(e))};return t=>{t.on(`element:${e}`,n,{priority:"low"})}}(i,o)),n.for("dataDowncast").add(function(t){return e=>{function n(t,n){e.on(`attribute:${n}:media`,((e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const{attributeOldValue:r,attributeNewValue:o}=n,a=i.mapper.toViewElement(n.item),s=OP(i.writer,a,t);cP(i.writer,r,o,s)}))}n(t,hP(t)),n("figure","htmlFigureAttributes")}}(o)),t.stop())}))}}class FP extends Oo{static get requires(){return[EP]}static get pluginName(){return"ScriptElementSupport"}init(){const t=this.editor.plugins.get(EP);t.on("register:script",((e,n)=>{const i=this.editor,r=i.model.schema,o=i.conversion;r.register("htmlScript",n.modelSchema),r.extend("htmlScript",{allowAttributes:["htmlScriptAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"script"}),o.for("upcast").elementToElement({view:"script",model:dP(n)}),o.for("upcast").add(wP(n,t)),o.for("downcast").elementToElement({model:"htmlScript",view:(t,{writer:e})=>gP("script",t,e)}),o.for("downcast").add(kP(n)),e.stop()}))}}class jP extends Oo{static get requires(){return[EP]}static get pluginName(){return"TableElementSupport"}init(){const t=this.editor;if(!t.plugins.has("TableEditing"))return;const e=t.model.schema,n=t.conversion,i=t.plugins.get(EP),r=t.plugins.get("TableUtils");i.on("register:figure",(()=>{n.for("upcast").add(function(t){return e=>{e.on("element:figure",((e,n,i)=>{const r=n.viewItem;if(!n.modelRange||!r.hasClass("table"))return;const o=t.processViewAttributes(r,i);o&&i.writer.setAttribute("htmlFigureAttributes",o,n.modelRange)}),{priority:"low"})}}(i))})),i.on("register:table",((o,a)=>{"table"===a.model&&(e.extend("table",{allowAttributes:["htmlTableAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),n.for("upcast").add(function(t){return e=>{e.on("element:table",((e,n,i)=>{if(!n.modelRange)return;const r=n.viewItem;o(r,"htmlTableAttributes");for(const t of r.getChildren())t.is("element","thead")&&o(t,"htmlTheadAttributes"),t.is("element","tbody")&&o(t,"htmlTbodyAttributes");function o(e,r){const o=t.processViewAttributes(e,i);o&&i.writer.setAttribute(r,o,n.modelRange)}}),{priority:"low"})}}(i)),n.for("downcast").add((t=>{function e(e,n){t.on(`attribute:${n}:table`,((t,n,i)=>{if(!i.consumable.test(n.item,t.name))return;const r=i.mapper.toViewElement(n.item),o=OP(i.writer,r,e);o&&(i.consumable.consume(n.item,t.name),cP(i.writer,n.attributeOldValue,n.attributeNewValue,o))}))}e("table","htmlTableAttributes"),e("figure","htmlFigureAttributes"),e("thead","htmlTheadAttributes"),e("tbody","htmlTbodyAttributes")})),t.model.document.registerPostFixer(function(t,e){return n=>{const i=t.document.differ.getChanges();let r=!1;for(const t of i){if("attribute"!=t.type||"headingRows"!=t.attributeKey)continue;const i=t.range.start.nodeAfter,o=i.getAttribute("htmlTheadAttributes"),a=i.getAttribute("htmlTbodyAttributes");o&&!t.attributeNewValue?(n.removeAttribute("htmlTheadAttributes",i),r=!0):a&&t.attributeNewValue==e.getRows(i)&&(n.removeAttribute("htmlTbodyAttributes",i),r=!0)}return r}}(t.model,r)),o.stop())}))}}class $P extends Oo{static get requires(){return[EP]}static get pluginName(){return"StyleElementSupport"}init(){const t=this.editor.plugins.get(EP);t.on("register:style",((e,n)=>{const i=this.editor,r=i.model.schema,o=i.conversion;r.register("htmlStyle",n.modelSchema),r.extend("htmlStyle",{allowAttributes:["htmlStyleAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"style"}),o.for("upcast").elementToElement({view:"style",model:dP(n)}),o.for("upcast").add(wP(n,t)),o.for("downcast").elementToElement({model:"htmlStyle",view:(t,{writer:e})=>gP("style",t,e)}),o.for("downcast").add(kP(n)),e.stop()}))}}class zP extends Oo{static get requires(){return[EP]}static get pluginName(){return"ListElementSupport"}init(){const t=this.editor;if(!t.plugins.has("ListEditing"))return;const e=t.model.schema,n=t.conversion,i=t.plugins.get(EP),r=t.plugins.get("ListEditing"),o=t.plugins.get("ListUtils"),a=["ul","ol","li"];r.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast:lP}),r.registerDowncastStrategy({scope:"list",attributeName:"htmlUlAttributes",setAttributeOnDowncast:lP}),r.registerDowncastStrategy({scope:"list",attributeName:"htmlOlAttributes",setAttributeOnDowncast:lP}),i.on("register",((t,r)=>{if(!a.includes(r.view))return;if(t.stop(),e.checkAttribute("$block","htmlLiAttributes"))return;const o=a.map((t=>hP(t)));e.extend("$listItem",{allowAttributes:o}),n.for("upcast").add((t=>{t.on("element:ul",VP("htmlUlAttributes",i),{priority:"low"}),t.on("element:ol",VP("htmlOlAttributes",i),{priority:"low"}),t.on("element:li",VP("htmlLiAttributes",i),{priority:"low"})}))})),r.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:i,previousNodeInList:r}of e)if(r){if(r.getAttribute("listType")==i.getAttribute("listType")){const e=HP(r.getAttribute("listType")),o=r.getAttribute(e);!Mu(i.getAttribute(e),o)&&n.model.schema.checkAttribute(i,e)&&(n.setAttribute(e,o,i),t.return=!0)}if(r.getAttribute("listItemId")==i.getAttribute("listItemId")){const e=r.getAttribute("htmlLiAttributes");!Mu(i.getAttribute("htmlLiAttributes"),e)&&n.model.schema.checkAttribute(i,"htmlLiAttributes")&&(n.setAttribute("htmlLiAttributes",e,i),t.return=!0)}}})),r.on("postFixer",((t,{listNodes:e,writer:n})=>{for(const{node:i}of e){const e=i.getAttribute("listType");!o.isNumberedListType(e)&&i.getAttribute("htmlOlAttributes")&&(n.removeAttribute("htmlOlAttributes",i),t.return=!0),o.isNumberedListType(e)&&i.getAttribute("htmlUlAttributes")&&(n.removeAttribute("htmlUlAttributes",i),t.return=!0)}}))}afterInit(){const t=this.editor;if(!t.commands.get("indentList"))return;const e=t.commands.get("indentList");this.listenTo(e,"afterExecute",((e,n)=>{t.model.change((e=>{for(const i of n){const n=HP(i.getAttribute("listType"));t.model.schema.checkAttribute(i,n)&&e.setAttribute(n,{},i)}}))}))}}function VP(t,e){return(n,i,r)=>{const o=i.viewItem;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor));const a=e.processViewAttributes(o,r);for(const e of i.modelRange.getItems({shallow:!0}))e.hasAttribute("listItemId")&&(e.hasAttribute("htmlUlAttributes")||e.hasAttribute("htmlOlAttributes")||r.writer.model.schema.checkAttribute(e,t)&&r.writer.setAttribute(t,a||{},e))}}function HP(t){return"numbered"===t||"customNumbered"==t?"htmlOlAttributes":"htmlUlAttributes"}class qP extends Oo{static get requires(){return[EP,CP]}static get pluginName(){return"CustomElementSupport"}init(){const t=this.editor.plugins.get(EP),e=this.editor.plugins.get(CP);t.on("register:$customElement",((n,i)=>{n.stop();const r=this.editor,o=r.model.schema,a=r.conversion,s=r.editing.view.domConverter.unsafeElements,c=r.data.htmlProcessor.domConverter.preElements;o.register(i.model,i.modelSchema),o.extend(i.model,{allowAttributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"],isContent:!0}),r.data.htmlProcessor.domConverter.registerRawContentMatcher({name:"template"}),a.for("upcast").elementToElement({view:/.*/,model:(n,o)=>{if("$comment"==n.name)return null;if(!function(t){try{document.createElement(t)}catch(t){return!1}return!0}(n.name))return null;if(e.getDefinitionsForView(n.name).size)return null;s.includes(n.name)||s.push(n.name),c.includes(n.name)||c.push(n.name);const a=o.writer.createElement(i.model,{htmlElementName:n.name}),l=t.processViewAttributes(n,o);let u;if(l&&o.writer.setAttribute("htmlCustomElementAttributes",l,a),n.is("element","template")&&n.getCustomProperty("$rawContent"))u=n.getCustomProperty("$rawContent");else{const t=new jh(n.document).createDocumentFragment(n),e=r.data.htmlProcessor.domConverter.viewToDom(t),i=e.firstChild;for(;i.firstChild;)e.appendChild(i.firstChild);i.remove(),u=r.data.htmlProcessor.htmlWriter.getHtml(e)}o.writer.setAttribute("htmlContent",u,a);for(const{item:t}of r.editing.view.createRangeIn(n))o.consumable.consume(t,{name:!0});return a},converterPriority:"low"}),a.for("editingDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const n=t.getAttribute("htmlElementName"),i=e.createRawElement(n);return t.hasAttribute("htmlCustomElementAttributes")&&lP(e,t.getAttribute("htmlCustomElementAttributes"),i),i}}),a.for("dataDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlCustomElementAttributes","htmlContent"]},view:(t,{writer:e})=>{const n=t.getAttribute("htmlElementName"),i=t.getAttribute("htmlContent"),r=e.createRawElement(n,null,((t,e)=>{e.setContentOf(t,i)}));return t.hasAttribute("htmlCustomElementAttributes")&&lP(e,t.getAttribute("htmlCustomElementAttributes"),r),r}})}))}}function*UP(t,e,n){if(e)if(!(Symbol.iterator in e)&&e.is("documentSelection")&&e.isCollapsed)t.schema.checkAttributeInSelection(e,n)&&(yield e);else for(const i of function(t,e,n){return!(Symbol.iterator in e)&&(e.is("node")||e.is("$text")||e.is("$textProxy"))?t.schema.checkAttribute(e,n)?[t.createRangeOn(e)]:[]:t.schema.getValidRanges(t.createSelection(e).getRanges(),n)}(t,e,n))yield*i.getItems({shallow:!0})}class GP extends Ro{refresh(){this.isEnabled=!0}execute(t){const e=this.editor,n=e.model,i=e.plugins.get(Ow);n.change((e=>{const r=t.file;for(const t of r)WP(e,n,i,t)}))}}function WP(t,e,n,i){const r=n.createLoader(i);r&&function(t,e,n={}){const i=t.createElement("reference",n);e.insertContent(i,e.document.selection),t.insertText(" ",i,"after")}(t,e,{href:"",uploadId:r.id})}class KP extends Oo{static get requires(){return[Ow,gb,u_]}static get pluginName(){return"FileUploadEditing"}init(){const t=this.editor,e=t.model.document,n=t.conversion,i=t.plugins.get(Ow);t.commands.add("fileUpload",new GP(t)),n.for("upcast").attributeToAttribute({view:{name:"a",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",((e,n)=>{if(i=n.dataTransfer,Array.from(i.types).includes("text/html")&&""!==i.getData("text/html"))return;var i;const r=Array.from(n.dataTransfer.files);t.model.change((i=>{n.targetRanges&&i.setSelection(n.targetRanges.map((e=>t.editing.mapper.toModelRange(e)))),r.length&&(e.stop(),t.model.enqueueChange("default",(()=>{t.execute("fileUpload",{file:r})})))}))})),this.listenTo(t.plugins.get(u_),"inputTransformation",((e,n)=>{const r=Array.from(t.editing.view.createRangeIn(n.content)).filter((t=>function(t){if(!t.is("element","a")||!t.getAttribute("href"))return!1;return t.getAttribute("href")}(t.item)&&!t.item.getAttribute("uploadProcessed"))).map((t=>{return{promise:(e=t.item,new Promise(((t,n)=>{const i=e.getAttribute("href");fetch(i).then((t=>t.blob())).then((e=>{const r=function(t,e){if(t.type)return t.type;if(e.match(/data:(image\/\w+);base64/))return e.match(/data:(image\/\w+);base64/)[1].toLowerCase();throw new Error("Could not retrieve mime type for file.")}(e,i),o=r.replace("file/",""),a=`file.${o}`,s=function(t,e,n){try{return new File([t],e,{type:n})}catch(t){return null}}(e,a,r);s?t(s):n()})).catch(n)}))),fileElement:t.item};var e}));if(!r.length)return;const o=new jh;for(const t of r){o.setAttribute("uploadProcessed",!0,t.fileElement);const e=i.createLoader(t.promise);e&&(o.setAttribute("href","",t.fileElement),o.setAttribute("uploadId",e.id,t.fileElement))}})),t.editing.view.document.on("dragover",((t,e)=>{e.preventDefault()})),e.on("change",(()=>{const n=e.differ.getChanges({includeChangesInGraveyard:!0});for(const e of n)if("insert"==e.type){const n=e.position.nodeAfter;if(n){const r="$graveyard"==e.position.root.rootName;for(const e of YP(t,n)){const t=e.getAttribute("uploadId");if(!t)continue;const n=i.loaders.get(t);n&&(r?n.abort():"idle"==n.status&&this._readAndUpload(n,e))}}}}))}_readAndUpload(t,e){const n=this.editor,i=n.model,r=n.locale.t,o=n.plugins.get(Ow),a=n.plugins.get(gb);return i.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","reading",e)})),t.read().then((()=>{const n=t.upload();return i.enqueueChange("transparent",(t=>{t.setAttribute("uploadStatus","uploading",e)})),n})).then((t=>(i.enqueueChange("transparent",(n=>{n.setAttributes({uploadStatus:"complete",href:t.default},e)})),s(),new Promise((t=>setTimeout(t,100)))))).then((()=>{n.setData(n.getData())})).catch((n=>{if("error"!==t.status&&"aborted"!==t.status)throw n;"error"==t.status&&n&&a.showWarning(n,{title:r("Upload failed"),namespace:"upload"}),s(),i.enqueueChange("transparent",(t=>{t.remove(e)}))}));function s(){i.enqueueChange("transparent",(t=>{t.removeAttribute("uploadId",e),t.removeAttribute("uploadStatus",e)})),o.destroyLoader(t)}}}function YP(t,e){return Array.from(t.model.createRangeOn(e)).filter((t=>t.item.hasAttribute("href"))).map((t=>t.item))}class XP extends Ro{refresh(){const t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=function(t,e,n){const i=function(t,e){const n=wy(t,e),i=n.start.parent;if(i.isEmpty&&!i.is("element","$root"))return i.parent;return i}(t,n);return e.checkChild(i,"pageBreak")}(n,e,t)}execute(){const t=this.editor.model;t.change((e=>{const n=e.createElement("pageBreak");t.insertObject(n,null,null,{setSelection:"after"})}))}}var ZP=n(6426),QP={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(ZP.A,QP);ZP.A.locals;class JP extends Oo{static get pluginName(){return"PageBreakEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,i=t.conversion;e.register("pageBreak",{inheritAllFrom:"$blockObject"}),i.for("dataDowncast").elementToStructure({model:"pageBreak",view:(t,{writer:e})=>e.createContainerElement("div",{class:"page-break",style:"page-break-after: always"},e.createContainerElement("span",{style:"display: none"}))}),i.for("editingDowncast").elementToStructure({model:"pageBreak",view:(t,{writer:e})=>{const i=n("Page break"),r=e.createContainerElement("div"),o=e.createRawElement("span",{class:"page-break__label"},(function(t){t.innerText=n("Page break")}));return e.addClass("page-break",r),e.insert(e.createPositionAt(r,0),o),function(t,e,n){return e.setCustomProperty("pageBreak",!0,t),fy(t,e,{label:n})}(r,e,i)}}),i.for("upcast").elementToElement({view:t=>{const e="always"==t.getStyle("page-break-before"),n="always"==t.getStyle("page-break-after");if(!e&&!n)return null;if(1==t.childCount){const e=t.getChild(0);if(!e.is("element","span")||"none"!=e.getStyle("display"))return null}else if(t.childCount>1)return null;return{name:!0}},model:"pageBreak",converterPriority:"high"}),t.commands.add("pageBreak",new XP(t))}}class tL extends Oo{static get pluginName(){return"PageBreakUI"}init(){const t=this.editor;t.ui.componentFactory.add("pageBreak",(()=>{const t=this._createButton(bf);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:pageBreak",(()=>this._createButton(Kf)))}_createButton(t){const e=this.editor,n=e.locale,i=e.commands.get("pageBreak"),r=new t(e.locale),o=n.t;return r.set({label:o("Page break"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3.598.687h1.5v5h-1.5zm14.5 0h1.5v5h-1.5z"/><path d="M19.598 4.187v1.5h-16v-1.5zm-16 14.569h1.5v-5h-1.5zm14.5 0h1.5v-5h-1.5z"/><path d="M19.598 15.256v-1.5h-16v1.5zM5.081 9h6v2h-6zm8 0h6v2h-6zm-9.483 1L0 12.5v-5z"/></svg>'}),r.bind("isEnabled").to(i,"isEnabled"),this.listenTo(r,"execute",(()=>{e.execute("pageBreak"),e.editing.view.focus()})),r}}const eL='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 1.219C4.254 1.219 1.219 4.28 1.219 8A6.78 6.78 0 0 0 8 14.781c3.719 0 6.781-3.035 6.781-6.781 0-3.719-3.062-6.781-6.781-6.781Zm0 12.25A5.45 5.45 0 0 1 2.531 8 5.467 5.467 0 0 1 8 2.531c3.008 0 5.469 2.461 5.469 5.469A5.467 5.467 0 0 1 8 13.469Zm0-9.242c-.656 0-1.148.52-1.148 1.148 0 .656.492 1.148 1.148 1.148.629 0 1.148-.492 1.148-1.148 0-.629-.52-1.148-1.148-1.148Zm1.531 6.945v-.656a.353.353 0 0 0-.328-.329h-.328V7.454a.353.353 0 0 0-.328-.328h-1.75a.332.332 0 0 0-.328.328v.656c0 .192.136.329.328.329h.328v1.75h-.328a.333.333 0 0 0-.328.328v.656c0 .191.136.328.328.328h2.406a.332.332 0 0 0 .328-.328Z"/></svg>\n',nL='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m8 11.5 3.004-3.004 3.003 3.004-3.003 3.004L8 11.5Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.504 2.863v3h3v-3h-3Zm-1 4h5v-5h-5v5Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.004 14.504 8 11.5l2.504-2.504V6.07h1v2.926l2.503 2.504-3.003 3.004ZM9.414 11.5l1.59-1.59 1.59 1.59-1.59 1.59-1.59-1.59ZM6.837 4.999h2.625v-1h-2.57a2.5 2.5 0 1 0-2.974 2.814V9h-2v5h5V9h-2V6.813c.934-.19 1.68-.9 1.919-1.814Zm-3.919-.636a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm0 5.637v3h3v-3h-3Z"/></svg>\n',iL='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.8 11.609V13.4a.4.4 0 0 1-.4.4H2.6a.4.4 0 0 1-.4-.4v-1.791H1V13.4A1.6 1.6 0 0 0 2.6 15h10.8a1.6 1.6 0 0 0 1.6-1.6v-1.791h-1.2ZM13.8 4.997H15V2.6A1.6 1.6 0 0 0 13.4 1H2.6A1.6 1.6 0 0 0 1 2.6v2.397h1.2V2.6c0-.22.18-.4.4-.4h10.8c.22 0 .4.18.4.4v2.397Z"/><path d="M8 11.095c-1.92 0-3.837-.919-5.749-2.757L2 8.095l.251-.242c3.815-3.677 7.683-3.677 11.498 0l.251.242-.251.243C11.84 10.176 9.925 11.095 8 11.096Zm-5.02-3c3.375 3.1 6.665 3.1 10.04 0-3.375-3.1-6.665-3.095-10.04 0Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.514 8.095c-3.676 3.543-7.352 3.543-11.028 0 3.676-3.542 7.352-3.542 11.028 0Zm-3.586 0A1.926 1.926 0 0 1 8 10.02a1.926 1.926 0 0 1-1.928-1.924c0-1.062.863-1.924 1.928-1.924s1.928.862 1.928 1.924Z"/><path d="M8 8.861a.767.767 0 1 0 .002-1.533A.767.767 0 0 0 8 8.86Z"/></svg>\n',rL='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.8 3.076H8.588V13.8H13.4a.4.4 0 0 0 .4-.4V3.076Zm-6.412 0H2.2V13.4c0 .22.18.4.4.4h4.788V3.076ZM2.6 1A1.6 1.6 0 0 0 1 2.6v10.8A1.6 1.6 0 0 0 2.6 15h10.8a1.6 1.6 0 0 0 1.6-1.6V2.6A1.6 1.6 0 0 0 13.4 1H2.6Z"/></svg>\n',oL='<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.609 2.2H13.4c.22 0 .4.18.4.4v10.8a.4.4 0 0 1-.4.4h-1.791V15H13.4a1.6 1.6 0 0 0 1.6-1.6V2.6A1.6 1.6 0 0 0 13.4 1h-1.791v1.2ZM4.997 2.2V1H2.6A1.6 1.6 0 0 0 1 2.6v10.8A1.6 1.6 0 0 0 2.6 15h2.397v-1.2H2.6a.4.4 0 0 1-.4-.4V2.6c0-.22.18-.4.4-.4h2.397Z"/><path d="M3.511 4.778a.75.75 0 0 1 .75-.75h3.697a.75.75 0 1 1 0 1.5H4.26a.75.75 0 0 1-.75-.75ZM6.595 7.629a.75.75 0 0 1 .75-.75h3.588a.75.75 0 0 1 0 1.5H7.345a.75.75 0 0 1-.75-.75ZM6.595 10.48a.75.75 0 0 1 .75-.75h1.143a.75.75 0 1 1 0 1.5H7.345a.75.75 0 0 1-.75-.75ZM3.511 7.629a.75.75 0 0 1 .75-.75h.983a.75.75 0 1 1 0 1.5h-.983a.75.75 0 0 1-.75-.75ZM3.511 10.48a.75.75 0 0 1 .75-.75h.983a.75.75 0 1 1 0 1.5h-.983a.75.75 0 0 1-.75-.75Z"/></svg>\n';var aL=n(5465);function sL(t,e){const n=t.model.document.selection,i=n.getSelectedElement()||n.getLastPosition().parent;return!(!i||!i.is("element","mermaid")||i.getAttribute("displayMode")!==e)}class cL extends Ro{refresh(){const t=this.editor,e=t.model.document.selection,n=e.getSelectedElement();n&&"mermaid"===n.name||e.getLastPosition().findAncestor("mermaid")?this.isEnabled=!!n:this.isEnabled=!1,this.value=sL(t,"preview")}execute(){const t=this.editor.model,e=this.editor.model.document.selection,n=e.getSelectedElement()||e.getLastPosition().parent;t.change((t=>{"preview"!==n.getAttribute("displayMode")&&t.setAttribute("displayMode","preview",n)}))}}class lL extends Ro{refresh(){const t=this.editor,e=t.model.document.selection,n=e.getSelectedElement();n&&"mermaid"===n.name||e.getLastPosition().findAncestor("mermaid")?this.isEnabled=!!n:this.isEnabled=!1,this.value=sL(t,"source")}execute(){const t=this.editor.model,e=this.editor.model.document.selection,n=e.getSelectedElement()||e.getLastPosition().parent;t.change((t=>{"source"!==n.getAttribute("displayMode")&&t.setAttribute("displayMode","source",n)}))}}class uL extends Ro{refresh(){const t=this.editor,e=t.model.document.selection,n=e.getSelectedElement();n&&"mermaid"===n.name||e.getLastPosition().findAncestor("mermaid")?this.isEnabled=!!n:this.isEnabled=!1,this.value=sL(t,"split")}execute(){const t=this.editor.model,e=this.editor.model.document.selection,n=e.getSelectedElement()||e.getLastPosition().parent;t.change((t=>{"split"!==n.getAttribute("displayMode")&&t.setAttribute("displayMode","split",n)}))}}class hL extends Ro{refresh(){const t=this.editor.model.document.selection.getSelectedElement();t&&"mermaid"===t.name?this.isEnabled=!1:this.isEnabled=!0}execute(){const t=this.editor.model;let e;return t.change((n=>{e=n.createElement("mermaid",{displayMode:"split",source:"flowchart TB\nA --\x3e B\nB --\x3e C"}),t.insertContent(e)})),e}}class dL extends Oo{static get pluginName(){return"MermaidEditing"}init(){this._registerCommands(),this._defineConverters()}afterInit(){this.editor.model.schema.register("mermaid",{allowAttributes:["displayMode","source"],allowWhere:"$block",isObject:!0})}_registerCommands(){const t=this.editor;t.commands.add("mermaidPreviewCommand",new cL(t)),t.commands.add("mermaidSplitViewCommand",new uL(t)),t.commands.add("mermaidSourceViewCommand",new lL(t)),t.commands.add("insertMermaidCommand",new hL(t))}_defineConverters(){const t=this.editor;t.data.downcastDispatcher.on("insert:mermaid",this._mermaidDataDowncast.bind(this)),t.editing.downcastDispatcher.on("insert:mermaid",this._mermaidDowncast.bind(this)),t.editing.downcastDispatcher.on("attribute:source:mermaid",this._sourceAttributeDowncast.bind(this)),t.data.upcastDispatcher.on("element:code",this._mermaidUpcast.bind(this),{priority:"high"}),t.conversion.for("editingDowncast").attributeToAttribute({model:{name:"mermaid",key:"displayMode"},view:t=>({key:"class",value:"ck-mermaid__"+t+"-mode"})})}_mermaidDataDowncast(t,e,n){const i=this.editor.model,{writer:r,mapper:o}=n;if(!n.consumable.consume(e.item,"insert"))return;const a=o.toViewPosition(i.createPositionBefore(e.item)),s=r.createContainerElement("code",{class:"language-mermaid"}),c=r.createContainerElement("pre",{spellcheck:"false"}),l=r.createText(e.item.getAttribute("source"));r.insert(i.createPositionAt(s,"end"),l),r.insert(i.createPositionAt(c,"end"),s),r.insert(a,c),o.bindElements(e.item,s)}_mermaidDowncast(t,e,n){const{writer:i,mapper:r,consumable:o}=n,{editor:a}=this,{model:s,t:c}=a,l=this;if(!o.consume(e.item,"insert"))return;const u=r.toViewPosition(s.createPositionBefore(e.item)),h={class:["ck-mermaid__editing-view"],placeholder:c("Insert mermaid source code"),"data-cke-ignore-events":!0},d=i.createContainerElement("div",{class:["ck-mermaid__wrapper"]}),f=i.createUIElement("textarea",h,(function(t){const n=this.toDomElement(t);n.value=e.item.getAttribute("source");const i=L((t=>{a.model.change((n=>{n.setAttribute("source",t.target.value,e.item)}))}),300);return n.addEventListener("input",i),n.addEventListener("focus",(()=>{const t=a.model;t.document.selection.getSelectedElement()!==e.item&&t.change((t=>t.setSelection(e.item,"on")))}),!0),n})),g=i.createUIElement("div",{class:["ck-mermaid__preview"]},(function(t){const n=e.item.getAttribute("source"),i=this.toDomElement(t);return i.innerHTML=n,window.setTimeout((()=>{l._renderMermaid(i)}),100),i}));return i.insert(i.createPositionAt(d,"start"),g),i.insert(i.createPositionAt(d,"start"),f),i.insert(u,d),r.bindElements(e.item,d),fy(d,i,{widgetLabel:c("Mermaid widget"),hasSelectionHandle:!0})}_sourceAttributeDowncast(t,e,n){const i=e.attributeNewValue,r=this.editor.editing.view.domConverter;if(i){const t=n.mapper.toViewElement(e.item);for(const e of t.getChildren())if("textarea"===e.name&&e.hasClass("ck-mermaid__editing-view")){const t=r.viewToDom(e,window.document);t.value!=i&&(t.value=i)}else if("div"===e.name&&e.hasClass("ck-mermaid__preview")){const t=r.viewToDom(e,window.document);t&&(t.innerHTML=i,t.removeAttribute("data-processed"),this._renderMermaid(t))}}}_mermaidUpcast(t,e,n){const i=e.viewItem,r=!i.parent||!i.parent.is("element","pre"),o=e.modelCursor.findAncestor("code"),{consumable:a,writer:s}=n;if(!i.hasClass("language-mermaid")||r||o)return;if(!a.test(i,{name:!0}))return;const c=Array.from(i.getChildren()).filter((t=>t.is("$text"))).map((t=>t.data)).join(""),l=s.createElement("mermaid",{source:c,displayMode:"split"});n.safeInsert(l,e.modelCursor)&&(a.consume(i,{name:!0}),n.updateConversionResult(l,e))}_renderMermaid(t){aL.init(void 0,t)}}class fL extends Oo{static get requires(){return[Fy]}static get pluginName(){return"MermaidToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(Fy),i=["mermaidSourceView","mermaidSplitView","mermaidPreview","|","mermaidInfo"];i&&n.register("mermaidToolbar",{ariaLabel:e("Mermaid toolbar"),items:i,getRelatedElement:t=>function(t){const e=t.getSelectedElement();if(e&&e.hasClass("ck-mermaid__wrapper"))return e;return null}(t)})}}class gL extends Oo{static get pluginName(){return"MermaidUI"}init(){this._addButtons()}_addButtons(){const t=this.editor;this._addInsertMermaidButton(),this._addMermaidInfoButton(),this._createToolbarButton(t,"mermaidPreview","Preview",iL),this._createToolbarButton(t,"mermaidSourceView","Source view",oL),this._createToolbarButton(t,"mermaidSplitView","Split view",rL)}_addInsertMermaidButton(){const t=this.editor,e=t.t,n=t.editing.view;t.ui.componentFactory.add("mermaid",(i=>{const r=new bf(i),o=t.commands.get("insertMermaidCommand");return r.set({label:e("Insert Mermaid diagram"),icon:nL,tooltip:!0}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),o.listenTo(r,"execute",(()=>{const e=t.execute("insertMermaidCommand"),i=t.editing.mapper.toViewElement(e);if(n.scrollToTheSelection(),n.focus(),i){const t=n.domConverter.viewToDom(i,document);t&&t.querySelector(".ck-mermaid__editing-view").focus()}})),r}))}_addMermaidInfoButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("mermaidInfo",(t=>{const n=new bf(t);return n.set({label:e("Read more about Mermaid diagram syntax"),icon:eL,tooltip:!0}),n.on("execute",(()=>{window.open("https://ckeditor.com/blog/basic-overview-of-creating-flowcharts-using-mermaid/","_blank","noopener")})),n}))}_createToolbarButton(t,e,n,i){const r=t.t;t.ui.componentFactory.add(e,(o=>{const a=new bf(o),s=t.commands.get(`${e}Command`);return a.set({label:r(n),icon:i,tooltip:!0}),a.bind("isOn","isEnabled").to(s,"value","isEnabled"),s.listenTo(a,"execute",(()=>{t.execute(`${e}Command`),t.editing.view.scrollToTheSelection(),t.editing.view.focus()})),a}))}}var pL=n(7433),mL={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(pL.A,mL);pL.A.locals;class bL extends Ro{execute(t){const{model:e}=this.editor,{document:n}=e,{selection:i}=n,{mention:r}=t,o=t.range||i.getFirstRange();if(r.id.startsWith("#")||r.id.startsWith("~"))e.change((t=>{e.insertContent(t.createText(r.id,{}),o)}));else if("create-note"===r.action){const t=this.editor.editing.view.getDomRoot();glob.getComponentByEl(t).createNoteForReferenceLink(r.noteTitle).then((t=>{this.insertReference(o,t)}))}else this.insertReference(o,t.mention.notePath)}insertReference(t,e){const{model:n}=this.editor;n.change((i=>{n.insertContent(i.createText("",{}),t),this.editor.execute("referenceLink",{href:"#"+e})}))}}class wL{constructor(t){this.loader=t}upload(){return this.loader.file.then((t=>new Promise(((e,n)=>{this._initRequest().then((()=>{this._initListeners(e,n,t),this._sendRequest(t)}))}))))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){return glob.getHeaders().then((t=>{const e=this.xhr=new XMLHttpRequest,{noteId:n}=glob.getActiveContextNote(),i=`api/notes/${n}/attachments/upload`;e.open("POST",i,!0),e.responseType="json";for(const n in t)e.setRequestHeader(n,t[n])}))}async _initListeners(t,e){const n=this.xhr,i=this.loader,r=`Cannot upload file: ${(await i.file).name}.`;n.addEventListener("error",(()=>e(r))),n.addEventListener("abort",(()=>e())),n.addEventListener("load",(()=>{const i=n.response;if(!i||!i.uploaded)return e(i&&i.error&&i.error.message?i.error.message:r);t({default:i.url})})),n.upload&&n.upload.addEventListener("progress",(t=>{t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded)}))}async _sendRequest(){const t=new FormData;t.append("upload",await this.loader.file),this.xhr.send(t)}}class kL extends Oo{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("includeNote",(n=>{const i=t.commands.get("insertIncludeNote"),r=new bf(n);return r.set({label:e("Include note"),icon:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19,3H5C3.897,3,3,3.897,3,5v14c0,1.103,0.897,2,2,2h8c0.131,0,0.26-0.026,0.381-0.076s0.232-0.123,0.326-0.217l7-7 c0.086-0.086,0.147-0.187,0.196-0.293c0.014-0.03,0.022-0.061,0.033-0.093c0.028-0.084,0.046-0.17,0.051-0.259 C20.989,13.041,21,13.021,21,13V5C21,3.897,20.103,3,19,3z M5,5h14v7h-6c-0.553,0-1,0.448-1,1v6H5V5z M14,17.586V14h3.586 L14,17.586z"/></svg>',tooltip:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",(()=>t.execute("insertIncludeNote"))),r}))}}class vL extends Oo{static get requires(){return[Ny]}init(){this._defineSchema(),this._defineConverters(),this.editor.commands.add("insertIncludeNote",new yL(this.editor))}_defineSchema(){this.editor.model.schema.register("includeNote",{isObject:!0,allowAttributes:["noteId","boxSize"],allowWhere:"$block"})}_defineConverters(){const t=this.editor,e=t.conversion;e.for("upcast").elementToElement({model:(t,{writer:e})=>e.createElement("includeNote",{noteId:t.getAttribute("data-note-id"),boxSize:t.getAttribute("data-box-size")}),view:{name:"section",classes:"include-note"}}),e.for("dataDowncast").elementToElement({model:"includeNote",view:(t,{writer:e})=>e.createContainerElement("section",{class:"include-note","data-note-id":t.getAttribute("noteId"),"data-box-size":t.getAttribute("boxSize")})}),e.for("editingDowncast").elementToElement({model:"includeNote",view:(e,{writer:n})=>{const i=e.getAttribute("noteId"),r=e.getAttribute("boxSize"),o=n.createContainerElement("section",{class:"include-note box-size-"+r,"data-note-id":i,"data-box-size":r}),a=n.createUIElement("div",{class:"include-note-wrapper"},(function(e){const n=this.toDomElement(e),r=t.editing.view.getDomRoot();return glob.getComponentByEl(r).loadIncludedNote(i,$(n)),function(t,e){function n(t){t.stopPropagation(),e.editing.view._renderer.isFocused=!1}t.addEventListener("mousedown",n,{capture:!0}),t.addEventListener("focus",n,{capture:!0}),t.addEventListener("keydown",n,{capture:!0})}(n,t),n}));return n.insert(n.createPositionAt(o,0),a),fy(o,n,{label:"include note widget"})}})}}class yL extends Ro{execute(){const t=this.editor.editing.view.getDomRoot();glob.getComponentByEl(t).triggerCommand("addIncludeNoteToText")}refresh(){const t=this.editor.model,e=t.document.selection,n=t.schema.findAllowedParent(e.getFirstPosition(),"includeNote");this.isEnabled=null!==n}}class _L extends Ro{execute({href:t}){if(!t?.trim())return;const e=this.editor;glob.getReferenceLinkTitle(t).then((()=>{e.model.change((n=>{const i=n.createElement("reference",{href:t});e.model.insertContent(i),n.setSelection(i,"after")}))}))}refresh(){const t=this.editor.model,e=t.document.selection;this.isEnabled=t.schema.checkChild(e.focus.parent,"reference")}}class CL extends Oo{static get requires(){return[Ny]}init(){this._defineSchema(),this._defineConverters(),this.editor.commands.add("referenceLink",new _L(this.editor)),this.editor.editing.mapper.on("viewToModelPosition",ky(this.editor.model,(t=>t.hasClass("reference-link"))))}_defineSchema(){this.editor.model.schema.register("reference",{allowWhere:"$text",isInline:!0,isObject:!0,allowAttributes:["href","uploadId","uploadStatus"]})}_defineConverters(){const t=this.editor,e=t.conversion;e.for("upcast").elementToElement({view:{name:"a",classes:["reference-link"]},model:(t,{writer:e})=>{const n=t.getAttribute("href");return e.createElement("reference",{href:n})}}),e.for("editingDowncast").elementToElement({model:"reference",view:(e,{writer:n})=>{const i=e.getAttribute("href"),r=n.createContainerElement("a",{href:i,class:"reference-link"},{renderUnsafeAttributes:["href"]}),o=n.createUIElement("span",{},(function(e){const n=this.toDomElement(e),r=t.editing.view.getDomRoot();return glob.getComponentByEl(r).loadReferenceLinkTitle($(n),i),n}));return n.insert(n.createPositionAt(r,0),o),fy(r,n)}}),e.for("dataDowncast").elementToElement({model:"reference",view:(t,{writer:e})=>{const n=t.getAttribute("href"),i=e.createContainerElement("a",{href:n,class:"reference-link"}),r=glob.getReferenceLinkTitleSync(n),o=e.createText(r);return e.insert(e.createPositionAt(i,0),o),i}})}}function AL(t){return null!=t&&"object"==typeof t&&"version"in t&&"string"==typeof t.version&&3===t.version.split(".").length&&"3"===t.version.split(".")[0]}function xL(t){return null!=t&&"object"==typeof t&&"Hub"in t}function EL(t){return t.match(/^(\\\[.*?\\\]|\\\(.*?\\\))$/)}function TL(t){const e=(t=t.trim()).includes("\\(")&&t.includes("\\)"),n=t.includes("\\[")&&t.includes("\\]");return(e||n)&&(t=t.substring(2,t.length-2).trim()),{equation:t,display:n}}async function SL(t,e,i="katex",r,o=!1,a=!1,s="",c=[],l={}){var u;if("mathjax"==i)AL(MathJax)?IL(e,a,s,c,(n=>{!function(t,e,n,i){let r;if(!AL(MathJax))return;MathJax.tex2chtmlPromise?r=MathJax.tex2chtmlPromise:MathJax.tex2svgPromise&&(r=MathJax.tex2svgPromise);null!=r&&r(t,{display:n}).then((t=>{e.firstChild&&e.removeChild(e.firstChild),e.appendChild(t),i()}))}(t,n,o,(()=>{a&&(BL(e,n),n.style.visibility="visible")}))})):IL(e,a,s,c,(i=>{n.g.window.setTimeout((()=>{!function(t,e,n){xL(MathJax)&&(e.innerHTML=n?"\\["+t+"\\]":"\\("+t+"\\)",MathJax.Hub.Queue(["Typeset",MathJax.Hub,e]))}(t,i,o),a&&xL(MathJax)&&MathJax.Hub.Queue((()=>{BL(e,i),i.style.visibility="visible"}))}))}));else if("katex"===i&&void 0!==window.katex)IL(e,a,s,c,(n=>{katex&&katex.render(t,n,{throwOnError:!1,displayMode:o,...l}),a&&(BL(e,n),n.style.visibility="visible")}));else if("function"==typeof i)i(t,e,o);else if(null!=r)try{(u=n.g.window).CKEDITOR_MATH_LAZY_LOAD??(u.CKEDITOR_MATH_LAZY_LOAD=r()),e.innerHTML=t,await n.g.window.CKEDITOR_MATH_LAZY_LOAD,await SL(t,e,i,void 0,o,a,s,c,l)}catch(n){e.innerHTML=t,console.error(`math-tex-typesetting-lazy-load-failed: Lazy load failed: ${String(n)}`)}else e.innerHTML=t,console.warn(`math-tex-typesetting-missing: Missing the mathematical typesetting engine (${String(i)}) for tex.`)}function DL(t){const e=t.editing.view,n=ip.defaultPositions,i=e.document.selection.getSelectedElement();if(i)return{target:e.domConverter.viewToDom(i),positions:[n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]};{const t=e.document.selection.getFirstRange();if(!t)throw new wi("math-missing-range");return{target:e.domConverter.viewRangeToDom(t),positions:[n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}}function IL(t,e,i,r,o){e?function(t,e,i,r){const o=function(t,e,i){let r=n.g.document.getElementById(e);if(!r){r=n.g.document.createElement("div"),r.setAttribute("id",e),r.classList.add(...i),r.style.visibility="hidden",n.g.document.body.appendChild(r);let o=!1;const a=()=>{o||(n.g.window.requestAnimationFrame((()=>{r&&(ML(t,r),o=!1)})),o=!0)};n.g.window.addEventListener("resize",a),n.g.window.addEventListener("scroll",a)}return r}(t,e,i);r(o)}(t,i,r,(t=>{o(t)})):o(t)}function BL(t,e){ML(t,e);const n=e.getBoundingClientRect();t.style.width=n.width+"px",t.style.height=n.height+"px"}function ML(t,e){const i=t.getBoundingClientRect(),r=n.g.window.scrollX+i.left,o=n.g.window.scrollY+i.top;e.style.position="absolute",e.style.left=r+"px",e.style.top=o+"px",e.style.zIndex="var(--ck-z-panel)",e.style.pointerEvents="none"}class PL extends Ro{constructor(){super(...arguments),this.value=null,this.display=!1}execute(t,e,n="script",i){const r=this.editor.model,o=r.document.selection.getSelectedElement();r.change((a=>{let s;if(o&&(o.is("element","mathtex-inline")||o.is("element","mathtex-display"))){const r=o.getAttribute("type"),c=i?n:r||n;s=a.createElement(e?"mathtex-display":"mathtex-inline",{equation:t,type:c,display:e})}else s=a.createElement(e?"mathtex-display":"mathtex-inline",{equation:t,type:n,display:e});r.insertContent(s)}))}refresh(){const t=this.editor.model.document.selection,e=t.getSelectedElement();this.isEnabled=null===e||e.is("element","mathtex-inline")||e.is("element","mathtex-display");const n=function(t){const e=t.getSelectedElement();return e&&(e.is("element","mathtex-inline")||e.is("element","mathtex-display"))?e:null}(t),i=n?.getAttribute("equation");this.value="string"==typeof i?i:null;const r=n?.getAttribute("display");this.display="boolean"==typeof r&&r}}class LL extends Oo{static get requires(){return[Ny]}static get pluginName(){return"MathEditing"}constructor(t){super(t),t.config.define("math",{engine:"mathjax",outputType:"script",className:"math-tex",forceOutputType:!1,enablePreview:!0,previewClassName:[],popupClassName:[],katexRenderOptions:{}})}init(){const t=this.editor;t.commands.add("math",new PL(t)),this._defineSchema(),this._defineConverters(),t.editing.mapper.on("viewToModelPosition",ky(t.model,(t=>t.hasClass("math"))))}_defineSchema(){const t=this.editor.model.schema;t.register("mathtex-inline",{allowWhere:"$text",isInline:!0,isObject:!0,allowAttributes:["equation","type","display"]}),t.register("mathtex-display",{allowWhere:"$block",isInline:!1,isObject:!0,allowAttributes:["equation","type","display"]})}_defineConverters(){const t=this.editor.conversion,e=this.editor.config.get("math");function n(t,n){const i=String(t.getAttribute("equation")),r=!!t.getAttribute("display"),o="user-select: none; "+(r?"":"display: inline-block;"),a="ck-math-tex "+(r?"ck-math-tex-display":"ck-math-tex-inline"),s=n.createContainerElement(r?"div":"span",{style:o,class:a}),c=n.createUIElement("div",null,(function(t){const n=this.toDomElement(t);return SL(i,n,e.engine,e.lazyLoad,r,!1,`math-editing-${pi()}`,e.previewClassName,e.katexRenderOptions),n}));return n.insert(n.createPositionAt(s,0),c),s}function i(t,{writer:n}){const i=t.getAttribute("equation");if("string"!=typeof i)throw new wi("missing-equation",{pluginName:"math"});const r=t.getAttribute("type"),o=t.getAttribute("display");if("span"===r){const t=n.createContainerElement("span",{class:e.className});return o?n.insert(n.createPositionAt(t,0),n.createText("\\["+i+"\\]")):n.insert(n.createPositionAt(t,0),n.createText("\\("+i+"\\)")),t}{const t=n.createContainerElement("script",{type:o?"math/tex; mode=display":"math/tex"});return n.insert(n.createPositionAt(t,0),n.createText(i)),t}}t.for("upcast").elementToElement({view:{name:"script",attributes:{type:"math/tex"}},model:(t,{writer:n})=>{const i=t.getChild(0);if(i?.is("$text")){const t=i.data.trim();return n.createElement("mathtex-inline",{equation:t,type:e.forceOutputType?e.outputType:"script",display:!1})}return null}}).elementToElement({view:{name:"script",attributes:{type:"math/tex; mode=display"}},model:(t,{writer:n})=>{const i=t.getChild(0);if(i?.is("$text")){const t=i.data.trim();return n.createElement("mathtex-display",{equation:t,type:e.forceOutputType?e.outputType:"script",display:!0})}return null}}).elementToElement({view:{name:"span",classes:[e.className]},model:(t,{writer:n})=>{const i=t.getChild(0);if(i?.is("$text")){const t=i.data.trim(),r=Object.assign(TL(t),{type:e.forceOutputType?e.outputType:"span"});return n.createElement(r.display?"mathtex-display":"mathtex-inline",r)}return null}}).elementToElement({view:{name:"span",classes:["ql-formula"]},model:(t,{writer:n})=>{const i=t.getAttribute("data-value");if(null==i)throw new wi("missing-equation",{pluginName:"math"});return n.createElement("mathtex-inline",{equation:i.trim(),type:e.forceOutputType?e.outputType:"script",display:!1})}}),t.for("editingDowncast").elementToElement({model:"mathtex-inline",view:(t,{writer:e})=>fy(n(t,e),e)}).elementToElement({model:"mathtex-display",view:(t,{writer:e})=>fy(n(t,e),e)}),t.for("dataDowncast").elementToElement({model:"mathtex-inline",view:i}).elementToElement({model:"mathtex-display",view:i})}}class OL extends af{constructor(t,e,n,i,r,o){super(n),this.engine=t,this.lazyLoad=e,this.previewUid=i,this.katexRenderOptions=o,this.previewClassName=r,this.set("value",""),this.value="",this.set("display",!1),this.display=!1,this.on("change",(()=>{this.isRendered&&this.updateMath()})),this.setTemplate({tag:"div",attributes:{class:["ck","ck-math-preview"]}})}updateMath(){this.element&&SL(this.value,this.element,this.engine,this.lazyLoad,this.display,!0,this.previewUid,this.previewClassName,this.katexRenderOptions)}render(){super.render(),this.updateMath()}}var NL=n(7111),RL={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(NL.A,RL);NL.A.locals;const{check:FL,cancel:jL}=Ld;class $L extends Tg{constructor(t){super(t,Pp),this.value=null,this.isReadOnly=!1}}class zL extends af{constructor(t,e,n,i=!1,r,o,a,s){super(t),this.locale=new Co,this.focusTracker=new Eo,this.keystrokes=new To,this._focusables=new Od,this._focusCycler=new _f({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const c=t.t;this.saveButtonView=this._createButton(c("Save"),FL,"ck-button-save",null),this.saveButtonView.type="submit",this.mathInputView=this._createMathInput(),this.displayButtonView=this._createDisplayButton(),this.cancelButtonView=this._createButton(c("Cancel"),jL,"ck-button-cancel","cancel"),this.previewEnabled=i;let l=[];this.previewEnabled?(this.previewLabel=new Zf(t),this.previewLabel.text=c("Equation preview"),this.mathView=new OL(e,n,t,r,o,s),this.mathView.bind("display").to(this.displayButtonView,"isOn"),l=[this.mathInputView,this.displayButtonView,this.previewLabel,this.mathView]):l=[this.mathInputView,this.displayButtonView],this.setTemplate({tag:"form",attributes:{class:["ck","ck-math-form",...a],tabindex:"-1",spellcheck:"false"},children:[{tag:"div",attributes:{class:["ck-math-view"]},children:l},this.saveButtonView,this.cancelButtonView]})}render(){super.render(),lf({view:this});[this.mathInputView,this.displayButtonView,this.saveButtonView,this.cancelButtonView].forEach((t=>{t.element&&(this._focusables.add(t),this.focusTracker.add(t.element))})),this.element&&this.keystrokes.listenTo(this.element)}focus(){this._focusCycler.focusFirst()}get equation(){return this.mathInputView.fieldView.element?.value??""}set equation(t){this.mathInputView.fieldView.element&&(this.mathInputView.fieldView.element.value=t),this.previewEnabled&&this.mathView&&(this.mathView.value=t)}_createMathInput(){const t=this.locale.t,e=new $L(this.locale),n=e.fieldView;e.infoText=t("Insert equation in TeX format.");const i=()=>{if(null!=n.element){let t=n.element.value.trim();if(EL(t)){const e=TL(t);n.element.value=e.equation,t=e.equation,this.displayButtonView.isOn=e.display}this.previewEnabled&&this.mathView&&(this.mathView.value=t),this.saveButtonView.isEnabled=!!t}};return n.on("render",i),n.on("input",i),e}_createButton(t,e,n,i){const r=new bf(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}_createDisplayButton(){const t=this.locale.t,e=new ig(this.locale);return e.set({label:t("Display mode"),withText:!0}),e.extendTemplate({attributes:{class:"ck-button-display-toggle"}}),e.on("execute",(()=>{e.isOn=!e.isOn,this.previewEnabled&&this.mathView&&(this.mathView.display=e.isOn)})),e}}const VL="Ctrl+M";class HL extends Oo{constructor(){super(...arguments),this._previewUid=`math-preview-${pi()}`,this._balloon=this.editor.plugins.get(yb),this.formView=null}static get requires(){return[yb,LL]}static get pluginName(){return"MathUI"}init(){this.editor.editing.view.addObserver(Rh),this._createToolbarMathButton(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}destroy(){super.destroy(),this.formView?.destroy();const t=Xn.document.getElementById(this._previewUid);t&&t.parentNode?.removeChild(t)}_showUI(){const t=this.editor.commands.get("math");t?.isEnabled&&(this._addFormView(),this._balloon.showStack("main"))}_createFormView(){const t=this.editor,e=t.commands.get("math");if(!(e instanceof PL))throw new wi("math-command");const n=t.config.get("math"),i=new zL(t.locale,n.engine,n.lazyLoad,n.enablePreview,this._previewUid,n.previewClassName,n.popupClassName,n.katexRenderOptions);return i.mathInputView.bind("value").to(e,"value"),i.displayButtonView.bind("isOn").to(e,"display"),i.mathInputView.bind("isReadOnly").to(e,"isEnabled",(t=>!t)),i.saveButtonView.bind("isEnabled").to(e),i.displayButtonView.bind("isEnabled").to(e),this.listenTo(i,"submit",(()=>{t.execute("math",i.equation,i.displayButtonView.isOn,n.outputType,n.forceOutputType),this._closeFormView()})),this.listenTo(i,"cancel",(()=>{this._closeFormView()})),i.keystrokes.set("esc",((t,e)=>{this._closeFormView(),e()})),i}_addFormView(){if(this._isFormInPanel)return;const t=this.editor,e=t.commands.get("math");if(!(e instanceof PL))throw new wi("plugin-load",{pluginName:"math"});if(null==this.formView)return;this._balloon.add({view:this.formView,position:DL(t)}),this._balloon.visibleView===this.formView&&this.formView.mathInputView.fieldView.element?.select();Xn.document.getElementById(this._previewUid)&&this.formView.previewEnabled&&this.formView.mathView?.updateMath(),this.formView.equation=e.value??"",this.formView.displayButtonView.isOn=e.display||!1}_hideUI(){if(!this._isFormInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView()}_closeFormView(){const t=this.editor.commands.get("math");null!=t?.value?this._removeFormView():this._hideUI()}_removeFormView(){if(this._isFormInPanel&&this.formView){this.formView.saveButtonView.focus(),this._balloon.remove(this.formView);const t=Xn.document.getElementById(this._previewUid);t&&(t.style.visibility="hidden"),this.editor.editing.view.focus()}}_createToolbarMathButton(){const t=this.editor,e=t.commands.get("math");if(!e)throw new wi("plugin-load",{pluginName:"math"});const n=t.t;t.keystrokes.set(VL,((t,n)=>{n(),e.isEnabled&&this._showUI()})),this.editor.ui.componentFactory.add("math",(t=>{const i=new bf(t);return i.isEnabled=!0,i.label=n("Insert math"),i.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 15.44 10.78" height="40.74" width="58.35"><path d="M8.15 0c-.06 0-.1.02-.11.03a.12.12 0 0 0-.02.01 6.81 6.81 0 0 0-2.32 4.9v.9a6.82 6.82 0 0 0 2.32 4.9.12.12 0 0 0 .02 0c.02.02.06.04.11.04.07 0 .12-.03.16-.07a.22.22 0 0 0 0-.32.12.12 0 0 0-.02-.02A4.4 4.4 0 0 1 7 8.44a7.62 7.62 0 0 1-.5-2.6v-.9c0-.82.19-1.76.5-2.6A4.4 4.4 0 0 1 8.3.42.12.12 0 0 0 8.3.39a.22.22 0 0 0 .08-.16.22.22 0 0 0-.07-.16.22.22 0 0 0-.16-.07zm4.83 0a.22.22 0 0 0-.16.07.22.22 0 0 0-.07.16c0 .08.05.13.08.16a.12.12 0 0 0 .01.02c.52.39.98 1.1 1.3 1.94.3.83.49 1.77.49 2.6v.88c0 .83-.18 1.78-.5 2.6a4.4 4.4 0 0 1-1.29 1.95.22.22 0 0 0-.01.33c.03.04.08.07.15.07.05 0 .09-.02.12-.03a.12.12 0 0 0 .02-.01 6.82 6.82 0 0 0 2.32-4.9v-.9a6.81 6.81 0 0 0-2.32-4.9.12.12 0 0 0-.02 0c-.03-.02-.06-.04-.12-.04zm-8.5.46c-.4 0-1.13.23-1.46 1.32-.06.2-.11.45-.33 1.58h-.64c-.1 0-.19-.01-.28.03a.25.25 0 0 0-.12.12.38.38 0 0 0-.03.17c0 .04 0 .1.04.14.03.04.07.07.11.08.09.03.16.02.26.02h.56l-.77 4.04c-.1.51-.19 1-.32 1.36-.06.18-.14.32-.22.4-.08.1-.16.13-.26.13-.03 0-.1 0-.2-.03.11-.05.2-.13.26-.2a.7.7 0 0 0 .13-.4.48.48 0 0 0-.16-.38.53.53 0 0 0-.35-.12c-.34 0-.7.3-.7.76 0 .27.14.5.34.64s.44.2.68.2c.33 0 .61-.17.83-.4.21-.21.37-.48.47-.69.18-.35.32-.84.43-1.25a14.17 14.17 0 0 0 .18-.8l.61-3.26h.81c.1 0 .2.01.3-.03.04-.03.09-.07.11-.13.02-.05.03-.1.03-.17 0-.05-.01-.1-.05-.14a.23.23 0 0 0-.11-.07c-.08-.03-.16-.02-.25-.02h-.73l.2-1.07a26.3 26.3 0 0 1 .24-1.07c.08-.17.22-.3.39-.3l.21.05a.7.7 0 0 0-.25.2.7.7 0 0 0-.13.4c0 .15.06.28.16.37.1.08.22.12.35.12.34 0 .7-.3.7-.76 0-.28-.15-.5-.35-.64-.2-.14-.45-.2-.7-.2zm5.4 2.78c-.6 0-1.06.37-1.36.76-.16.2-.27.4-.35.57-.07.18-.12.3-.12.42 0 .1.08.18.14.2.06.03.1.02.1.02.06 0 .12 0 .18-.04.05-.05.07-.1.08-.17v.02c.35-1.09 1-1.3 1.3-1.3.09 0 .2.01.29.09.09.07.17.2.17.5 0 .27-.18 1-.57 2.48a1.8 1.8 0 0 1-.37.75.7.7 0 0 1-.52.26c-.04 0-.13 0-.22-.03a.68.68 0 0 0 .3-.56.47.47 0 0 0-.18-.39.55.55 0 0 0-.32-.1c-.4 0-.7.33-.7.74 0 .28.16.5.38.63.21.13.48.18.73.18.39 0 .69-.2.89-.41.09-.1.15-.19.2-.27.2.36.59.68 1.16.68.6 0 1.05-.37 1.35-.76.15-.2.27-.4.34-.57.08-.18.12-.3.12-.42a.24.24 0 0 0-.11-.2c-.06-.03-.12-.02-.13-.02a.26.26 0 0 0-.18.06c-.05.05-.06.1-.07.14-.34 1.1-1.02 1.3-1.3 1.3-.17 0-.27-.06-.35-.17a.72.72 0 0 1-.11-.4c0-.22.06-.45.18-.91l.36-1.45c.03-.14.1-.44.25-.7.15-.25.36-.46.68-.46.03 0 .12 0 .22.03a.7.7 0 0 0-.32.56c0 .11.04.23.13.33.08.1.22.16.4.16.14 0 .3-.06.44-.18a.73.73 0 0 0 .24-.55c0-.32-.2-.54-.42-.66a1.52 1.52 0 0 0-.68-.16c-.34 0-.62.16-.82.34a1.8 1.8 0 0 0-.3.35 1.32 1.32 0 0 0-.5-.54 1.37 1.37 0 0 0-.63-.15z" style="line-height:1.25;-inkscape-font-specification:\'Latin Modern Math\'" font-weight="400" font-size="10.58" font-family="Latin Modern Math" letter-spacing="-1.06" word-spacing="0"/></svg>\n',i.keystroke=VL,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(e,"isEnabled"),this.listenTo(i,"execute",(()=>{this._showUI()})),i}))}_enableUserBalloonInteractions(){const t=this.editor,e=this.editor.editing.view.document;if(this.listenTo(e,"click",(()=>{const e=t.commands.get("math");e?.isEnabled&&e.value&&this._showUI()})),t.keystrokes.set("Esc",((t,e)=>{this._isUIVisible&&(this._hideUI(),e())})),!this.formView)throw new Error("missing form view");sf({emitter:this.formView,activator:()=>!!this._isFormInPanel,contextElements:this._balloon.view.element?[this._balloon.view.element]:[],callback:()=>{this._hideUI()}})}get _isUIVisible(){return this._balloon.visibleView==this.formView}get _isFormInPanel(){return this.formView&&this._balloon.hasView(this.formView)}}class qL extends Oo{static get requires(){return[u_,w_]}static get pluginName(){return"AutoMath"}constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}init(){const t=this.editor,e=t.model.document;this.listenTo(t.plugins.get(u_),"inputTransformation",(()=>{const t=e.selection.getFirstRange();if(!t)return;const n=Qu.fromPosition(t.start);n.stickiness="toPrevious";const i=Qu.fromPosition(t.end);i.stickiness="toNext",e.once("change:data",(()=>{this._mathBetweenPositions(n,i),n.detach(),i.detach()}),{priority:"high"})})),t.commands.get("undo")?.on("execute",(()=>{this._timeoutId&&(Xn.window.clearTimeout(this._timeoutId),this._positionToInsert?.detach(),this._timeoutId=null,this._positionToInsert=null)}),{priority:"high"})}_mathBetweenPositions(t,e){const n=this.editor,i=this.editor.config.get("math"),r=new ll(t,e),o=r.getWalker({ignoreElementEnd:!0});let a="";for(const t of o)t.item.is("$textProxy")&&(a+=t.item.data);if(a=a.trim(),!EL(a)||2!==function(t){return t.match(/(\\\[|\\\]|\\\(|\\\))/g)?.length}(a))return;const s=n.commands.get("math");s?.isEnabled&&(this._positionToInsert=Qu.fromPosition(t),this._timeoutId=Xn.window.setTimeout((()=>{n.model.change((t=>{let e;this._timeoutId=null,t.remove(r),"$graveyard"!==this._positionToInsert?.root.rootName&&(e=this._positionToInsert),n.model.change((t=>{const r=Object.assign(TL(a),{type:i.outputType}),o=t.createElement(r.display?"mathtex-display":"mathtex-inline",r);n.model.insertContent(o,e),t.setSelection(o,"on")})),this._positionToInsert?.detach(),this._positionToInsert=null}))}),100))}}class UL extends Oo{static get requires(){return[LL,HL,qL,Ny]}static get pluginName(){return"Math"}}var GL=n(7241),WL={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Uo()(GL.A,WL);GL.A.locals;const KL='<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">\n <text x="2" y="15" font-family="Arial, sans-serif" font-size="14" fill="currentColor">ab</text>\n <text x="17" y="10" font-family="Arial, sans-serif" font-size="8" fill="currentColor">1</text>\n</svg>\n',YL="footnoteItem",XL="footnoteReference",ZL="footnoteSection",QL="footnoteContent",JL="footnoteBackLink",tO="footnote-content",eO="footnote-item",nO="footnote-reference",iO="footnote-section",rO="footnote-back-link",oO="footnotes",aO="InsertFootnote",sO="data-footnote-content",cO="data-footnote-id",lO="data-footnote-index",uO="data-footnote-item",hO="data-footnote-reference",dO="data-footnote-section",fO="data-footnote-back-link",gO=(t,e,n=t=>!0)=>{const i=t.model.createRangeIn(e),r=[];for(const t of i.getItems())t instanceof $c&&n(t)&&r.push(t);return r},pO=(t,e,n=t=>!0)=>{const i=t.model.createRangeIn(e);for(const t of i.getItems())if(t instanceof $c&&n(t))return t;return null},mO=(t,e)=>{if(t.plugins.has("Autoformat")){const n=t.plugins.get("Autoformat");xk(t,n,(e=>((t,e)=>{const n=t.model.document.selection.anchor,i=n&&(n.textNode||n.getShiftedBy(-1).textNode);if(!n||!i)return{remove:[],format:[]};const r=e.matchAll(/\[\^([0-9]+)\]/g);for(const t of r||[]){const r=e.indexOf(t[0]),o=r+t[0].length,a=n.parent.getChildStartOffset(i);if(null===a||n.offset!==a+o)continue;const s=r+2;return{remove:[[r,o]],format:[[s,s+t[1].length]]}}return{remove:[],format:[]}})(t,e)),((n,i)=>((t,e,n)=>{const i=e.commands.get(aO);if(!i||!i.isEnabled)return;const r=[...t[0].getItems()][0];if(!(r instanceof jc||r instanceof Fc))return!1;const o=r.data.match(/[0-9]+/);if(!o)return!1;const a=parseInt(o[0]),s=pO(e,n,(t=>t.is("element",ZL)));if(!s)return 1===a&&void e.execute(aO);const c=gO(e,s,(t=>t.is("element",YL))).length;if(a!==c+1){if(!(a>=1&&a<=c))return!1;e.execute(aO,{footnoteIndex:a})}else e.execute(aO)})(i,t,e)))}},bO=t=>{const e=t.conversion;e.for("downcast").attributeToAttribute({model:cO,view:cO}),e.for("downcast").attributeToAttribute({model:lO,view:lO}),e.for("upcast").elementToElement({view:{attributes:{[dO]:!0}},model:ZL,converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:ZL,view:{name:"ol",attributes:{[dO]:"",role:"doc-endnotes"},classes:[iO,oO]}}),e.for("editingDowncast").elementToElement({model:ZL,view:(t,e)=>{const n=e.writer;return fy(n.createContainerElement("div",{[dO]:"",role:"doc-endnotes list",class:iO}),n,{label:"footnote widget"})}}),e.for("upcast").elementToElement({view:{attributes:{[sO]:!0}},model:(t,e)=>e.writer.createElement(QL)}),e.for("dataDowncast").elementToElement({model:QL,view:{name:"div",attributes:{[sO]:""},classes:[tO]}}),e.for("editingDowncast").elementToElement({model:QL,view:(t,e)=>{const n=e.writer;return by(n.createEditableElement("div",{[sO]:"",class:tO}),n)}}),e.for("upcast").elementToElement({view:{attributes:{[uO]:!0}},model:(t,e)=>{const n=e.writer,i=t.getAttribute(cO),r=t.getAttribute(lO);return void 0===i||void 0===r?null:n.createElement(YL,{[lO]:r,[cO]:i})},converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:YL,view:vO}),e.for("editingDowncast").elementToElement({model:YL,view:vO}),e.for("upcast").elementToElement({view:{attributes:{[hO]:!0}},model:(t,e)=>{const n=e.writer,i=t.getAttribute(lO),r=t.getAttribute(cO);return void 0===i||void 0===r?null:n.createElement(XL,{[lO]:i,[cO]:r})}}),e.for("editingDowncast").elementToElement({model:XL,view:(t,e)=>{const n=e.writer;return fy(kO(t,e),n)}}),e.for("dataDowncast").elementToElement({model:XL,view:kO}),e.for("editingDowncast").add((e=>{e.on(`attribute:${lO}:${XL}`,((e,n,i)=>function(t,e,n){const{item:i,attributeNewValue:r}=t;if(!(i instanceof $c&&e.consumable.consume(i,`attribute:${lO}:${XL}`)))return;const o=e.mapper.toViewElement(i);if(!o)return;const a=e.writer,s=((t,e,n=t=>!0)=>{const i=t.editing.view.createRangeIn(e);for(const t of i.getItems())if(t instanceof Ra&&n(t))return t;return null})(n,o,(t=>"a"===t.name)),c=null==s?void 0:s.getChild(0);if(!c||!s)return void a.remove(o);a.remove(c);const l=a.createText(`[${r}]`);a.insert(a.createPositionAt(s,0),l),a.setAttribute("href",`#fn${i.getAttribute(cO)}`,s),a.setAttribute(lO,r,o)}(n,i,t)),{priority:"high"})})),e.for("upcast").elementToElement({view:{attributes:{[fO]:!0}},model:(t,e)=>{const n=e.writer,i=t.getAttribute(cO);return void 0===i?null:n.createElement(JL,{[cO]:i})}}),e.for("dataDowncast").elementToElement({model:JL,view:wO}),e.for("editingDowncast").elementToElement({model:JL,view:wO})};function wO(t,e){const n=e.writer,i=`${t.getAttribute(cO)}`;if(void 0===i)throw new Error("Footnote return link has no provided Id.");const r=n.createContainerElement("span",{class:rO,[fO]:"",[cO]:i}),o=n.createContainerElement("sup"),a=n.createContainerElement("strong"),s=n.createContainerElement("a",{href:`#fnref${i}`}),c=n.createText("^");return n.insert(n.createPositionAt(s,0),c),n.insert(n.createPositionAt(a,0),s),n.insert(n.createPositionAt(o,0),a),n.insert(n.createPositionAt(r,0),o),r}function kO(t,e){const n=e.writer,i=`${t.getAttribute(lO)}`,r=`${t.getAttribute(cO)}`;if("undefined"===i)throw new Error("Footnote reference has no provided index.");if("undefined"===r)throw new Error("Footnote reference has no provided id.");const o=n.createContainerElement("span",{class:nO,[hO]:"",[lO]:i,[cO]:r,role:"doc-noteref",id:`fnref${r}`}),a=n.createText(`[${i}]`),s=n.createContainerElement("a",{href:`#fn${r}`}),c=n.createContainerElement("sup");return n.insert(n.createPositionAt(s,0),a),n.insert(n.createPositionAt(c,0),s),n.insert(n.createPositionAt(o,0),c),o}function vO(t,e){const n=e.writer,i=t.getAttribute(lO),r=t.getAttribute(cO);if(!i)throw new Error("Footnote item has no provided index.");if(!r)throw new Error("Footnote item has no provided id.");return n.createContainerElement("li",{class:eO,[uO]:"",[lO]:`${i}`,[cO]:`${r}`,role:"doc-endnote",id:`fn${r}`})}class yO extends Ro{execute({footnoteIndex:t}={footnoteIndex:0}){this.editor.model.enqueueChange((e=>{const n=this.editor.model.document,i=n.getRoot();if(!i)return;const r=this._getFootnoteSection(e,i);let o,a;if(0===t)o=`${r.maxOffset+1}`,a=Math.random().toString(36).slice(2);else{o=`${t}`;const e=pO(this.editor,r,(t=>t.is("element",YL)&&t.getAttribute(lO)===o));e&&(a=e.getAttribute(cO))}if(!a||!o)return;e.setSelection(n.selection.getLastPosition());const s=e.createElement(XL,{[cO]:a,[lO]:o});if(this.editor.model.insertContent(s),e.setSelection(s,"after"),0!==t)return;const c=e.createElement(QL),l=e.createElement(YL,{[cO]:a,[lO]:o}),u=e.createElement(JL,{[cO]:a}),h=e.createElement("paragraph");e.append(h,c),e.append(c,l),e.insert(u,l,0),this.editor.model.insertContent(l,e.createPositionAt(r,r.maxOffset))}))}refresh(){const t=this.editor.model,e=t.document.selection.getLastPosition(),n=e&&t.schema.findAllowedParent(e,ZL);this.isEnabled=null!==n}_getFootnoteSection(t,e){const n=pO(this.editor,e,(t=>t.is("element",ZL)));if(n)return n;const i=t.createElement(ZL);return this.editor.model.insertContent(i,t.createPositionAt(e,e.maxOffset)),i}}class _O extends Oo{static get requires(){return[Ny,Tk]}get rootElement(){const t=this.editor.model.document.getRoot();if(!t)throw new Error("Document has no rootElement element.");return t}init(){var t;(t=this.editor.model.schema).register(ZL,{isObject:!0,allowWhere:"$block",allowIn:"$root",allowChildren:YL,allowAttributes:[dO]}),t.register(YL,{isBlock:!0,isObject:!0,allowContentOf:"$root",allowAttributes:[dO,cO,lO]}),t.register(QL,{allowIn:YL,allowContentOf:"$root",allowAttributes:[dO]}),t.register(XL,{allowWhere:"$text",isInline:!0,isObject:!0,allowAttributes:[hO,cO,lO]}),t.register(JL,{allowIn:YL,isInline:!0,isSelectable:!1,allowAttributes:[fO,cO]}),t.addChildCheck(((t,e)=>(!t.endsWith(QL)||e.name!==ZL)&&(!t.endsWith(QL)||"listItem"!==e.name)&&void 0)),bO(this.editor),this.editor.commands.add(aO,new yO(this.editor)),mO(this.editor,this.rootElement),this.editor.model.document.on("change:data",((t,e)=>{const n=[...t.source.differ.getChanges()];n.some((t=>"insert"===t.type&&t.name===XL))&&this._orderFootnotes(e),n.forEach((t=>{if("attribute"===t.type&&t.attributeKey===lO){const{attributeNewValue:n}=t,i=[...t.range.getItems()].find((t=>t.is("element",YL))),r=i instanceof $c&&i.getAttribute(cO);if(!r)return;this._updateReferenceIndices(e,`${r}`,n)}}))}),{priority:"high"}),this._handleDelete(),this.editor.editing.mapper.on("viewToModelPosition",ky(this.editor.model,(t=>t.hasAttribute(hO))))}_handleDelete(){const t=this.editor.editing.view.document,e=this.editor;this.listenTo(t,"delete",((t,n)=>{const i=e.model.document,r=i.selection.getSelectedElement(),o=i.selection.getLastPosition(),a=i.selection.getFirstPosition();if(!o||!a)throw new Error("Selection must have at least one range to perform delete operation.");this.editor.model.change((e=>{r&&r.is("element",ZL)&&this._removeReferences(e);const i=r&&r.is("element",YL),s=i?r:o.findAncestor(YL);if(!s)return;const c=o.findAncestor("paragraph"),l=a.findAncestor("paragraph"),u=o.findAncestor(QL);if(!u||!l||!c)return;const h=0===l.maxOffset&&1===u.childCount;(i||h)&&(this._removeFootnote(e,s),n.preventDefault(),t.stop())}))}),{priority:"high"})}_clearContents(t,e){const n=t.createRangeIn(e);t.appendElement("paragraph",e),t.remove(n)}_removeFootnote(t,e){if(!this.editor)return;const n=e.findAncestor(ZL);if(!n)return void t.remove(e);const i=n.getChildIndex(e),r=e.getAttribute(cO);if(this._removeReferences(t,`${r}`),t.remove(e),0===n.childCount)t.remove(n),this._removeReferences(t);else{if(null==i)throw new Error("Index is nullish");const e=0===i?n.getChild(i):n.getChild((null!=i?i:0)-1);if(!(e instanceof $c))return;const r=gO(this.editor,e,(t=>t.is("element","paragraph"))).pop();r&&t.setSelection(r,"end")}if(null==i)throw new Error("Index is nullish");const o=[...n.getChildren()].slice(null!=i?i:0);for(const[e,n]of o.entries())t.setAttribute(lO,`${null!=i?i:0+e+1}`,n)}_removeReferences(t,e=void 0){const n=[];if(!this.rootElement)throw new Error("Document has no root element.");gO(this.editor,this.rootElement,(t=>t.is("element",XL))).forEach((t=>{const i=t.getAttribute(cO);e&&i!==e||n.push(t)}));for(const e of n)t.remove(e)}_updateReferenceIndices(t,e,n){const i=gO(this.editor,this.rootElement,(t=>t.is("element",XL)&&t.getAttribute(cO)===e));this.editor.model.enqueueChange(t,(t=>{i.forEach((e=>{t.setAttribute(lO,n,e)}))}))}_orderFootnotes(t){const e=gO(this.editor,this.rootElement,(t=>t.is("element",XL))),n=[...new Set(e.map((t=>t.getAttribute(cO))))].map((t=>pO(this.editor,this.rootElement,(e=>e.is("element",YL)&&e.getAttribute(cO)===t))));this.editor.model.enqueueChange(t,(e=>{var i;const r=pO(this.editor,this.rootElement,(t=>t.is("element",ZL)));if(r){for(const t of n.reverse())t&&e.move(e.createRangeOn(t),r,0);for(const n of gO(this.editor,r,(t=>t.is("element",YL)))){const o=`${(null!==(i=null==r?void 0:r.getChildIndex(n))&&void 0!==i?i:-1)+1}`;n&&e.setAttribute(lO,o,n);const a=n.getAttribute(cO);a&&this._updateReferenceIndices(t,`${a}`,`${o}`)}}}))}}class CO extends Oo{init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("footnote",(n=>{const i=Ep(n),r=t.commands.get(aO);if(!r)throw new Error("Command not found.");return i.buttonView.set({label:e("Footnote"),icon:KL,tooltip:!0}),i.class="ck-code-block-dropdown",i.bind("isEnabled").to(r),i.on("change:isOpen",((t,e,n)=>{var r,o,a;if(null===(r=null==i?void 0:i.listView)||void 0===r||r.items.clear(),n)Dp(i,this.getDropdownItemsDefinitions());else{null===(o=null==i?void 0:i.listView)||void 0===o||o.items.clear();const t=null===(a=null==i?void 0:i.listView)||void 0===a?void 0:a.element;t&&t.parentNode&&t.parentNode.removeChild(t)}})),this.listenTo(i,"execute",(e=>{t.execute(aO,{footnoteIndex:e.source.commandParam}),t.editing.view.focus()})),i}))}getDropdownItemsDefinitions(){const t=new Ao,e={type:"button",model:new pb({commandParam:0,label:"New footnote",withText:!0})};t.add(e);const n=this.editor.model.document.getRoot();if(!n)throw new Error("Document has no root element.");if(pO(this.editor,n,(t=>t.is("element",ZL)))){gO(this.editor,n,(t=>t.is("element",YL))).forEach((e=>{const n=e.getAttribute(lO),i={type:"button",model:new pb({commandParam:n,label:`Insert footnote ${n}`,withText:!0})};t.add(i)}))}return t}}const AO=[u_,dv,tM,mv,rk,w_,class extends Oo{static get requires(){return[Ow]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(Ow).createUploadAdapter=e=>new $w(e,t,this.editor.t))}},Tk,class extends Oo{static get requires(){return[Bk,Lk]}static get pluginName(){return"Bold"}},class extends Oo{static get requires(){return[Vk,qk]}static get pluginName(){return"Italic"}},class extends Oo{static get requires(){return[rv,av]}static get pluginName(){return"Underline"}},class extends Oo{static get requires(){return[Gk,Kk]}static get pluginName(){return"Strikethrough"}},class extends Oo{static get requires(){return[Nk,$k]}static get pluginName(){return"Code"}},class extends Oo{static get requires(){return[tv,nv]}static get pluginName(){return"Superscript"}},class extends Oo{static get requires(){return[Xk,Qk]}static get pluginName(){return"Subscript"}},class extends Oo{static get requires(){return[yv,Av]}static get pluginName(){return"BlockQuote"}},class extends Oo{static get requires(){return[Mv,Nv]}static get pluginName(){return"Heading"}},class extends Oo{static get requires(){return[J_,eC]}static get pluginName(){return"Image"}},class extends Oo{static get requires(){return[rC,oC]}static get pluginName(){return"ImageCaption"}},class extends Oo{static get requires(){return[eA,rA]}static get pluginName(){return"ImageStyle"}},class extends Oo{static get requires(){return[Fy,x_]}static get pluginName(){return"ImageToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(Fy),i=t.plugins.get("ImageUtils");var r;n.register("image",{ariaLabel:e("Image toolbar"),items:(r=t.config.get("image.toolbar")||[],r.map((t=>a(t)?t.name:t))),getRelatedElement:t=>i.getClosestSelectedImageWidget(t)})}},class extends Oo{static get pluginName(){return"ImageUpload"}static get requires(){return[xC,hC,wC]}},class extends Oo{static get requires(){return[BC,FC,UC,PC]}static get pluginName(){return"ImageResize"}},eC,class extends Oo{static get requires(){return[WA,ex,rx]}static get pluginName(){return"Link"}},rx,rE,AE,Sv,class extends Oo{static get pluginName(){return"PasteFromOffice"}static get requires(){return[oy]}init(){const t=this.editor,e=t.plugins.get("ClipboardPipeline"),n=t.editing.view.document,i=[],r=this.editor.plugins.has("MultiLevelList");i.push(new $E(n,r)),i.push(new qE(n)),i.push(new GE(n)),e.on("inputTransformation",((e,r)=>{if(r._isTransformedWithPasteFromOffice)return;if(t.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const o=r.dataTransfer.getData("text/html"),a=i.find((t=>t.isActive(o)));a&&(r._parsedData||(r._parsedData=KE(o,n.stylesProcessor)),a.execute(r),r._isTransformedWithPasteFromOffice=!0)}),{priority:"high"})}},class extends Oo{static get requires(){return[$_,x_]}static get pluginName(){return"PictureEditing"}afterInit(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),t.plugins.has("ImageInlineEditing")&&t.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration()}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("upcast").add(function(t){const e=["srcset","media","type","sizes"],n=(n,i,r)=>{const o=i.viewItem;if(!r.consumable.test(o,{name:!0}))return;const a=new Map;for(const t of o.getChildren())if(t.is("element","source")){const n={};for(const i of e)t.hasAttribute(i)&&r.consumable.test(t,{attributes:i})&&(n[i]=t.getAttribute(i));Object.keys(n).length&&a.set(t,n)}const s=t.findViewImgElement(o);if(!s)return;let c=i.modelCursor.parent;if(!c.is("element","imageBlock")){const t=r.convertItem(s,i.modelCursor);i.modelRange=t.modelRange,i.modelCursor=t.modelCursor,c=xo(t.modelRange.getItems())}r.consumable.consume(o,{name:!0});for(const[t,e]of a)r.consumable.consume(t,{attributes:Object.keys(e)});a.size&&r.writer.setAttribute("sources",Array.from(a.values()),c),r.convertChildren(o,c)};return t=>{t.on("element:picture",n)}}(n)),e.for("downcast").add(function(t){const e=(e,n,i)=>{if(!i.consumable.consume(n.item,e.name))return;const r=i.writer,o=i.mapper.toViewElement(n.item),a=t.findViewImgElement(o),s=n.attributeNewValue;if(s&&s.length){const t=r.createContainerElement("picture",null,s.map((t=>r.createEmptyElement("source",t)))),e=[];let n=a.parent;for(;n&&n.is("attributeElement");){const t=n.parent;r.unwrap(r.createRangeOn(a),n),e.unshift(n),n=t}r.insert(r.createPositionBefore(a),t),r.move(r.createRangeOn(a),r.createPositionAt(t,"end"));for(const n of e)r.wrap(r.createRangeOn(t),n)}else if(a.parent.is("element","picture")){const t=a.parent;r.move(r.createRangeOn(a),r.createPositionBefore(t)),r.remove(t)}};return t=>{t.on("attribute:sources:imageBlock",e),t.on("attribute:sources:imageInline",e)}}(n))}_setupImageUploadEditingIntegration(){const t=this.editor;if(!t.plugins.has("ImageUploadEditing"))return;const e=t.plugins.get("ImageUploadEditing");this.listenTo(e,"uploadComplete",((e,{imageElement:n,data:i})=>{const r=i.sources;r&&t.model.change((t=>{t.setAttributes({sources:r},n)}))}))}},class extends Oo{static get requires(){return[pS,vS,AS,BS,DS,xS,Ny]}static get pluginName(){return"Table"}},class extends Oo{static get requires(){return[Fy]}static get pluginName(){return"TableToolbar"}afterInit(){const t=this.editor,e=t.t,n=t.plugins.get(Fy),i=t.config.get("table.contentToolbar"),r=t.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:RS}),r&&n.register("table",{ariaLabel:e("Table toolbar"),items:r,getRelatedElement:NS})}},class extends Oo{static get pluginName(){return"TableProperties"}static get requires(){return[KD,eI]}},class extends Oo{static get pluginName(){return"TableCellProperties"}static get requires(){return[RD,CD]}},AS,class extends Oo{static get pluginName(){return"TableCaption"}static get requires(){return[sI,cI]}},class extends Oo{static get requires(){return[fI,ED]}static get pluginName(){return"TableColumnResize"}},class extends Oo{static get pluginName(){return"Indent"}static get requires(){return[HB,qB]}},class extends Oo{constructor(t){super(t),t.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}init(){const t=this.editor,e=t.config.get("indentBlock");e.classes&&e.classes.length?(this._setupConversionUsingClasses(e.classes),t.commands.add("indentBlock",new UB(t,new WB({direction:"forward",classes:e.classes}))),t.commands.add("outdentBlock",new UB(t,new WB({direction:"backward",classes:e.classes})))):(t.data.addStyleProcessorRules(Ad),this._setupConversionUsingOffset(),t.commands.add("indentBlock",new UB(t,new GB({direction:"forward",offset:e.offset,unit:e.unit}))),t.commands.add("outdentBlock",new UB(t,new GB({direction:"backward",offset:e.offset,unit:e.unit}))))}afterInit(){const t=this.editor,e=t.model.schema,n=t.commands.get("indent"),i=t.commands.get("outdent"),r=t.config.get("heading.options");(r&&r.map((t=>t.model))||KB).forEach((t=>{e.isRegistered(t)&&e.extend(t,{allowAttributes:"blockIndent"})})),e.setAttributeProperties("blockIndent",{isFormatting:!0}),n.registerChildCommand(t.commands.get("indentBlock")),i.registerChildCommand(t.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const t=this.editor.conversion,e="rtl"===this.editor.locale.contentLanguageDirection?"margin-right":"margin-left";t.for("upcast").attributeToAttribute({view:{styles:{[e]:/[\s\S]+/}},model:{key:"blockIndent",value:t=>{if(!t.is("element","li"))return t.getStyle(e)}}}),t.for("downcast").attributeToAttribute({model:"blockIndent",view:t=>({key:"style",value:{[e]:t}})})}_setupConversionUsingClasses(t){const e={model:{key:"blockIndent",values:[]},view:{}};for(const n of t)e.model.values.push(n),e.view[n]={key:"class",value:[n]};this.editor.conversion.attributeToAttribute(e)}},class extends Oo{static get requires(){return[Sv]}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("paragraph",(n=>{const i=new bf(n),r=t.commands.get("paragraph");return i.label=e("Paragraph"),i.icon=Ld.paragraph,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(r),i.bind("isOn").to(r,"value"),i.on("execute",(()=>{t.execute("paragraph")})),i}))}},class extends Oo{init(){Pv(this.editor).filter((t=>"paragraph"!==t.model)).map((t=>this._createButton(t)))}_createButton(t){const e=this.editor;e.ui.componentFactory.add(t.model,(n=>{const i=new bf(n),r=e.commands.get("heading");return i.label=t.title,i.icon=t.icon||Rv[t.model],i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(r),i.bind("isOn").to(r,"value",(e=>e==t.model)),i.on("execute",(()=>{e.execute("heading",{value:t.model}),e.editing.view.focus()})),i}))}},class extends Oo{static get requires(){return[KP]}static get pluginName(){return"fileUploadPlugin"}},class extends Oo{static get requires(){return[Ow]}static get pluginName(){return"UploadimagePlugin"}init(){this.editor.plugins.get("FileRepository").createUploadAdapter=t=>new wL(t)}},class extends Oo{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(t){super(t),t.config.define("typing",{transformations:{include:mk}})}init(){const t=this.editor.model.document.selection;t.on("change:range",(()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}_enableTransformationWatchers(){const t=this.editor,e=t.model,n=t.plugins.get("Delete"),i=function(t){const e=t.extra||[],n=t.remove||[],i=t=>!n.includes(t);return function(t){const e=new Set;for(const n of t)if("string"==typeof n&&pk[n])for(const t of pk[n])e.add(t);else e.add(n);return Array.from(e)}(t.include.concat(e).filter(i)).filter(i).map((t=>"string"==typeof t&&gk[t]?gk[t]:t)).filter((t=>"object"==typeof t)).map((t=>({from:bk(t.from),to:wk(t.to)})))}(t.config.get("typing.transformations")),r=new ak(t.model,(t=>{for(const e of i){if(e.from.test(t))return{normalizedTransformation:e}}}));r.on("matched:data",((t,i)=>{if(!i.batch.isTyping)return;const{from:r,to:o}=i.normalizedTransformation,a=r.exec(i.text),s=o(a.slice(1)),c=i.range;let l=a.index;e.enqueueChange((t=>{for(let n=1;n<a.length;n++){const i=a[n],r=s[n-1];if(null==r){l+=i.length;continue}const o=c.start.getShiftedBy(l),u=e.createRange(o,o.getShiftedBy(i.length)),h=kk(o);e.insertContent(t.createText(r,h),u),l+=r.length}e.enqueueChange((()=>{n.requestUndoOnBackspace()}))}))})),r.bind("isEnabled").to(this)}},class extends Oo{static get requires(){return[BI,VI,WI,ZI]}static get pluginName(){return"Font"}},WI,ZI,class extends Oo{static get requires(){return[dB,bB]}static get pluginName(){return"CodeBlock"}},tM,class extends Oo{static get requires(){return[rM,oM,Ny]}static get pluginName(){return"HorizontalLine"}},class extends Oo{static get requires(){return[lM,sM]}static get pluginName(){return"RemoveFormat"}},class extends Oo{_characters;_groups;_allSpecialCharactersGroupLabel;static get requires(){return[rk,zf]}static get pluginName(){return"SpecialCharacters"}constructor(t){super(t);const e=t.t;this._characters=new Map,this._groups=new Map,this._allSpecialCharactersGroupLabel=e("All")}init(){const t=this.editor;t.ui.componentFactory.add("specialCharacters",(()=>{const t=this._createDialogButton(bf);return t.set({tooltip:!0}),t})),t.ui.componentFactory.add("menuBar:specialCharacters",(()=>this._createDialogButton(Kf)))}addItems(t,e,n={label:t}){if(t===yM)throw new wi("special-character-invalid-group-name",null);const i=this._getGroup(t,n.label);for(const t of e)i.items.add(t.title),this._characters.set(t.title,t.character)}getGroups(){const t=Array.from(this._groups.keys()),e=this.editor.config.get("specialCharacters.order")||[],n=e.find((e=>!t.includes(e)));if(n)throw new wi("special-character-invalid-order-group-name",null,{invalidGroup:n});return new Set([...e,...t])}getCharactersForGroup(t){if(t===yM)return new Set(this._characters.keys());const e=this._groups.get(t);return e?e.items:void 0}getCharacter(t){return this._characters.get(t)}_getGroup(t,e){return this._groups.has(t)||this._groups.set(t,{items:new Set,label:e}),this._groups.get(t)}_updateGrid(t,e){e.tiles.clear();const n=this.getCharactersForGroup(t);for(const t of n){const n=this.getCharacter(t);e.tiles.add(e.createTile(n,t))}}_createDropdownPanelContent(t){const e=Array.from(this.getGroups()).map((t=>[t,this._groups.get(t).label])),n=new Map([[yM,this._allSpecialCharactersGroupLabel],...e]),i=new vM(t,n),r=new dM(t),o=new pM(t);return r.on("tileHover",((t,e)=>{o.set(e)})),r.on("tileFocus",((t,e)=>{o.set(e)})),i.on("change:currentGroupName",((t,e,n)=>{this._updateGrid(n,r)})),this._updateGrid(i.currentGroupName,r),{categoriesView:i,gridView:r,infoView:o}}_createDialogButton(t){const e=this.editor,n=e.locale,i=new t(e.locale),r=e.commands.get("insertText"),o=n.t,a=this.editor.plugins.get("Dialog");return i.set({label:o("Special characters"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.268 7.268 0 0 1 2.703 3.454 7.128 7.128 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.873.873 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.601 5.601 0 0 0 2.492-2.371 5.459 5.459 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.71 5.71 0 0 0 10 4.206 5.708 5.708 0 0 0 6.419 5.46 5.527 5.527 0 0 0 4.46 8.663a5.457 5.457 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.877.877 0 0 1-.614-.25.845.845 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.128 7.128 0 0 1 .199-4.352 7.268 7.268 0 0 1 2.703-3.455A7.475 7.475 0 0 1 10 2.5z"/></svg>',isToggleable:!0}),i.bind("isOn").to(a,"id",(t=>"specialCharacters"===t)),i.bind("isEnabled").to(r,"isEnabled"),i.on("execute",(()=>{"specialCharacters"!==a.id?this._showDialog():a.hide()})),i}_showDialog(){const t=this.editor,e=t.plugins.get("Dialog"),n=t.locale,i=n.t,{categoriesView:r,gridView:o,infoView:a}=this._createDropdownPanelContent(n),s=new bM(n,r,o,a);o.on("execute",((e,n)=>{t.execute("insertText",{text:n.character})})),e.show({id:"specialCharacters",title:i("Special characters"),className:"ck-special-characters",content:s,position:Lf})}},class extends Oo{static get pluginName(){return"SpecialCharactersEssentials"}static get requires(){return[EM,CM,AM,_M,xM]}},function(t){t.plugins.get("SpecialCharacters").addItems("Emoji",[{title:"smiley face",character:"😊"},{title:"grinning face",character:"😄"},{title:"grinning face with big eyes",character:"😃"},{title:"grinning face with sweat",character:"😅"},{title:"beaming face with smiling eyes",character:"😃"},{title:"neutral face",character:"😐"},{title:"rolling on the floor laughing",character:"🤣"},{title:"face with tears of joy",character:"😂"},{title:"heart",character:"❤️"},{title:"hands pressed together",character:"🙏"},{title:"thumbs up",character:"👍"},{title:"rocket",character:"🚀"},{title:"100",character:"💯"},{title:"wind blowing face",character:"🌬️"},{title:"floppy disk",character:"💾"}],{label:"Emoji"})},class extends Oo{static get requires(){return[Pw,yw]}static get pluginName(){return"FindAndReplace"}init(){const t=this.editor.plugins.get("FindAndReplaceUI"),e=this.editor.plugins.get("FindAndReplaceEditing"),n=e.state;t.on("findNext",((t,i)=>{i?(n.searchText=i.searchText,e.find(i.searchText,i)):this.editor.execute("findNext")})),t.on("findPrevious",((t,i)=>{i&&n.searchText!==i.searchText?e.find(i.searchText):this.editor.execute("findPrevious")})),t.on("replace",((t,i)=>{n.searchText!==i.searchText&&e.find(i.searchText);const r=n.highlightedResult;r&&this.editor.execute("replace",i.replaceText,r)})),t.on("replaceAll",((t,i)=>{n.searchText!==i.searchText&&e.find(i.searchText),this.editor.execute("replaceAll",i.replaceText,n.results)})),t.on("searchReseted",(()=>{n.clear(this.editor.model),e.stop()}))}},class extends Oo{toMentionAttribute(t,e){return _B(t,e)}static get pluginName(){return"Mention"}static get requires(){return[vB,LB]}},class extends Oo{init(){const t=this.editor;t.ui.componentFactory.add("internalLink",(e=>{const n=new bf(e);return n.set({label:"Internal Trilium link (CTRL-L)",icon:'<?xml version="1.0" encoding="UTF-8"?>\n<svg enable-background="new 0 0 256 256" version="1.1" viewBox="0 0 256 256" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">\n\t<path d="m232.6 27.598c-17.706 0.092041-40.298 3.7127-58.258 10.104-1.7959 0.63909-3.5465 1.3043-5.2402 1.998-3.1 1.2-6.0988 2.6016-8.7988 4.1016-2.2 1.2-4.3016 2.4988-6.1016 3.7988-21.6 15.5-27.9 44.2-28.6 65.4l14.9-10.5 14.301-10 51.199-35.9-49.1 39.301-14.1 11.299-14.801 11.801c20.4 6.5 52.4 9.7992 74.9-6.3008 3.1886-2.319 6.4708-5.1162 9.7559-8.459 0.14708-0.08175 0.29689-0.1571 0.44336-0.24023 2.3386-2.3386 4.7705-4.8714 7.0215-7.5898 0.02928-0.033868 0.05864-0.065681 0.08789-0.099609 0.0964-0.038723 0.1948-0.072111 0.29102-0.11133 14.544-16.737 27.833-39.152 32.252-55.658 0.67979-2.5395 1.1487-4.9387 1.3809-7.1562 0.11607-1.1088 0.17422-2.173 0.16797-3.1855-1.0438-0.3625-2.1849-0.68557-3.4121-0.9707-1.2272-0.28513-2.542-0.53096-3.9336-0.74024s-2.8595-0.38069-4.3965-0.51562c-3.0739-0.26987-6.4198-0.39341-9.9609-0.375zm-202.79 20.252c-11.737-0.05-22.113 1.4004-28.312 4.6504 0.9 5.6625 4.3309 13.419 9.3125 21.77v0.001953c3.3209 5.5664 7.332 11.395 11.74 17.043v0.001953c6.6127 8.4716 14.122 16.534 21.547 22.684 2.3 1.9 4.5008 3.5996 6.8008 5.0996 0.048555 0.0124 0.097907 0.019 0.14648 0.03125 1.7845 1.2837 3.569 2.2777 5.3535 3.1699 20.8 10.4 45.5 3.7984 62.1-4.1016l-14.301-7.2988-13.6-6.9004-48.127-24.607 49.928 21.707 14.5 6.3008 15.199 6.5996c-3.4-18.3-14.099-44-35.799-54.9-3.3-1.6-6.9004-3.1004-10.9-4.4004-2.9-0.9-5.8996-1.7-9.0996-2.5-11.65-2.75-24.751-4.2996-36.488-4.3496zm97.488 73.85 3.6992 13.9 3.5996 13.201 12.801 47.6-15.9-47-4.5-13.4-4.8008-14.199c-10.3 13.4-21.3 36.199-15.5 57.199 0.8747 3.11 2.1333 6.3182 3.6719 9.709 0.01066 0.06374 0.01836 0.12769 0.0293 0.19141 1.1 2.5 2.3988 5.0992 3.7988 7.6992 10.4 18.8 27.701 38.501 39.701 42.801 0.00763-0.00936 0.01581-0.01991 0.02344-0.0293 0.02502 0.00909 0.05119 0.02035 0.07617 0.0293 8.8-10.8 16.8-42.601 15.9-65.701-0.1-2.7-0.30117-5.2992-0.70117-7.6992-0.3-1.9-0.69922-3.8-1.1992-5.5-5.6-20.2-25.199-32.601-40.699-38.801z"/>\n</svg>\n',tooltip:!0}),n.bind("isEnabled").to(t,"isReadOnly",(t=>!t)),n.on("execute",(()=>{const e=t.editing.view.getDomRoot();glob.getComponentByEl(e).triggerCommand("addLinkToText")})),n}))}},class extends Oo{init(){this.editor.ui.componentFactory.add("markdownImport",(t=>{const e=new bf(t);return e.set({label:"Markdown import from clipboard",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="208" height="128" viewBox="0 0 208 128"><rect width="198" height="118" x="5" y="5" ry="10" stroke="#000" stroke-width="10" fill="none"/><path d="M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39zm125 0l-30-33h20V30h20v35h20z"/></svg>',tooltip:!0}),e.on("execute",(()=>{glob.importMarkdownInline()})),e}))}},class extends Oo{init(){this.htmlDataProcessor=new gu,this.editor.ui.componentFactory.add("cutToNote",(t=>{const e=new bf(t);return e.set({label:"Cut & paste selection to sub-note",icon:'<?xml version="1.0" encoding="utf-8"?>\n\x3c!-- Svg Vector Icons : http://www.onlinewebfonts.com/icon --\x3e\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">\n<metadata> Svg Vector Icons : http://www.onlinewebfonts.com/icon </metadata>\n<g><g><path d="M853.9,754.9c-26-45.4-66.5-76.2-109.1-87.8c-33.7-9.2-68.7-6.4-98.9,10.7l-90-157.3C611.6,409.5,736.5,160.5,759,121.2C788,70.4,736,10,736,10L500,422.8L264,10c0,0-52,60.4-22.9,111.2c22.5,39.3,147.5,288.3,203.1,399.3l-89.9,157.3c-30.2-17.1-65.3-19.9-98.9-10.7c-42.7,11.6-83.1,42.3-109.1,87.8c-46.8,81.7-28.9,179.7,39.7,219c30.4,17.5,65.7,20.3,99.6,11.1c42.6-11.6,83.1-42.4,109.1-87.7c11.4-20,18.9-41,22.8-61.8v0c0-0.2,0-0.3,0.2-0.5c0.2-1.7,0.5-3.5,0.7-5.4c19.3-129.5,55.8-195.7,81.6-227.8c25.9,32.1,62.4,98.3,81.7,227.8c0.2,1.9,0.5,3.6,0.7,5.4c0.1,0.2,0.1,0.3,0.2,0.5v0c3.9,20.8,11.4,41.8,22.7,61.8c26,45.3,66.5,76.1,109.2,87.7c34,9.2,69.2,6.4,99.7-11.1C882.8,934.5,900.6,836.5,853.9,754.9z M327.9,858.9c-14.8,25.8-38.1,45.2-62.5,51.8c-10.8,3-26.7,4.7-41.3-3.6c-31.1-17.8-36.2-70.1-11.1-114c15-26,37.8-45,62.5-51.8c10.7-2.9,26.7-4.7,41.3,3.6C347.9,762.7,353,814.9,327.9,858.9z M775.9,907.1c-14.6,8.4-30.4,6.6-41.3,3.6c-24.4-6.6-47.7-26-62.5-51.8c-25.1-44-20-96.2,11.1-114c14.7-8.3,30.6-6.5,41.3-3.6C749.3,748,772.1,767,787,793C812.1,837,807.1,889.3,775.9,907.1z"/><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g><g></g></g>\n</svg>',tooltip:!0}),e.on("execute",(()=>{const t=this.editor.editing.view.getDomRoot();glob.getComponentByEl(t).triggerCommand("cutIntoNote")})),e})),this.editor.getSelectedHtml=()=>this.getSelectedHtml(),this.editor.removeSelection=()=>this.removeSelection()}getSelectedHtml(){const t=this.editor.model,e=t.document,n=this.editor.data.toView(t.getSelectedContent(e.selection));return this.htmlDataProcessor.toData(n)}async removeSelection(){const t=this.editor.model;t.deleteContent(t.document.selection);const e=this.getComponent();await e.triggerCommand("saveNoteDetailNow")}getComponent(){const t=this.editor.editing.view.getDomRoot();return glob.getComponentByEl(t)}},class extends Oo{afterInit(){const t=this.editor;t.commands.add("mention",new bL(t))}},class extends Oo{static get requires(){return[vL,kL]}},class extends Oo{static get requires(){return[CL]}},function(t){function e(){let e=t.model.document.selection.getFirstPosition();for(;e;){if("tableCell"===e.name)return!0;e=e.parent}return!1}t.keystrokes.set("Tab",((n,i)=>{const r=t.commands.get("indentBlock");r.isEnabled&&!e()&&(r.execute(),i())})),t.keystrokes.set("Shift+Tab",((n,i)=>{const r=t.commands.get("outdentBlock");r.isEnabled&&!e()&&(r.execute(),i())}))},function(t){t.model.schema.setAttributeProperties("linkHref",{isFormatting:!0})},class extends Oo{static get requires(){return[JP,tL,Ny]}static get pluginName(){return"PageBreak"}},class extends Oo{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[EP,MP,PP,LP,NP,RP,FP,jP,$P,zP,qP]}init(){const t=this.editor,e=t.plugins.get(EP);e.loadAllowedEmptyElementsConfig(t.config.get("htmlSupport.allowEmpty")||[]),e.loadAllowedConfig(t.config.get("htmlSupport.allow")||[]),e.loadDisallowedConfig(t.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(t){const e=this.editor.plugins.get("DataSchema"),n=Array.from(e.getDefinitionsForView(t,!1)),i=n.find((t=>t.isInline&&!n[0].isObject));return i?i.model:hP(t)}addModelHtmlClass(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const o of UP(i,n,r))uP(t,o,r,"classes",(t=>{for(const n of Jr(e))t.add(n)}))}))}removeModelHtmlClass(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const o of UP(i,n,r))uP(t,o,r,"classes",(t=>{for(const n of Jr(e))t.delete(n)}))}))}setModelHtmlAttributes(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const o of UP(i,n,r))uP(t,o,r,"attributes",(t=>{for(const[n,i]of Object.entries(e))t.set(n,i)}))}))}removeModelHtmlAttributes(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const o of UP(i,n,r))uP(t,o,r,"attributes",(t=>{for(const n of Jr(e))t.delete(n)}))}))}setModelHtmlStyles(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const o of UP(i,n,r))uP(t,o,r,"styles",(t=>{for(const[n,i]of Object.entries(e))t.set(n,i)}))}))}removeModelHtmlStyles(t,e,n){const i=this.editor.model,r=this.getGhsAttributeNameForElement(t);i.change((t=>{for(const o of UP(i,n,r))uP(t,o,r,"styles",(t=>{for(const n of Jr(e))t.delete(n)}))}))}},UL,class extends Oo{static get requires(){return[UL,"Autoformat"]}init(){const t=this.editor;t.plugins.has("Math")||ki("autoformat-math-feature-missing",t)}afterInit(){const t=this.editor,e=t.commands.get("math");if(e instanceof PL){const n=()=>{if(!e.isEnabled)return!1;e.display=!0,Xn.window.setTimeout((()=>{const e=t.plugins.get("MathUI");e instanceof HL&&e._showUI()}),50)};Ak(t,this,/^\$\$$/,n),Ak(t,this,/^\\\[$/,n)}}static get pluginName(){return"AutoformatMath"}},class extends Oo{static get pluginName(){return"Footnotes"}static get requires(){return[_O,CO]}},class extends Oo{static get requires(){return[dL,fL,gL]}static get pluginName(){return"Mermaid"}}],xO={image:{styles:{options:["inline","alignBlockLeft","alignCenter","alignBlockRight","alignLeft","alignRight","full","side"]},resizeOptions:[{name:"imageResize:original",value:null,icon:"original"},{name:"imageResize:25",value:"25",icon:"small"},{name:"imageResize:50",value:"50",icon:"medium"},{name:"imageResize:75",value:"75",icon:"medium"}],toolbar:["imageStyle:inline","imageStyle:alignCenter",{name:"imageStyle:wrapText",title:"Wrap text",items:["imageStyle:alignLeft","imageStyle:alignRight"],defaultItem:"imageStyle:alignRight"},{name:"imageStyle:block",title:"Block align",items:["imageStyle:alignBlockLeft","imageStyle:alignBlockRight"],defaultItem:"imageStyle:alignBlockLeft"},"|","imageResize:25","imageResize:50","imageResize:original","|","toggleImageCaption"],upload:{types:["jpeg","png","gif","bmp","webp","tiff","svg","svg+xml","avif"]}},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableProperties","tableCellProperties","toggleTableCaption"]},list:{properties:{styles:!0,startIndex:!0,reversed:!0}},link:{defaultProtocol:"https://",allowedProtocols:["http","https","ftp","ftps","mailto","data","evernote","file","facetime","gemini","git","gopher","imap","irc","irc6","jabber","jar","lastfm","ldap","ldaps","magnet","message","mumble","nfs","onenote","pop","rmi","s3","sftp","skype","sms","spotify","steam","svn","udp","view-source","vlc","vnc","ws","wss","xmpp","jdbc","slack","tel","smb","zotero","geo"]},language:"en"};class EO extends hw{static builtinPlugins=[...AO,Gb];static defaultConfig={...xO,toolbar:{items:["fontSize","bold","italic","underline","strikethrough","superscript","subscript","fontColor","fontBackgroundColor","code","link","removeFormat","internallink","cuttonote"]},blockToolbar:["heading","|","bulletedList","numberedList","todoList","|","blockQuote","codeBlock","insertTable","footnote",{label:"Insert",icon:"plus",items:["internallink","includeNote","|","math","mermaid","horizontalLine","pageBreak"]},"|","outdent","indent","|","imageUpload","markdownImport","specialCharacters","findAndReplace"]}}class TO extends sb{view;constructor(t,e){super(t),this.view=e}init(){const t=this.editor,e=this.view,n=t.editing.view,i=e.editable,r=n.document.getRoot();i.name=r.rootName,e.render();const o=i.element;this.setEditableElement(i.name,o),e.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(o),this._initPlaceholder(),this._initToolbar(),this._initMenuBar(this.view.menuBarView),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;e.getDomRoot(t.editable.name)&&e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.editor,e=this.view;e.toolbar.fillFromConfig(t.config.get("toolbar"),this.componentFactory),this.addToolbar(e.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.config.get("placeholder");if(i){const t="string"==typeof i?i:i[n.rootName];t&&(n.placeholder=t)}Xo({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}}class SO extends hb{toolbar;editable;menuBarView;constructor(t,e,n={}){super(t),this.toolbar=new pp(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.menuBarView=new cw(t),this.editable=new fb(t,e,n.editableElement,{label:n.label}),this.toolbar.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:t.uiLanguageDirection}}),this.menuBarView.extendTemplate({attributes:{class:["ck-reset_all","ck-rounded-corners"],dir:t.uiLanguageDirection}})}render(){super.render(),this.registerChild([this.menuBarView,this.toolbar,this.editable])}}class DO extends(Bd(Id)){ui;constructor(t,e={}){if(!IO(t)&&void 0!==e.initialData)throw new wi("editor-create-initial-data",null);super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",function(t){return IO(t)?lr(t):t}(t)),IO(t)&&(this.sourceElement=t,Md(this,t)),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),i=new SO(this.locale,this.editing.view,{editableElement:this.sourceElement,shouldToolbarGroupWhenFull:n,label:this.config.get("label")});this.ui=new TO(this,i)}destroy(){const t=this.getData();return this.ui.destroy(),super.destroy().then((()=>{this.sourceElement&&this.updateSourceElement(t)}))}static create(t,e={}){return new Promise((n=>{if(IO(t)&&"TEXTAREA"===t.tagName)throw new wi("editor-wrong-element",null);const i=new this(t,e);n(i.initPlugins().then((()=>i.ui.init())).then((()=>i.data.init(i.config.get("initialData")))).then((()=>i.fire("ready"))).then((()=>i)))}))}}function IO(t){return U(t)}class BO extends DO{static builtinPlugins=[...AO];static defaultConfig={...xO,toolbar:{items:["heading","fontSize","|","bold","italic",{label:"Text formatting",icon:"text",items:["underline","strikethrough","superscript","subscript","code"]},"|","fontColor","fontBackgroundColor","removeFormat","|","bulletedList","numberedList","todoList","|","blockQuote","insertTable","codeBlock","footnote",{label:"Insert",icon:"plus",items:["imageUpload","|","link","internallink","includeNote","|","specialCharacters","math","mermaid","horizontalLine","pageBreak"]},"|","outdent","indent","|","markdownImport","cuttonote","findAndReplace"]}}}const MO={BalloonEditor:EO,DecoupledEditor:BO,EditorWatchdog:Hn}})(),i=i.default})()));
//# sourceMappingURL=ckeditor.js.map